@incodetech/core 0.0.0-dev-20260603-50bbeb7a → 0.0.0-dev-20260604-16565430

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.
Files changed (39) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/consent.d.ts +1 -1
  3. package/dist/{consentManager-CKvXqteP.d.ts → consentManager-B78wrASK.d.ts} +5 -5
  4. package/dist/cpf-ocr.d.ts +1 -1
  5. package/dist/{cpfOcrManager-DUPi3yTh.d.ts → cpfOcrManager-hkCjiBXb.d.ts} +20 -20
  6. package/dist/document-capture.d.ts +71 -71
  7. package/dist/document-upload.d.ts +43 -43
  8. package/dist/ekyb.esm.js +3 -3
  9. package/dist/{ekybStateMachine-W3WyzHfN.esm.js → ekybStateMachine-DcJlgUlK.esm.js} +1 -1
  10. package/dist/electronic-signature.d.ts +1 -1
  11. package/dist/extensibility.d.ts +4 -4
  12. package/dist/extensibility.esm.js +3 -3
  13. package/dist/face-match.d.ts +20 -1
  14. package/dist/face-match.esm.js +2 -2
  15. package/dist/{faceMatchStateMachine-CJjpPtfP.esm.js → faceMatchStateMachine-vJUfrhXF.esm.js} +34 -4
  16. package/dist/flow.d.ts +2 -2
  17. package/dist/flow.esm.js +2 -2
  18. package/dist/{flowServices-ag9foae3.esm.js → flowServices-CGLG6Aps.esm.js} +1 -1
  19. package/dist/home.d.ts +10 -10
  20. package/dist/id-ocr.d.ts +52 -52
  21. package/dist/id-verification.d.ts +25 -25
  22. package/dist/id.esm.js +3 -3
  23. package/dist/{idCaptureManager-Dy3b0R0J.esm.js → idCaptureManager-DMGs1KG_.esm.js} +1 -1
  24. package/dist/{idCaptureStateMachine-BPYJNjsN.esm.js → idCaptureStateMachine-Ds_Pi7au.esm.js} +1 -1
  25. package/dist/identity-reuse.d.ts +1 -1
  26. package/dist/{identityReuseManager-CdS2aBvN.d.ts → identityReuseManager-zcnh4sUs.d.ts} +31 -31
  27. package/dist/{index-B5ffjr3t.d.ts → index-DnSENIXl.d.ts} +126 -126
  28. package/dist/index.esm.js +2 -2
  29. package/dist/mandatory-consent.d.ts +1 -1
  30. package/dist/{mandatoryConsentManager-Di3Lgr-y.d.ts → mandatoryConsentManager-Bmpb5JW-.d.ts} +50 -50
  31. package/dist/qe-signature.d.ts +1 -1
  32. package/dist/session.esm.js +1 -1
  33. package/dist/{sessionInitializer-BbElDRSg.esm.js → sessionInitializer-EyllOMHH.esm.js} +1 -1
  34. package/dist/{setup-Dtysmmvi.esm.js → setup-CypESC5k.esm.js} +1 -1
  35. package/dist/trust-graph.d.ts +2 -2
  36. package/dist/wasm.esm.js +2 -2
  37. package/dist/workflow.d.ts +135 -135
  38. package/dist/workflow.esm.js +5 -5
  39. package/package.json +1 -1
@@ -2,10 +2,10 @@ import { t as Manager } from "./Manager-C6PZlp2a.js";
2
2
  import "./Actor-CcQ_EteO.js";
3
3
  import "./camera-BCAbwFy2.js";
4
4
  import { n as DocumentUploadContext, r as DocumentUploadInput, t as DocumentUploadConfig } from "./types-DGzov-rE.js";
5
- import * as xstate839 from "xstate";
5
+ import * as xstate538 from "xstate";
6
6
 
7
7
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
8
- declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContext, {
8
+ declare const documentUploadMachine: xstate538.StateMachine<DocumentUploadContext, {
9
9
  type: "START";
10
10
  } | {
11
11
  type: "CAPTURE";
@@ -18,52 +18,52 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
18
18
  } | {
19
19
  type: "CLOSE";
20
20
  }, {
21
- [x: string]: xstate839.ActorRefFromLogic<xstate839.PromiseActorLogic<void, {
21
+ [x: string]: xstate538.ActorRefFromLogic<xstate538.PromiseActorLogic<void, {
22
22
  imageBase64: string;
23
23
  documentType: string;
24
24
  onProgress: (progress: number) => void;
25
- }, xstate839.EventObject>> | xstate839.ActorRefFromLogic<xstate839.PromiseActorLogic<MediaStream, void, xstate839.EventObject>> | undefined;
26
- }, xstate839.Values<{
25
+ }, xstate538.EventObject>> | xstate538.ActorRefFromLogic<xstate538.PromiseActorLogic<MediaStream, void, xstate538.EventObject>> | undefined;
26
+ }, xstate538.Values<{
27
27
  uploadDocument: {
28
28
  src: "uploadDocument";
29
- logic: xstate839.PromiseActorLogic<void, {
29
+ logic: xstate538.PromiseActorLogic<void, {
30
30
  imageBase64: string;
31
31
  documentType: string;
32
32
  onProgress: (progress: number) => void;
33
- }, xstate839.EventObject>;
33
+ }, xstate538.EventObject>;
34
34
  id: string | undefined;
35
35
  };
36
36
  initCamera: {
37
37
  src: "initCamera";
38
- logic: xstate839.PromiseActorLogic<MediaStream, void, xstate839.EventObject>;
38
+ logic: xstate538.PromiseActorLogic<MediaStream, void, xstate538.EventObject>;
39
39
  id: string | undefined;
40
40
  };
41
- }>, xstate839.Values<{
41
+ }>, xstate538.Values<{
42
42
  setError: {
43
43
  type: "setError";
44
- params: xstate839.NonReducibleUnknown;
44
+ params: xstate538.NonReducibleUnknown;
45
+ };
46
+ clearError: {
47
+ type: "clearError";
48
+ params: xstate538.NonReducibleUnknown;
45
49
  };
46
50
  setStream: {
47
51
  type: "setStream";
48
- params: xstate839.NonReducibleUnknown;
52
+ params: xstate538.NonReducibleUnknown;
49
53
  };
50
54
  setImageAndClearError: {
51
55
  type: "setImageAndClearError";
52
- params: xstate839.NonReducibleUnknown;
56
+ params: xstate538.NonReducibleUnknown;
53
57
  };
54
58
  setProgress: {
55
59
  type: "setProgress";
56
- params: xstate839.NonReducibleUnknown;
57
- };
58
- clearError: {
59
- type: "clearError";
60
- params: xstate839.NonReducibleUnknown;
60
+ params: xstate538.NonReducibleUnknown;
61
61
  };
62
62
  stopStream: {
63
63
  type: "stopStream";
64
- params: xstate839.NonReducibleUnknown;
64
+ params: xstate538.NonReducibleUnknown;
65
65
  };
66
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate839.NonReducibleUnknown, xstate839.EventObject, xstate839.MetaObject, {
66
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate538.NonReducibleUnknown, xstate538.EventObject, xstate538.MetaObject, {
67
67
  readonly id: "documentUpload";
68
68
  readonly initial: "idle";
69
69
  readonly context: ({
@@ -72,67 +72,67 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
72
72
  spawn: {
73
73
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
74
74
  src: "uploadDocument";
75
- logic: xstate839.PromiseActorLogic<void, {
75
+ logic: xstate538.PromiseActorLogic<void, {
76
76
  imageBase64: string;
77
77
  documentType: string;
78
78
  onProgress: (progress: number) => void;
79
- }, xstate839.EventObject>;
79
+ }, xstate538.EventObject>;
80
80
  id: string | undefined;
81
81
  } extends infer T ? T extends {
82
82
  src: "uploadDocument";
83
- logic: xstate839.PromiseActorLogic<void, {
83
+ logic: xstate538.PromiseActorLogic<void, {
84
84
  imageBase64: string;
85
85
  documentType: string;
86
86
  onProgress: (progress: number) => void;
87
- }, xstate839.EventObject>;
87
+ }, xstate538.EventObject>;
88
88
  id: string | undefined;
89
89
  } ? T extends {
90
90
  src: TSrc;
91
- } ? xstate839.ConditionalRequired<[options?: ({
91
+ } ? xstate538.ConditionalRequired<[options?: ({
92
92
  id?: T["id"] | undefined;
93
93
  systemId?: string;
94
- input?: xstate839.InputFrom<T["logic"]> | undefined;
94
+ input?: xstate538.InputFrom<T["logic"]> | undefined;
95
95
  syncSnapshot?: boolean;
96
- } & { [K in xstate839.RequiredActorOptions<T>]: unknown }) | undefined], xstate839.IsNotNever<xstate839.RequiredActorOptions<T>>> : never : never : never) | ({
96
+ } & { [K in xstate538.RequiredActorOptions<T>]: unknown }) | undefined], xstate538.IsNotNever<xstate538.RequiredActorOptions<T>>> : never : never : never) | ({
97
97
  src: "initCamera";
98
- logic: xstate839.PromiseActorLogic<MediaStream, void, xstate839.EventObject>;
98
+ logic: xstate538.PromiseActorLogic<MediaStream, void, xstate538.EventObject>;
99
99
  id: string | undefined;
100
100
  } extends infer T_1 ? T_1 extends {
101
101
  src: "initCamera";
102
- logic: xstate839.PromiseActorLogic<MediaStream, void, xstate839.EventObject>;
102
+ logic: xstate538.PromiseActorLogic<MediaStream, void, xstate538.EventObject>;
103
103
  id: string | undefined;
104
104
  } ? T_1 extends {
105
105
  src: TSrc;
106
- } ? xstate839.ConditionalRequired<[options?: ({
106
+ } ? xstate538.ConditionalRequired<[options?: ({
107
107
  id?: T_1["id"] | undefined;
108
108
  systemId?: string;
109
- input?: xstate839.InputFrom<T_1["logic"]> | undefined;
109
+ input?: xstate538.InputFrom<T_1["logic"]> | undefined;
110
110
  syncSnapshot?: boolean;
111
- } & { [K_1 in xstate839.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate839.IsNotNever<xstate839.RequiredActorOptions<T_1>>> : never : never : never)): xstate839.ActorRefFromLogic<xstate839.GetConcreteByKey<xstate839.Values<{
111
+ } & { [K_1 in xstate538.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate538.IsNotNever<xstate538.RequiredActorOptions<T_1>>> : never : never : never)): xstate538.ActorRefFromLogic<xstate538.GetConcreteByKey<xstate538.Values<{
112
112
  uploadDocument: {
113
113
  src: "uploadDocument";
114
- logic: xstate839.PromiseActorLogic<void, {
114
+ logic: xstate538.PromiseActorLogic<void, {
115
115
  imageBase64: string;
116
116
  documentType: string;
117
117
  onProgress: (progress: number) => void;
118
- }, xstate839.EventObject>;
118
+ }, xstate538.EventObject>;
119
119
  id: string | undefined;
120
120
  };
121
121
  initCamera: {
122
122
  src: "initCamera";
123
- logic: xstate839.PromiseActorLogic<MediaStream, void, xstate839.EventObject>;
123
+ logic: xstate538.PromiseActorLogic<MediaStream, void, xstate538.EventObject>;
124
124
  id: string | undefined;
125
125
  };
126
126
  }>, "src", TSrc>["logic"]>;
127
- <TLogic extends xstate839.AnyActorLogic>(src: TLogic, ...[options]: xstate839.ConditionalRequired<[options?: ({
127
+ <TLogic extends xstate538.AnyActorLogic>(src: TLogic, ...[options]: xstate538.ConditionalRequired<[options?: ({
128
128
  id?: never;
129
129
  systemId?: string;
130
- input?: xstate839.InputFrom<TLogic> | undefined;
130
+ input?: xstate538.InputFrom<TLogic> | undefined;
131
131
  syncSnapshot?: boolean;
132
- } & { [K in xstate839.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate839.IsNotNever<xstate839.RequiredLogicInput<TLogic>>>): xstate839.ActorRefFromLogic<TLogic>;
132
+ } & { [K in xstate538.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate538.IsNotNever<xstate538.RequiredLogicInput<TLogic>>>): xstate538.ActorRefFromLogic<TLogic>;
133
133
  };
134
134
  input: DocumentUploadInput;
135
- self: xstate839.ActorRef<xstate839.MachineSnapshot<DocumentUploadContext, {
135
+ self: xstate538.ActorRef<xstate538.MachineSnapshot<DocumentUploadContext, {
136
136
  type: "START";
137
137
  } | {
138
138
  type: "CAPTURE";
@@ -144,7 +144,7 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
144
144
  type: "RETRY";
145
145
  } | {
146
146
  type: "CLOSE";
147
- }, Record<string, xstate839.AnyActorRef | undefined>, xstate839.StateValue, string, unknown, any, any>, {
147
+ }, Record<string, xstate538.AnyActorRef | undefined>, xstate538.StateValue, string, unknown, any, any>, {
148
148
  type: "START";
149
149
  } | {
150
150
  type: "CAPTURE";
@@ -156,7 +156,7 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
156
156
  type: "RETRY";
157
157
  } | {
158
158
  type: "CLOSE";
159
- }, xstate839.AnyEventObject>;
159
+ }, xstate538.AnyEventObject>;
160
160
  }) => {
161
161
  config: DocumentUploadConfig;
162
162
  stream: undefined;
@@ -226,7 +226,7 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
226
226
  } | {
227
227
  type: "CLOSE";
228
228
  };
229
- self: xstate839.ActorRef<xstate839.MachineSnapshot<DocumentUploadContext, {
229
+ self: xstate538.ActorRef<xstate538.MachineSnapshot<DocumentUploadContext, {
230
230
  type: "START";
231
231
  } | {
232
232
  type: "CAPTURE";
@@ -238,7 +238,7 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
238
238
  type: "RETRY";
239
239
  } | {
240
240
  type: "CLOSE";
241
- }, Record<string, xstate839.AnyActorRef>, xstate839.StateValue, string, unknown, any, any>, {
241
+ }, Record<string, xstate538.AnyActorRef>, xstate538.StateValue, string, unknown, any, any>, {
242
242
  type: "START";
243
243
  } | {
244
244
  type: "CAPTURE";
@@ -250,7 +250,7 @@ declare const documentUploadMachine: xstate839.StateMachine<DocumentUploadContex
250
250
  type: "RETRY";
251
251
  } | {
252
252
  type: "CLOSE";
253
- }, xstate839.AnyEventObject>;
253
+ }, xstate538.AnyEventObject>;
254
254
  }) => {
255
255
  imageBase64: string;
256
256
  documentType: string;
package/dist/ekyb.esm.js CHANGED
@@ -5,15 +5,15 @@ import "./endpoints-BPHddOTi.esm.js";
5
5
  import "./stats-AwLva7-C.esm.js";
6
6
  import "./IpifyProvider-BQKB2PR-.esm.js";
7
7
  import "./browserSimulation-CHpyEI-W.esm.js";
8
- import "./sessionInitializer-BbElDRSg.esm.js";
8
+ import "./sessionInitializer-EyllOMHH.esm.js";
9
9
  import "./platform-D871crJL.esm.js";
10
10
  import "./getBrowser-CMJJeBF8.esm.js";
11
11
  import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
12
12
  import "./apiError-76Dulrw9.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-W3WyzHfN.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-DcJlgUlK.esm.js";
14
14
  import "./addressSearch-hBMIkeTq.esm.js";
15
15
  import "./session-BK_FUgjz.esm.js";
16
- import "./flowServices-ag9foae3.esm.js";
16
+ import "./flowServices-CGLG6Aps.esm.js";
17
17
 
18
18
  //#region src/modules/ekyb/ekybActor.ts
19
19
  /**
@@ -2,7 +2,7 @@ import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
3
  import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CWoFJOio.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-hBMIkeTq.esm.js";
5
- import { t as getFlow } from "./flowServices-ag9foae3.esm.js";
5
+ import { t as getFlow } from "./flowServices-CGLG6Aps.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-C6PZlp2a.js";
2
2
  import "./Actor-CcQ_EteO.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-B5ffjr3t.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-DnSENIXl.js";
4
4
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -12,15 +12,15 @@ import { a as VirtualCameraCheckOutput, i as IWasmUtilCapability, l as IStorageC
12
12
  import "./types-C076XDan.js";
13
13
  import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BWhEOmu5.js";
14
14
  import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BuofM548.js";
15
- import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-CKvXqteP.js";
16
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-DUPi3yTh.js";
15
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-B78wrASK.js";
16
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-hkCjiBXb.js";
17
17
  import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-A17z2p8Z.js";
18
18
  import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-CSCqkDqa.js";
19
19
  import { A as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState } from "./idCaptureManager-CmJuubTO.js";
20
20
  import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-eEOZV-Ag.js";
21
- import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-CdS2aBvN.js";
21
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-zcnh4sUs.js";
22
22
  import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-DMzy5lNY.js";
23
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Di3Lgr-y.js";
23
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-Bmpb5JW-.js";
24
24
  import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-DC-_CWcd.js";
25
25
 
26
26
  //#region src/modules/authentication/authenticationUploadService.d.ts
@@ -6,7 +6,7 @@ import "./endpoints-BPHddOTi.esm.js";
6
6
  import "./stats-AwLva7-C.esm.js";
7
7
  import { t as IpifyProvider } from "./IpifyProvider-BQKB2PR-.esm.js";
8
8
  import "./browserSimulation-CHpyEI-W.esm.js";
9
- import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-BbElDRSg.esm.js";
9
+ import { o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./sessionInitializer-EyllOMHH.esm.js";
10
10
  import "./platform-D871crJL.esm.js";
11
11
  import "./getBrowser-CMJJeBF8.esm.js";
12
12
  import { a as fromPromise, i as fromCallback, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
@@ -39,8 +39,8 @@ import "./emailStateMachine-DBl6u0yY.esm.js";
39
39
  import { n as createEmailManagerFromActor } from "./emailManager-BkpKfAWF.esm.js";
40
40
  import "./selfieStateMachine-D3HsPohW.esm.js";
41
41
  import { n as createSelfieManagerFromActor } from "./selfieManager-YMuTjX-Y.esm.js";
42
- import "./idCaptureStateMachine-BPYJNjsN.esm.js";
43
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-Dy3b0R0J.esm.js";
42
+ import "./idCaptureStateMachine-Ds_Pi7au.esm.js";
43
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DMGs1KG_.esm.js";
44
44
  import "./phoneStateMachine-XdnP18Rl.esm.js";
45
45
  import { n as createPhoneManagerFromActor } from "./phoneManager-CkcMvwa6.esm.js";
46
46
  import "./identityReuseStateMachine-DHVSN2L1.esm.js";
@@ -225,4 +225,23 @@ type FaceMatchManager = ReturnType<typeof createFaceMatchManager>;
225
225
  //#region src/modules/face-match/faceMatchStateMachine.d.ts
226
226
  declare const faceMatchMachine: any;
227
227
  //#endregion
228
- export { type FaceMatchConfig, type FaceMatchImages, type FaceMatchManager, type FaceMatchResult, type FaceMatchState, type FaceMatchVariant, createFaceMatchManager, faceMatchMachine };
228
+ //#region src/modules/face-match/constants.d.ts
229
+ /**
230
+ * Backend error code returned by face-match endpoints (e.g. `/omni/process/face`,
231
+ * `/omni/get/score`) when the session was captured with `extractIdFace: false`.
232
+ * No biometric ID template exists, so face-match cannot run and should be
233
+ * skipped on the client (continue to the next step instead of erroring).
234
+ */
235
+ declare const ID_FACE_EXTRACTION_SKIPPED_CODE = 4084;
236
+ /**
237
+ * Determines whether a thrown HTTP error represents the "ID face extraction
238
+ * skipped" case (backend status `4084`).
239
+ *
240
+ * The backend exposes the code either as the top-level `status` field of the
241
+ * rejected value or nested inside the response body (`data.status`), depending
242
+ * on the transport. The HTTP client surfaces non-2xx responses as a
243
+ * `FetchHttpError` whose `data` holds the parsed error body.
244
+ */
245
+ declare function isFaceExtractionSkippedError(error: unknown): boolean;
246
+ //#endregion
247
+ export { type FaceMatchConfig, type FaceMatchImages, type FaceMatchManager, type FaceMatchResult, type FaceMatchState, type FaceMatchVariant, ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, faceMatchMachine, isFaceExtractionSkippedError };
@@ -2,7 +2,7 @@ import "./api-YxPMtty2.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
3
3
  import "./endpoints-BPHddOTi.esm.js";
4
4
  import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
5
- import { t as faceMatchMachine } from "./faceMatchStateMachine-CJjpPtfP.esm.js";
5
+ import { n as ID_FACE_EXTRACTION_SKIPPED_CODE, r as isFaceExtractionSkippedError, t as faceMatchMachine } from "./faceMatchStateMachine-vJUfrhXF.esm.js";
6
6
 
7
7
  //#region src/modules/face-match/faceMatchActor.ts
8
8
  function createFaceMatchActor(options) {
@@ -170,4 +170,4 @@ function createFaceMatchManager(options) {
170
170
  }
171
171
 
172
172
  //#endregion
173
- export { createFaceMatchManager, faceMatchMachine };
173
+ export { ID_FACE_EXTRACTION_SKIPPED_CODE, createFaceMatchManager, faceMatchMachine, isFaceExtractionSkippedError };
@@ -2,6 +2,30 @@ import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
3
  import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
4
4
 
5
+ //#region src/modules/face-match/constants.ts
6
+ /**
7
+ * Backend error code returned by face-match endpoints (e.g. `/omni/process/face`,
8
+ * `/omni/get/score`) when the session was captured with `extractIdFace: false`.
9
+ * No biometric ID template exists, so face-match cannot run and should be
10
+ * skipped on the client (continue to the next step instead of erroring).
11
+ */
12
+ const ID_FACE_EXTRACTION_SKIPPED_CODE = 4084;
13
+ /**
14
+ * Determines whether a thrown HTTP error represents the "ID face extraction
15
+ * skipped" case (backend status `4084`).
16
+ *
17
+ * The backend exposes the code either as the top-level `status` field of the
18
+ * rejected value or nested inside the response body (`data.status`), depending
19
+ * on the transport. The HTTP client surfaces non-2xx responses as a
20
+ * `FetchHttpError` whose `data` holds the parsed error body.
21
+ */
22
+ function isFaceExtractionSkippedError(error) {
23
+ if (!error || typeof error !== "object") return false;
24
+ const err = error;
25
+ return err.status === ID_FACE_EXTRACTION_SKIPPED_CODE || err.data?.status === ID_FACE_EXTRACTION_SKIPPED_CODE;
26
+ }
27
+
28
+ //#endregion
5
29
  //#region src/modules/face-match/faceMatchServices.ts
6
30
  /**
7
31
  * Fetches cropped face images from the backend.
@@ -84,7 +108,10 @@ const faceMatchMachine = setup({
84
108
  error: void 0
85
109
  }))
86
110
  },
87
- guards: { isAnimationDisabled: ({ context }) => context.config.disableFaceMatchAnimation === true }
111
+ guards: {
112
+ isAnimationDisabled: ({ context }) => context.config.disableFaceMatchAnimation === true,
113
+ isFaceExtractionSkipped: ({ event }) => isFaceExtractionSkippedError(event.error)
114
+ }
88
115
  }).createMachine({
89
116
  id: "faceMatch",
90
117
  initial: "idle",
@@ -108,10 +135,13 @@ const faceMatchMachine = setup({
108
135
  target: "animating",
109
136
  actions: "setData"
110
137
  }],
111
- onError: {
138
+ onError: [{
139
+ target: "finished",
140
+ guard: "isFaceExtractionSkipped"
141
+ }, {
112
142
  target: "error",
113
143
  actions: "setError"
114
- }
144
+ }]
115
145
  } },
116
146
  animating: { on: { ANIMATION_COMPLETE: { target: "result" } } },
117
147
  result: { on: { CONTINUE: { target: "finished" } } },
@@ -124,4 +154,4 @@ const faceMatchMachine = setup({
124
154
  });
125
155
 
126
156
  //#endregion
127
- export { faceMatchMachine as t };
157
+ export { ID_FACE_EXTRACTION_SKIPPED_CODE as n, isFaceExtractionSkippedError as r, faceMatchMachine as t };
package/dist/flow.d.ts CHANGED
@@ -8,7 +8,7 @@ import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BPTRi
8
8
  import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-CCtTGPU9.js";
9
9
  import { o as FlowEventSubscribable } from "./index-D2Mcat5v.js";
10
10
  import { n as ModuleRegistry } from "./types-Cb02Rr8D.js";
11
- import * as xstate0 from "xstate";
11
+ import * as xstate944 from "xstate";
12
12
 
13
13
  //#region src/modules/flow/flowUtils.d.ts
14
14
  type NormalizeFlowModulesOptions = {
@@ -60,7 +60,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
60
60
  declare const getFlow: GetFlow;
61
61
  //#endregion
62
62
  //#region src/modules/flow/noOpFlowModuleMachine.d.ts
63
- declare const noOpFlowModuleMachine: xstate0.StateMachine<xstate0.MachineContext, xstate0.AnyEventObject, {}, never, never, never, never, "finished", string, xstate0.NonReducibleUnknown, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
63
+ declare const noOpFlowModuleMachine: xstate944.StateMachine<xstate944.MachineContext, xstate944.AnyEventObject, {}, never, never, never, never, "finished", string, xstate944.NonReducibleUnknown, xstate944.NonReducibleUnknown, xstate944.EventObject, xstate944.MetaObject, {
64
64
  readonly id: "noOpFlowModule";
65
65
  readonly initial: "finished";
66
66
  readonly states: {
package/dist/flow.esm.js CHANGED
@@ -4,14 +4,14 @@ import "./endpoints-BPHddOTi.esm.js";
4
4
  import "./stats-AwLva7-C.esm.js";
5
5
  import "./IpifyProvider-BQKB2PR-.esm.js";
6
6
  import "./browserSimulation-CHpyEI-W.esm.js";
7
- import "./sessionInitializer-BbElDRSg.esm.js";
7
+ import "./sessionInitializer-EyllOMHH.esm.js";
8
8
  import "./platform-D871crJL.esm.js";
9
9
  import "./getBrowser-CMJJeBF8.esm.js";
10
10
  import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
11
11
  import "./apiError-76Dulrw9.esm.js";
12
12
  import { r as isAdvanceableTerminalError } from "./types-sA-iP7aF.esm.js";
13
13
  import "./session-BK_FUgjz.esm.js";
14
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-ag9foae3.esm.js";
14
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CGLG6Aps.esm.js";
15
15
  import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-B35VgFTo.esm.js";
16
16
  import { t as getFinishStatus } from "./flowCompletionService-aI4wGC9f.esm.js";
17
17
 
@@ -1,6 +1,6 @@
1
1
  import { t as api } from "./api-YxPMtty2.esm.js";
2
2
  import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
3
- import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-BbElDRSg.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-EyllOMHH.esm.js";
4
4
  import { n as toIncodeApiError } from "./apiError-76Dulrw9.esm.js";
5
5
 
6
6
  //#region src/modules/flow/flowUtils.ts
package/dist/home.d.ts CHANGED
@@ -3,7 +3,7 @@ import "./camera-BCAbwFy2.js";
3
3
  import "./types-DGzov-rE.js";
4
4
  import "./types-CURk4uNi.js";
5
5
  import { t as EmptyConfig } from "./types-BPTRiryB.js";
6
- import * as xstate971 from "xstate";
6
+ import * as xstate0 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: xstate971.StateMachine<HomeContext, {
38
+ declare const homeMachine: xstate0.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, xstate971.NonReducibleUnknown, xstate971.EventObject, xstate971.MetaObject, {
44
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.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): xstate971.ActorRefFromLogic<never>;
52
- <TLogic extends xstate971.AnyActorLogic>(src: TLogic, ...[options]: xstate971.ConditionalRequired<[options?: ({
51
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate0.ActorRefFromLogic<never>;
52
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
53
53
  id?: never;
54
54
  systemId?: string;
55
- input?: xstate971.InputFrom<TLogic> | undefined;
55
+ input?: xstate0.InputFrom<TLogic> | undefined;
56
56
  syncSnapshot?: boolean;
57
- } & { [K in xstate971.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate971.IsNotNever<xstate971.RequiredLogicInput<TLogic>>>): xstate971.ActorRefFromLogic<TLogic>;
57
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
58
58
  };
59
59
  input: HomeInput;
60
- self: xstate971.ActorRef<xstate971.MachineSnapshot<HomeContext, {
60
+ self: xstate0.ActorRef<xstate0.MachineSnapshot<HomeContext, {
61
61
  type: "LOAD";
62
62
  } | {
63
63
  type: "COMPLETE";
64
64
  } | {
65
65
  type: "RESET";
66
- }, Record<string, xstate971.AnyActorRef | undefined>, xstate971.StateValue, string, unknown, any, any>, {
66
+ }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
67
67
  type: "LOAD";
68
68
  } | {
69
69
  type: "COMPLETE";
70
70
  } | {
71
71
  type: "RESET";
72
- }, xstate971.AnyEventObject>;
72
+ }, xstate0.AnyEventObject>;
73
73
  }) => {
74
74
  config: EmptyConfig;
75
75
  };