@incodetech/core 0.0.0-dev-20260407-4677d7f → 0.0.0-dev-20260407-2c382da
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/{BaseWasmProvider-CQgeReKV.esm.js → BaseWasmProvider--AzPfwOm.esm.js} +785 -1
- package/dist/{xstate.esm-BXrcOcSC.esm.js → Manager-C6AGXEq_.esm.js} +507 -103
- package/dist/{warmup-CEOVQKby.d.ts → StateMachine-CM_aOfNL.d.ts} +4 -1
- package/dist/{recordingsRepository-blYn-iKZ.esm.js → StreamCanvasCapture-DkpkIgyL.esm.js} +215 -157
- package/dist/{WasmUtilProvider-C45HStLj.esm.js → WasmUtilProvider-BonqBWdj.esm.js} +1 -1
- package/dist/{addressSearch-C5qzDvkN.esm.js → addressSearch-B8Fo4v9V.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +3 -3
- package/dist/authentication.d.ts +9 -11
- package/dist/authentication.esm.js +13 -18
- package/dist/{authenticationManager-CW4qxgcq.esm.js → authenticationManager-B4gSCgrO.esm.js} +6 -7
- package/dist/{authenticationManager-CiXsOTdM.d.ts → authenticationManager-Bd10YGSO.d.ts} +2 -2
- package/dist/{backCameraStream-CUo1USCT.esm.js → backCameraStream-DF_d7hTz.esm.js} +2 -2
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +3 -3
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +3 -3
- package/dist/{deepsightLoader-Bs5jHgca.esm.js → deepsightLoader-DKgEdLIS.esm.js} +7 -10
- package/dist/{deepsightService-CMAtxAC9.d.ts → deepsightService-Ciu0atv5.d.ts} +197 -193
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-capture.esm.js +6 -6
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +6 -6
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +9 -9
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-DEIxY7l6.d.ts → emailManager-BQPIJR_O.d.ts} +2 -2
- package/dist/{emailManager-CZ2IGW0g.esm.js → emailManager-CpAwvP3v.esm.js} +4 -4
- package/dist/endpoints-CI5-28jT.esm.js +69 -0
- package/dist/extensibility.d.ts +13 -15
- package/dist/extensibility.esm.js +20 -25
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CWj-nXdx.d.ts → faceCaptureManagerFactory-CdwpYykv.d.ts} +6 -8
- package/dist/{faceCaptureSetup-DIE5cftl.esm.js → faceCaptureSetup-DbXgtcp7.esm.js} +10 -13
- package/dist/flow.d.ts +6 -7
- package/dist/flow.esm.js +8 -8
- package/dist/{flowCompletionService-N6-xypy-.esm.js → flowCompletionService-TnWijsSw.esm.js} +2 -2
- package/dist/{flowServices-xgqnJ64L.esm.js → flowServices-CO2sIR3D.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +4 -4
- package/dist/id-CzDAG_kM.esm.js +0 -0
- package/dist/id.d.ts +10 -11
- package/dist/id.esm.js +15 -19
- package/dist/{idCaptureManager-SHBRQ-X_.esm.js → idCaptureManager-DaLU1ug7.esm.js} +11 -15
- package/dist/{idCaptureManager-H-rkXnbK.d.ts → idCaptureManager-IdqsAASp.d.ts} +6 -7
- package/dist/index-BuVKc9bv.d.ts +1 -0
- package/dist/index.d.ts +611 -3
- package/dist/index.esm.js +562 -10
- package/dist/{lib-Cq5Wc-Hd.esm.js → lib-i-4qLKdG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +3 -3
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-CscgaER2.esm.js → phoneManager-BAPHSXx8.esm.js} +4 -4
- package/dist/{phoneManager-Clfbrs6b.d.ts → phoneManager-DA8WUJtl.d.ts} +2 -2
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +9 -11
- package/dist/selfie.esm.js +13 -18
- package/dist/{selfieManager-DeGqD5aN.esm.js → selfieManager-BSkzncsa.esm.js} +4 -5
- package/dist/{selfieManager-h_hhEefT.d.ts → selfieManager-Dft5wZQ_.d.ts} +2 -2
- package/dist/{session-PLjFj_T3.esm.js → session-OglUYC9l.esm.js} +19 -5
- package/dist/session.d.ts +2 -46
- package/dist/session.esm.js +4 -7
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +3 -3
- package/dist/{stats-BZ1kFW4p.esm.js → stats-BVigf5Rn.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-T0VjZW3T.d.ts → types-CiLyvJGb.d.ts} +1 -1
- package/dist/{types-zH5PDmSe.d.ts → types-D8Y1faI5.d.ts} +1 -1
- package/package.json +2 -18
- package/dist/MotionSensorProvider-BTDLt08l.esm.js +0 -254
- package/dist/StateMachine-8d441d6x.d.ts +0 -2
- package/dist/camera.d.ts +0 -16
- package/dist/camera.esm.js +0 -5
- package/dist/deepsightService-C3gQ_9Ml.esm.js +0 -493
- package/dist/device.d.ts +0 -46
- package/dist/device.esm.js +0 -106
- package/dist/events-BlVGS-8F.esm.js +0 -472
- package/dist/events.d.ts +0 -232
- package/dist/events.esm.js +0 -4
- package/dist/getBrowser-B800KRAi.esm.js +0 -41
- package/dist/getDeviceClass-BKd2FOAf.esm.js +0 -14
- package/dist/http.d.ts +0 -57
- package/dist/http.esm.js +0 -3
- package/dist/permissionServices-CDqkkway.esm.js +0 -50
- package/dist/setup-DJ3dFl5k.d.ts +0 -120
- package/dist/setup-fvDWE7f8.esm.js +0 -450
- package/dist/types-qhLxpptI.d.ts +0 -5
- package/dist/wasm.d.ts +0 -15
- package/dist/wasm.esm.js +0 -10
- /package/dist/{Actor-C-jivmFF.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider--xQUs3sg.esm.js → BrowserEnvironmentProvider-BECjyw3_.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-CkHEwJFa.esm.js → BrowserTimerProvider-CIqH6hJp.esm.js} +0 -0
- /package/dist/{Manager-BqFybBV-.d.ts → Manager-CCT_-HuZ.d.ts} +0 -0
- /package/dist/{api-CyI8qTie.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{browserSimulation-yzDdWSBf.esm.js → browserSimulation-DYAk0Ipe.esm.js} +0 -0
- /package/dist/{camera-CKsQVNlH.d.ts → camera-6XJdOeBF.d.ts} +0 -0
- /package/dist/{camera-CsT06Zqy.esm.js → camera-DAuRUvnp.esm.js} +0 -0
- /package/dist/{chunk-BcQWkoAq.esm.js → chunk-D6hkk-hd.esm.js} +0 -0
- /package/dist/{displayErrors-CjMXlBnu.d.ts → displayErrors-CGJwvrTl.d.ts} +0 -0
- /package/dist/{flowCompletionService-BV6ThEJ1.d.ts → flowCompletionService-BOd4Rk8n.d.ts} +0 -0
- /package/dist/{platform-Dcuv6w60.esm.js → platform-DdhkonXk.esm.js} +0 -0
package/dist/events.d.ts
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
//#region src/internal/events/types.d.ts
|
|
2
|
-
type Event = {
|
|
3
|
-
code: string;
|
|
4
|
-
module?: string;
|
|
5
|
-
screen?: string;
|
|
6
|
-
payload?: Record<string, unknown>;
|
|
7
|
-
clientTimestamp?: number;
|
|
8
|
-
};
|
|
9
|
-
declare const eventModuleNames: {
|
|
10
|
-
readonly selfie: "SELFIE";
|
|
11
|
-
readonly authentication: "AUTHENTICATION";
|
|
12
|
-
readonly authFace: "AUTH_FACE";
|
|
13
|
-
readonly mlConsent: "ML_CONSENT";
|
|
14
|
-
readonly combinedConsent: "COMBINED_CONSENT";
|
|
15
|
-
readonly curpValidation: "CURP_VALIDATION";
|
|
16
|
-
readonly faceMatch: "FACE_MATCH";
|
|
17
|
-
readonly qr: "QR";
|
|
18
|
-
readonly videoSelfie: "VIDEO_ONBOARDING";
|
|
19
|
-
readonly passport: "ID";
|
|
20
|
-
readonly front: "ID";
|
|
21
|
-
readonly back: "ID";
|
|
22
|
-
readonly id: "ID";
|
|
23
|
-
readonly document: "DOCUMENT_CAPTURE";
|
|
24
|
-
readonly creditCard: "CREDIT_CARD_FRONT";
|
|
25
|
-
readonly creditCardBack: "CREDIT_CARD_BACK";
|
|
26
|
-
readonly conference: "CONFERENCE";
|
|
27
|
-
readonly otp: "OTP";
|
|
28
|
-
readonly signature: "SIGNATURE";
|
|
29
|
-
readonly ekyc: "EXTERNAL_VERIFICATION";
|
|
30
|
-
readonly globalWatchList: "GLOBAL_WATCHLIST";
|
|
31
|
-
readonly customWatchList: "CUSTOM_WATCHLIST";
|
|
32
|
-
readonly email: "EMAIL";
|
|
33
|
-
readonly phone: "PHONE";
|
|
34
|
-
readonly instantVerifyEmail: "INSTANT_VERIFY_EMAIL";
|
|
35
|
-
readonly instantVerifyConsent: "INSTANT_VERIFY_CONSENT";
|
|
36
|
-
readonly forms: "FORMS";
|
|
37
|
-
readonly customModule: "CUSTOM_MODULE";
|
|
38
|
-
readonly geolocation: "GEOLOCATION";
|
|
39
|
-
readonly ekyb: "EKYB";
|
|
40
|
-
readonly antifraud: "ANTIFRAUD";
|
|
41
|
-
};
|
|
42
|
-
declare const eventScreenNames: {
|
|
43
|
-
readonly faceMatch: "FACE_MATCH";
|
|
44
|
-
readonly faceCaptureTutorial: "SELFIE_CAPTURE_TUTORIAL";
|
|
45
|
-
readonly faceCaptureCamera: "SELFIE_CAMERA_CAPTURE";
|
|
46
|
-
readonly faceCaptureError: "SELFIE_ATTEMPT_FAILED";
|
|
47
|
-
readonly faceCaptureSuccess: "SELFIE_UPLOAD_SUCCEEDED";
|
|
48
|
-
readonly faceCaptureUpload: "SELFIE_UPLOAD_PROGRESS";
|
|
49
|
-
readonly mlConsent: "MACHINE_LEARNING_CONSENT";
|
|
50
|
-
readonly combinedConsent: "COMBINED_CONSENT";
|
|
51
|
-
readonly curpEnter: "ENTER_CURP";
|
|
52
|
-
readonly curpValidate: "VALIDATE_CURP";
|
|
53
|
-
readonly curpGenerate: "GENERATE_CURP";
|
|
54
|
-
readonly curpValidation: "CURP_VALIDATION_PROGRESS";
|
|
55
|
-
readonly curpValidationFailed: "CURP_VALIDATION_FAILED";
|
|
56
|
-
readonly curpValidationSuccess: "CURP_VALIDATION_SUCCEEDED";
|
|
57
|
-
readonly qrTutorial: "QR_TUTORIAL";
|
|
58
|
-
readonly qrScan: "QR_SCAN";
|
|
59
|
-
readonly smsOtp: "OTP";
|
|
60
|
-
readonly simpleOTP: "OTP";
|
|
61
|
-
readonly signatureInput: "SIGNATURE_INPUT";
|
|
62
|
-
readonly signatureInitialsInput: "INITIALS_INPUT";
|
|
63
|
-
readonly frontTutorial: "FRONT_ID_CAPTURE_TUTORIAL";
|
|
64
|
-
readonly frontCameraCapture: "FRONT_ID_CAMERA_CAPTURE";
|
|
65
|
-
readonly frontHelp: "FRONT_ID_HELP";
|
|
66
|
-
readonly frontReviewPhoto: "FRONT_ID_REVIEW_PHOTO";
|
|
67
|
-
readonly frontUploadProgress: "FRONT_ID_UPLOAD_PROGRESS";
|
|
68
|
-
readonly frontAttemptFailed: "FRONT_ID_ATTEMPT_FAILED";
|
|
69
|
-
readonly frontUploadSuccess: "FRONT_ID_UPLOAD_SUCCEEDED";
|
|
70
|
-
readonly backTutorial: "BACK_ID_CAPTURE_TUTORIAL";
|
|
71
|
-
readonly backCameraCapture: "BACK_ID_CAMERA_CAPTURE";
|
|
72
|
-
readonly backReviewPhoto: "BACK_ID_REVIEW_PHOTO";
|
|
73
|
-
readonly backUploadProgress: "BACK_ID_UPLOAD_PROGRESS";
|
|
74
|
-
readonly backAttemptFailed: "BACK_ID_ATTEMPT_FAILED";
|
|
75
|
-
readonly backUploadSuccess: "BACK_ID_UPLOAD_SUCCEEDED";
|
|
76
|
-
readonly backHelp: "BACK_ID_HELP";
|
|
77
|
-
readonly passportTutorial: "TUTORIAL_PASSPORT";
|
|
78
|
-
readonly documentTutorial: "DOCUMENT_CAPTURE_TUTORIAL";
|
|
79
|
-
readonly documentCameraCapture: "DOCUMENT_CAMERA_CAPTURE";
|
|
80
|
-
readonly documentHelp: "DOCUMENT_HELP";
|
|
81
|
-
readonly documentReviewPhoto: "DOCUMENT_REVIEW_PHOTO";
|
|
82
|
-
readonly documentUploadProgress: "DOCUMENT_UPLOAD_IN_PROGRESS";
|
|
83
|
-
readonly documentAttemptFailed: "DOCUMENT_ATTEMPT_FAILED";
|
|
84
|
-
readonly documentUploadSuccess: "DOCUMENT_UPLOAD_SUCCEEDED";
|
|
85
|
-
readonly conferenceWait: "CONFERENCE_WAIT";
|
|
86
|
-
readonly conferenceVideoChat: "CONFERENCE_VIDEO_CHAT";
|
|
87
|
-
readonly conferenceMessageChat: "CONFERENCE_MESSAGE_CHAT";
|
|
88
|
-
readonly videoSelfieTutorial: "VIDEO_SELFIE_TUTORIAL";
|
|
89
|
-
readonly videoSelfie: "VIDEO_SELFIE";
|
|
90
|
-
readonly videoSelfieFaceCapture: "VIDEO_SELFIE_FACE_CAPTURE";
|
|
91
|
-
readonly videoSelfieFaceUploadProgress: "VIDEO_SELFIE_FACE_UPLOAD_PROGRESS";
|
|
92
|
-
readonly videoSelfieFaceAttemptFailed: "VIDEO_SELFIE_FACE_ATTEMPT_FAILED";
|
|
93
|
-
readonly videoSelfieFaceUploadSucceeded: "VIDEO_SELFIE_FACE_UPLOAD_SUCCEEDED";
|
|
94
|
-
readonly videoSelfieFrontIdCapture: "VIDEO_SELFIE_FRONT_ID_CAPTURE";
|
|
95
|
-
readonly videoSelfieFrontIdUploadProgress: "VIDEO_SELFIE_FRONT_ID_UPLOAD_PROGRESS";
|
|
96
|
-
readonly videoSelfieFrontIdAttemptFailed: "VIDEO_SELFIE_FRONT_ID_ATTEMPT_FAILED";
|
|
97
|
-
readonly videoSelfieFrontIdUploadSucceeded: "VIDEO_SELFIE_FRONT_ID_UPLOAD_SUCCEEDED";
|
|
98
|
-
readonly videoSelfieBackIdCapture: "VIDEO_SELFIE_BACK_ID_CAPTURE";
|
|
99
|
-
readonly videoSelfieBackIdUploadProgress: "VIDEO_SELFIE_BACK_ID_UPLOAD_PROGRESS";
|
|
100
|
-
readonly videoSelfieBackIdAttemptFailed: "VIDEO_SELFIE_BACK_ID_ATTEMPT_FAILED";
|
|
101
|
-
readonly videoSelfieBackIdUploadSucceeded: "VIDEO_SELFIE_BACK_ID_UPLOAD_SUCCEEDED";
|
|
102
|
-
readonly videoSelfieDocumentCapture: "VIDEO_SELFIE_DOCUMENT_CAPTURE";
|
|
103
|
-
readonly videoSelfieVoiceQuestion: "VIDEO_SELFIE_VOICE_QUESTION";
|
|
104
|
-
readonly videoSelfieVoiceFinalQuestion: "VIDEO_SELFIE_VOICE_FINAL_QUESTION";
|
|
105
|
-
readonly videoSelfieVideoUpload: "VIDEO SELFIE VIDEO UPLOAD";
|
|
106
|
-
readonly ekycInput: "EKYC_INPUT";
|
|
107
|
-
readonly ekycProgress: "EKYC_PROGRESS";
|
|
108
|
-
readonly ekycSucceeded: "EKYC_SUCCEEDED";
|
|
109
|
-
readonly ekycFailed: "EKYC_FAILED";
|
|
110
|
-
readonly forms: "FORMS";
|
|
111
|
-
readonly globalWatchListInput: "GLOBAL_WATCHLIST_INPUT";
|
|
112
|
-
readonly globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS";
|
|
113
|
-
readonly globalWatchListSuccess: "GLOBAL_WATCHLIST_SUCCEEDED";
|
|
114
|
-
readonly globalWatchListFailed: "GLOBAL_WATCHLIST_FAILED";
|
|
115
|
-
readonly customWatchListInput: "CUSTOM_WATCHLIST_INPUT";
|
|
116
|
-
readonly customWatchListProgress: "CUSTOM_WATCHLIST_PROGRESS";
|
|
117
|
-
readonly customWatchListSuccess: "CUSTOM_WATCHLIST_SUCCEEDED";
|
|
118
|
-
readonly customWatchListFailed: "CUSTOM_WATCHLIST_FAILED";
|
|
119
|
-
readonly emailInput: "EMAIL_INPUT";
|
|
120
|
-
readonly phoneInput: "PHONE_INPUT";
|
|
121
|
-
readonly instantVerify: "INSTANT_VERIFY";
|
|
122
|
-
readonly authFace: "AUTH_FACE";
|
|
123
|
-
readonly authFaceError: "AUTH_FACE_ATTEMPT_FAILED";
|
|
124
|
-
readonly authFaceUpload: "AUTH_FACE_UPLOAD_PROGRESS";
|
|
125
|
-
readonly authFaceUploadSuccess: "AUTH_FACE_UPLOAD_SUCCEEDED";
|
|
126
|
-
readonly authFaceUploadFailed: "AUTH_FACE_UPLOAD_FAILED";
|
|
127
|
-
readonly customModuleCallback: "CUSTOM_MODULE_CALLBACK";
|
|
128
|
-
readonly customModuleProcessing: "CUSTOM_MODULE_PROCESSING";
|
|
129
|
-
readonly digitalIdFileSelection: "DIGITAL_ID_FILE_SELECTION";
|
|
130
|
-
readonly digitalIdFileReview: "DIGITAL_ID_FILE_REVIEW";
|
|
131
|
-
readonly digitalIdUploadProgress: "DIGITAL_ID_UPLOAD_PROGRESS";
|
|
132
|
-
readonly digitalIdUploadSuccess: "DIGITAL_ID_UPLOAD_SUCCEEDED";
|
|
133
|
-
readonly digitalIdUploadFailed: "DIGITAL_ID_UPLOAD_FAILED";
|
|
134
|
-
readonly digitalIdAnalysisProgress: "DIGITAL_ID_ANALYSIS_PROGRESS";
|
|
135
|
-
readonly digitalIdVerificationSuccess: "DIGITAL_ID_VERIFICATION_SUCCESS";
|
|
136
|
-
readonly digitalIdVerificationFailed: "DIGITAL_ID_VERIFICATION_FAILED";
|
|
137
|
-
readonly ekybForm: "EKYB_FORM";
|
|
138
|
-
};
|
|
139
|
-
declare const videoSelfieEvents: {
|
|
140
|
-
readonly imageTooBlurry: "imageTooBlurry";
|
|
141
|
-
readonly fillFrame: "fillFrame";
|
|
142
|
-
readonly checkCameraOrLighting: "checkCameraOrLighting";
|
|
143
|
-
readonly frontIdCaptureStarted: "frontIdCaptureStarted";
|
|
144
|
-
readonly lookAtCamera: "lookAtCamera";
|
|
145
|
-
readonly moveCloser: "moveCloser";
|
|
146
|
-
readonly lookingForFrontId: "lookingForFrontId";
|
|
147
|
-
readonly lookingForBackId: "lookingForBackId";
|
|
148
|
-
readonly cameraSwitchToBack: "cameraSwitchToBack";
|
|
149
|
-
readonly cameraSwitchToFront: "cameraSwitchToFront";
|
|
150
|
-
readonly audioStreamOpened: "audioStreamOpened";
|
|
151
|
-
readonly audioStreamClosed: "audioStreamClosed";
|
|
152
|
-
readonly videoSelfieVideoUploadInProgress: "videoSelfieVideoUploadInProgress";
|
|
153
|
-
readonly videoSelfieTosNotAccepted: "videoSelfieTosNotAccepted";
|
|
154
|
-
readonly videoSelfieTosAccepted: "videoSelfieTosAccepted";
|
|
155
|
-
readonly videoSelfieStreamCreated: "videoSelfieStreamCreated";
|
|
156
|
-
readonly videoSelfieStreamDestroyed: "videoSelfieStreamDestroyed";
|
|
157
|
-
readonly videoSelfieReconnecting: "videoSelfieReconnecting";
|
|
158
|
-
readonly videoSelfieReconnected: "videoSelfieReconnected";
|
|
159
|
-
};
|
|
160
|
-
declare const tutorialScreenNamesMapper: {
|
|
161
|
-
readonly passport: "TUTORIAL_PASSPORT";
|
|
162
|
-
readonly front: "FRONT_ID_CAPTURE_TUTORIAL";
|
|
163
|
-
readonly back: "BACK_ID_CAPTURE_TUTORIAL";
|
|
164
|
-
readonly selfie: "SELFIE_CAPTURE_TUTORIAL";
|
|
165
|
-
};
|
|
166
|
-
declare const cameraScreenNamesMapper: {
|
|
167
|
-
readonly front: "front";
|
|
168
|
-
readonly back: "back";
|
|
169
|
-
readonly passport: "passport";
|
|
170
|
-
readonly creditCard: "front";
|
|
171
|
-
readonly creditCardBack: "back";
|
|
172
|
-
readonly document: "document";
|
|
173
|
-
};
|
|
174
|
-
type EventModule = (typeof eventModuleNames)[keyof typeof eventModuleNames];
|
|
175
|
-
type EventScreen = (typeof eventScreenNames)[keyof typeof eventScreenNames];
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/internal/events/addEvent.d.ts
|
|
178
|
-
type EventSubscriber = (event: Event) => void;
|
|
179
|
-
/**
|
|
180
|
-
* Subscribes to all SDK events for logging, debugging, or custom analytics.
|
|
181
|
-
* Returns an unsubscribe function.
|
|
182
|
-
*
|
|
183
|
-
* @param listener - Callback function that receives each event
|
|
184
|
-
* @returns Unsubscribe function to remove the listener
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* ```typescript
|
|
188
|
-
* const unsubscribe = subscribeEvent((event) => {
|
|
189
|
-
* console.log('[Event]', event.code, event.module);
|
|
190
|
-
* });
|
|
191
|
-
*
|
|
192
|
-
* // Later
|
|
193
|
-
* unsubscribe();
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
declare function subscribeEvent(listener: EventSubscriber): () => void;
|
|
197
|
-
/**
|
|
198
|
-
* Sends an event to the dashboard for tracking.
|
|
199
|
-
* Fire-and-forget: never blocks, never throws.
|
|
200
|
-
* Events are queued if SDK is not configured yet.
|
|
201
|
-
*/
|
|
202
|
-
declare function addEvent(event: Event): void;
|
|
203
|
-
/**
|
|
204
|
-
* Flushes any queued events that were sent before SDK was configured.
|
|
205
|
-
* Called automatically by setup() after token is set.
|
|
206
|
-
*/
|
|
207
|
-
declare function flushEventQueue(): void;
|
|
208
|
-
//#endregion
|
|
209
|
-
//#region src/internal/events/helpers.d.ts
|
|
210
|
-
type ScreenEventParams = {
|
|
211
|
-
module: EventModule | string;
|
|
212
|
-
screen?: EventScreen | string;
|
|
213
|
-
code: string;
|
|
214
|
-
payload?: Record<string, unknown>;
|
|
215
|
-
};
|
|
216
|
-
type ElementClickedPayload = {
|
|
217
|
-
element: string;
|
|
218
|
-
action?: string;
|
|
219
|
-
metadata?: Record<string, unknown>;
|
|
220
|
-
};
|
|
221
|
-
type CaptureAttemptFinishedPayload = {
|
|
222
|
-
logs: string;
|
|
223
|
-
};
|
|
224
|
-
declare function screenEvent(params: ScreenEventParams): void;
|
|
225
|
-
declare function moduleOpened(module: EventModule | string, screen?: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
226
|
-
declare function moduleClosed(module: EventModule | string, screen?: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
227
|
-
declare function screenOpened(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
228
|
-
declare function screenClosed(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
|
|
229
|
-
declare function elementClicked(module: EventModule | string, screen: EventScreen | string | undefined, payload: ElementClickedPayload): void;
|
|
230
|
-
declare function captureAttemptFinished(module: EventModule | string, screen: EventScreen | string | undefined, payload: CaptureAttemptFinishedPayload): void;
|
|
231
|
-
//#endregion
|
|
232
|
-
export { type CaptureAttemptFinishedPayload, type ElementClickedPayload, type Event, type EventModule, type EventScreen, addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|
package/dist/events.esm.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "./api-CyI8qTie.esm.js";
|
|
2
|
-
import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, g as subscribeEvent, h as flushEventQueue, i as tutorialScreenNamesMapper, l as moduleClosed, m as addEvent, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened } from "./events-BlVGS-8F.esm.js";
|
|
3
|
-
|
|
4
|
-
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/device/getDeviceClass.ts
|
|
2
|
-
function getDeviceInfo() {
|
|
3
|
-
if (typeof navigator === "undefined") return {
|
|
4
|
-
userAgent: "",
|
|
5
|
-
platform: "",
|
|
6
|
-
maxTouchPoints: 0
|
|
7
|
-
};
|
|
8
|
-
return {
|
|
9
|
-
userAgent: navigator.userAgent,
|
|
10
|
-
platform: navigator.platform,
|
|
11
|
-
maxTouchPoints: navigator.maxTouchPoints
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Gets the current window dimensions.
|
|
16
|
-
* Returns default values (1280x720) in non-browser environments.
|
|
17
|
-
*/
|
|
18
|
-
function getWindowDimensions(defaultWidth = 1280, defaultHeight = 720) {
|
|
19
|
-
if (typeof window === "undefined") return {
|
|
20
|
-
outerWidth: defaultWidth,
|
|
21
|
-
outerHeight: defaultHeight,
|
|
22
|
-
innerWidth: defaultWidth,
|
|
23
|
-
innerHeight: defaultHeight
|
|
24
|
-
};
|
|
25
|
-
return {
|
|
26
|
-
outerWidth: window.outerWidth,
|
|
27
|
-
outerHeight: window.outerHeight,
|
|
28
|
-
innerWidth: window.innerWidth,
|
|
29
|
-
innerHeight: window.innerHeight
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region ../infra/src/device/getBrowser.ts
|
|
35
|
-
function getUserAgent() {
|
|
36
|
-
if (typeof navigator === "undefined") return "";
|
|
37
|
-
return navigator.userAgent;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
export { getDeviceInfo as n, getWindowDimensions as r, getUserAgent as t };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { n as getDeviceInfo } from "./getBrowser-B800KRAi.esm.js";
|
|
2
|
-
|
|
3
|
-
//#region src/internal/device/getDeviceClass.ts
|
|
4
|
-
function getDeviceClass() {
|
|
5
|
-
const { userAgent, platform, maxTouchPoints } = getDeviceInfo();
|
|
6
|
-
if (!userAgent) return "desktop";
|
|
7
|
-
const ua = userAgent.toLowerCase();
|
|
8
|
-
if (/iphone|ipad|ipod/.test(ua) || platform === "MacIntel" && maxTouchPoints > 1) return "ios";
|
|
9
|
-
if (/android/.test(ua)) return "android";
|
|
10
|
-
return "desktop";
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { getDeviceClass as t };
|
package/dist/http.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
//#region ../infra/src/http/types.d.ts
|
|
2
|
-
|
|
3
|
-
type RequestConfig = {
|
|
4
|
-
method?: string;
|
|
5
|
-
url: string;
|
|
6
|
-
headers?: Record<string, string>;
|
|
7
|
-
query?: Record<string, string | number | boolean | undefined>;
|
|
8
|
-
params?: Record<string, string | number | boolean | undefined>;
|
|
9
|
-
body?: unknown;
|
|
10
|
-
signal?: AbortSignal;
|
|
11
|
-
timeout?: number;
|
|
12
|
-
parse?: 'json' | 'text' | 'blob' | 'arrayBuffer' | 'response';
|
|
13
|
-
onUploadProgress?: (progress: number) => void;
|
|
14
|
-
};
|
|
15
|
-
type HttpResponse<T = unknown> = {
|
|
16
|
-
ok: boolean;
|
|
17
|
-
status: number;
|
|
18
|
-
statusText: string;
|
|
19
|
-
url: string;
|
|
20
|
-
headers: Record<string, string>;
|
|
21
|
-
data: T;
|
|
22
|
-
};
|
|
23
|
-
type HttpClient = {
|
|
24
|
-
defaults: {
|
|
25
|
-
baseURL: string;
|
|
26
|
-
headers: Record<string, string>;
|
|
27
|
-
};
|
|
28
|
-
request<T = unknown>(config: RequestConfig): Promise<HttpResponse<T>>;
|
|
29
|
-
get<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
|
|
30
|
-
post<T = unknown>(url: string, body?: unknown, config?: Omit<RequestConfig, 'method' | 'url' | 'body'>): Promise<HttpResponse<T>>;
|
|
31
|
-
put<T = unknown>(url: string, body?: unknown, config?: Omit<RequestConfig, 'method' | 'url' | 'body'>): Promise<HttpResponse<T>>;
|
|
32
|
-
patch<T = unknown>(url: string, body?: unknown, config?: Omit<RequestConfig, 'method' | 'url' | 'body'>): Promise<HttpResponse<T>>;
|
|
33
|
-
delete<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
|
|
34
|
-
head<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
|
|
35
|
-
options<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
|
|
36
|
-
setHeader(name: string, value: string): void;
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/internal/http/api.d.ts
|
|
40
|
-
type MethodConfig = {
|
|
41
|
-
headers?: Record<string, string>;
|
|
42
|
-
signal?: AbortSignal;
|
|
43
|
-
timeout?: number;
|
|
44
|
-
query?: Record<string, string | number | boolean | undefined>;
|
|
45
|
-
onUploadProgress?: (progress: number) => void;
|
|
46
|
-
};
|
|
47
|
-
type ApiClient = {
|
|
48
|
-
get<T>(url: string, config?: MethodConfig): Promise<HttpResponse<T>>;
|
|
49
|
-
post<T>(url: string, data?: unknown, config?: MethodConfig): Promise<HttpResponse<T>>;
|
|
50
|
-
put<T>(url: string, data?: unknown, config?: MethodConfig): Promise<HttpResponse<T>>;
|
|
51
|
-
patch<T>(url: string, data?: unknown, config?: MethodConfig): Promise<HttpResponse<T>>;
|
|
52
|
-
delete<T>(url: string, config?: MethodConfig): Promise<HttpResponse<T>>;
|
|
53
|
-
};
|
|
54
|
-
declare function getApi(): HttpClient;
|
|
55
|
-
declare const api: ApiClient;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { api, getApi };
|
package/dist/http.esm.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-CsT06Zqy.esm.js";
|
|
2
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-BTDLt08l.esm.js";
|
|
3
|
-
|
|
4
|
-
//#region ../infra/src/media/permissions.ts
|
|
5
|
-
async function queryPermission(name) {
|
|
6
|
-
try {
|
|
7
|
-
if (typeof navigator === "undefined" || !navigator.permissions) return "prompt";
|
|
8
|
-
return (await navigator.permissions.query({ name })).state;
|
|
9
|
-
} catch {
|
|
10
|
-
return "prompt";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
async function queryCameraPermission() {
|
|
14
|
-
return queryPermission("camera");
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/internal/permissions/permissionServices.ts
|
|
19
|
-
/**
|
|
20
|
-
* Checks the current camera permission state without prompting the user.
|
|
21
|
-
*/
|
|
22
|
-
async function checkPermission() {
|
|
23
|
-
return queryCameraPermission();
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Requests motion sensor permission. Must be called during a user gesture on iOS.
|
|
27
|
-
* Returns the permission result.
|
|
28
|
-
*/
|
|
29
|
-
async function requestMotionPermission() {
|
|
30
|
-
return new MotionSensorProvider().requestPermission();
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Requests camera permission by attempting to access the camera, then immediately
|
|
34
|
-
* stops the obtained stream. Also requests motion sensor permission (required on iOS
|
|
35
|
-
* to be called during a user gesture). This function does not keep or return the stream.
|
|
36
|
-
*/
|
|
37
|
-
async function requestPermission() {
|
|
38
|
-
try {
|
|
39
|
-
await requestMotionPermission();
|
|
40
|
-
stopCameraStream(await requestCameraAccess({ video: true }));
|
|
41
|
-
return "granted";
|
|
42
|
-
} catch (error) {
|
|
43
|
-
const name = error instanceof Error ? error.name : void 0;
|
|
44
|
-
if (name === "NotAllowedError" || name === "PermissionDeniedError") return "denied";
|
|
45
|
-
return "prompt";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
export { requestPermission as n, checkPermission as t };
|
package/dist/setup-DJ3dFl5k.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { n as WasmPipeline } from "./warmup-CEOVQKby.js";
|
|
2
|
-
|
|
3
|
-
//#region src/setup.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* WASM warmup configuration. Path fields are optional; omitted values resolve to the Incode CDN defaults.
|
|
7
|
-
*/
|
|
8
|
-
type WasmConfig = {
|
|
9
|
-
/** Path to the WASM binary */
|
|
10
|
-
wasmPath?: string;
|
|
11
|
-
/** Path to the SIMD-optimized WASM binary (optional) */
|
|
12
|
-
wasmSimdPath?: string;
|
|
13
|
-
/** Path to the WASM glue code */
|
|
14
|
-
glueCodePath?: string;
|
|
15
|
-
/** Whether to use SIMD optimizations (default: true) */
|
|
16
|
-
useSimd?: boolean;
|
|
17
|
-
/** Which pipelines to preload models for */
|
|
18
|
-
pipelines?: WasmPipeline[];
|
|
19
|
-
/**
|
|
20
|
-
* Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
|
|
21
|
-
* If not provided, models are expected in a 'models' subdirectory relative to the WASM binary.
|
|
22
|
-
*/
|
|
23
|
-
modelsBasePath?: string;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Configuration options for the SDK setup.
|
|
27
|
-
*/
|
|
28
|
-
type SetupOptions = {
|
|
29
|
-
/** The base URL for the API. When omitted, no HTTP client is created — useful when all API actors are overridden via .provide(). */
|
|
30
|
-
apiURL?: string;
|
|
31
|
-
/** The session token for API requests (optional - can be set later or omitted for createSession calls) */
|
|
32
|
-
token?: string;
|
|
33
|
-
/** Custom headers to include in all requests */
|
|
34
|
-
customHeaders?: Record<string, string>;
|
|
35
|
-
/** Request timeout in milliseconds */
|
|
36
|
-
timeout?: number;
|
|
37
|
-
/**
|
|
38
|
-
* WASM warmup config.
|
|
39
|
-
* - Omit (default): loads automatically from the Incode CDN using the SDK's built-in version.
|
|
40
|
-
* - `false`: opt out of WASM entirely.
|
|
41
|
-
* - Object: override paths for self-hosting or a specific version.
|
|
42
|
-
*/
|
|
43
|
-
wasm?: WasmConfig | false;
|
|
44
|
-
/** Optional hosting app identifier for fingerprint tracking */
|
|
45
|
-
hostingApp?: string;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Initializes the SDK with the provided configuration.
|
|
49
|
-
* Must be called before using any SDK functionality.
|
|
50
|
-
*
|
|
51
|
-
* WASM loads automatically from the Incode CDN unless explicitly disabled or overridden.
|
|
52
|
-
*
|
|
53
|
-
* @param options - Configuration options for the SDK
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* import { setup } from '@incodetech/core';
|
|
58
|
-
*
|
|
59
|
-
* // Zero-config: WASM loads automatically from CDN
|
|
60
|
-
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token' });
|
|
61
|
-
*
|
|
62
|
-
* // Opt out of WASM
|
|
63
|
-
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
64
|
-
*
|
|
65
|
-
* // Self-hosted / custom version (full or partial path overrides)
|
|
66
|
-
* await setup({
|
|
67
|
-
* apiURL: 'https://api.incode.com',
|
|
68
|
-
* token: 'session-token',
|
|
69
|
-
* wasm: {
|
|
70
|
-
* wasmPath: '/my-cdn/webLib.wasm',
|
|
71
|
-
* glueCodePath: '/my-cdn/webLib.js',
|
|
72
|
-
* },
|
|
73
|
-
* });
|
|
74
|
-
*
|
|
75
|
-
* // Partial override: only models path, rest from CDN
|
|
76
|
-
* await setup({
|
|
77
|
-
* apiURL: 'https://api.incode.com',
|
|
78
|
-
* token: 'session-token',
|
|
79
|
-
* wasm: { modelsBasePath: 'https://my-cdn/models' },
|
|
80
|
-
* });
|
|
81
|
-
*
|
|
82
|
-
* // Sessionless setup (all API actors overridden via .provide())
|
|
83
|
-
* await setup({
|
|
84
|
-
* wasm: {
|
|
85
|
-
* wasmPath: '/wasm/ml-wasm.wasm',
|
|
86
|
-
* glueCodePath: '/wasm/ml-wasm.js',
|
|
87
|
-
* pipelines: ['selfie'],
|
|
88
|
-
* },
|
|
89
|
-
* });
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
declare function setup(options: SetupOptions): Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the WASM configuration without performing warmup.
|
|
95
|
-
* Useful when WASM warmup is handled separately (e.g., conditionally based on flow).
|
|
96
|
-
*
|
|
97
|
-
* @param config - WASM configuration to store
|
|
98
|
-
*/
|
|
99
|
-
declare function setWasmConfig(config: WasmConfig): void;
|
|
100
|
-
/**
|
|
101
|
-
* Initializes WasmUtilProvider with the stored WASM configuration.
|
|
102
|
-
* Should be called after warmupWasm() completes when using conditional warmup.
|
|
103
|
-
* This ensures image encryption works properly.
|
|
104
|
-
*
|
|
105
|
-
* @param config - Optional WASM configuration. If not provided, uses the stored config from setWasmConfig().
|
|
106
|
-
* @throws Error if no config is provided and none is stored
|
|
107
|
-
*/
|
|
108
|
-
declare function initializeWasmUtil(config?: WasmConfig): Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* Checks if the SDK has been configured.
|
|
111
|
-
*
|
|
112
|
-
* @returns true if setup() has been called, false otherwise
|
|
113
|
-
*/
|
|
114
|
-
declare function isConfigured(): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Resets the SDK configuration. Useful for testing.
|
|
117
|
-
*/
|
|
118
|
-
declare function reset(): void;
|
|
119
|
-
//#endregion
|
|
120
|
-
export { reset as a, isConfigured as i, WasmConfig as n, setWasmConfig as o, initializeWasmUtil as r, setup as s, SetupOptions as t };
|