@incodetech/core 0.0.0-dev-20260401-620f105 → 0.0.0-dev-20260401-018c3ea
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.d.ts +53 -53
- 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 +58 -58
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +49 -49
- package/dist/document-upload.esm.js +2 -2
- package/dist/ekyb.esm.js +4 -4
- package/dist/ekyc.esm.js +2 -2
- 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.d.ts +50 -50
- 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,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 xstate72 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
6
|
-
declare const documentUploadMachine:
|
|
6
|
+
declare const documentUploadMachine: xstate72.StateMachine<DocumentUploadContext, {
|
|
7
7
|
type: "START";
|
|
8
8
|
} | {
|
|
9
9
|
type: "CAPTURE";
|
|
@@ -16,52 +16,52 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
16
16
|
} | {
|
|
17
17
|
type: "CLOSE";
|
|
18
18
|
}, {
|
|
19
|
-
[x: string]:
|
|
19
|
+
[x: string]: xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>> | xstate72.ActorRefFromLogic<xstate72.PromiseActorLogic<void, {
|
|
20
20
|
imageBase64: string;
|
|
21
21
|
documentType: string;
|
|
22
22
|
onProgress: (progress: number) => void;
|
|
23
|
-
},
|
|
24
|
-
},
|
|
23
|
+
}, xstate72.EventObject>> | undefined;
|
|
24
|
+
}, xstate72.Values<{
|
|
25
25
|
initCamera: {
|
|
26
26
|
src: "initCamera";
|
|
27
|
-
logic:
|
|
27
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
28
28
|
id: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
uploadDocument: {
|
|
31
31
|
src: "uploadDocument";
|
|
32
|
-
logic:
|
|
32
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
33
33
|
imageBase64: string;
|
|
34
34
|
documentType: string;
|
|
35
35
|
onProgress: (progress: number) => void;
|
|
36
|
-
},
|
|
36
|
+
}, xstate72.EventObject>;
|
|
37
37
|
id: string | undefined;
|
|
38
38
|
};
|
|
39
|
-
}>,
|
|
40
|
-
setError: {
|
|
41
|
-
type: "setError";
|
|
42
|
-
params: xstate67.NonReducibleUnknown;
|
|
43
|
-
};
|
|
44
|
-
clearError: {
|
|
45
|
-
type: "clearError";
|
|
46
|
-
params: xstate67.NonReducibleUnknown;
|
|
47
|
-
};
|
|
39
|
+
}>, xstate72.Values<{
|
|
48
40
|
setStream: {
|
|
49
41
|
type: "setStream";
|
|
50
|
-
params:
|
|
51
|
-
};
|
|
52
|
-
setImageAndClearError: {
|
|
53
|
-
type: "setImageAndClearError";
|
|
54
|
-
params: xstate67.NonReducibleUnknown;
|
|
42
|
+
params: xstate72.NonReducibleUnknown;
|
|
55
43
|
};
|
|
56
44
|
setProgress: {
|
|
57
45
|
type: "setProgress";
|
|
58
|
-
params:
|
|
46
|
+
params: xstate72.NonReducibleUnknown;
|
|
47
|
+
};
|
|
48
|
+
clearError: {
|
|
49
|
+
type: "clearError";
|
|
50
|
+
params: xstate72.NonReducibleUnknown;
|
|
59
51
|
};
|
|
60
52
|
stopStream: {
|
|
61
53
|
type: "stopStream";
|
|
62
|
-
params:
|
|
54
|
+
params: xstate72.NonReducibleUnknown;
|
|
55
|
+
};
|
|
56
|
+
setImageAndClearError: {
|
|
57
|
+
type: "setImageAndClearError";
|
|
58
|
+
params: xstate72.NonReducibleUnknown;
|
|
59
|
+
};
|
|
60
|
+
setError: {
|
|
61
|
+
type: "setError";
|
|
62
|
+
params: xstate72.NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
}>, never, never, "
|
|
64
|
+
}>, never, never, "initCamera" | "error" | "capturing" | "finished" | "closed" | "uploading" | "idle", string, DocumentUploadInput, xstate72.NonReducibleUnknown, xstate72.EventObject, xstate72.MetaObject, {
|
|
65
65
|
readonly id: "documentUpload";
|
|
66
66
|
readonly initial: "idle";
|
|
67
67
|
readonly context: ({
|
|
@@ -70,67 +70,67 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
70
70
|
spawn: {
|
|
71
71
|
<TSrc extends "initCamera" | "uploadDocument">(logic: TSrc, ...[options]: ({
|
|
72
72
|
src: "initCamera";
|
|
73
|
-
logic:
|
|
73
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
74
74
|
id: string | undefined;
|
|
75
75
|
} extends infer T ? T extends {
|
|
76
76
|
src: "initCamera";
|
|
77
|
-
logic:
|
|
77
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
78
78
|
id: string | undefined;
|
|
79
79
|
} ? T extends {
|
|
80
80
|
src: TSrc;
|
|
81
|
-
} ?
|
|
81
|
+
} ? xstate72.ConditionalRequired<[options?: ({
|
|
82
82
|
id?: T["id"] | undefined;
|
|
83
83
|
systemId?: string;
|
|
84
|
-
input?:
|
|
84
|
+
input?: xstate72.InputFrom<T["logic"]> | undefined;
|
|
85
85
|
syncSnapshot?: boolean;
|
|
86
|
-
} & { [K in
|
|
86
|
+
} & { [K in xstate72.RequiredActorOptions<T>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
87
87
|
src: "uploadDocument";
|
|
88
|
-
logic:
|
|
88
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
89
89
|
imageBase64: string;
|
|
90
90
|
documentType: string;
|
|
91
91
|
onProgress: (progress: number) => void;
|
|
92
|
-
},
|
|
92
|
+
}, xstate72.EventObject>;
|
|
93
93
|
id: string | undefined;
|
|
94
94
|
} extends infer T_1 ? T_1 extends {
|
|
95
95
|
src: "uploadDocument";
|
|
96
|
-
logic:
|
|
96
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
97
97
|
imageBase64: string;
|
|
98
98
|
documentType: string;
|
|
99
99
|
onProgress: (progress: number) => void;
|
|
100
|
-
},
|
|
100
|
+
}, xstate72.EventObject>;
|
|
101
101
|
id: string | undefined;
|
|
102
102
|
} ? T_1 extends {
|
|
103
103
|
src: TSrc;
|
|
104
|
-
} ?
|
|
104
|
+
} ? xstate72.ConditionalRequired<[options?: ({
|
|
105
105
|
id?: T_1["id"] | undefined;
|
|
106
106
|
systemId?: string;
|
|
107
|
-
input?:
|
|
107
|
+
input?: xstate72.InputFrom<T_1["logic"]> | undefined;
|
|
108
108
|
syncSnapshot?: boolean;
|
|
109
|
-
} & { [K_1 in
|
|
109
|
+
} & { [K_1 in xstate72.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredActorOptions<T_1>>> : never : never : never)): xstate72.ActorRefFromLogic<xstate72.GetConcreteByKey<xstate72.Values<{
|
|
110
110
|
initCamera: {
|
|
111
111
|
src: "initCamera";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate72.PromiseActorLogic<MediaStream, void, xstate72.EventObject>;
|
|
113
113
|
id: string | undefined;
|
|
114
114
|
};
|
|
115
115
|
uploadDocument: {
|
|
116
116
|
src: "uploadDocument";
|
|
117
|
-
logic:
|
|
117
|
+
logic: xstate72.PromiseActorLogic<void, {
|
|
118
118
|
imageBase64: string;
|
|
119
119
|
documentType: string;
|
|
120
120
|
onProgress: (progress: number) => void;
|
|
121
|
-
},
|
|
121
|
+
}, xstate72.EventObject>;
|
|
122
122
|
id: string | undefined;
|
|
123
123
|
};
|
|
124
124
|
}>, "src", TSrc>["logic"]>;
|
|
125
|
-
<TLogic extends
|
|
125
|
+
<TLogic extends xstate72.AnyActorLogic>(src: TLogic, ...[options]: xstate72.ConditionalRequired<[options?: ({
|
|
126
126
|
id?: never;
|
|
127
127
|
systemId?: string;
|
|
128
|
-
input?:
|
|
128
|
+
input?: xstate72.InputFrom<TLogic> | undefined;
|
|
129
129
|
syncSnapshot?: boolean;
|
|
130
|
-
} & { [K in
|
|
130
|
+
} & { [K in xstate72.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate72.IsNotNever<xstate72.RequiredLogicInput<TLogic>>>): xstate72.ActorRefFromLogic<TLogic>;
|
|
131
131
|
};
|
|
132
132
|
input: DocumentUploadInput;
|
|
133
|
-
self:
|
|
133
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<DocumentUploadContext, {
|
|
134
134
|
type: "START";
|
|
135
135
|
} | {
|
|
136
136
|
type: "CAPTURE";
|
|
@@ -142,7 +142,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
142
142
|
type: "RETRY";
|
|
143
143
|
} | {
|
|
144
144
|
type: "CLOSE";
|
|
145
|
-
}, Record<string,
|
|
145
|
+
}, Record<string, xstate72.AnyActorRef | undefined>, xstate72.StateValue, string, unknown, any, any>, {
|
|
146
146
|
type: "START";
|
|
147
147
|
} | {
|
|
148
148
|
type: "CAPTURE";
|
|
@@ -154,7 +154,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
154
154
|
type: "RETRY";
|
|
155
155
|
} | {
|
|
156
156
|
type: "CLOSE";
|
|
157
|
-
},
|
|
157
|
+
}, xstate72.AnyEventObject>;
|
|
158
158
|
}) => {
|
|
159
159
|
config: DocumentUploadConfig;
|
|
160
160
|
stream: undefined;
|
|
@@ -224,7 +224,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "CLOSE";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate72.ActorRef<xstate72.MachineSnapshot<DocumentUploadContext, {
|
|
228
228
|
type: "START";
|
|
229
229
|
} | {
|
|
230
230
|
type: "CAPTURE";
|
|
@@ -236,7 +236,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "CLOSE";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate72.AnyActorRef>, xstate72.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "START";
|
|
241
241
|
} | {
|
|
242
242
|
type: "CAPTURE";
|
|
@@ -248,7 +248,7 @@ declare const documentUploadMachine: xstate67.StateMachine<DocumentUploadContext
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "CLOSE";
|
|
251
|
-
},
|
|
251
|
+
}, xstate72.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;
|
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 = {
|
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 };
|