@incodetech/core 0.0.0-dev-20260624-b4a7d4cb → 0.0.0-dev-20260625-d0b37b1e
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/ae-signature.d.ts +1 -1
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-CWme-QZE.d.ts → consentManager-B4V_yYxG.d.ts} +47 -47
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-DS3At60f.d.ts → cpfOcrManager-BWAxB7u-.d.ts} +17 -17
- package/dist/document-upload.d.ts +40 -40
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-pLPP6-43.esm.js → ekybStateMachine-9tKuUA6e.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +9 -4
- package/dist/flow.esm.js +9 -3
- package/dist/{flowServices-DS6xavyw.esm.js → flowServices-DvpNlpPG.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +55 -55
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-7fzPshJ9.esm.js → idCaptureManager-BompNgq8.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-CqOIgzbV.esm.js → idCaptureStateMachine-Dhzgl3mX.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-BWflNP-S.d.ts → identityReuseManager-BAd_bDnZ.d.ts} +31 -31
- package/dist/{index-CZia19dI.d.ts → index-CJ2M0GG9.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CtIhLXvP.d.ts → mandatoryConsentManager-DzTXtPrr.d.ts} +47 -47
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-cNqVNoiR.esm.js → sessionInitializer-BYi2q9WC.esm.js} +1 -1
- package/dist/{setup-CE71Z1pk.esm.js → setup-Bk_aB8AH.esm.js} +1 -1
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +165 -161
- package/dist/workflow.esm.js +8 -4
- package/package.json +3 -3
|
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-B2OEDYqf.js";
|
|
|
2
2
|
import "./Actor-fIPLXfoi.js";
|
|
3
3
|
import "./camera-biGPWlmx.js";
|
|
4
4
|
import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-Z9wv19v2.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as xstate1394 from "xstate";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/document-upload/documentUploadStateMachine.d.ts
|
|
8
|
-
declare const documentUploadMachine:
|
|
8
|
+
declare const documentUploadMachine: xstate1394.StateMachine<DocumentUploadContext, {
|
|
9
9
|
type: "START";
|
|
10
10
|
} | {
|
|
11
11
|
type: "CAPTURE";
|
|
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "CLOSE";
|
|
20
20
|
}, {
|
|
21
|
-
[x: string]:
|
|
21
|
+
[x: string]: xstate1394.ActorRefFromLogic<xstate1394.PromiseActorLogic<MediaStream, void, xstate1394.EventObject>> | xstate1394.ActorRefFromLogic<xstate1394.PromiseActorLogic<void, {
|
|
22
22
|
imageBase64: string;
|
|
23
23
|
documentType: string;
|
|
24
24
|
onProgress: (progress: number) => void;
|
|
25
|
-
},
|
|
26
|
-
},
|
|
25
|
+
}, xstate1394.EventObject>> | undefined;
|
|
26
|
+
}, xstate1394.Values<{
|
|
27
27
|
uploadDocument: {
|
|
28
28
|
src: "uploadDocument";
|
|
29
|
-
logic:
|
|
29
|
+
logic: xstate1394.PromiseActorLogic<void, {
|
|
30
30
|
imageBase64: string;
|
|
31
31
|
documentType: string;
|
|
32
32
|
onProgress: (progress: number) => void;
|
|
33
|
-
},
|
|
33
|
+
}, xstate1394.EventObject>;
|
|
34
34
|
id: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
initCamera: {
|
|
37
37
|
src: "initCamera";
|
|
38
|
-
logic:
|
|
38
|
+
logic: xstate1394.PromiseActorLogic<MediaStream, void, xstate1394.EventObject>;
|
|
39
39
|
id: string | undefined;
|
|
40
40
|
};
|
|
41
|
-
}>,
|
|
41
|
+
}>, xstate1394.Values<{
|
|
42
42
|
setStream: {
|
|
43
43
|
type: "setStream";
|
|
44
|
-
params:
|
|
44
|
+
params: xstate1394.NonReducibleUnknown;
|
|
45
45
|
};
|
|
46
46
|
setProgress: {
|
|
47
47
|
type: "setProgress";
|
|
48
|
-
params:
|
|
48
|
+
params: xstate1394.NonReducibleUnknown;
|
|
49
49
|
};
|
|
50
50
|
clearError: {
|
|
51
51
|
type: "clearError";
|
|
52
|
-
params:
|
|
52
|
+
params: xstate1394.NonReducibleUnknown;
|
|
53
53
|
};
|
|
54
54
|
stopStream: {
|
|
55
55
|
type: "stopStream";
|
|
56
|
-
params:
|
|
56
|
+
params: xstate1394.NonReducibleUnknown;
|
|
57
57
|
};
|
|
58
58
|
setError: {
|
|
59
59
|
type: "setError";
|
|
60
|
-
params:
|
|
60
|
+
params: xstate1394.NonReducibleUnknown;
|
|
61
61
|
};
|
|
62
62
|
setImageAndClearError: {
|
|
63
63
|
type: "setImageAndClearError";
|
|
64
|
-
params:
|
|
64
|
+
params: xstate1394.NonReducibleUnknown;
|
|
65
65
|
};
|
|
66
|
-
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput,
|
|
66
|
+
}>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate1394.NonReducibleUnknown, xstate1394.EventObject, xstate1394.MetaObject, {
|
|
67
67
|
readonly id: "documentUpload";
|
|
68
68
|
readonly initial: "idle";
|
|
69
69
|
readonly context: ({
|
|
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
72
72
|
spawn: {
|
|
73
73
|
<TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
|
|
74
74
|
src: "uploadDocument";
|
|
75
|
-
logic:
|
|
75
|
+
logic: xstate1394.PromiseActorLogic<void, {
|
|
76
76
|
imageBase64: string;
|
|
77
77
|
documentType: string;
|
|
78
78
|
onProgress: (progress: number) => void;
|
|
79
|
-
},
|
|
79
|
+
}, xstate1394.EventObject>;
|
|
80
80
|
id: string | undefined;
|
|
81
81
|
} extends infer T ? T extends {
|
|
82
82
|
src: "uploadDocument";
|
|
83
|
-
logic:
|
|
83
|
+
logic: xstate1394.PromiseActorLogic<void, {
|
|
84
84
|
imageBase64: string;
|
|
85
85
|
documentType: string;
|
|
86
86
|
onProgress: (progress: number) => void;
|
|
87
|
-
},
|
|
87
|
+
}, xstate1394.EventObject>;
|
|
88
88
|
id: string | undefined;
|
|
89
89
|
} ? T extends {
|
|
90
90
|
src: TSrc;
|
|
91
|
-
} ?
|
|
91
|
+
} ? xstate1394.ConditionalRequired<[options?: ({
|
|
92
92
|
id?: T["id"] | undefined;
|
|
93
93
|
systemId?: string;
|
|
94
|
-
input?:
|
|
94
|
+
input?: xstate1394.InputFrom<T["logic"]> | undefined;
|
|
95
95
|
syncSnapshot?: boolean;
|
|
96
|
-
} & { [K in
|
|
96
|
+
} & { [K in xstate1394.RequiredActorOptions<T>]: unknown }) | undefined], xstate1394.IsNotNever<xstate1394.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
97
97
|
src: "initCamera";
|
|
98
|
-
logic:
|
|
98
|
+
logic: xstate1394.PromiseActorLogic<MediaStream, void, xstate1394.EventObject>;
|
|
99
99
|
id: string | undefined;
|
|
100
100
|
} extends infer T_1 ? T_1 extends {
|
|
101
101
|
src: "initCamera";
|
|
102
|
-
logic:
|
|
102
|
+
logic: xstate1394.PromiseActorLogic<MediaStream, void, xstate1394.EventObject>;
|
|
103
103
|
id: string | undefined;
|
|
104
104
|
} ? T_1 extends {
|
|
105
105
|
src: TSrc;
|
|
106
|
-
} ?
|
|
106
|
+
} ? xstate1394.ConditionalRequired<[options?: ({
|
|
107
107
|
id?: T_1["id"] | undefined;
|
|
108
108
|
systemId?: string;
|
|
109
|
-
input?:
|
|
109
|
+
input?: xstate1394.InputFrom<T_1["logic"]> | undefined;
|
|
110
110
|
syncSnapshot?: boolean;
|
|
111
|
-
} & { [K_1 in
|
|
111
|
+
} & { [K_1 in xstate1394.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1394.IsNotNever<xstate1394.RequiredActorOptions<T_1>>> : never : never : never)): xstate1394.ActorRefFromLogic<xstate1394.GetConcreteByKey<xstate1394.Values<{
|
|
112
112
|
uploadDocument: {
|
|
113
113
|
src: "uploadDocument";
|
|
114
|
-
logic:
|
|
114
|
+
logic: xstate1394.PromiseActorLogic<void, {
|
|
115
115
|
imageBase64: string;
|
|
116
116
|
documentType: string;
|
|
117
117
|
onProgress: (progress: number) => void;
|
|
118
|
-
},
|
|
118
|
+
}, xstate1394.EventObject>;
|
|
119
119
|
id: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
initCamera: {
|
|
122
122
|
src: "initCamera";
|
|
123
|
-
logic:
|
|
123
|
+
logic: xstate1394.PromiseActorLogic<MediaStream, void, xstate1394.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
};
|
|
126
126
|
}>, "src", TSrc>["logic"]>;
|
|
127
|
-
<TLogic extends
|
|
127
|
+
<TLogic extends xstate1394.AnyActorLogic>(src: TLogic, ...[options]: xstate1394.ConditionalRequired<[options?: ({
|
|
128
128
|
id?: never;
|
|
129
129
|
systemId?: string;
|
|
130
|
-
input?:
|
|
130
|
+
input?: xstate1394.InputFrom<TLogic> | undefined;
|
|
131
131
|
syncSnapshot?: boolean;
|
|
132
|
-
} & { [K in
|
|
132
|
+
} & { [K in xstate1394.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1394.IsNotNever<xstate1394.RequiredLogicInput<TLogic>>>): xstate1394.ActorRefFromLogic<TLogic>;
|
|
133
133
|
};
|
|
134
134
|
input: DocumentUploadInput;
|
|
135
|
-
self:
|
|
135
|
+
self: xstate1394.ActorRef<xstate1394.MachineSnapshot<DocumentUploadContext, {
|
|
136
136
|
type: "START";
|
|
137
137
|
} | {
|
|
138
138
|
type: "CAPTURE";
|
|
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
144
144
|
type: "RETRY";
|
|
145
145
|
} | {
|
|
146
146
|
type: "CLOSE";
|
|
147
|
-
}, Record<string,
|
|
147
|
+
}, Record<string, xstate1394.AnyActorRef | undefined>, xstate1394.StateValue, string, unknown, any, any>, {
|
|
148
148
|
type: "START";
|
|
149
149
|
} | {
|
|
150
150
|
type: "CAPTURE";
|
|
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
156
156
|
type: "RETRY";
|
|
157
157
|
} | {
|
|
158
158
|
type: "CLOSE";
|
|
159
|
-
},
|
|
159
|
+
}, xstate1394.AnyEventObject>;
|
|
160
160
|
}) => {
|
|
161
161
|
config: DocumentUploadConfig;
|
|
162
162
|
stream: undefined;
|
|
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "CLOSE";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate1394.ActorRef<xstate1394.MachineSnapshot<DocumentUploadContext, {
|
|
230
230
|
type: "START";
|
|
231
231
|
} | {
|
|
232
232
|
type: "CAPTURE";
|
|
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
238
238
|
type: "RETRY";
|
|
239
239
|
} | {
|
|
240
240
|
type: "CLOSE";
|
|
241
|
-
}, Record<string,
|
|
241
|
+
}, Record<string, xstate1394.AnyActorRef>, xstate1394.StateValue, string, unknown, any, any>, {
|
|
242
242
|
type: "START";
|
|
243
243
|
} | {
|
|
244
244
|
type: "CAPTURE";
|
|
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate1336.StateMachine<DocumentUploadConte
|
|
|
250
250
|
type: "RETRY";
|
|
251
251
|
} | {
|
|
252
252
|
type: "CLOSE";
|
|
253
|
-
},
|
|
253
|
+
}, xstate1394.AnyEventObject>;
|
|
254
254
|
}) => {
|
|
255
255
|
imageBase64: string;
|
|
256
256
|
documentType: string;
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -5,16 +5,16 @@ import "./endpoints-BM2_j_IE.esm.js";
|
|
|
5
5
|
import "./stats-DntyIiGr.esm.js";
|
|
6
6
|
import "./IpifyProvider-oZf7Ke1O.esm.js";
|
|
7
7
|
import "./browserSimulation-CGjpdNA1.esm.js";
|
|
8
|
-
import "./sessionInitializer-
|
|
8
|
+
import "./sessionInitializer-BYi2q9WC.esm.js";
|
|
9
9
|
import "./platform-BfoqeM61.esm.js";
|
|
10
10
|
import "./getBrowser-Dv8LZyHE.esm.js";
|
|
11
11
|
import "./tri-CtxWthxz.esm.js";
|
|
12
12
|
import { c as createManager, s as createActor } from "./xstate.esm-Dkm1jy5u.esm.js";
|
|
13
13
|
import "./apiError-D-GTvFrH.esm.js";
|
|
14
|
-
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-
|
|
14
|
+
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-9tKuUA6e.esm.js";
|
|
15
15
|
import "./addressSearch-BH96a3fq.esm.js";
|
|
16
16
|
import "./session-Be_IA1e0.esm.js";
|
|
17
|
-
import "./flowServices-
|
|
17
|
+
import "./flowServices-DvpNlpPG.esm.js";
|
|
18
18
|
|
|
19
19
|
//#region src/modules/ekyb/ekybActor.ts
|
|
20
20
|
/**
|
|
@@ -2,7 +2,7 @@ import { t as api } from "./api-DUZwyz0o.esm.js";
|
|
|
2
2
|
import { t as endpoints } from "./endpoints-BM2_j_IE.esm.js";
|
|
3
3
|
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-Dkm1jy5u.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-BH96a3fq.esm.js";
|
|
5
|
-
import { t as getFlow } from "./flowServices-
|
|
5
|
+
import { t as getFlow } from "./flowServices-DvpNlpPG.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ekyb/ekybConstants.ts
|
|
8
8
|
const UBO_INPUT_LIMIT = 8;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-B2OEDYqf.js";
|
|
2
2
|
import "./Actor-fIPLXfoi.js";
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, d as ElectronicSignatureVariant, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, h as getConsentKeys, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, o as AeConsentKey, p as QeConsentKey, r as createElectronicSignatureManager, s as ConsentChecks, t as ElectronicSignatureManager, u as ElectronicSignatureDocument } from "./index-CJ2M0GG9.js";
|
|
4
4
|
export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -12,16 +12,16 @@ import "./types-F0IXbaCB.js";
|
|
|
12
12
|
import "./StreamCanvasCapture-Ctgyx-oD.js";
|
|
13
13
|
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-imY2dAcH.js";
|
|
14
14
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Dve7mGLe.js";
|
|
15
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
16
|
-
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-
|
|
15
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-B4V_yYxG.js";
|
|
16
|
+
import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-BWAxB7u-.js";
|
|
17
17
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-Bt6CVD8b.js";
|
|
18
18
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-C6D2u4mQ.js";
|
|
19
19
|
import "./otp-BHJnjEEc.js";
|
|
20
20
|
import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-BvGUSN2e.js";
|
|
21
21
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-TSq1Ief6.js";
|
|
22
|
-
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-
|
|
22
|
+
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-BAd_bDnZ.js";
|
|
23
23
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-BXc6-DJv.js";
|
|
24
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
24
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DzTXtPrr.js";
|
|
25
25
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-yOHAmwg-.js";
|
|
26
26
|
|
|
27
27
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
@@ -6,7 +6,7 @@ import "./endpoints-BM2_j_IE.esm.js";
|
|
|
6
6
|
import "./stats-DntyIiGr.esm.js";
|
|
7
7
|
import { t as IpifyProvider } from "./IpifyProvider-oZf7Ke1O.esm.js";
|
|
8
8
|
import "./browserSimulation-CGjpdNA1.esm.js";
|
|
9
|
-
import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
+
import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-BYi2q9WC.esm.js";
|
|
10
10
|
import "./platform-BfoqeM61.esm.js";
|
|
11
11
|
import "./getBrowser-Dv8LZyHE.esm.js";
|
|
12
12
|
import "./tri-CtxWthxz.esm.js";
|
|
@@ -45,8 +45,8 @@ import "./otp-D87RTwrx.esm.js";
|
|
|
45
45
|
import { n as createEmailManagerFromActor } from "./emailManager-DxHjAe5u.esm.js";
|
|
46
46
|
import "./selfieStateMachine-D2Q0uwDK.esm.js";
|
|
47
47
|
import { n as createSelfieManagerFromActor } from "./selfieManager-BRL6c_Oc.esm.js";
|
|
48
|
-
import "./idCaptureStateMachine-
|
|
49
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
48
|
+
import "./idCaptureStateMachine-Dhzgl3mX.esm.js";
|
|
49
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BompNgq8.esm.js";
|
|
50
50
|
import "./phoneStateMachine-W3c6Z8sj.esm.js";
|
|
51
51
|
import { n as createPhoneManagerFromActor } from "./phoneManager-Blt4Oc2P.esm.js";
|
|
52
52
|
import "./identityReuseStateMachine-CSQfZOqD.esm.js";
|
package/dist/flow.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-Dv-9W
|
|
|
7
7
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-W_gSMyD5.js";
|
|
8
8
|
import { o as FlowEventSubscribable } from "./index-CdqrfCh3.js";
|
|
9
9
|
import { n as ModuleRegistry } from "./types-DpTWgfKY.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as xstate912 from "xstate";
|
|
11
11
|
|
|
12
12
|
//#region src/modules/flow/flowUtils.d.ts
|
|
13
13
|
type NormalizeFlowModulesOptions = {
|
|
@@ -59,7 +59,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
|
59
59
|
declare const getFlow: GetFlow;
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/modules/flow/noOpFlowModuleMachine.d.ts
|
|
62
|
-
declare const noOpFlowModuleMachine:
|
|
62
|
+
declare const noOpFlowModuleMachine: xstate912.StateMachine<xstate912.MachineContext, xstate912.AnyEventObject, {}, never, never, never, never, "finished", string, xstate912.NonReducibleUnknown, xstate912.NonReducibleUnknown, xstate912.EventObject, xstate912.MetaObject, {
|
|
63
63
|
readonly id: "noOpFlowModule";
|
|
64
64
|
readonly initial: "finished";
|
|
65
65
|
readonly states: {
|
|
@@ -261,6 +261,11 @@ type OrchestratedFlowLoadingState = {
|
|
|
261
261
|
homeScreen: OrchestratedFlowHomeScreen;
|
|
262
262
|
presentation: OrchestratedFlowPresentation;
|
|
263
263
|
};
|
|
264
|
+
type OrchestratedFlowCompletingState = {
|
|
265
|
+
status: 'completing';
|
|
266
|
+
homeScreen: OrchestratedFlowHomeScreen;
|
|
267
|
+
presentation: OrchestratedFlowPresentation;
|
|
268
|
+
};
|
|
264
269
|
type OrchestratedFlowReadyState = {
|
|
265
270
|
status: 'ready';
|
|
266
271
|
flow: Flow;
|
|
@@ -293,7 +298,7 @@ type OrchestratedFlowErrorState = {
|
|
|
293
298
|
homeScreen: OrchestratedFlowHomeScreen;
|
|
294
299
|
presentation: OrchestratedFlowPresentation;
|
|
295
300
|
};
|
|
296
|
-
type OrchestratedFlowState = OrchestratedFlowIdleState | OrchestratedFlowLoadingState | OrchestratedFlowReadyState | OrchestratedFlowFinishedState | OrchestratedFlowErrorState;
|
|
301
|
+
type OrchestratedFlowState = OrchestratedFlowIdleState | OrchestratedFlowLoadingState | OrchestratedFlowCompletingState | OrchestratedFlowReadyState | OrchestratedFlowFinishedState | OrchestratedFlowErrorState;
|
|
297
302
|
type CreateOrchestratedFlowActorOptions = {
|
|
298
303
|
getFlow?: GetFlowFn;
|
|
299
304
|
modules?: ModuleRegistry;
|
|
@@ -373,4 +378,4 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
|
|
|
373
378
|
continueFromHome(): Promise<void>;
|
|
374
379
|
} & FlowEventSubscribable;
|
|
375
380
|
//#endregion
|
|
376
|
-
export { type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, noOpFlowModuleMachine, normalizeFlowModules };
|
|
381
|
+
export { type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, noOpFlowModuleMachine, normalizeFlowModules };
|
package/dist/flow.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./endpoints-BM2_j_IE.esm.js";
|
|
|
5
5
|
import "./stats-DntyIiGr.esm.js";
|
|
6
6
|
import "./IpifyProvider-oZf7Ke1O.esm.js";
|
|
7
7
|
import "./browserSimulation-CGjpdNA1.esm.js";
|
|
8
|
-
import "./sessionInitializer-
|
|
8
|
+
import "./sessionInitializer-BYi2q9WC.esm.js";
|
|
9
9
|
import "./platform-BfoqeM61.esm.js";
|
|
10
10
|
import "./getBrowser-Dv8LZyHE.esm.js";
|
|
11
11
|
import "./tri-CtxWthxz.esm.js";
|
|
@@ -13,7 +13,7 @@ import { a as fromPromise, c as createManager, r as assign, s as createActor, t
|
|
|
13
13
|
import "./apiError-D-GTvFrH.esm.js";
|
|
14
14
|
import "./types-BdVOWGGW.esm.js";
|
|
15
15
|
import "./session-Be_IA1e0.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-DvpNlpPG.esm.js";
|
|
17
17
|
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-D_CsiDZM.esm.js";
|
|
18
18
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-C9G0wfVC.esm.js";
|
|
19
19
|
|
|
@@ -681,7 +681,8 @@ function deriveUiModel(snapshot, mappedStatus, isHomePhase, options) {
|
|
|
681
681
|
function getMappedStatus(snapshot) {
|
|
682
682
|
const { value } = snapshot;
|
|
683
683
|
if (value === "idle") return "idle";
|
|
684
|
-
if (value === "
|
|
684
|
+
if (value === "completing") return "completing";
|
|
685
|
+
if (value === "loading" || value === "resolvingModule" || typeof value === "object") return "loading";
|
|
685
686
|
if (value === "finished") return "finished";
|
|
686
687
|
if (value === "error") return "error";
|
|
687
688
|
return "ready";
|
|
@@ -700,6 +701,11 @@ function mapOrchestratedFlowState(snapshot, uiOptions) {
|
|
|
700
701
|
homeScreen: uiModel.homeScreen,
|
|
701
702
|
presentation: uiModel.presentation
|
|
702
703
|
};
|
|
704
|
+
if (mappedStatus === "completing") return {
|
|
705
|
+
status: "completing",
|
|
706
|
+
homeScreen: uiModel.homeScreen,
|
|
707
|
+
presentation: uiModel.presentation
|
|
708
|
+
};
|
|
703
709
|
if (mappedStatus === "finished") return {
|
|
704
710
|
status: "finished",
|
|
705
711
|
flow: context.flow ?? {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-DUZwyz0o.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-BM2_j_IE.esm.js";
|
|
3
|
-
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-BYi2q9WC.esm.js";
|
|
4
4
|
import { n as toIncodeApiError } from "./apiError-D-GTvFrH.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/flow/flowUtils.ts
|
package/dist/home.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import "./camera-biGPWlmx.js";
|
|
|
3
3
|
import "./types-Z9wv19v2.js";
|
|
4
4
|
import "./types-DYZja-k9.js";
|
|
5
5
|
import { t as EmptyConfig } from "./types-Dv-9WPJX.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate895 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/home/types.d.ts
|
|
9
9
|
type HomeConfig = EmptyConfig;
|
|
@@ -35,41 +35,41 @@ type HomeContext = {
|
|
|
35
35
|
type HomeInput = {
|
|
36
36
|
config: EmptyConfig;
|
|
37
37
|
};
|
|
38
|
-
declare const homeMachine:
|
|
38
|
+
declare const homeMachine: xstate895.StateMachine<HomeContext, {
|
|
39
39
|
type: "LOAD";
|
|
40
40
|
} | {
|
|
41
41
|
type: "COMPLETE";
|
|
42
42
|
} | {
|
|
43
43
|
type: "RESET";
|
|
44
|
-
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput,
|
|
44
|
+
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate895.NonReducibleUnknown, xstate895.EventObject, xstate895.MetaObject, {
|
|
45
45
|
readonly id: "home";
|
|
46
46
|
readonly initial: "idle";
|
|
47
47
|
readonly context: ({
|
|
48
48
|
input
|
|
49
49
|
}: {
|
|
50
50
|
spawn: {
|
|
51
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never):
|
|
52
|
-
<TLogic extends
|
|
51
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): xstate895.ActorRefFromLogic<never>;
|
|
52
|
+
<TLogic extends xstate895.AnyActorLogic>(src: TLogic, ...[options]: xstate895.ConditionalRequired<[options?: ({
|
|
53
53
|
id?: never;
|
|
54
54
|
systemId?: string;
|
|
55
|
-
input?:
|
|
55
|
+
input?: xstate895.InputFrom<TLogic> | undefined;
|
|
56
56
|
syncSnapshot?: boolean;
|
|
57
|
-
} & { [K in
|
|
57
|
+
} & { [K in xstate895.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate895.IsNotNever<xstate895.RequiredLogicInput<TLogic>>>): xstate895.ActorRefFromLogic<TLogic>;
|
|
58
58
|
};
|
|
59
59
|
input: HomeInput;
|
|
60
|
-
self:
|
|
60
|
+
self: xstate895.ActorRef<xstate895.MachineSnapshot<HomeContext, {
|
|
61
61
|
type: "LOAD";
|
|
62
62
|
} | {
|
|
63
63
|
type: "COMPLETE";
|
|
64
64
|
} | {
|
|
65
65
|
type: "RESET";
|
|
66
|
-
}, Record<string,
|
|
66
|
+
}, Record<string, xstate895.AnyActorRef | undefined>, xstate895.StateValue, string, unknown, any, any>, {
|
|
67
67
|
type: "LOAD";
|
|
68
68
|
} | {
|
|
69
69
|
type: "COMPLETE";
|
|
70
70
|
} | {
|
|
71
71
|
type: "RESET";
|
|
72
|
-
},
|
|
72
|
+
}, xstate895.AnyEventObject>;
|
|
73
73
|
}) => {
|
|
74
74
|
config: EmptyConfig;
|
|
75
75
|
};
|