@incodetech/core 0.0.0-dev-20260407-4677d7f → 0.0.0-dev-20260407-2c382da
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseWasmProvider-CQgeReKV.esm.js → BaseWasmProvider--AzPfwOm.esm.js} +785 -1
- package/dist/{xstate.esm-BXrcOcSC.esm.js → Manager-C6AGXEq_.esm.js} +507 -103
- package/dist/{warmup-CEOVQKby.d.ts → StateMachine-CM_aOfNL.d.ts} +4 -1
- package/dist/{recordingsRepository-blYn-iKZ.esm.js → StreamCanvasCapture-DkpkIgyL.esm.js} +215 -157
- package/dist/{WasmUtilProvider-C45HStLj.esm.js → WasmUtilProvider-BonqBWdj.esm.js} +1 -1
- package/dist/{addressSearch-C5qzDvkN.esm.js → addressSearch-B8Fo4v9V.esm.js} +4 -4
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +3 -3
- package/dist/authentication.d.ts +9 -11
- package/dist/authentication.esm.js +13 -18
- package/dist/{authenticationManager-CW4qxgcq.esm.js → authenticationManager-B4gSCgrO.esm.js} +6 -7
- package/dist/{authenticationManager-CiXsOTdM.d.ts → authenticationManager-Bd10YGSO.d.ts} +2 -2
- package/dist/{backCameraStream-CUo1USCT.esm.js → backCameraStream-DF_d7hTz.esm.js} +2 -2
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +3 -3
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +3 -3
- package/dist/{deepsightLoader-Bs5jHgca.esm.js → deepsightLoader-DKgEdLIS.esm.js} +7 -10
- package/dist/{deepsightService-CMAtxAC9.d.ts → deepsightService-Ciu0atv5.d.ts} +197 -193
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-capture.esm.js +6 -6
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +6 -6
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +9 -9
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +5 -5
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +5 -5
- package/dist/{emailManager-DEIxY7l6.d.ts → emailManager-BQPIJR_O.d.ts} +2 -2
- package/dist/{emailManager-CZ2IGW0g.esm.js → emailManager-CpAwvP3v.esm.js} +4 -4
- package/dist/endpoints-CI5-28jT.esm.js +69 -0
- package/dist/extensibility.d.ts +13 -15
- package/dist/extensibility.esm.js +20 -25
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +3 -3
- package/dist/{faceCaptureManagerFactory-CWj-nXdx.d.ts → faceCaptureManagerFactory-CdwpYykv.d.ts} +6 -8
- package/dist/{faceCaptureSetup-DIE5cftl.esm.js → faceCaptureSetup-DbXgtcp7.esm.js} +10 -13
- package/dist/flow.d.ts +6 -7
- package/dist/flow.esm.js +8 -8
- package/dist/{flowCompletionService-N6-xypy-.esm.js → flowCompletionService-TnWijsSw.esm.js} +2 -2
- package/dist/{flowServices-xgqnJ64L.esm.js → flowServices-CO2sIR3D.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +4 -4
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +4 -4
- package/dist/id-CzDAG_kM.esm.js +0 -0
- package/dist/id.d.ts +10 -11
- package/dist/id.esm.js +15 -19
- package/dist/{idCaptureManager-SHBRQ-X_.esm.js → idCaptureManager-DaLU1ug7.esm.js} +11 -15
- package/dist/{idCaptureManager-H-rkXnbK.d.ts → idCaptureManager-IdqsAASp.d.ts} +6 -7
- package/dist/index-BuVKc9bv.d.ts +1 -0
- package/dist/index.d.ts +611 -3
- package/dist/index.esm.js +562 -10
- package/dist/{lib-Cq5Wc-Hd.esm.js → lib-i-4qLKdG.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +3 -3
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +5 -5
- package/dist/{phoneManager-CscgaER2.esm.js → phoneManager-BAPHSXx8.esm.js} +4 -4
- package/dist/{phoneManager-Clfbrs6b.d.ts → phoneManager-DA8WUJtl.d.ts} +2 -2
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +4 -4
- package/dist/selfie.d.ts +9 -11
- package/dist/selfie.esm.js +13 -18
- package/dist/{selfieManager-DeGqD5aN.esm.js → selfieManager-BSkzncsa.esm.js} +4 -5
- package/dist/{selfieManager-h_hhEefT.d.ts → selfieManager-Dft5wZQ_.d.ts} +2 -2
- package/dist/{session-PLjFj_T3.esm.js → session-OglUYC9l.esm.js} +19 -5
- package/dist/session.d.ts +2 -46
- package/dist/session.esm.js +4 -7
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +3 -3
- package/dist/{stats-BZ1kFW4p.esm.js → stats-BVigf5Rn.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-T0VjZW3T.d.ts → types-CiLyvJGb.d.ts} +1 -1
- package/dist/{types-zH5PDmSe.d.ts → types-D8Y1faI5.d.ts} +1 -1
- package/package.json +2 -18
- package/dist/MotionSensorProvider-BTDLt08l.esm.js +0 -254
- package/dist/StateMachine-8d441d6x.d.ts +0 -2
- package/dist/camera.d.ts +0 -16
- package/dist/camera.esm.js +0 -5
- package/dist/deepsightService-C3gQ_9Ml.esm.js +0 -493
- package/dist/device.d.ts +0 -46
- package/dist/device.esm.js +0 -106
- package/dist/events-BlVGS-8F.esm.js +0 -472
- package/dist/events.d.ts +0 -232
- package/dist/events.esm.js +0 -4
- package/dist/getBrowser-B800KRAi.esm.js +0 -41
- package/dist/getDeviceClass-BKd2FOAf.esm.js +0 -14
- package/dist/http.d.ts +0 -57
- package/dist/http.esm.js +0 -3
- package/dist/permissionServices-CDqkkway.esm.js +0 -50
- package/dist/setup-DJ3dFl5k.d.ts +0 -120
- package/dist/setup-fvDWE7f8.esm.js +0 -450
- package/dist/types-qhLxpptI.d.ts +0 -5
- package/dist/wasm.d.ts +0 -15
- package/dist/wasm.esm.js +0 -10
- /package/dist/{Actor-C-jivmFF.d.ts → Actor-By8WNHi-.d.ts} +0 -0
- /package/dist/{BrowserEnvironmentProvider--xQUs3sg.esm.js → BrowserEnvironmentProvider-BECjyw3_.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-CkHEwJFa.esm.js → BrowserTimerProvider-CIqH6hJp.esm.js} +0 -0
- /package/dist/{Manager-BqFybBV-.d.ts → Manager-CCT_-HuZ.d.ts} +0 -0
- /package/dist/{api-CyI8qTie.esm.js → api-C2uzxrpN.esm.js} +0 -0
- /package/dist/{browserSimulation-yzDdWSBf.esm.js → browserSimulation-DYAk0Ipe.esm.js} +0 -0
- /package/dist/{camera-CKsQVNlH.d.ts → camera-6XJdOeBF.d.ts} +0 -0
- /package/dist/{camera-CsT06Zqy.esm.js → camera-DAuRUvnp.esm.js} +0 -0
- /package/dist/{chunk-BcQWkoAq.esm.js → chunk-D6hkk-hd.esm.js} +0 -0
- /package/dist/{displayErrors-CjMXlBnu.d.ts → displayErrors-CGJwvrTl.d.ts} +0 -0
- /package/dist/{flowCompletionService-BV6ThEJ1.d.ts → flowCompletionService-BOd4Rk8n.d.ts} +0 -0
- /package/dist/{platform-Dcuv6w60.esm.js → platform-DdhkonXk.esm.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./types-
|
|
5
|
-
import {
|
|
6
|
-
import * as
|
|
1
|
+
import "./Actor-By8WNHi-.js";
|
|
2
|
+
import "./camera-6XJdOeBF.js";
|
|
3
|
+
import "./types-CiLyvJGb.js";
|
|
4
|
+
import { i as RegulationTypes } from "./types-D8Y1faI5.js";
|
|
5
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
6
|
+
import * as xstate160 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate160.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate160.EventObject>> | xstate160.ActorRefFromLogic<xstate160.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate160.EventObject>> | undefined;
|
|
52
|
+
}, xstate160.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate160.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate160.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate160.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
68
|
+
}>, xstate160.Values<{
|
|
69
69
|
setError: {
|
|
70
70
|
type: "setError";
|
|
71
|
-
params:
|
|
71
|
+
params: xstate160.NonReducibleUnknown;
|
|
72
72
|
};
|
|
73
73
|
clearError: {
|
|
74
74
|
type: "clearError";
|
|
75
|
-
params:
|
|
76
|
-
};
|
|
77
|
-
resetContext: {
|
|
78
|
-
type: "resetContext";
|
|
79
|
-
params: xstate344.NonReducibleUnknown;
|
|
75
|
+
params: xstate160.NonReducibleUnknown;
|
|
80
76
|
};
|
|
81
77
|
setConsent: {
|
|
82
78
|
type: "setConsent";
|
|
83
|
-
params:
|
|
79
|
+
params: xstate160.NonReducibleUnknown;
|
|
84
80
|
};
|
|
85
81
|
toggleSigned: {
|
|
86
82
|
type: "toggleSigned";
|
|
87
|
-
params:
|
|
83
|
+
params: xstate160.NonReducibleUnknown;
|
|
84
|
+
};
|
|
85
|
+
resetContext: {
|
|
86
|
+
type: "resetContext";
|
|
87
|
+
params: xstate160.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput,
|
|
92
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate160.NonReducibleUnknown, xstate160.EventObject, xstate160.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate160.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate160.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate160.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate160.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate160.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate160.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate160.RequiredActorOptions<T>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate160.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate160.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate160.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate160.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate160.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredActorOptions<T_1>>> : never : never : never)): xstate160.ActorRefFromLogic<xstate160.GetConcreteByKey<xstate160.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate160.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate160.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate160.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate160.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate160.AnyActorLogic>(src: TLogic, ...[options]: xstate160.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate160.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate160.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate160.IsNotNever<xstate160.RequiredLogicInput<TLogic>>>): xstate160.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate160.ActorRef<xstate160.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate160.AnyActorRef | undefined>, xstate160.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate160.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate160.ActorRef<xstate160.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate160.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate160.ActorRef<xstate160.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate160.AnyActorRef>, xstate160.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate344.StateMachine<MandatoryConsentCo
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate160.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
|
6
6
|
async function fetchMandatoryConsent(regulationType, signal) {
|
package/dist/phone.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-
|
|
1
|
+
import "./Actor-By8WNHi-.js";
|
|
2
|
+
import "./Manager-CCT_-HuZ.js";
|
|
3
|
+
import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-DA8WUJtl.js";
|
|
4
4
|
export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
|
package/dist/phone.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-
|
|
1
|
+
import "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
|
+
import { r as phoneMachine, t as createPhoneManager } from "./phoneManager-BAPHSXx8.esm.js";
|
|
6
6
|
|
|
7
7
|
export { createPhoneManager, phoneMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/phone/phoneServices.ts
|
|
7
7
|
async function fetchPhone(signal) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
1
|
+
import { t as ActorRefFrom } from "./Actor-By8WNHi-.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/phone/types.d.ts
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/url/urlUtils.ts
|
|
7
7
|
function getUrlSearchParam(url, param) {
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-qhLxpptI.js";
|
|
11
|
-
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-h_hhEefT.js";
|
|
1
|
+
import "./StateMachine-CM_aOfNL.js";
|
|
2
|
+
import "./Actor-By8WNHi-.js";
|
|
3
|
+
import { c as PermissionResult, l as PermissionStatus, t as DeepsightService } from "./deepsightService-Ciu0atv5.js";
|
|
4
|
+
import { t as CameraStream } from "./camera-6XJdOeBF.js";
|
|
5
|
+
import "./types-CiLyvJGb.js";
|
|
6
|
+
import "./types-D8Y1faI5.js";
|
|
7
|
+
import "./Manager-CCT_-HuZ.js";
|
|
8
|
+
import { a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as DetectionStatus, y as FaceErrorCode } from "./faceCaptureManagerFactory-CdwpYykv.js";
|
|
9
|
+
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-Dft5wZQ_.js";
|
|
12
10
|
export { type CameraStream, type DeepsightService, type DetectionStatus, type FaceErrorCode, type PermissionResult, type PermissionStatus, type ProcessFaceResponse, type SelfieConfig, type SelfieMachine, type SelfieManager, type SelfieState, createSelfieManager, processFace, selfieMachine };
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./permissionServices-CDqkkway.esm.js";
|
|
15
|
-
import "./platform-Dcuv6w60.esm.js";
|
|
16
|
-
import "./backCameraStream-CUo1USCT.esm.js";
|
|
17
|
-
import "./getDeviceClass-BKd2FOAf.esm.js";
|
|
18
|
-
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-DeGqD5aN.esm.js";
|
|
1
|
+
import "./platform-DdhkonXk.esm.js";
|
|
2
|
+
import "./BaseWasmProvider--AzPfwOm.esm.js";
|
|
3
|
+
import "./StreamCanvasCapture-DkpkIgyL.esm.js";
|
|
4
|
+
import "./browserSimulation-DYAk0Ipe.esm.js";
|
|
5
|
+
import "./api-C2uzxrpN.esm.js";
|
|
6
|
+
import "./Manager-C6AGXEq_.esm.js";
|
|
7
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
8
|
+
import "./camera-DAuRUvnp.esm.js";
|
|
9
|
+
import "./stats-BVigf5Rn.esm.js";
|
|
10
|
+
import "./backCameraStream-DF_d7hTz.esm.js";
|
|
11
|
+
import "./WasmUtilProvider-BonqBWdj.esm.js";
|
|
12
|
+
import { n as processFace } from "./faceCaptureSetup-DbXgtcp7.esm.js";
|
|
13
|
+
import { r as selfieMachine, t as createSelfieManager } from "./selfieManager-BSkzncsa.esm.js";
|
|
19
14
|
|
|
20
15
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
5
|
-
import { u as BrowserStorageProvider } from "./recordingsRepository-blYn-iKZ.esm.js";
|
|
1
|
+
import { f as BrowserStorageProvider } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-BonqBWdj.esm.js";
|
|
4
|
+
import { a as createFaceCaptureManagerFromActor, i as FACE_ERROR_CODES, n as processFace, r as uploadSelfie, t as faceCaptureMachine } from "./faceCaptureSetup-DbXgtcp7.esm.js";
|
|
6
5
|
|
|
7
6
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
8
7
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { t as Manager } from "./Manager-CCT_-HuZ.js";
|
|
2
|
+
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-CdwpYykv.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
5
5
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { t as isBrowserSimulation } from "./browserSimulation-DYAk0Ipe.esm.js";
|
|
2
|
+
import { n as getApi, t as api } from "./api-C2uzxrpN.esm.js";
|
|
3
|
+
import { h as addEvent } from "./Manager-C6AGXEq_.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
5
|
+
import { t as BrowserEnvironmentProvider } from "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/internal/session/sessionService.ts
|
|
7
8
|
/**
|
|
@@ -3089,6 +3090,13 @@ async function initializeSession(options = {}) {
|
|
|
3089
3090
|
return sessionInitPromise;
|
|
3090
3091
|
}
|
|
3091
3092
|
/**
|
|
3093
|
+
* Gets the cached feature configuration.
|
|
3094
|
+
* Returns undefined if session hasn't been initialized.
|
|
3095
|
+
*/
|
|
3096
|
+
function getSessionFeatures() {
|
|
3097
|
+
return cachedFeatures ?? void 0;
|
|
3098
|
+
}
|
|
3099
|
+
/**
|
|
3092
3100
|
* Gets the cached disableIpify flag.
|
|
3093
3101
|
* Returns false if session hasn't been initialized.
|
|
3094
3102
|
*/
|
|
@@ -3099,6 +3107,12 @@ function getSessionFingerprintResult() {
|
|
|
3099
3107
|
return cachedFingerprintResult;
|
|
3100
3108
|
}
|
|
3101
3109
|
/**
|
|
3110
|
+
* Checks if the session has been initialized.
|
|
3111
|
+
*/
|
|
3112
|
+
function isSessionInitialized() {
|
|
3113
|
+
return sessionInitialized;
|
|
3114
|
+
}
|
|
3115
|
+
/**
|
|
3102
3116
|
* Resets session initialization state.
|
|
3103
3117
|
* Useful for testing or when starting a new session.
|
|
3104
3118
|
*/
|
|
@@ -3113,4 +3127,4 @@ function resetSessionInit() {
|
|
|
3113
3127
|
}
|
|
3114
3128
|
|
|
3115
3129
|
//#endregion
|
|
3116
|
-
export {
|
|
3130
|
+
export { isSessionInitialized as a, FingerprintProvider as c, initializeSession as i, getDeviceFingerprintInfo as l, getSessionFeatures as n, resetSessionInit as o, getSessionFingerprintResult as r, IpifyProvider as s, getDisableIpify as t, createSession as u };
|
package/dist/session.d.ts
CHANGED
|
@@ -1,46 +1,2 @@
|
|
|
1
|
-
import { n as GetFinishStatusFn, r as getFinishStatus, t as FinishStatus } from "./flowCompletionService-
|
|
2
|
-
|
|
3
|
-
//#region src/internal/session/sessionService.d.ts
|
|
4
|
-
type CreateSessionOptions = {
|
|
5
|
-
/** The configuration/flow ID from the Incode dashboard */
|
|
6
|
-
configurationId: string;
|
|
7
|
-
/** External ID to associate with this session */
|
|
8
|
-
externalId?: string;
|
|
9
|
-
/** External customer ID */
|
|
10
|
-
externalCustomerId?: string;
|
|
11
|
-
/** Language for the session (e.g., 'en-US', 'es-MX') */
|
|
12
|
-
language?: string;
|
|
13
|
-
/** Custom fields to attach to the session */
|
|
14
|
-
customFields?: Record<string, unknown>;
|
|
15
|
-
/** UUID for continuing an existing session */
|
|
16
|
-
uuid?: string;
|
|
17
|
-
/** Interview ID for continuing an existing interview */
|
|
18
|
-
interviewId?: string;
|
|
19
|
-
};
|
|
20
|
-
type Session = {
|
|
21
|
-
token: string;
|
|
22
|
-
interviewId: string;
|
|
23
|
-
uuid?: string;
|
|
24
|
-
regulationType?: string;
|
|
25
|
-
showMandatoryConsent?: boolean;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Creates a new onboarding session.
|
|
29
|
-
*
|
|
30
|
-
* @param apiKey - The API key from the Incode dashboard
|
|
31
|
-
* @param options - Session creation options
|
|
32
|
-
* @param signal - Optional AbortSignal for request cancellation
|
|
33
|
-
* @returns The created session with token
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const session = await createSession('your-api-key', {
|
|
38
|
-
* configurationId: 'your-flow-id',
|
|
39
|
-
* language: 'en-US',
|
|
40
|
-
* });
|
|
41
|
-
* console.log(session.token); // Use this token for subsequent API calls
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
declare function createSession(apiKey: string, options: CreateSessionOptions, signal?: AbortSignal): Promise<Session>;
|
|
45
|
-
//#endregion
|
|
46
|
-
export { type CreateSessionOptions, type FinishStatus, type GetFinishStatusFn, type Session, createSession, getFinishStatus };
|
|
1
|
+
import { n as GetFinishStatusFn, r as getFinishStatus, t as FinishStatus } from "./flowCompletionService-BOd4Rk8n.js";
|
|
2
|
+
export { type FinishStatus, type GetFinishStatusFn, getFinishStatus };
|
package/dist/session.esm.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "./BrowserEnvironmentProvider--xQUs3sg.esm.js";
|
|
5
|
-
import "./browserSimulation-yzDdWSBf.esm.js";
|
|
6
|
-
import { t as getFinishStatus } from "./flowCompletionService-N6-xypy-.esm.js";
|
|
1
|
+
import "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import "./endpoints-CI5-28jT.esm.js";
|
|
3
|
+
import { t as getFinishStatus } from "./flowCompletionService-TnWijsSw.esm.js";
|
|
7
4
|
|
|
8
|
-
export {
|
|
5
|
+
export { getFinishStatus };
|
package/dist/signature.d.ts
CHANGED
package/dist/signature.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as api } from "./api-C2uzxrpN.esm.js";
|
|
2
|
+
import { C as createActor, S as fromPromise, b as assign, h as addEvent, i as eventScreenNames, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/signature/signatureServices.ts
|
|
6
6
|
/**
|
package/dist/stats.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260407-
|
|
3
|
+
"version": "0.0.0-dev-20260407-2c382da",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -81,22 +81,6 @@
|
|
|
81
81
|
"types": "./dist/session.d.ts",
|
|
82
82
|
"import": "./dist/session.esm.js"
|
|
83
83
|
},
|
|
84
|
-
"./wasm": {
|
|
85
|
-
"types": "./dist/wasm.d.ts",
|
|
86
|
-
"import": "./dist/wasm.esm.js"
|
|
87
|
-
},
|
|
88
|
-
"./device": {
|
|
89
|
-
"types": "./dist/device.d.ts",
|
|
90
|
-
"import": "./dist/device.esm.js"
|
|
91
|
-
},
|
|
92
|
-
"./events": {
|
|
93
|
-
"types": "./dist/events.d.ts",
|
|
94
|
-
"import": "./dist/events.esm.js"
|
|
95
|
-
},
|
|
96
|
-
"./http": {
|
|
97
|
-
"types": "./dist/http.d.ts",
|
|
98
|
-
"import": "./dist/http.esm.js"
|
|
99
|
-
},
|
|
100
84
|
"./extensibility": {
|
|
101
85
|
"types": "./dist/extensibility.d.ts",
|
|
102
86
|
"import": "./dist/extensibility.esm.js"
|
|
@@ -127,7 +111,7 @@
|
|
|
127
111
|
},
|
|
128
112
|
"scripts": {
|
|
129
113
|
"build": "tsdown -c tsdown.config.ts",
|
|
130
|
-
"
|
|
114
|
+
"dev": "tsdown -c tsdown.config.ts --watch",
|
|
131
115
|
"test": "vitest run",
|
|
132
116
|
"coverage": "vitest run --coverage",
|
|
133
117
|
"lint": "eslint .",
|