@incodetech/core 0.0.0-dev-20260401-2082c59 → 0.0.0-dev-20260401-9ec5a7b
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/{addressSearch-CVORoFHv.esm.js → addressSearch-DzOdaNEA.esm.js} +1 -1
- package/dist/authentication.esm.js +6 -6
- package/dist/{authenticationManager-DMbrmeCK.esm.js → authenticationManager-CBSPCdJc.esm.js} +3 -3
- package/dist/{backCameraStream-CTPugcLL.esm.js → backCameraStream-BGAbuvw1.esm.js} +1 -1
- package/dist/consent.esm.js +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{deepsightLoader-ZyEiKNss.esm.js → deepsightLoader-B93Oa9pS.esm.js} +2 -2
- package/dist/{deepsightService-qolSLlqQ.esm.js → deepsightService-CLUMQ5ee.esm.js} +1 -1
- package/dist/document-capture.d.ts +55 -55
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +43 -43
- package/dist/document-upload.esm.js +2 -2
- package/dist/ekyb.esm.js +5 -5
- package/dist/ekyc.esm.js +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CPOeN76P.esm.js → emailManager-DSR9gQLX.esm.js} +1 -1
- package/dist/extensibility.esm.js +11 -11
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureSetup-Ca7SG6Xe.esm.js → faceCaptureSetup-Rr7LUbBm.esm.js} +4 -4
- package/dist/flow.esm.js +3 -3
- package/dist/{flowServices-C65cm0LX.esm.js → flowServices-Bt6lMLUI.esm.js} +1 -1
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/id.esm.js +6 -6
- package/dist/{idCaptureManager-CDEC7BSu.esm.js → idCaptureManager-QyM4nIKM.esm.js} +5 -5
- package/dist/index.d.ts +17 -5
- package/dist/index.esm.js +25 -17
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-B5sf9ARV.esm.js → phoneManager-D2nZtu-b.esm.js} +1 -1
- package/dist/{recordingsRepository-IvkvHqPF.esm.js → recordingsRepository-Djt_In2b.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-BIQkjPBF.esm.js → selfieManager-CvE35L72.esm.js} +2 -2
- package/dist/{session-CVMjvvmd.esm.js → session-CUy9-Yzi.esm.js} +1 -1
- package/dist/signature.esm.js +1 -1
- package/dist/{src-NguNDCeE.esm.js → src-8rn6DoH7.esm.js} +88 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as fromCallback } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
2
|
+
import "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
6
|
import "./api-G4JA8CXK.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import "./deepsightService-
|
|
8
|
+
import "./deepsightService-CLUMQ5ee.esm.js";
|
|
9
9
|
import "./stats-D0m3TvIg.esm.js";
|
|
10
|
-
import "./faceCaptureSetup-
|
|
11
|
-
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
10
|
+
import "./faceCaptureSetup-Rr7LUbBm.esm.js";
|
|
11
|
+
import { i as authenticationMachine, r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CBSPCdJc.esm.js";
|
|
12
12
|
|
|
13
13
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-DMbrmeCK.esm.js → authenticationManager-CBSPCdJc.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { u as getDeviceClass } from "./recordingsRepository-
|
|
2
|
+
import { s as WasmUtilProvider, y as BrowserStorageProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
|
+
import { u as getDeviceClass } from "./recordingsRepository-Djt_In2b.esm.js";
|
|
4
4
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, t as faceCaptureMachine } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as requestCameraAccess, B as isIOS, H as isIPhone14OrHigher, O as applyTrackConstraints, R as isAndroid, U as isSafari, j as stopCameraStream, k as enumerateVideoDevices } from "./src-8rn6DoH7.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/capabilities/ITimerCapability.ts
|
|
4
4
|
function sleep(ms) {
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as VisibilityProvider, m as MotionSensorProvider, s as WasmUtilProvider, x as BrowserEnvironmentProvider } from "./src-8rn6DoH7.esm.js";
|
|
2
2
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
3
3
|
import "./api-G4JA8CXK.esm.js";
|
|
4
|
-
import { t as createDeepsightService } from "./deepsightService-
|
|
4
|
+
import { t as createDeepsightService } from "./deepsightService-CLUMQ5ee.esm.js";
|
|
5
5
|
import "./stats-D0m3TvIg.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/deepsight/deepsightLoader.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as requestCameraAccess, D as IncodeCanvas, E as createHiddenVideoElement, F as getDeviceInfo, L as getUserAgent, j as stopCameraStream } from "./src-8rn6DoH7.esm.js";
|
|
2
2
|
import { t as isBrowserSimulation } from "./browserSimulation-C8gNnn5p.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as addDeviceStats } from "./stats-D0m3TvIg.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as CameraStream, f as Manager } from "./index-BTaLQSj9.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as xstate135 from "xstate";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/document-capture/types.d.ts
|
|
5
5
|
type DocumentType = 'addressStatement' | 'otherDocument1' | 'otherDocument2' | 'otherDocument3' | 'v5cMultiPageLogbook' | 'circulationCard' | 'financeSettlement' | 'carInvoice' | 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
@@ -71,7 +71,7 @@ type DocumentCaptureInput = {
|
|
|
71
71
|
};
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/modules/document-capture/documentCaptureStateMachine.d.ts
|
|
74
|
-
declare const documentCaptureMachine:
|
|
74
|
+
declare const documentCaptureMachine: xstate135.StateMachine<DocumentCaptureContext, {
|
|
75
75
|
type: "CAPTURE";
|
|
76
76
|
} | {
|
|
77
77
|
type: "FILE_SELECTED";
|
|
@@ -94,84 +94,84 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
94
94
|
} | {
|
|
95
95
|
type: "CLOSE";
|
|
96
96
|
}, {
|
|
97
|
-
[x: string]:
|
|
97
|
+
[x: string]: xstate135.ActorRefFromLogic<xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>> | xstate135.ActorRefFromLogic<xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
98
98
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
99
99
|
processingType: string;
|
|
100
100
|
onProgress: (progress: number) => void;
|
|
101
|
-
},
|
|
102
|
-
},
|
|
101
|
+
}, xstate135.EventObject>> | undefined;
|
|
102
|
+
}, xstate135.Values<{
|
|
103
103
|
initCamera: {
|
|
104
104
|
src: "initCamera";
|
|
105
|
-
logic:
|
|
105
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
106
106
|
id: string | undefined;
|
|
107
107
|
};
|
|
108
108
|
uploadDocument: {
|
|
109
109
|
src: "uploadDocument";
|
|
110
|
-
logic:
|
|
110
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
111
111
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
112
112
|
processingType: string;
|
|
113
113
|
onProgress: (progress: number) => void;
|
|
114
|
-
},
|
|
114
|
+
}, xstate135.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
};
|
|
117
|
-
}>,
|
|
117
|
+
}>, xstate135.Values<{
|
|
118
118
|
clearError: {
|
|
119
119
|
type: "clearError";
|
|
120
|
-
params:
|
|
120
|
+
params: xstate135.NonReducibleUnknown;
|
|
121
121
|
};
|
|
122
122
|
setStream: {
|
|
123
123
|
type: "setStream";
|
|
124
|
-
params:
|
|
125
|
-
};
|
|
126
|
-
setProgress: {
|
|
127
|
-
type: "setProgress";
|
|
128
|
-
params: xstate199.NonReducibleUnknown;
|
|
129
|
-
};
|
|
130
|
-
stopStream: {
|
|
131
|
-
type: "stopStream";
|
|
132
|
-
params: xstate199.NonReducibleUnknown;
|
|
124
|
+
params: xstate135.NonReducibleUnknown;
|
|
133
125
|
};
|
|
134
126
|
setCapturedDocument: {
|
|
135
127
|
type: "setCapturedDocument";
|
|
136
|
-
params:
|
|
128
|
+
params: xstate135.NonReducibleUnknown;
|
|
137
129
|
};
|
|
138
130
|
setFileTooLargeError: {
|
|
139
131
|
type: "setFileTooLargeError";
|
|
140
|
-
params:
|
|
132
|
+
params: xstate135.NonReducibleUnknown;
|
|
133
|
+
};
|
|
134
|
+
setProgress: {
|
|
135
|
+
type: "setProgress";
|
|
136
|
+
params: xstate135.NonReducibleUnknown;
|
|
141
137
|
};
|
|
142
138
|
setUploadError: {
|
|
143
139
|
type: "setUploadError";
|
|
144
|
-
params:
|
|
140
|
+
params: xstate135.NonReducibleUnknown;
|
|
145
141
|
};
|
|
146
142
|
decrementAttemptsRemaining: {
|
|
147
143
|
type: "decrementAttemptsRemaining";
|
|
148
|
-
params:
|
|
144
|
+
params: xstate135.NonReducibleUnknown;
|
|
149
145
|
};
|
|
150
146
|
setCaptureMethodFile: {
|
|
151
147
|
type: "setCaptureMethodFile";
|
|
152
|
-
params:
|
|
148
|
+
params: xstate135.NonReducibleUnknown;
|
|
153
149
|
};
|
|
154
150
|
setCaptureMethodCamera: {
|
|
155
151
|
type: "setCaptureMethodCamera";
|
|
156
|
-
params:
|
|
152
|
+
params: xstate135.NonReducibleUnknown;
|
|
157
153
|
};
|
|
158
154
|
clearCapturedDocument: {
|
|
159
155
|
type: "clearCapturedDocument";
|
|
160
|
-
params:
|
|
156
|
+
params: xstate135.NonReducibleUnknown;
|
|
161
157
|
};
|
|
162
158
|
setPendingNextPage: {
|
|
163
159
|
type: "setPendingNextPage";
|
|
164
|
-
params:
|
|
160
|
+
params: xstate135.NonReducibleUnknown;
|
|
165
161
|
};
|
|
166
162
|
clearForNextPage: {
|
|
167
163
|
type: "clearForNextPage";
|
|
168
|
-
params:
|
|
164
|
+
params: xstate135.NonReducibleUnknown;
|
|
169
165
|
};
|
|
170
166
|
resetProgress: {
|
|
171
167
|
type: "resetProgress";
|
|
172
|
-
params:
|
|
168
|
+
params: xstate135.NonReducibleUnknown;
|
|
169
|
+
};
|
|
170
|
+
stopStream: {
|
|
171
|
+
type: "stopStream";
|
|
172
|
+
params: xstate135.NonReducibleUnknown;
|
|
173
173
|
};
|
|
174
|
-
}>,
|
|
174
|
+
}>, xstate135.Values<{
|
|
175
175
|
allowSkip: {
|
|
176
176
|
type: "allowSkip";
|
|
177
177
|
params: unknown;
|
|
@@ -208,7 +208,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
208
208
|
type: "isPendingNextPage";
|
|
209
209
|
params: unknown;
|
|
210
210
|
};
|
|
211
|
-
}>, never, "finished" | "closed" | "initCamera" | "
|
|
211
|
+
}>, never, "finished" | "closed" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "uploading" | "success", string, DocumentCaptureInput, xstate135.NonReducibleUnknown, xstate135.EventObject, xstate135.MetaObject, {
|
|
212
212
|
readonly id: "documentCapture";
|
|
213
213
|
readonly initial: "tutorial";
|
|
214
214
|
readonly context: ({
|
|
@@ -217,67 +217,67 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
217
217
|
spawn: {
|
|
218
218
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
219
219
|
src: "initCamera";
|
|
220
|
-
logic:
|
|
220
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
221
221
|
id: string | undefined;
|
|
222
222
|
} extends infer T ? T extends {
|
|
223
223
|
src: "initCamera";
|
|
224
|
-
logic:
|
|
224
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
225
225
|
id: string | undefined;
|
|
226
226
|
} ? T extends {
|
|
227
227
|
src: TSrc;
|
|
228
|
-
} ?
|
|
228
|
+
} ? xstate135.ConditionalRequired<[options?: ({
|
|
229
229
|
id?: T["id"] | undefined;
|
|
230
230
|
systemId?: string;
|
|
231
|
-
input?:
|
|
231
|
+
input?: xstate135.InputFrom<T["logic"]> | undefined;
|
|
232
232
|
syncSnapshot?: boolean;
|
|
233
|
-
} & { [K in
|
|
233
|
+
} & { [K in xstate135.RequiredActorOptions<T>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
234
234
|
src: "uploadDocument";
|
|
235
|
-
logic:
|
|
235
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
236
236
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
237
237
|
processingType: string;
|
|
238
238
|
onProgress: (progress: number) => void;
|
|
239
|
-
},
|
|
239
|
+
}, xstate135.EventObject>;
|
|
240
240
|
id: string | undefined;
|
|
241
241
|
} extends infer T_1 ? T_1 extends {
|
|
242
242
|
src: "uploadDocument";
|
|
243
|
-
logic:
|
|
243
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
244
244
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
245
245
|
processingType: string;
|
|
246
246
|
onProgress: (progress: number) => void;
|
|
247
|
-
},
|
|
247
|
+
}, xstate135.EventObject>;
|
|
248
248
|
id: string | undefined;
|
|
249
249
|
} ? T_1 extends {
|
|
250
250
|
src: TSrc;
|
|
251
|
-
} ?
|
|
251
|
+
} ? xstate135.ConditionalRequired<[options?: ({
|
|
252
252
|
id?: T_1["id"] | undefined;
|
|
253
253
|
systemId?: string;
|
|
254
|
-
input?:
|
|
254
|
+
input?: xstate135.InputFrom<T_1["logic"]> | undefined;
|
|
255
255
|
syncSnapshot?: boolean;
|
|
256
|
-
} & { [K_1 in
|
|
256
|
+
} & { [K_1 in xstate135.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredActorOptions<T_1>>> : never : never : never)): xstate135.ActorRefFromLogic<xstate135.GetConcreteByKey<xstate135.Values<{
|
|
257
257
|
initCamera: {
|
|
258
258
|
src: "initCamera";
|
|
259
|
-
logic:
|
|
259
|
+
logic: xstate135.PromiseActorLogic<MediaStream, void, xstate135.EventObject>;
|
|
260
260
|
id: string | undefined;
|
|
261
261
|
};
|
|
262
262
|
uploadDocument: {
|
|
263
263
|
src: "uploadDocument";
|
|
264
|
-
logic:
|
|
264
|
+
logic: xstate135.PromiseActorLogic<DocumentUploadResponse, {
|
|
265
265
|
capturedDocument: NonNullable<DocumentCaptureContext["capturedDocument"]>;
|
|
266
266
|
processingType: string;
|
|
267
267
|
onProgress: (progress: number) => void;
|
|
268
|
-
},
|
|
268
|
+
}, xstate135.EventObject>;
|
|
269
269
|
id: string | undefined;
|
|
270
270
|
};
|
|
271
271
|
}>, "src", TSrc>["logic"]>;
|
|
272
|
-
<TLogic extends
|
|
272
|
+
<TLogic extends xstate135.AnyActorLogic>(src: TLogic, ...[options]: xstate135.ConditionalRequired<[options?: ({
|
|
273
273
|
id?: never;
|
|
274
274
|
systemId?: string;
|
|
275
|
-
input?:
|
|
275
|
+
input?: xstate135.InputFrom<TLogic> | undefined;
|
|
276
276
|
syncSnapshot?: boolean;
|
|
277
|
-
} & { [K in
|
|
277
|
+
} & { [K in xstate135.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate135.IsNotNever<xstate135.RequiredLogicInput<TLogic>>>): xstate135.ActorRefFromLogic<TLogic>;
|
|
278
278
|
};
|
|
279
279
|
input: DocumentCaptureInput;
|
|
280
|
-
self:
|
|
280
|
+
self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
|
|
281
281
|
type: "CAPTURE";
|
|
282
282
|
} | {
|
|
283
283
|
type: "FILE_SELECTED";
|
|
@@ -299,7 +299,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
299
299
|
type: "SKIP";
|
|
300
300
|
} | {
|
|
301
301
|
type: "CLOSE";
|
|
302
|
-
}, Record<string,
|
|
302
|
+
}, Record<string, xstate135.AnyActorRef | undefined>, xstate135.StateValue, string, unknown, any, any>, {
|
|
303
303
|
type: "CAPTURE";
|
|
304
304
|
} | {
|
|
305
305
|
type: "FILE_SELECTED";
|
|
@@ -321,7 +321,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
321
321
|
type: "SKIP";
|
|
322
322
|
} | {
|
|
323
323
|
type: "CLOSE";
|
|
324
|
-
},
|
|
324
|
+
}, xstate135.AnyEventObject>;
|
|
325
325
|
}) => {
|
|
326
326
|
config: {
|
|
327
327
|
processingType: DocumentType;
|
|
@@ -458,7 +458,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
458
458
|
} | {
|
|
459
459
|
type: "CLOSE";
|
|
460
460
|
};
|
|
461
|
-
self:
|
|
461
|
+
self: xstate135.ActorRef<xstate135.MachineSnapshot<DocumentCaptureContext, {
|
|
462
462
|
type: "CAPTURE";
|
|
463
463
|
} | {
|
|
464
464
|
type: "FILE_SELECTED";
|
|
@@ -480,7 +480,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
480
480
|
type: "SKIP";
|
|
481
481
|
} | {
|
|
482
482
|
type: "CLOSE";
|
|
483
|
-
}, Record<string,
|
|
483
|
+
}, Record<string, xstate135.AnyActorRef>, xstate135.StateValue, string, unknown, any, any>, {
|
|
484
484
|
type: "CAPTURE";
|
|
485
485
|
} | {
|
|
486
486
|
type: "FILE_SELECTED";
|
|
@@ -502,7 +502,7 @@ declare const documentCaptureMachine: xstate199.StateMachine<DocumentCaptureCont
|
|
|
502
502
|
type: "SKIP";
|
|
503
503
|
} | {
|
|
504
504
|
type: "CLOSE";
|
|
505
|
-
},
|
|
505
|
+
}, xstate135.AnyEventObject>;
|
|
506
506
|
}) => {
|
|
507
507
|
capturedDocument: CapturedDocument;
|
|
508
508
|
processingType: DocumentType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import { M as createManager, j as stopCameraStream } from "./src-8rn6DoH7.esm.js";
|
|
4
4
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { f as Manager } from "./index-BTaLQSj9.js";
|
|
2
2
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-oveF7RrS.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate208 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
6
|
-
declare const documentUploadMachine:
|
|
6
|
+
declare const documentUploadMachine: xstate208.StateMachine<DocumentUploadContext, {
|
|
7
7
|
type: "START";
|
|
8
8
|
} | {
|
|
9
9
|
type: "CAPTURE";
|
|
@@ -16,52 +16,52 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
16
16
|
} | {
|
|
17
17
|
type: "CLOSE";
|
|
18
18
|
}, {
|
|
19
|
-
[x: string]:
|
|
19
|
+
[x: string]: xstate208.ActorRefFromLogic<xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>> | xstate208.ActorRefFromLogic<xstate208.PromiseActorLogic<void, {
|
|
20
20
|
imageBase64: string;
|
|
21
21
|
documentType: string;
|
|
22
22
|
onProgress: (progress: number) => void;
|
|
23
|
-
},
|
|
24
|
-
},
|
|
23
|
+
}, xstate208.EventObject>> | undefined;
|
|
24
|
+
}, xstate208.Values<{
|
|
25
25
|
initCamera: {
|
|
26
26
|
src: "initCamera";
|
|
27
|
-
logic:
|
|
27
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
28
28
|
id: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
uploadDocument: {
|
|
31
31
|
src: "uploadDocument";
|
|
32
|
-
logic:
|
|
32
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
33
33
|
imageBase64: string;
|
|
34
34
|
documentType: string;
|
|
35
35
|
onProgress: (progress: number) => void;
|
|
36
|
-
},
|
|
36
|
+
}, xstate208.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
|
-
}>,
|
|
39
|
+
}>, xstate208.Values<{
|
|
40
40
|
setError: {
|
|
41
41
|
type: "setError";
|
|
42
|
-
params:
|
|
42
|
+
params: xstate208.NonReducibleUnknown;
|
|
43
43
|
};
|
|
44
44
|
clearError: {
|
|
45
45
|
type: "clearError";
|
|
46
|
-
params:
|
|
46
|
+
params: xstate208.NonReducibleUnknown;
|
|
47
47
|
};
|
|
48
48
|
setStream: {
|
|
49
49
|
type: "setStream";
|
|
50
|
-
params:
|
|
51
|
-
};
|
|
52
|
-
setImageAndClearError: {
|
|
53
|
-
type: "setImageAndClearError";
|
|
54
|
-
params: xstate135.NonReducibleUnknown;
|
|
50
|
+
params: xstate208.NonReducibleUnknown;
|
|
55
51
|
};
|
|
56
52
|
setProgress: {
|
|
57
53
|
type: "setProgress";
|
|
58
|
-
params:
|
|
54
|
+
params: xstate208.NonReducibleUnknown;
|
|
59
55
|
};
|
|
60
56
|
stopStream: {
|
|
61
57
|
type: "stopStream";
|
|
62
|
-
params:
|
|
58
|
+
params: xstate208.NonReducibleUnknown;
|
|
59
|
+
};
|
|
60
|
+
setImageAndClearError: {
|
|
61
|
+
type: "setImageAndClearError";
|
|
62
|
+
params: xstate208.NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
}>, never, never, "error" | "idle" | "finished" | "closed" | "initCamera" | "capturing" | "uploading", string, DocumentUploadInput,
|
|
64
|
+
}>, never, never, "error" | "idle" | "finished" | "closed" | "initCamera" | "capturing" | "uploading", string, DocumentUploadInput, xstate208.NonReducibleUnknown, xstate208.EventObject, xstate208.MetaObject, {
|
|
65
65
|
readonly id: "documentUpload";
|
|
66
66
|
readonly initial: "idle";
|
|
67
67
|
readonly context: ({
|
|
@@ -70,67 +70,67 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
70
70
|
spawn: {
|
|
71
71
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
72
72
|
src: "initCamera";
|
|
73
|
-
logic:
|
|
73
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} extends infer T ? T extends {
|
|
76
76
|
src: "initCamera";
|
|
77
|
-
logic:
|
|
77
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
78
78
|
id: string | undefined;
|
|
79
79
|
} ? T extends {
|
|
80
80
|
src: TSrc;
|
|
81
|
-
} ?
|
|
81
|
+
} ? xstate208.ConditionalRequired<[options?: ({
|
|
82
82
|
id?: T["id"] | undefined;
|
|
83
83
|
systemId?: string;
|
|
84
|
-
input?:
|
|
84
|
+
input?: xstate208.InputFrom<T["logic"]> | undefined;
|
|
85
85
|
syncSnapshot?: boolean;
|
|
86
|
-
} & { [K in
|
|
86
|
+
} & { [K in xstate208.RequiredActorOptions<T>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
87
87
|
src: "uploadDocument";
|
|
88
|
-
logic:
|
|
88
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
89
89
|
imageBase64: string;
|
|
90
90
|
documentType: string;
|
|
91
91
|
onProgress: (progress: number) => void;
|
|
92
|
-
},
|
|
92
|
+
}, xstate208.EventObject>;
|
|
93
93
|
id: string | undefined;
|
|
94
94
|
} extends infer T_1 ? T_1 extends {
|
|
95
95
|
src: "uploadDocument";
|
|
96
|
-
logic:
|
|
96
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
97
97
|
imageBase64: string;
|
|
98
98
|
documentType: string;
|
|
99
99
|
onProgress: (progress: number) => void;
|
|
100
|
-
},
|
|
100
|
+
}, xstate208.EventObject>;
|
|
101
101
|
id: string | undefined;
|
|
102
102
|
} ? T_1 extends {
|
|
103
103
|
src: TSrc;
|
|
104
|
-
} ?
|
|
104
|
+
} ? xstate208.ConditionalRequired<[options?: ({
|
|
105
105
|
id?: T_1["id"] | undefined;
|
|
106
106
|
systemId?: string;
|
|
107
|
-
input?:
|
|
107
|
+
input?: xstate208.InputFrom<T_1["logic"]> | undefined;
|
|
108
108
|
syncSnapshot?: boolean;
|
|
109
|
-
} & { [K_1 in
|
|
109
|
+
} & { [K_1 in xstate208.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredActorOptions<T_1>>> : never : never : never)): xstate208.ActorRefFromLogic<xstate208.GetConcreteByKey<xstate208.Values<{
|
|
110
110
|
initCamera: {
|
|
111
111
|
src: "initCamera";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate208.PromiseActorLogic<MediaStream, void, xstate208.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
};
|
|
115
115
|
uploadDocument: {
|
|
116
116
|
src: "uploadDocument";
|
|
117
|
-
logic:
|
|
117
|
+
logic: xstate208.PromiseActorLogic<void, {
|
|
118
118
|
imageBase64: string;
|
|
119
119
|
documentType: string;
|
|
120
120
|
onProgress: (progress: number) => void;
|
|
121
|
-
},
|
|
121
|
+
}, xstate208.EventObject>;
|
|
122
122
|
id: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
}>, "src", TSrc>["logic"]>;
|
|
125
|
-
<TLogic extends
|
|
125
|
+
<TLogic extends xstate208.AnyActorLogic>(src: TLogic, ...[options]: xstate208.ConditionalRequired<[options?: ({
|
|
126
126
|
id?: never;
|
|
127
127
|
systemId?: string;
|
|
128
|
-
input?:
|
|
128
|
+
input?: xstate208.InputFrom<TLogic> | undefined;
|
|
129
129
|
syncSnapshot?: boolean;
|
|
130
|
-
} & { [K in
|
|
130
|
+
} & { [K in xstate208.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate208.IsNotNever<xstate208.RequiredLogicInput<TLogic>>>): xstate208.ActorRefFromLogic<TLogic>;
|
|
131
131
|
};
|
|
132
132
|
input: DocumentUploadInput;
|
|
133
|
-
self:
|
|
133
|
+
self: xstate208.ActorRef<xstate208.MachineSnapshot<DocumentUploadContext, {
|
|
134
134
|
type: "START";
|
|
135
135
|
} | {
|
|
136
136
|
type: "CAPTURE";
|
|
@@ -142,7 +142,7 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
142
142
|
type: "RETRY";
|
|
143
143
|
} | {
|
|
144
144
|
type: "CLOSE";
|
|
145
|
-
}, Record<string,
|
|
145
|
+
}, Record<string, xstate208.AnyActorRef | undefined>, xstate208.StateValue, string, unknown, any, any>, {
|
|
146
146
|
type: "START";
|
|
147
147
|
} | {
|
|
148
148
|
type: "CAPTURE";
|
|
@@ -154,7 +154,7 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
154
154
|
type: "RETRY";
|
|
155
155
|
} | {
|
|
156
156
|
type: "CLOSE";
|
|
157
|
-
},
|
|
157
|
+
}, xstate208.AnyEventObject>;
|
|
158
158
|
}) => {
|
|
159
159
|
config: DocumentUploadConfig;
|
|
160
160
|
stream: undefined;
|
|
@@ -224,7 +224,7 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "CLOSE";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate208.ActorRef<xstate208.MachineSnapshot<DocumentUploadContext, {
|
|
228
228
|
type: "START";
|
|
229
229
|
} | {
|
|
230
230
|
type: "CAPTURE";
|
|
@@ -236,7 +236,7 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "CLOSE";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate208.AnyActorRef>, xstate208.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "START";
|
|
241
241
|
} | {
|
|
242
242
|
type: "CAPTURE";
|
|
@@ -248,7 +248,7 @@ declare const documentUploadMachine: xstate135.StateMachine<DocumentUploadContex
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "CLOSE";
|
|
251
|
-
},
|
|
251
|
+
}, xstate208.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
imageBase64: string;
|
|
254
254
|
documentType: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import { M as createManager, j as stopCameraStream } from "./src-8rn6DoH7.esm.js";
|
|
4
4
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
6
|
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
4
4
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
6
|
-
import "./session-
|
|
7
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
8
|
-
import { t as getFlow } from "./flowServices-
|
|
6
|
+
import "./session-CUy9-Yzi.esm.js";
|
|
7
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DzOdaNEA.esm.js";
|
|
8
|
+
import { t as getFlow } from "./flowServices-Bt6lMLUI.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
11
11
|
const UBO_INPUT_LIMIT = 8;
|
|
@@ -240,7 +240,7 @@ function validateEkybField(name, value, required, country) {
|
|
|
240
240
|
if (required && !val) return "ekyb.error.requiredField";
|
|
241
241
|
if (name === "taxId") {
|
|
242
242
|
if (COUNTRIES_WITH_CNPJ_VALIDATION.includes(country)) {
|
|
243
|
-
if (val && !validateCNPJ(val)) return "ekyb.error.
|
|
243
|
+
if (val && !validateCNPJ(val)) return "ekyb.error.invalidTaxId";
|
|
244
244
|
}
|
|
245
245
|
if (COUNTRIES_WITH_SPECIAL_TAX_ID_RULES.includes(country) && !val) return;
|
|
246
246
|
}
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
|
-
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-
|
|
5
|
+
import { a as POSTAL_CODE_FORMAT_ERROR_KEYS, c as getPostalCodeMaxLength, i as FIXED_DIGIT_POSTAL_CODE_LENGTH, l as validatePostalCode, n as fillFromSuggestion, o as formatPostalCode, r as DYNAMIC_REQUIRED_KEY, s as getPostalCodeErrorKey, t as debounceSearchActor, u as usStateOptions } from "./addressSearch-DzOdaNEA.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
8
8
|
var metadata_min_json_default = {
|
|
@@ -10070,7 +10070,7 @@ function validateField(name, value, required, country, configSource) {
|
|
|
10070
10070
|
if (required && !val) return "verification.errors.required";
|
|
10071
10071
|
if (!val) return void 0;
|
|
10072
10072
|
if (name === "taxId" && country === "BR") return validateCPF(val) ? void 0 : "verification.errors.invalidTaxId";
|
|
10073
|
-
if (name === "ssn" && (country === "US" || country === "CA")) return /^\d{3}-\d{2}-\d{4}$/.test(val) ? void 0 : "verification.errors.
|
|
10073
|
+
if (name === "ssn" && (country === "US" || country === "CA")) return /^\d{3}-\d{2}-\d{4}$/.test(val) ? void 0 : "verification.errors.ssnFormat";
|
|
10074
10074
|
if (name === "street" && isPoBox(val)) return "verification.errors.poBox";
|
|
10075
10075
|
if (name === "postalCode") return validatePostalCode(val, country) ? void 0 : getPostalCodeErrorKey(country);
|
|
10076
10076
|
if (name === "phone") {
|
package/dist/email.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./src-
|
|
2
|
+
import "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
5
|
-
import { r as emailMachine, t as createEmailManager } from "./emailManager-
|
|
5
|
+
import { r as emailMachine, t as createEmailManager } from "./emailManager-DSR9gQLX.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createEmailManager, emailMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { S as createActor, x as fromPromise } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
4
|
-
import "./recordingsRepository-
|
|
2
|
+
import "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import { P as getDeviceFingerprintInfo, s as WasmUtilProvider, y as BrowserStorageProvider } from "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
6
|
import "./api-G4JA8CXK.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import { s as getFingerprint } from "./session-
|
|
9
|
-
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
10
|
-
import "./deepsightService-
|
|
8
|
+
import { s as getFingerprint } from "./session-CUy9-Yzi.esm.js";
|
|
9
|
+
import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-QyM4nIKM.esm.js";
|
|
10
|
+
import "./deepsightService-CLUMQ5ee.esm.js";
|
|
11
11
|
import "./stats-D0m3TvIg.esm.js";
|
|
12
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
13
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
14
|
-
import { n as createEmailManagerFromActor } from "./emailManager-
|
|
15
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
16
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
12
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
|
|
13
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CBSPCdJc.esm.js";
|
|
14
|
+
import { n as createEmailManagerFromActor } from "./emailManager-DSR9gQLX.esm.js";
|
|
15
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-CvE35L72.esm.js";
|
|
16
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-D2nZtu-b.esm.js";
|
|
17
17
|
|
|
18
18
|
export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise, getDeviceFingerprintInfo, getFingerprint };
|
package/dist/face-match.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { A as
|
|
4
|
-
import { a as checkPermission, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, s as flagFaceManualReview, t as createRecordingSession, u as getDeviceClass } from "./recordingsRepository-
|
|
2
|
+
import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import { A as requestCameraAccess, C as StreamCanvasProcessingSession, H as isIPhone14OrHigher, M as createManager, h as LocalRecordingProvider, j as stopCameraStream, l as FaceDetectionProvider, p as OpenViduRecordingProvider, w as StreamCanvasCapture, z as isDesktop } from "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import { a as checkPermission, i as uploadDeepsightVideo, n as startRecording, o as requestPermission, r as stopRecording$1, s as flagFaceManualReview, t as createRecordingSession, u as getDeviceClass } from "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import { r as getToken, t as api } from "./api-G4JA8CXK.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-D0m3TvIg.esm.js";
|
|
@@ -383,7 +383,7 @@ async function stopRecording(session) {
|
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
async function initializeDeepsightSession(options) {
|
|
386
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
386
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-B93Oa9pS.esm.js");
|
|
387
387
|
return loadDeepsightSession({
|
|
388
388
|
ds: options.ds,
|
|
389
389
|
storage: options.storage
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
4
4
|
import "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
6
|
-
import "./session-
|
|
7
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
6
|
+
import "./session-CUy9-Yzi.esm.js";
|
|
7
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Bt6lMLUI.esm.js";
|
|
8
8
|
import { t as getFinishStatus } from "./flowCompletionService-Bkaerugt.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/flow/flowStateMachine.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
3
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-
|
|
3
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./session-CUy9-Yzi.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/flow/flowUtils.ts
|
|
6
6
|
const WASM_MODULE_PIPELINES = {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as isIOS, M as createManager, R as isAndroid, S as BrowserGeolocationProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, b as fromCallback, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
package/dist/id.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
2
|
+
import "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
6
|
import "./api-G4JA8CXK.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import "./session-
|
|
9
|
-
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-
|
|
10
|
-
import "./deepsightService-
|
|
8
|
+
import "./session-CUy9-Yzi.esm.js";
|
|
9
|
+
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-QyM4nIKM.esm.js";
|
|
10
|
+
import "./deepsightService-CLUMQ5ee.esm.js";
|
|
11
11
|
import "./stats-D0m3TvIg.esm.js";
|
|
12
12
|
import "./id-B30uqGbp.esm.js";
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as revokeObjectURL, S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, s as getDefaultManagerScreenName, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import { t as getBackCameraStream } from "./backCameraStream-
|
|
3
|
-
import { C as
|
|
4
|
-
import { a as checkPermission, c as flagIdManualReview, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession, u as getDeviceClass } from "./recordingsRepository-
|
|
2
|
+
import { t as getBackCameraStream } from "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import { C as StreamCanvasProcessingSession, D as IncodeCanvas, I as getWindowDimensions, M as createManager, a as DEFAULT_ID_CAPTURE_MODEL_VERSION, c as IdCaptureProvider, o as DEFAULT_ID_CAPTURE_THRESHOLDS, p as OpenViduRecordingProvider, v as BrowserTimerProvider, w as StreamCanvasCapture, y as BrowserStorageProvider, z as isDesktop } from "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import { a as checkPermission, c as flagIdManualReview, n as startRecording, o as requestPermission, r as stopRecording$1, t as createRecordingSession, u as getDeviceClass } from "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import { r as getToken, t as api } from "./api-G4JA8CXK.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./session-
|
|
7
|
+
import { t as getDisableIpify } from "./session-CUy9-Yzi.esm.js";
|
|
8
8
|
import { t as addDeviceStats } from "./stats-D0m3TvIg.esm.js";
|
|
9
9
|
|
|
10
10
|
//#region src/modules/id/idCaptureHelpers.ts
|
|
@@ -608,7 +608,7 @@ const checkMotionSensorActor = fromCallback(({ input, sendBack }) => {
|
|
|
608
608
|
});
|
|
609
609
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
610
610
|
if (!input.dependencies) return;
|
|
611
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
611
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-B93Oa9pS.esm.js");
|
|
612
612
|
return loadDeepsightSession({
|
|
613
613
|
ds: input.ds,
|
|
614
614
|
storage: input.dependencies.storage,
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ declare class ScreenOrientationProvider implements IScreenOrientationCapability
|
|
|
39
39
|
declare const DEFAULT_WASM_VERSION = "v2.12.84";
|
|
40
40
|
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
41
41
|
declare function buildDefaultWasmConfig(): WarmupConfig;
|
|
42
|
+
/**
|
|
43
|
+
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
44
|
+
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
45
|
+
*/
|
|
46
|
+
declare function resolveWasmConfig(overrides?: Partial<WarmupConfig>): WarmupConfig;
|
|
42
47
|
//#endregion
|
|
43
48
|
//#region src/internal/device/getBrowser.d.ts
|
|
44
49
|
type Browser = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'other' | 'samsung_browser';
|
|
@@ -211,15 +216,15 @@ declare function resetSessionInit(): void;
|
|
|
211
216
|
//#endregion
|
|
212
217
|
//#region src/setup.d.ts
|
|
213
218
|
/**
|
|
214
|
-
* WASM warmup configuration.
|
|
219
|
+
* WASM warmup configuration. Path fields are optional; omitted values resolve to the Incode CDN defaults.
|
|
215
220
|
*/
|
|
216
221
|
type WasmConfig = {
|
|
217
222
|
/** Path to the WASM binary */
|
|
218
|
-
wasmPath
|
|
223
|
+
wasmPath?: string;
|
|
219
224
|
/** Path to the SIMD-optimized WASM binary (optional) */
|
|
220
225
|
wasmSimdPath?: string;
|
|
221
226
|
/** Path to the WASM glue code */
|
|
222
|
-
glueCodePath
|
|
227
|
+
glueCodePath?: string;
|
|
223
228
|
/** Whether to use SIMD optimizations (default: true) */
|
|
224
229
|
useSimd?: boolean;
|
|
225
230
|
/** Which pipelines to preload models for */
|
|
@@ -270,7 +275,7 @@ type SetupOptions = {
|
|
|
270
275
|
* // Opt out of WASM
|
|
271
276
|
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
272
277
|
*
|
|
273
|
-
* // Self-hosted / custom version
|
|
278
|
+
* // Self-hosted / custom version (full or partial path overrides)
|
|
274
279
|
* await setup({
|
|
275
280
|
* apiURL: 'https://api.incode.com',
|
|
276
281
|
* token: 'session-token',
|
|
@@ -280,6 +285,13 @@ type SetupOptions = {
|
|
|
280
285
|
* },
|
|
281
286
|
* });
|
|
282
287
|
*
|
|
288
|
+
* // Partial override: only models path, rest from CDN
|
|
289
|
+
* await setup({
|
|
290
|
+
* apiURL: 'https://api.incode.com',
|
|
291
|
+
* token: 'session-token',
|
|
292
|
+
* wasm: { modelsBasePath: 'https://my-cdn/models' },
|
|
293
|
+
* });
|
|
294
|
+
*
|
|
283
295
|
* // Sessionless setup (all API actors overridden via .provide())
|
|
284
296
|
* await setup({
|
|
285
297
|
* wasm: {
|
|
@@ -548,4 +560,4 @@ declare function screenClosed(module: EventModule | string, screen: EventScreen
|
|
|
548
560
|
declare function elementClicked(module: EventModule | string, screen: EventScreen | string | undefined, payload: ElementClickedPayload): void;
|
|
549
561
|
declare function captureAttemptFinished(module: EventModule | string, screen: EventScreen | string | undefined, payload: CaptureAttemptFinishedPayload): void;
|
|
550
562
|
//#endregion
|
|
551
|
-
export { type Browser, CameraStream, type CaptureAttemptFinishedPayload, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DEFAULT_WASM_VERSION, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type ElementClickedPayload, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, captureAttemptFinished, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
563
|
+
export { type Browser, CameraStream, type CaptureAttemptFinishedPayload, CaptureIdResponse, CapturedImage, CreateIdCaptureActorOptions, type CreateSessionOptions, DEFAULT_WASM_VERSION, DetectionArea, DetectionOrientation, DetectionStatus, type DeviceClass, type ElementClickedPayload, type Event, type EventModule, type EventScreen, type HttpClient, ID_ERROR_CODES, IdCaptureActor, IdCaptureConfig, IdCaptureContext, IdCaptureDependencies, IdCaptureEvent, IdCaptureGeometry, IdCaptureInitResult, IdCaptureInput, IdCaptureMachine, IdCaptureManager, IdCaptureMode, IdCaptureSettings, IdCaptureState, IdCaptureThresholds, IdDocumentType, IdError, IdErrorCode, IdFlowStep, InitializeIdCaptureParams, type PermissionResult, type PermissionStatus, RecordingSession, type ScreenOrientationObserver, ScreenOrientationProvider, type Session, type SessionInitOptions, type SessionInitResult, type SetupOptions, StartRecordingParams, UploadIdImageParams, UploadIdResponse, ValidationError, type WasmConfig, type WasmPipeline, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, captureAttemptFinished, checkPermission as checkCameraPermission, createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, resolveWasmConfig, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as subscribeEvent, a as videoSelfieEvents, c as captureAttemptFinished, d as moduleOpened, f as screenClosed, g as flushEventQueue, h as addEvent, i as tutorialScreenNamesMapper, l as elementClicked, m as screenOpened, n as eventModuleNames, p as screenEvent, r as eventScreenNames, t as cameraScreenNamesMapper, u as moduleClosed } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import {
|
|
4
|
-
import { a as checkPermission, d as getBrowser, l as createScreenOrientationObserver, o as requestPermission, u as getDeviceClass } from "./recordingsRepository-
|
|
2
|
+
import "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import { N as createApi_default, V as isIPad, f as ScreenOrientationProvider, i as resolveWasmConfig, n as DEFAULT_WASM_VERSION, r as buildDefaultWasmConfig, s as WasmUtilProvider, u as warmupWasm } from "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import { a as checkPermission, d as getBrowser, l as createScreenOrientationObserver, o as requestPermission, u as getDeviceClass } from "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
6
|
import { a as resetApi, n as getApi, o as setClient, s as setToken, t as api } from "./api-G4JA8CXK.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import { a as isSessionInitialized, c as createSession, i as initializeSession, n as getSessionFeatures, o as resetSessionInit, t as getDisableIpify } from "./session-
|
|
9
|
-
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-
|
|
10
|
-
import "./deepsightService-
|
|
8
|
+
import { a as isSessionInitialized, c as createSession, i as initializeSession, n as getSessionFeatures, o as resetSessionInit, t as getDisableIpify } from "./session-CUy9-Yzi.esm.js";
|
|
9
|
+
import { a as initializeIdCapture, c as stopRecording, d as validateUploadResponse, f as ID_ERROR_CODES, i as idCaptureMachine, l as stopStream, o as processId, r as createIdCaptureActor, s as startRecordingSession, t as createIdCaptureManager, u as uploadIdImage } from "./idCaptureManager-QyM4nIKM.esm.js";
|
|
10
|
+
import "./deepsightService-CLUMQ5ee.esm.js";
|
|
11
11
|
import "./stats-D0m3TvIg.esm.js";
|
|
12
12
|
import "./id-B30uqGbp.esm.js";
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ let configured = false;
|
|
|
32
32
|
* // Opt out of WASM
|
|
33
33
|
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
34
34
|
*
|
|
35
|
-
* // Self-hosted / custom version
|
|
35
|
+
* // Self-hosted / custom version (full or partial path overrides)
|
|
36
36
|
* await setup({
|
|
37
37
|
* apiURL: 'https://api.incode.com',
|
|
38
38
|
* token: 'session-token',
|
|
@@ -42,6 +42,13 @@ let configured = false;
|
|
|
42
42
|
* },
|
|
43
43
|
* });
|
|
44
44
|
*
|
|
45
|
+
* // Partial override: only models path, rest from CDN
|
|
46
|
+
* await setup({
|
|
47
|
+
* apiURL: 'https://api.incode.com',
|
|
48
|
+
* token: 'session-token',
|
|
49
|
+
* wasm: { modelsBasePath: 'https://my-cdn/models' },
|
|
50
|
+
* });
|
|
51
|
+
*
|
|
45
52
|
* // Sessionless setup (all API actors overridden via .provide())
|
|
46
53
|
* await setup({
|
|
47
54
|
* wasm: {
|
|
@@ -68,10 +75,13 @@ async function setup(options) {
|
|
|
68
75
|
}
|
|
69
76
|
}
|
|
70
77
|
configured = true;
|
|
71
|
-
const effectiveWasm = options.wasm === false ? void 0 : options.wasm
|
|
78
|
+
const effectiveWasm = options.wasm === false ? void 0 : resolveWasmConfig(options.wasm);
|
|
72
79
|
if (effectiveWasm) {
|
|
73
|
-
await warmupWasm(
|
|
74
|
-
await (await WasmUtilProvider.getInstance()).initialize({
|
|
80
|
+
await warmupWasm(effectiveWasm);
|
|
81
|
+
await (await WasmUtilProvider.getInstance()).initialize({
|
|
82
|
+
...effectiveWasm,
|
|
83
|
+
pipelines: effectiveWasm.pipelines ? [...effectiveWasm.pipelines] : void 0
|
|
84
|
+
});
|
|
75
85
|
}
|
|
76
86
|
}
|
|
77
87
|
/**
|
|
@@ -94,13 +104,10 @@ function setWasmConfig(config) {
|
|
|
94
104
|
async function initializeWasmUtil(config) {
|
|
95
105
|
const wasmConfigToUse = config ?? wasmConfig;
|
|
96
106
|
if (!wasmConfigToUse) throw new Error("WASM config is required. Provide config parameter or call setWasmConfig() first.");
|
|
107
|
+
const resolved = resolveWasmConfig(wasmConfigToUse);
|
|
97
108
|
await (await WasmUtilProvider.getInstance()).initialize({
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
glueCodePath: wasmConfigToUse.glueCodePath,
|
|
101
|
-
useSimd: wasmConfigToUse.useSimd,
|
|
102
|
-
pipelines: wasmConfigToUse.pipelines,
|
|
103
|
-
modelsBasePath: wasmConfigToUse.modelsBasePath
|
|
109
|
+
...resolved,
|
|
110
|
+
pipelines: resolved.pipelines ? [...resolved.pipelines] : void 0
|
|
104
111
|
});
|
|
105
112
|
}
|
|
106
113
|
/**
|
|
@@ -118,8 +125,9 @@ function reset() {
|
|
|
118
125
|
resetApi();
|
|
119
126
|
resetSessionInit();
|
|
120
127
|
configured = false;
|
|
128
|
+
wasmConfig = void 0;
|
|
121
129
|
WasmUtilProvider.resetInstance();
|
|
122
130
|
}
|
|
123
131
|
|
|
124
132
|
//#endregion
|
|
125
|
-
export { DEFAULT_WASM_VERSION, ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, captureAttemptFinished, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
133
|
+
export { DEFAULT_WASM_VERSION, ID_ERROR_CODES, ScreenOrientationProvider, addEvent, api, buildDefaultWasmConfig, cameraScreenNamesMapper, captureAttemptFinished, checkPermission as checkCameraPermission, createApi_default as createApi, createIdCaptureActor, createIdCaptureManager, createScreenOrientationObserver, createSession, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, getApi, getBrowser, getDeviceClass, getDisableIpify, getSessionFeatures, idCaptureMachine, initializeIdCapture, initializeSession, initializeWasmUtil, isConfigured, isIPad, isSessionInitialized, moduleClosed, moduleOpened, processId, requestPermission as requestCameraPermission, reset, resetSessionInit, resolveWasmConfig, screenClosed, screenEvent, screenOpened, setWasmConfig, setup, startRecordingSession, stopRecording, stopStream, subscribeEvent, tutorialScreenNamesMapper, uploadIdImage, validateUploadResponse, videoSelfieEvents, warmupWasm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./src-
|
|
2
|
+
import "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
5
|
-
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-
|
|
5
|
+
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-D2nZtu-b.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as requestCameraAccess, F as getDeviceInfo, L as getUserAgent, T as queryCameraPermission, V as isIPad, j as stopCameraStream, m as MotionSensorProvider } from "./src-8rn6DoH7.esm.js";
|
|
2
2
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, b as fromCallback, n as eventModuleNames, o as createManagerInstrumentation, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager, v as BrowserTimerProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import "./backCameraStream-
|
|
3
|
-
import "./src-
|
|
4
|
-
import "./recordingsRepository-
|
|
2
|
+
import "./backCameraStream-BGAbuvw1.esm.js";
|
|
3
|
+
import "./src-8rn6DoH7.esm.js";
|
|
4
|
+
import "./recordingsRepository-Djt_In2b.esm.js";
|
|
5
5
|
import "./browserSimulation-C8gNnn5p.esm.js";
|
|
6
6
|
import "./api-G4JA8CXK.esm.js";
|
|
7
7
|
import "./endpoints-CCuj1KZH.esm.js";
|
|
8
|
-
import "./deepsightService-
|
|
8
|
+
import "./deepsightService-CLUMQ5ee.esm.js";
|
|
9
9
|
import "./stats-D0m3TvIg.esm.js";
|
|
10
|
-
import { n as processFace } from "./faceCaptureSetup-
|
|
11
|
-
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-
|
|
10
|
+
import { n as processFace } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
|
|
11
|
+
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-CvE35L72.esm.js";
|
|
12
12
|
|
|
13
13
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as createActor, n as eventModuleNames, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
2
|
+
import { s as WasmUtilProvider, y as BrowserStorageProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-Rr7LUbBm.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
6
6
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as addEvent } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as FingerprintProvider, b as BrowserInfoProvider, g as IpifyProvider, x as BrowserEnvironmentProvider } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as isBrowserSimulation } from "./browserSimulation-C8gNnn5p.esm.js";
|
|
4
4
|
import { n as getApi, t as api } from "./api-G4JA8CXK.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
package/dist/signature.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as createActor, h as addEvent, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as setup, x as fromPromise, y as assign } from "./events-Cc1xUUgF.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as createManager, t as SignaturePad } from "./src-8rn6DoH7.esm.js";
|
|
3
3
|
import { t as api } from "./api-G4JA8CXK.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCuj1KZH.esm.js";
|
|
5
5
|
|
|
@@ -5833,6 +5833,69 @@ const DEFAULT_ID_CAPTURE_MODEL_VERSION = "v2";
|
|
|
5833
5833
|
const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
|
|
5834
5834
|
/** The WASM version bundled and tested with this SDK release. */
|
|
5835
5835
|
const DEFAULT_WASM_VERSION = "v2.12.84";
|
|
5836
|
+
const PATH_KEYS = [
|
|
5837
|
+
"wasmPath",
|
|
5838
|
+
"wasmSimdPath",
|
|
5839
|
+
"glueCodePath",
|
|
5840
|
+
"modelsBasePath"
|
|
5841
|
+
];
|
|
5842
|
+
function isBlank(value) {
|
|
5843
|
+
return value.trim() === "";
|
|
5844
|
+
}
|
|
5845
|
+
function hasDisallowedControlChars(value) {
|
|
5846
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
5847
|
+
const code = value.charCodeAt(i);
|
|
5848
|
+
if (code < 32 || code === 127) return true;
|
|
5849
|
+
}
|
|
5850
|
+
return false;
|
|
5851
|
+
}
|
|
5852
|
+
function isMalformedPath(value) {
|
|
5853
|
+
const trimmed = value.trim();
|
|
5854
|
+
if (trimmed === "") return false;
|
|
5855
|
+
if (hasDisallowedControlChars(trimmed)) return true;
|
|
5856
|
+
if (/^https?:\/\//i.test(trimmed)) try {
|
|
5857
|
+
new URL(trimmed);
|
|
5858
|
+
return false;
|
|
5859
|
+
} catch {
|
|
5860
|
+
return true;
|
|
5861
|
+
}
|
|
5862
|
+
return false;
|
|
5863
|
+
}
|
|
5864
|
+
function warnInvalidWasmPath(field, reason) {
|
|
5865
|
+
if (reason === "empty") {
|
|
5866
|
+
console.warn(`[Incode SDK] wasm.${field} is empty. Falling back to CDN default.`);
|
|
5867
|
+
return;
|
|
5868
|
+
}
|
|
5869
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Falling back to CDN default.`);
|
|
5870
|
+
}
|
|
5871
|
+
function warnMalformedWasmPath(field) {
|
|
5872
|
+
console.warn(`[Incode SDK] wasm.${field} appears malformed. Check the URL or path.`);
|
|
5873
|
+
}
|
|
5874
|
+
/**
|
|
5875
|
+
* Validates merged WASM path strings. When overrides contained blank path
|
|
5876
|
+
* values, callers should have already fallen back to defaults before this runs.
|
|
5877
|
+
*/
|
|
5878
|
+
function validateWasmPaths(config) {
|
|
5879
|
+
for (const key of PATH_KEYS) {
|
|
5880
|
+
const value = config[key];
|
|
5881
|
+
if (typeof value === "string" && isMalformedPath(value)) warnMalformedWasmPath(key);
|
|
5882
|
+
}
|
|
5883
|
+
}
|
|
5884
|
+
function pickPath(key, overrides, defaultValue) {
|
|
5885
|
+
if (!overrides || !(key in overrides)) return defaultValue;
|
|
5886
|
+
const raw = overrides[key];
|
|
5887
|
+
if (raw === void 0) return defaultValue;
|
|
5888
|
+
if (typeof raw !== "string") return defaultValue;
|
|
5889
|
+
if (isBlank(raw)) {
|
|
5890
|
+
warnInvalidWasmPath(key, "empty");
|
|
5891
|
+
return defaultValue;
|
|
5892
|
+
}
|
|
5893
|
+
if (isMalformedPath(raw)) {
|
|
5894
|
+
warnInvalidWasmPath(key, "malformed");
|
|
5895
|
+
return defaultValue;
|
|
5896
|
+
}
|
|
5897
|
+
return raw.trim();
|
|
5898
|
+
}
|
|
5836
5899
|
/** Builds the standard WarmupConfig from the Incode CDN. */
|
|
5837
5900
|
function buildDefaultWasmConfig() {
|
|
5838
5901
|
const base = `${WASM_CDN_BASE_URL}/${DEFAULT_WASM_VERSION}`;
|
|
@@ -5843,6 +5906,30 @@ function buildDefaultWasmConfig() {
|
|
|
5843
5906
|
modelsBasePath: `${base}/models`
|
|
5844
5907
|
};
|
|
5845
5908
|
}
|
|
5909
|
+
/**
|
|
5910
|
+
* Merges optional WASM path overrides with CDN defaults. Explicit non-blank
|
|
5911
|
+
* paths take precedence. Blank override strings log a warning and fall back to defaults.
|
|
5912
|
+
*/
|
|
5913
|
+
function resolveWasmConfig(overrides) {
|
|
5914
|
+
const defaults = buildDefaultWasmConfig();
|
|
5915
|
+
if (!overrides) return defaults;
|
|
5916
|
+
const simdDefault = defaults.wasmSimdPath ?? defaults.wasmPath;
|
|
5917
|
+
const modelsDefault = defaults.modelsBasePath ?? (() => {
|
|
5918
|
+
const lastSlash = defaults.wasmPath.lastIndexOf("/");
|
|
5919
|
+
return lastSlash === -1 ? "models" : `${defaults.wasmPath.substring(0, lastSlash)}/models`;
|
|
5920
|
+
})();
|
|
5921
|
+
const merged = {
|
|
5922
|
+
wasmPath: pickPath("wasmPath", overrides, defaults.wasmPath),
|
|
5923
|
+
wasmSimdPath: pickPath("wasmSimdPath", overrides, simdDefault),
|
|
5924
|
+
glueCodePath: pickPath("glueCodePath", overrides, defaults.glueCodePath),
|
|
5925
|
+
modelsBasePath: pickPath("modelsBasePath", overrides, modelsDefault),
|
|
5926
|
+
useSimd: overrides.useSimd,
|
|
5927
|
+
pipelines: overrides.pipelines,
|
|
5928
|
+
pipelineModels: overrides.pipelineModels
|
|
5929
|
+
};
|
|
5930
|
+
validateWasmPaths(merged);
|
|
5931
|
+
return merged;
|
|
5932
|
+
}
|
|
5846
5933
|
|
|
5847
5934
|
//#endregion
|
|
5848
5935
|
//#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
|
|
@@ -6464,4 +6551,4 @@ var SignaturePad = class _SignaturePad extends SignatureEventTarget {
|
|
|
6464
6551
|
};
|
|
6465
6552
|
|
|
6466
6553
|
//#endregion
|
|
6467
|
-
export {
|
|
6554
|
+
export { requestCameraAccess as A, isIOS as B, StreamCanvasProcessingSession as C, IncodeCanvas as D, createHiddenVideoElement as E, getDeviceInfo as F, isIPhone14OrHigher as H, getWindowDimensions as I, getUserAgent as L, createManager as M, createApi_default as N, applyTrackConstraints as O, getDeviceFingerprintInfo as P, isAndroid as R, BrowserGeolocationProvider as S, queryCameraPermission as T, isSafari as U, isIPad as V, FingerprintProvider as _, DEFAULT_ID_CAPTURE_MODEL_VERSION as a, BrowserInfoProvider as b, IdCaptureProvider as c, VisibilityProvider as d, ScreenOrientationProvider as f, IpifyProvider as g, LocalRecordingProvider as h, resolveWasmConfig as i, stopCameraStream as j, enumerateVideoDevices as k, FaceDetectionProvider as l, MotionSensorProvider as m, DEFAULT_WASM_VERSION as n, DEFAULT_ID_CAPTURE_THRESHOLDS as o, OpenViduRecordingProvider as p, buildDefaultWasmConfig as r, WasmUtilProvider as s, SignaturePad as t, warmupWasm as u, BrowserTimerProvider as v, StreamCanvasCapture as w, BrowserEnvironmentProvider as x, BrowserStorageProvider as y, isDesktop as z };
|