@incodetech/core 2.1.1-rc.4 → 2.1.1-rc.6
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/authentication.esm.js +6 -6
- package/dist/{authenticationManager-CWDi2BOI.esm.js → authenticationManager-DuMSpelF.esm.js} +2 -2
- package/dist/{authenticationStateMachine-DRY2mmrq.esm.js → authenticationStateMachine-CDG0SMYg.esm.js} +2 -2
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-B-WC41zN.d.ts → consentManager-2EPNWwaG.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-UxwjbB41.d.ts → cpfOcrManager-Bg7WqgVy.d.ts} +17 -17
- package/dist/{deepsightLoader-C9gah1-E.esm.js → deepsightLoader-CmbuFd4Q.esm.js} +1 -1
- package/dist/document-capture.d.ts +242 -242
- package/dist/document-upload.d.ts +43 -43
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-BMKWlvbJ.esm.js → ekybStateMachine-D5vj8UG_.esm.js} +1 -1
- package/dist/extensibility.d.ts +5 -5
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureManagerFactory-s4wRwMou.esm.js → faceCaptureManagerFactory-B65bYWfD.esm.js} +1 -1
- package/dist/{faceCaptureSetup-TCy7nC4v.esm.js → faceCaptureSetup-CoQ5A9Il.esm.js} +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +18 -5
- package/dist/{flowServices-CC4Yjo3i.esm.js → flowServices-CYMfu_12.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-da-Mg75H.esm.js → idCaptureManager-Cq1DSv6P.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-CUT5BnrJ.esm.js → idCaptureStateMachine-BqjYsLFf.esm.js} +4 -4
- package/dist/{idOcrManager-Bppyh7Va.d.ts → idOcrManager-CXtyyf3I.d.ts} +52 -52
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-RvT_j2U6.d.ts → identityReuseManager-BNf21Y6b.d.ts} +31 -31
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-WqeJ-BGT.d.ts → mandatoryConsentManager-s6xcax0K.d.ts} +50 -50
- package/dist/{onDeviceFaceResults-B1TzNaDk.esm.js → onDeviceFaceResults-CAfvpjnC.esm.js} +1 -1
- package/dist/personhood.d.ts +10 -0
- package/dist/personhood.esm.js +11 -5
- package/dist/{recordingService-CgIREjnH.esm.js → recordingService-Df_A6oXO.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-D2H9WmPP.esm.js → selfieManager-CtS5wYEo.esm.js} +2 -2
- package/dist/{selfieStateMachine-Bx1SgEqB.esm.js → selfieStateMachine-CiMhj8YP.esm.js} +2 -2
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-8p-JWZlA.esm.js → sessionInitializer-DfN3wUch.esm.js} +1 -1
- package/dist/{setup-B4yV-INl.esm.js → setup-_SH3lJGQ.esm.js} +2 -2
- package/dist/trust-graph.d.ts +2 -2
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +105 -105
- package/dist/workflow.esm.js +9 -9
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import { t as Manager } from "./Manager-goNPc_h_.js";
|
|
|
3
3
|
import "./Actor-BwgmOPkb.js";
|
|
4
4
|
import "./camera-CKU96nwJ.js";
|
|
5
5
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DV3wkhQ4.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate603 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
9
|
-
declare const documentUploadMachine:
|
|
9
|
+
declare const documentUploadMachine: xstate603.StateMachine<DocumentUploadContext, {
|
|
10
10
|
type: "START";
|
|
11
11
|
} | {
|
|
12
12
|
type: "CAPTURE";
|
|
@@ -19,52 +19,52 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
19
19
|
} | {
|
|
20
20
|
type: "CLOSE";
|
|
21
21
|
}, {
|
|
22
|
-
[x: string]:
|
|
22
|
+
[x: string]: xstate603.ActorRefFromLogic<xstate603.PromiseActorLogic<void, {
|
|
23
23
|
imageBase64: string;
|
|
24
24
|
documentType: string;
|
|
25
25
|
onProgress: (progress: number) => void;
|
|
26
|
-
},
|
|
27
|
-
},
|
|
26
|
+
}, xstate603.EventObject>> | xstate603.ActorRefFromLogic<xstate603.PromiseActorLogic<MediaStream, void, xstate603.EventObject>> | undefined;
|
|
27
|
+
}, xstate603.Values<{
|
|
28
28
|
uploadDocument: {
|
|
29
29
|
src: "uploadDocument";
|
|
30
|
-
logic:
|
|
30
|
+
logic: xstate603.PromiseActorLogic<void, {
|
|
31
31
|
imageBase64: string;
|
|
32
32
|
documentType: string;
|
|
33
33
|
onProgress: (progress: number) => void;
|
|
34
|
-
},
|
|
34
|
+
}, xstate603.EventObject>;
|
|
35
35
|
id: string | undefined;
|
|
36
36
|
};
|
|
37
37
|
initCamera: {
|
|
38
38
|
src: "initCamera";
|
|
39
|
-
logic:
|
|
39
|
+
logic: xstate603.PromiseActorLogic<MediaStream, void, xstate603.EventObject>;
|
|
40
40
|
id: string | undefined;
|
|
41
41
|
};
|
|
42
|
-
}>,
|
|
42
|
+
}>, xstate603.Values<{
|
|
43
|
+
setError: {
|
|
44
|
+
type: "setError";
|
|
45
|
+
params: xstate603.NonReducibleUnknown;
|
|
46
|
+
};
|
|
43
47
|
setStream: {
|
|
44
48
|
type: "setStream";
|
|
45
|
-
params:
|
|
49
|
+
params: xstate603.NonReducibleUnknown;
|
|
46
50
|
};
|
|
47
51
|
setImageAndClearError: {
|
|
48
52
|
type: "setImageAndClearError";
|
|
49
|
-
params:
|
|
53
|
+
params: xstate603.NonReducibleUnknown;
|
|
50
54
|
};
|
|
51
55
|
setProgress: {
|
|
52
56
|
type: "setProgress";
|
|
53
|
-
params:
|
|
54
|
-
};
|
|
55
|
-
setError: {
|
|
56
|
-
type: "setError";
|
|
57
|
-
params: xstate397.NonReducibleUnknown;
|
|
57
|
+
params: xstate603.NonReducibleUnknown;
|
|
58
58
|
};
|
|
59
59
|
clearError: {
|
|
60
60
|
type: "clearError";
|
|
61
|
-
params:
|
|
61
|
+
params: xstate603.NonReducibleUnknown;
|
|
62
62
|
};
|
|
63
63
|
stopStream: {
|
|
64
64
|
type: "stopStream";
|
|
65
|
-
params:
|
|
65
|
+
params: xstate603.NonReducibleUnknown;
|
|
66
66
|
};
|
|
67
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "
|
|
67
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "capturing" | "initCamera", string, DocumentUploadInput, xstate603.NonReducibleUnknown, xstate603.EventObject, xstate603.MetaObject, {
|
|
68
68
|
readonly id: "documentUpload";
|
|
69
69
|
readonly initial: "idle";
|
|
70
70
|
readonly context: ({
|
|
@@ -73,67 +73,67 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
73
73
|
spawn: {
|
|
74
74
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
75
75
|
src: "uploadDocument";
|
|
76
|
-
logic:
|
|
76
|
+
logic: xstate603.PromiseActorLogic<void, {
|
|
77
77
|
imageBase64: string;
|
|
78
78
|
documentType: string;
|
|
79
79
|
onProgress: (progress: number) => void;
|
|
80
|
-
},
|
|
80
|
+
}, xstate603.EventObject>;
|
|
81
81
|
id: string | undefined;
|
|
82
82
|
} extends infer T ? T extends {
|
|
83
83
|
src: "uploadDocument";
|
|
84
|
-
logic:
|
|
84
|
+
logic: xstate603.PromiseActorLogic<void, {
|
|
85
85
|
imageBase64: string;
|
|
86
86
|
documentType: string;
|
|
87
87
|
onProgress: (progress: number) => void;
|
|
88
|
-
},
|
|
88
|
+
}, xstate603.EventObject>;
|
|
89
89
|
id: string | undefined;
|
|
90
90
|
} ? T extends {
|
|
91
91
|
src: TSrc;
|
|
92
|
-
} ?
|
|
92
|
+
} ? xstate603.ConditionalRequired<[options?: ({
|
|
93
93
|
id?: T["id"] | undefined;
|
|
94
94
|
systemId?: string;
|
|
95
|
-
input?:
|
|
95
|
+
input?: xstate603.InputFrom<T["logic"]> | undefined;
|
|
96
96
|
syncSnapshot?: boolean;
|
|
97
|
-
} & { [K in
|
|
97
|
+
} & { [K in xstate603.RequiredActorOptions<T>]: unknown }) | undefined], xstate603.IsNotNever<xstate603.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
98
98
|
src: "initCamera";
|
|
99
|
-
logic:
|
|
99
|
+
logic: xstate603.PromiseActorLogic<MediaStream, void, xstate603.EventObject>;
|
|
100
100
|
id: string | undefined;
|
|
101
101
|
} extends infer T_1 ? T_1 extends {
|
|
102
102
|
src: "initCamera";
|
|
103
|
-
logic:
|
|
103
|
+
logic: xstate603.PromiseActorLogic<MediaStream, void, xstate603.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} ? T_1 extends {
|
|
106
106
|
src: TSrc;
|
|
107
|
-
} ?
|
|
107
|
+
} ? xstate603.ConditionalRequired<[options?: ({
|
|
108
108
|
id?: T_1["id"] | undefined;
|
|
109
109
|
systemId?: string;
|
|
110
|
-
input?:
|
|
110
|
+
input?: xstate603.InputFrom<T_1["logic"]> | undefined;
|
|
111
111
|
syncSnapshot?: boolean;
|
|
112
|
-
} & { [K_1 in
|
|
112
|
+
} & { [K_1 in xstate603.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate603.IsNotNever<xstate603.RequiredActorOptions<T_1>>> : never : never : never)): xstate603.ActorRefFromLogic<xstate603.GetConcreteByKey<xstate603.Values<{
|
|
113
113
|
uploadDocument: {
|
|
114
114
|
src: "uploadDocument";
|
|
115
|
-
logic:
|
|
115
|
+
logic: xstate603.PromiseActorLogic<void, {
|
|
116
116
|
imageBase64: string;
|
|
117
117
|
documentType: string;
|
|
118
118
|
onProgress: (progress: number) => void;
|
|
119
|
-
},
|
|
119
|
+
}, xstate603.EventObject>;
|
|
120
120
|
id: string | undefined;
|
|
121
121
|
};
|
|
122
122
|
initCamera: {
|
|
123
123
|
src: "initCamera";
|
|
124
|
-
logic:
|
|
124
|
+
logic: xstate603.PromiseActorLogic<MediaStream, void, xstate603.EventObject>;
|
|
125
125
|
id: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
}>, "src", TSrc>["logic"]>;
|
|
128
|
-
<TLogic extends
|
|
128
|
+
<TLogic extends xstate603.AnyActorLogic>(src: TLogic, ...[options]: xstate603.ConditionalRequired<[options?: ({
|
|
129
129
|
id?: never;
|
|
130
130
|
systemId?: string;
|
|
131
|
-
input?:
|
|
131
|
+
input?: xstate603.InputFrom<TLogic> | undefined;
|
|
132
132
|
syncSnapshot?: boolean;
|
|
133
|
-
} & { [K in
|
|
133
|
+
} & { [K in xstate603.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate603.IsNotNever<xstate603.RequiredLogicInput<TLogic>>>): xstate603.ActorRefFromLogic<TLogic>;
|
|
134
134
|
};
|
|
135
135
|
input: DocumentUploadInput;
|
|
136
|
-
self:
|
|
136
|
+
self: xstate603.ActorRef<xstate603.MachineSnapshot<DocumentUploadContext, {
|
|
137
137
|
type: "START";
|
|
138
138
|
} | {
|
|
139
139
|
type: "CAPTURE";
|
|
@@ -145,7 +145,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
145
145
|
type: "RETRY";
|
|
146
146
|
} | {
|
|
147
147
|
type: "CLOSE";
|
|
148
|
-
}, Record<string,
|
|
148
|
+
}, Record<string, xstate603.AnyActorRef | undefined>, xstate603.StateValue, string, unknown, any, any>, {
|
|
149
149
|
type: "START";
|
|
150
150
|
} | {
|
|
151
151
|
type: "CAPTURE";
|
|
@@ -157,7 +157,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
157
157
|
type: "RETRY";
|
|
158
158
|
} | {
|
|
159
159
|
type: "CLOSE";
|
|
160
|
-
},
|
|
160
|
+
}, xstate603.AnyEventObject>;
|
|
161
161
|
}) => {
|
|
162
162
|
config: DocumentUploadConfig;
|
|
163
163
|
stream: undefined;
|
|
@@ -227,7 +227,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
227
227
|
} | {
|
|
228
228
|
type: "CLOSE";
|
|
229
229
|
};
|
|
230
|
-
self:
|
|
230
|
+
self: xstate603.ActorRef<xstate603.MachineSnapshot<DocumentUploadContext, {
|
|
231
231
|
type: "START";
|
|
232
232
|
} | {
|
|
233
233
|
type: "CAPTURE";
|
|
@@ -239,7 +239,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
239
239
|
type: "RETRY";
|
|
240
240
|
} | {
|
|
241
241
|
type: "CLOSE";
|
|
242
|
-
}, Record<string,
|
|
242
|
+
}, Record<string, xstate603.AnyActorRef>, xstate603.StateValue, string, unknown, any, any>, {
|
|
243
243
|
type: "START";
|
|
244
244
|
} | {
|
|
245
245
|
type: "CAPTURE";
|
|
@@ -251,7 +251,7 @@ declare const documentUploadMachine: xstate397.StateMachine<DocumentUploadContex
|
|
|
251
251
|
type: "RETRY";
|
|
252
252
|
} | {
|
|
253
253
|
type: "CLOSE";
|
|
254
|
-
},
|
|
254
|
+
}, xstate603.AnyEventObject>;
|
|
255
255
|
}) => {
|
|
256
256
|
imageBase64: string;
|
|
257
257
|
documentType: string;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -3,18 +3,18 @@ import "./api-DsbUi7TO.esm.js";
|
|
|
3
3
|
import { n as eventModuleNames, o as topLevelStateName, s as createManagerInstrumentation } from "./events-1wxZ97yf.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
5
|
import "./stats-BVy52wLy.esm.js";
|
|
6
|
-
import "./sessionInitializer-
|
|
6
|
+
import "./sessionInitializer-DfN3wUch.esm.js";
|
|
7
7
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
8
8
|
import "./platform-0Ot-bF_a.esm.js";
|
|
9
9
|
import "./getBrowser-1yNcfFZR.esm.js";
|
|
10
10
|
import "./tri-CFAPtAUM.esm.js";
|
|
11
11
|
import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
12
12
|
import "./apiError-DkOXfFBu.esm.js";
|
|
13
|
-
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-
|
|
13
|
+
import { a as SUPPORTED_COUNTRIES, i as DEV_ONLY_COUNTRIES, n as toEkybConfig, o as isSupportedCountry, r as ALL_COUNTRIES, t as ekybMachine } from "./ekybStateMachine-D5vj8UG_.esm.js";
|
|
14
14
|
import "./addressSearch-D7msRieq.esm.js";
|
|
15
15
|
import "./session-CLsU2Jnb.esm.js";
|
|
16
16
|
import "./videoSelfieSteps-Djpv7cjb.esm.js";
|
|
17
|
-
import "./flowServices-
|
|
17
|
+
import "./flowServices-CYMfu_12.esm.js";
|
|
18
18
|
|
|
19
19
|
//#region src/modules/ekyb/ekybActor.ts
|
|
20
20
|
/**
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
|
2
2
|
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
3
3
|
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
4
4
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-D7msRieq.esm.js";
|
|
5
|
-
import { t as getFlow } from "./flowServices-
|
|
5
|
+
import { t as getFlow } from "./flowServices-CYMfu_12.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
const UBO_INPUT_LIMIT = 8;
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -19,18 +19,18 @@ import "./StreamCanvasCapture-DHaWferF.js";
|
|
|
19
19
|
import "./deepsightService-BuTOFTr8.js";
|
|
20
20
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-4juKfrHG.js";
|
|
21
21
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BeT6tNZm.js";
|
|
22
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
23
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-
|
|
22
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-2EPNWwaG.js";
|
|
23
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-Bg7WqgVy.js";
|
|
24
24
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-CoqODZx5.js";
|
|
25
25
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-CKZkE7Wo.js";
|
|
26
26
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CMS4q_r6.js";
|
|
27
27
|
import "./otp-B1YeyRXu.js";
|
|
28
28
|
import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-CwuXtVu6.js";
|
|
29
29
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-_KtitbUA.js";
|
|
30
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
30
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BNf21Y6b.js";
|
|
31
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-OLKVsG2Z.js";
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
33
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-s6xcax0K.js";
|
|
33
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-CXtyyf3I.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-dv29o_LS.js";
|
|
35
35
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-DaHYFkVO.js";
|
|
36
36
|
|
|
@@ -4,7 +4,7 @@ import "./api-DsbUi7TO.esm.js";
|
|
|
4
4
|
import "./events-1wxZ97yf.esm.js";
|
|
5
5
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
6
6
|
import "./stats-BVy52wLy.esm.js";
|
|
7
|
-
import { c as IpifyProvider, l as FingerprintProvider, t as getDisableIpify, u as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
7
|
+
import { c as IpifyProvider, l as FingerprintProvider, t as getDisableIpify, u as getDeviceFingerprintInfo } from "./sessionInitializer-DfN3wUch.esm.js";
|
|
8
8
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
9
9
|
import "./platform-0Ot-bF_a.esm.js";
|
|
10
10
|
import "./getBrowser-1yNcfFZR.esm.js";
|
|
@@ -14,15 +14,15 @@ import "./urlUtils-CpiYwn7w.esm.js";
|
|
|
14
14
|
import "./apiError-DkOXfFBu.esm.js";
|
|
15
15
|
import "./antifraudStateMachine-BQVw46N5.esm.js";
|
|
16
16
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-5KA84wtF.esm.js";
|
|
17
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
17
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CoQ5A9Il.esm.js";
|
|
18
18
|
import "./wasmDsFlagSync-Ch0mFJNT.esm.js";
|
|
19
19
|
import "./BrowserVisibilityObserverProvider-GBS6XSii.esm.js";
|
|
20
20
|
import "./MotionSensorProvider-D95kOKVK.esm.js";
|
|
21
21
|
import "./permissionServices-BElIOcoJ.esm.js";
|
|
22
22
|
import "./camera-CxxXV0VN.esm.js";
|
|
23
|
-
import "./faceCaptureManagerFactory-
|
|
23
|
+
import "./faceCaptureManagerFactory-B65bYWfD.esm.js";
|
|
24
24
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-fZsibQTR.esm.js";
|
|
25
|
-
import "./onDeviceFaceResults-
|
|
25
|
+
import "./onDeviceFaceResults-CAfvpjnC.esm.js";
|
|
26
26
|
import "./ITimerCapability-DJ73P4RK.esm.js";
|
|
27
27
|
import "./canvas-Pi10hG_l.esm.js";
|
|
28
28
|
import "./backCameraStream-ChrMTJv-.esm.js";
|
|
@@ -34,10 +34,10 @@ import "./types-BKLb3C42.esm.js";
|
|
|
34
34
|
import "./createFaceAvatar-BZSg2MNo.esm.js";
|
|
35
35
|
import "./StreamCanvasCapture-CAqUdVkM.esm.js";
|
|
36
36
|
import "./permissionGuards-BPZGWaL4.esm.js";
|
|
37
|
-
import "./recordingService-
|
|
37
|
+
import "./recordingService-Df_A6oXO.esm.js";
|
|
38
38
|
import "./mediaRecorderOptions-CClCKAiF.esm.js";
|
|
39
|
-
import "./authenticationStateMachine-
|
|
40
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
39
|
+
import "./authenticationStateMachine-CDG0SMYg.esm.js";
|
|
40
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-DuMSpelF.esm.js";
|
|
41
41
|
import "./consentStateMachine-BOkVFiU7.esm.js";
|
|
42
42
|
import { n as createConsentManagerFromActor } from "./consentManager-BwNu-uC-.esm.js";
|
|
43
43
|
import { n as createCpfOcrManagerFromActor } from "./cpfOcrManager-9eM4z4o7.esm.js";
|
|
@@ -51,11 +51,11 @@ import "./session-CLsU2Jnb.esm.js";
|
|
|
51
51
|
import "./emailStateMachine-CbmKFVSi.esm.js";
|
|
52
52
|
import "./otp-uaXiKt_R.esm.js";
|
|
53
53
|
import { n as createEmailManagerFromActor } from "./emailManager-B9Vrv3Ma.esm.js";
|
|
54
|
-
import "./selfieStateMachine-
|
|
55
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
56
|
-
import "./idCaptureStateMachine-
|
|
54
|
+
import "./selfieStateMachine-CiMhj8YP.esm.js";
|
|
55
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-CtS5wYEo.esm.js";
|
|
56
|
+
import "./idCaptureStateMachine-BqjYsLFf.esm.js";
|
|
57
57
|
import "./idCaptureDefaults-CZajItdO.esm.js";
|
|
58
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
58
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Cq1DSv6P.esm.js";
|
|
59
59
|
import "./phoneStateMachine-DjFGWMjQ.esm.js";
|
|
60
60
|
import { n as createPhoneManagerFromActor } from "./phoneManager-CRblfdcI.esm.js";
|
|
61
61
|
import "./identityReuseStateMachine-Bp-zONoV.esm.js";
|
package/dist/{faceCaptureManagerFactory-s4wRwMou.esm.js → faceCaptureManagerFactory-B65bYWfD.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as topLevelStateName, r as eventScreenNames, s as createManagerInstrumentation } from "./events-1wxZ97yf.esm.js";
|
|
2
2
|
import { l as createManager } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
3
|
-
import { n as concealmentToAvatar } from "./faceCaptureSetup-
|
|
3
|
+
import { n as concealmentToAvatar } from "./faceCaptureSetup-CoQ5A9Il.esm.js";
|
|
4
4
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Ch0mFJNT.esm.js";
|
|
5
5
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-GBS6XSii.esm.js";
|
|
6
6
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BElIOcoJ.esm.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as getToken } from "./api-DsbUi7TO.esm.js";
|
|
2
2
|
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
3
3
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BElIOcoJ.esm.js";
|
|
4
|
-
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-
|
|
4
|
+
import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-CAfvpjnC.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BKLb3C42.esm.js";
|
|
6
6
|
import { t as createFaceAvatar } from "./createFaceAvatar-BZSg2MNo.esm.js";
|
|
7
7
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CAqUdVkM.esm.js";
|
|
8
8
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BPZGWaL4.esm.js";
|
|
9
|
-
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-
|
|
9
|
+
import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-Df_A6oXO.esm.js";
|
|
10
10
|
|
|
11
11
|
//#region src/internal/avatar/concealment.ts
|
|
12
12
|
/**
|
package/dist/flow.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BUgeB
|
|
|
10
10
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BOSTlAWo.js";
|
|
11
11
|
import { o as FlowEventSubscribable } from "./index-DrpWp15Z.js";
|
|
12
12
|
import { n as ModuleRegistry } from "./types-D8Cl1N2Z.js";
|
|
13
|
-
import * as
|
|
13
|
+
import * as xstate1137 from "xstate";
|
|
14
14
|
|
|
15
15
|
//#region src/modules/flow/flowUtils.d.ts
|
|
16
16
|
type NormalizeFlowModulesOptions = {
|
|
@@ -62,7 +62,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
|
62
62
|
declare const getFlow: GetFlow;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/modules/flow/noOpFlowModuleMachine.d.ts
|
|
65
|
-
declare const noOpFlowModuleMachine:
|
|
65
|
+
declare const noOpFlowModuleMachine: xstate1137.StateMachine<xstate1137.MachineContext, xstate1137.AnyEventObject, {}, never, never, never, never, "finished", string, xstate1137.NonReducibleUnknown, xstate1137.NonReducibleUnknown, xstate1137.EventObject, xstate1137.MetaObject, {
|
|
66
66
|
readonly id: "noOpFlowModule";
|
|
67
67
|
readonly initial: "finished";
|
|
68
68
|
readonly states: {
|
package/dist/flow.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./api-DsbUi7TO.esm.js";
|
|
|
3
3
|
import { g as addEvent } from "./events-1wxZ97yf.esm.js";
|
|
4
4
|
import "./endpoints-CwrFQfW7.esm.js";
|
|
5
5
|
import "./stats-BVy52wLy.esm.js";
|
|
6
|
-
import "./sessionInitializer-
|
|
6
|
+
import "./sessionInitializer-DfN3wUch.esm.js";
|
|
7
7
|
import "./browserSimulation-CWJhFPZ2.esm.js";
|
|
8
8
|
import "./platform-0Ot-bF_a.esm.js";
|
|
9
9
|
import "./getBrowser-1yNcfFZR.esm.js";
|
|
@@ -13,7 +13,7 @@ import "./apiError-DkOXfFBu.esm.js";
|
|
|
13
13
|
import "./types-BKLb3C42.esm.js";
|
|
14
14
|
import "./session-CLsU2Jnb.esm.js";
|
|
15
15
|
import "./videoSelfieSteps-Djpv7cjb.esm.js";
|
|
16
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
16
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CYMfu_12.esm.js";
|
|
17
17
|
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-B6P6_EF3.esm.js";
|
|
18
18
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-kojSv3MH.esm.js";
|
|
19
19
|
|
|
@@ -26,6 +26,19 @@ const noOpFlowModuleMachine = setup({}).createMachine({
|
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/modules/flow/flowStateMachine.ts
|
|
29
|
+
/**
|
|
30
|
+
* Flow-level `ds` (Deepsight) lives on the flow, not on the module, so it has
|
|
31
|
+
* to be merged into every module config this machine hands out — otherwise the
|
|
32
|
+
* flag never reaches `loadDeepsightSession` and Deepsight is silently disabled
|
|
33
|
+
* for the whole flow. Mirrors `getModuleConfig` in
|
|
34
|
+
* `orchestratedFlowStateMachine`.
|
|
35
|
+
*/
|
|
36
|
+
function withFlowDsFlag(module, flow) {
|
|
37
|
+
return {
|
|
38
|
+
...module?.configuration,
|
|
39
|
+
ds: flow?.ds
|
|
40
|
+
};
|
|
41
|
+
}
|
|
29
42
|
const flowMachine = setup({
|
|
30
43
|
types: {
|
|
31
44
|
context: {},
|
|
@@ -52,7 +65,7 @@ const flowMachine = setup({
|
|
|
52
65
|
steps: (flow.flowModules ?? []).map((m) => m.key),
|
|
53
66
|
currentStepIndex: (flow.flowModules ?? []).length > 0 ? 0 : -1,
|
|
54
67
|
currentStep: flow.flowModules?.[0]?.key,
|
|
55
|
-
config: flow.flowModules?.[0]
|
|
68
|
+
config: withFlowDsFlag(flow.flowModules?.[0], flow)
|
|
56
69
|
};
|
|
57
70
|
}),
|
|
58
71
|
setError: assign(({ event }) => ({ error: String(event.error) })),
|
|
@@ -62,7 +75,7 @@ const flowMachine = setup({
|
|
|
62
75
|
return {
|
|
63
76
|
currentStepIndex: nextIndex,
|
|
64
77
|
currentStep: module?.key,
|
|
65
|
-
config: module
|
|
78
|
+
config: withFlowDsFlag(module, context.flow)
|
|
66
79
|
};
|
|
67
80
|
}),
|
|
68
81
|
decrementStep: assign(({ context }) => {
|
|
@@ -71,7 +84,7 @@ const flowMachine = setup({
|
|
|
71
84
|
return {
|
|
72
85
|
currentStepIndex: prevIndex,
|
|
73
86
|
currentStep: module?.key,
|
|
74
|
-
config: module
|
|
87
|
+
config: withFlowDsFlag(module, context.flow)
|
|
75
88
|
};
|
|
76
89
|
})
|
|
77
90
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
3
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
3
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DfN3wUch.esm.js";
|
|
4
4
|
import { n as toIncodeApiError } from "./apiError-DkOXfFBu.esm.js";
|
|
5
5
|
import { r as videoSelfieWasmPipelines } from "./videoSelfieSteps-Djpv7cjb.esm.js";
|
|
6
6
|
|
package/dist/home.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import "./types-BgjMAEXl.js";
|
|
|
6
6
|
import "./canvas-90BqS0NF.js";
|
|
7
7
|
import "./createFaceAvatar-CpdYp9Iy.js";
|
|
8
8
|
import { t as EmptyConfig } from "./types-BUgeB2X6.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as xstate403 from "xstate";
|
|
10
10
|
|
|
11
11
|
//#region src/modules/home/types.d.ts
|
|
12
12
|
type HomeConfig = EmptyConfig;
|
|
@@ -38,41 +38,41 @@ type HomeContext = {
|
|
|
38
38
|
type HomeInput = {
|
|
39
39
|
config: EmptyConfig;
|
|
40
40
|
};
|
|
41
|
-
declare const homeMachine:
|
|
41
|
+
declare const homeMachine: xstate403.StateMachine<HomeContext, {
|
|
42
42
|
type: "LOAD";
|
|
43
43
|
} | {
|
|
44
44
|
type: "COMPLETE";
|
|
45
45
|
} | {
|
|
46
46
|
type: "RESET";
|
|
47
|
-
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput,
|
|
47
|
+
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate403.NonReducibleUnknown, xstate403.EventObject, xstate403.MetaObject, {
|
|
48
48
|
readonly id: "home";
|
|
49
49
|
readonly initial: "idle";
|
|
50
50
|
readonly context: ({
|
|
51
51
|
input
|
|
52
52
|
}: {
|
|
53
53
|
spawn: {
|
|
54
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never):
|
|
55
|
-
<TLogic extends
|
|
54
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): xstate403.ActorRefFromLogic<never>;
|
|
55
|
+
<TLogic extends xstate403.AnyActorLogic>(src: TLogic, ...[options]: xstate403.ConditionalRequired<[options?: ({
|
|
56
56
|
id?: never;
|
|
57
57
|
systemId?: string;
|
|
58
|
-
input?:
|
|
58
|
+
input?: xstate403.InputFrom<TLogic> | undefined;
|
|
59
59
|
syncSnapshot?: boolean;
|
|
60
|
-
} & { [K in
|
|
60
|
+
} & { [K in xstate403.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate403.IsNotNever<xstate403.RequiredLogicInput<TLogic>>>): xstate403.ActorRefFromLogic<TLogic>;
|
|
61
61
|
};
|
|
62
62
|
input: HomeInput;
|
|
63
|
-
self:
|
|
63
|
+
self: xstate403.ActorRef<xstate403.MachineSnapshot<HomeContext, {
|
|
64
64
|
type: "LOAD";
|
|
65
65
|
} | {
|
|
66
66
|
type: "COMPLETE";
|
|
67
67
|
} | {
|
|
68
68
|
type: "RESET";
|
|
69
|
-
}, Record<string,
|
|
69
|
+
}, Record<string, xstate403.AnyActorRef | undefined>, xstate403.StateValue, string, unknown, any, any>, {
|
|
70
70
|
type: "LOAD";
|
|
71
71
|
} | {
|
|
72
72
|
type: "COMPLETE";
|
|
73
73
|
} | {
|
|
74
74
|
type: "RESET";
|
|
75
|
-
},
|
|
75
|
+
}, xstate403.AnyEventObject>;
|
|
76
76
|
}) => {
|
|
77
77
|
config: EmptyConfig;
|
|
78
78
|
};
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./StateMachine-D5WO6lHS.js";
|
|
2
2
|
import "./Manager-goNPc_h_.js";
|
|
3
3
|
import "./Actor-BwgmOPkb.js";
|
|
4
|
-
import { c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-
|
|
4
|
+
import { c as IdOcrConfig, d as UpdateOcrDataParams, f as ValidationRule, l as OcrData, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager, u as OcrFieldConfig } from "./idOcrManager-CXtyyf3I.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
7
7
|
declare const OCR_FIELDS: OcrFieldConfig[];
|