@incodetech/core 2.1.1-rc.5 → 2.1.1-rc.7

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 (58) hide show
  1. package/dist/BrowserStorageProvider-DaKI3I0m.esm.js +85 -0
  2. package/dist/ae-signature.d.ts +1 -1
  3. package/dist/authentication.esm.js +9 -9
  4. package/dist/{authenticationManager-CcD_dGoc.esm.js → authenticationManager-Dwf7TrZC.esm.js} +3 -3
  5. package/dist/{authenticationStateMachine-DXqqxJ6I.esm.js → authenticationStateMachine-BBNa41d5.esm.js} +2 -2
  6. package/dist/{browserSimulation-CWJhFPZ2.esm.js → browserSimulation-DZwEy9bu.esm.js} +14 -1
  7. package/dist/certificate-issuance.d.ts +28 -28
  8. package/dist/consent.d.ts +1 -1
  9. package/dist/{consentManager-4ADOtZeb.d.ts → consentManager-BvgtYr9W.d.ts} +47 -47
  10. package/dist/cpf-ocr.d.ts +1 -1
  11. package/dist/{cpfOcrManager-CPAjetkl.d.ts → cpfOcrManager-2eYelPF7.d.ts} +17 -17
  12. package/dist/{deepsightLoader-BXYxT6Ze.esm.js → deepsightLoader-bisFKMf_.esm.js} +3 -3
  13. package/dist/{deepsightService-CkZqM1Q2.esm.js → deepsightService-CViys6T4.esm.js} +1 -1
  14. package/dist/document-capture.d.ts +222 -222
  15. package/dist/document-upload.d.ts +46 -46
  16. package/dist/ekyb.esm.js +4 -4
  17. package/dist/{ekybStateMachine-CGUi38oD.esm.js → ekybStateMachine-_vaRFELH.esm.js} +1 -1
  18. package/dist/electronic-signature.d.ts +1 -1
  19. package/dist/extensibility.d.ts +13 -9
  20. package/dist/extensibility.esm.js +14 -14
  21. package/dist/{faceCaptureManagerFactory-BvY-Bjln.esm.js → faceCaptureManagerFactory-Cf8m_RNb.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-DqJSpW5Z.esm.js → faceCaptureSetup-Gj6XnsY4.esm.js} +2 -2
  23. package/dist/flow.d.ts +2 -2
  24. package/dist/flow.esm.js +19 -6
  25. package/dist/{flowServices-CeUfzu0a.esm.js → flowServices-OFgzA7NX.esm.js} +1 -1
  26. package/dist/home.d.ts +10 -10
  27. package/dist/id-ocr.d.ts +1 -1
  28. package/dist/id-verification.d.ts +25 -25
  29. package/dist/id.esm.js +8 -8
  30. package/dist/{idCaptureManager-DeObKOhW.esm.js → idCaptureManager-BziLyrVE.esm.js} +2 -2
  31. package/dist/{idCaptureStateMachine-DfHWOR-E.esm.js → idCaptureStateMachine-B7vsPrsl.esm.js} +4 -4
  32. package/dist/{idOcrManager-In32pFy6.d.ts → idOcrManager-BeUOERWK.d.ts} +52 -52
  33. package/dist/identity-reuse.d.ts +1 -1
  34. package/dist/{identityReuseManager-CL6t3MXb.d.ts → identityReuseManager-D1C3DNjo.d.ts} +31 -31
  35. package/dist/{index-DhxHjfpy.d.ts → index-Dzf83PXV.d.ts} +150 -150
  36. package/dist/index.esm.js +3 -3
  37. package/dist/mandatory-consent.d.ts +1 -1
  38. package/dist/{mandatoryConsentManager-C5mBEdnA.d.ts → mandatoryConsentManager-BxZjDE9f.d.ts} +50 -50
  39. package/dist/{onDeviceFaceResults-C9oNZSHm.esm.js → onDeviceFaceResults-BWxOJueW.esm.js} +1 -1
  40. package/dist/personhood.d.ts +10 -0
  41. package/dist/personhood.esm.js +14 -8
  42. package/dist/qe-signature.d.ts +1 -1
  43. package/dist/{recordingService-B8X6E9kx.esm.js → recordingService-lBmeVE49.esm.js} +1 -1
  44. package/dist/selfie.esm.js +9 -9
  45. package/dist/{selfieManager-up_j4EgF.esm.js → selfieManager-DsoqRiV2.esm.js} +3 -3
  46. package/dist/{selfieStateMachine-BjQjy8na.esm.js → selfieStateMachine-Czcb2so_.esm.js} +2 -2
  47. package/dist/session.esm.js +2 -2
  48. package/dist/{sessionInitializer-D3VzSnPy.esm.js → sessionInitializer-DdIllyuV.esm.js} +2 -2
  49. package/dist/{setup-CB0_nSzg.esm.js → setup-B27YJgm_.esm.js} +2 -2
  50. package/dist/trust-graph.d.ts +2 -2
  51. package/dist/video-selfie.d.ts +2 -2
  52. package/dist/video-selfie.esm.js +5 -5
  53. package/dist/wasm.d.ts +1 -1
  54. package/dist/wasm.esm.js +3 -3
  55. package/dist/workflow.d.ts +156 -156
  56. package/dist/workflow.esm.js +11 -11
  57. package/package.json +1 -1
  58. package/dist/BrowserStorageProvider-fZsibQTR.esm.js +0 -55
@@ -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 xstate0 from "xstate";
6
+ import * as xstate592 from "xstate";
7
7
 
8
8
  //#region src/modules/document-upload/documentUploadStateMachine.d.ts
9
- declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext, {
9
+ declare const documentUploadMachine: xstate592.StateMachine<DocumentUploadContext, {
10
10
  type: "START";
11
11
  } | {
12
12
  type: "CAPTURE";
@@ -19,52 +19,52 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
19
19
  } | {
20
20
  type: "CLOSE";
21
21
  }, {
22
- [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
22
+ [x: string]: xstate592.ActorRefFromLogic<xstate592.PromiseActorLogic<void, {
23
23
  imageBase64: string;
24
24
  documentType: string;
25
25
  onProgress: (progress: number) => void;
26
- }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>> | undefined;
27
- }, xstate0.Values<{
26
+ }, xstate592.EventObject>> | xstate592.ActorRefFromLogic<xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>> | undefined;
27
+ }, xstate592.Values<{
28
28
  uploadDocument: {
29
29
  src: "uploadDocument";
30
- logic: xstate0.PromiseActorLogic<void, {
30
+ logic: xstate592.PromiseActorLogic<void, {
31
31
  imageBase64: string;
32
32
  documentType: string;
33
33
  onProgress: (progress: number) => void;
34
- }, xstate0.EventObject>;
34
+ }, xstate592.EventObject>;
35
35
  id: string | undefined;
36
36
  };
37
37
  initCamera: {
38
38
  src: "initCamera";
39
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
39
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
40
40
  id: string | undefined;
41
41
  };
42
- }>, xstate0.Values<{
42
+ }>, xstate592.Values<{
43
+ setError: {
44
+ type: "setError";
45
+ params: xstate592.NonReducibleUnknown;
46
+ };
47
+ clearError: {
48
+ type: "clearError";
49
+ params: xstate592.NonReducibleUnknown;
50
+ };
43
51
  setStream: {
44
52
  type: "setStream";
45
- params: xstate0.NonReducibleUnknown;
53
+ params: xstate592.NonReducibleUnknown;
46
54
  };
47
55
  setImageAndClearError: {
48
56
  type: "setImageAndClearError";
49
- params: xstate0.NonReducibleUnknown;
57
+ params: xstate592.NonReducibleUnknown;
50
58
  };
51
59
  setProgress: {
52
60
  type: "setProgress";
53
- params: xstate0.NonReducibleUnknown;
54
- };
55
- setError: {
56
- type: "setError";
57
- params: xstate0.NonReducibleUnknown;
58
- };
59
- clearError: {
60
- type: "clearError";
61
- params: xstate0.NonReducibleUnknown;
61
+ params: xstate592.NonReducibleUnknown;
62
62
  };
63
63
  stopStream: {
64
64
  type: "stopStream";
65
- params: xstate0.NonReducibleUnknown;
65
+ params: xstate592.NonReducibleUnknown;
66
66
  };
67
- }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
67
+ }>, never, never, "error" | "idle" | "uploading" | "closed" | "finished" | "initCamera" | "capturing", string, DocumentUploadInput, xstate592.NonReducibleUnknown, xstate592.EventObject, xstate592.MetaObject, {
68
68
  readonly id: "documentUpload";
69
69
  readonly initial: "idle";
70
70
  readonly context: ({
@@ -73,67 +73,67 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
73
73
  spawn: {
74
74
  <TSrc extends "uploadDocument" | "initCamera">(logic: TSrc, ...[options]: ({
75
75
  src: "uploadDocument";
76
- logic: xstate0.PromiseActorLogic<void, {
76
+ logic: xstate592.PromiseActorLogic<void, {
77
77
  imageBase64: string;
78
78
  documentType: string;
79
79
  onProgress: (progress: number) => void;
80
- }, xstate0.EventObject>;
80
+ }, xstate592.EventObject>;
81
81
  id: string | undefined;
82
82
  } extends infer T ? T extends {
83
83
  src: "uploadDocument";
84
- logic: xstate0.PromiseActorLogic<void, {
84
+ logic: xstate592.PromiseActorLogic<void, {
85
85
  imageBase64: string;
86
86
  documentType: string;
87
87
  onProgress: (progress: number) => void;
88
- }, xstate0.EventObject>;
88
+ }, xstate592.EventObject>;
89
89
  id: string | undefined;
90
90
  } ? T extends {
91
91
  src: TSrc;
92
- } ? xstate0.ConditionalRequired<[options?: ({
92
+ } ? xstate592.ConditionalRequired<[options?: ({
93
93
  id?: T["id"] | undefined;
94
94
  systemId?: string;
95
- input?: xstate0.InputFrom<T["logic"]> | undefined;
95
+ input?: xstate592.InputFrom<T["logic"]> | undefined;
96
96
  syncSnapshot?: boolean;
97
- } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
97
+ } & { [K in xstate592.RequiredActorOptions<T>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredActorOptions<T>>> : never : never : never) | ({
98
98
  src: "initCamera";
99
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
99
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
100
100
  id: string | undefined;
101
101
  } extends infer T_1 ? T_1 extends {
102
102
  src: "initCamera";
103
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
103
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
104
104
  id: string | undefined;
105
105
  } ? T_1 extends {
106
106
  src: TSrc;
107
- } ? xstate0.ConditionalRequired<[options?: ({
107
+ } ? xstate592.ConditionalRequired<[options?: ({
108
108
  id?: T_1["id"] | undefined;
109
109
  systemId?: string;
110
- input?: xstate0.InputFrom<T_1["logic"]> | undefined;
110
+ input?: xstate592.InputFrom<T_1["logic"]> | undefined;
111
111
  syncSnapshot?: boolean;
112
- } & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
112
+ } & { [K_1 in xstate592.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredActorOptions<T_1>>> : never : never : never)): xstate592.ActorRefFromLogic<xstate592.GetConcreteByKey<xstate592.Values<{
113
113
  uploadDocument: {
114
114
  src: "uploadDocument";
115
- logic: xstate0.PromiseActorLogic<void, {
115
+ logic: xstate592.PromiseActorLogic<void, {
116
116
  imageBase64: string;
117
117
  documentType: string;
118
118
  onProgress: (progress: number) => void;
119
- }, xstate0.EventObject>;
119
+ }, xstate592.EventObject>;
120
120
  id: string | undefined;
121
121
  };
122
122
  initCamera: {
123
123
  src: "initCamera";
124
- logic: xstate0.PromiseActorLogic<MediaStream, void, xstate0.EventObject>;
124
+ logic: xstate592.PromiseActorLogic<MediaStream, void, xstate592.EventObject>;
125
125
  id: string | undefined;
126
126
  };
127
127
  }>, "src", TSrc>["logic"]>;
128
- <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
128
+ <TLogic extends xstate592.AnyActorLogic>(src: TLogic, ...[options]: xstate592.ConditionalRequired<[options?: ({
129
129
  id?: never;
130
130
  systemId?: string;
131
- input?: xstate0.InputFrom<TLogic> | undefined;
131
+ input?: xstate592.InputFrom<TLogic> | undefined;
132
132
  syncSnapshot?: boolean;
133
- } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
133
+ } & { [K in xstate592.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate592.IsNotNever<xstate592.RequiredLogicInput<TLogic>>>): xstate592.ActorRefFromLogic<TLogic>;
134
134
  };
135
135
  input: DocumentUploadInput;
136
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
136
+ self: xstate592.ActorRef<xstate592.MachineSnapshot<DocumentUploadContext, {
137
137
  type: "START";
138
138
  } | {
139
139
  type: "CAPTURE";
@@ -145,7 +145,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
145
145
  type: "RETRY";
146
146
  } | {
147
147
  type: "CLOSE";
148
- }, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
148
+ }, Record<string, xstate592.AnyActorRef | undefined>, xstate592.StateValue, string, unknown, any, any>, {
149
149
  type: "START";
150
150
  } | {
151
151
  type: "CAPTURE";
@@ -157,7 +157,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
157
157
  type: "RETRY";
158
158
  } | {
159
159
  type: "CLOSE";
160
- }, xstate0.AnyEventObject>;
160
+ }, xstate592.AnyEventObject>;
161
161
  }) => {
162
162
  config: DocumentUploadConfig;
163
163
  stream: undefined;
@@ -227,7 +227,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
227
227
  } | {
228
228
  type: "CLOSE";
229
229
  };
230
- self: xstate0.ActorRef<xstate0.MachineSnapshot<DocumentUploadContext, {
230
+ self: xstate592.ActorRef<xstate592.MachineSnapshot<DocumentUploadContext, {
231
231
  type: "START";
232
232
  } | {
233
233
  type: "CAPTURE";
@@ -239,7 +239,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
239
239
  type: "RETRY";
240
240
  } | {
241
241
  type: "CLOSE";
242
- }, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
242
+ }, Record<string, xstate592.AnyActorRef>, xstate592.StateValue, string, unknown, any, any>, {
243
243
  type: "START";
244
244
  } | {
245
245
  type: "CAPTURE";
@@ -251,7 +251,7 @@ declare const documentUploadMachine: xstate0.StateMachine<DocumentUploadContext,
251
251
  type: "RETRY";
252
252
  } | {
253
253
  type: "CLOSE";
254
- }, xstate0.AnyEventObject>;
254
+ }, xstate592.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-D3VzSnPy.esm.js";
7
- import "./browserSimulation-CWJhFPZ2.esm.js";
6
+ import "./sessionInitializer-DdIllyuV.esm.js";
7
+ import "./browserSimulation-DZwEy9bu.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-CGUi38oD.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-_vaRFELH.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-CeUfzu0a.esm.js";
17
+ import "./flowServices-OFgzA7NX.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-CeUfzu0a.esm.js";
5
+ import { t as getFlow } from "./flowServices-OFgzA7NX.esm.js";
6
6
 
7
7
  //#region src/modules/ekyb/ekybConstants.ts
8
8
  const UBO_INPUT_LIMIT = 8;
@@ -1,5 +1,5 @@
1
1
  import "./StateMachine-D5WO6lHS.js";
2
2
  import "./Manager-goNPc_h_.js";
3
3
  import "./Actor-BwgmOPkb.js";
4
- 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-DhxHjfpy.js";
4
+ 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-Dzf83PXV.js";
5
5
  export { AE_CONSENT_KEYS, AeConsentKey, ConsentChecks, ConsentKey, ElectronicSignatureConfig, ElectronicSignatureDocument, ElectronicSignatureManager, ElectronicSignatureState, ElectronicSignatureVariant, QE_CONSENT_KEYS, QeConsentKey, areAllConsented, createElectronicSignatureManager, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
@@ -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-4ADOtZeb.js";
23
- import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-CPAjetkl.js";
22
+ import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-BvgtYr9W.js";
23
+ import { a as CpfOcrActor, i as createCpfOcrManagerFromActor, n as CpfOcrState, t as CpfOcrManager } from "./cpfOcrManager-2eYelPF7.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-CL6t3MXb.js";
30
+ import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-D1C3DNjo.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-C5mBEdnA.js";
33
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-In32pFy6.js";
32
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-BxZjDE9f.js";
33
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-BeUOERWK.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
 
@@ -55,29 +55,33 @@ type AuthenticationUploadResponse = {
55
55
  /**
56
56
  * Browser-based storage provider wrapping localStorage.
57
57
  * Handles JSON serialization/deserialization automatically.
58
+ *
59
+ * Degrades silently when the host makes localStorage unreachable: reads return
60
+ * `null` and writes are no-ops. Deliberately quiet — hosts that harden against
61
+ * self-XSS by deleting the global would otherwise see a warning on every call.
58
62
  */
59
63
  declare class BrowserStorageProvider implements IStorageCapability {
60
64
  /**
61
65
  * Retrieves a value from localStorage.
62
66
  * @param key - The storage key
63
- * @returns The stored value or null if not found
67
+ * @returns The stored value, or null if not found or storage is unavailable
64
68
  * @throws Error if stored value is invalid JSON
65
69
  */
66
70
  get<T>(key: string): Promise<T | null>;
67
71
  /**
68
- * Stores a value in localStorage.
72
+ * Stores a value in localStorage. No-op when storage is unavailable.
69
73
  * @param key - The storage key
70
74
  * @param value - The value to store (will be serialized as JSON)
71
75
  * @throws Error if value cannot be serialized or quota is exceeded
72
76
  */
73
77
  set<T>(key: string, value: T): Promise<void>;
74
78
  /**
75
- * Removes a value from localStorage.
79
+ * Removes a value from localStorage. No-op when storage is unavailable.
76
80
  * @param key - The storage key to remove
77
81
  */
78
82
  remove(key: string): Promise<void>;
79
83
  /**
80
- * Clears all values from localStorage.
84
+ * Clears all values from localStorage. No-op when storage is unavailable.
81
85
  */
82
86
  clear(): Promise<void>;
83
87
  }
@@ -4,8 +4,8 @@ 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-D3VzSnPy.esm.js";
8
- import "./browserSimulation-CWJhFPZ2.esm.js";
7
+ import { c as IpifyProvider, l as FingerprintProvider, t as getDisableIpify, u as getDeviceFingerprintInfo } from "./sessionInitializer-DdIllyuV.esm.js";
8
+ import "./browserSimulation-DZwEy9bu.esm.js";
9
9
  import "./platform-0Ot-bF_a.esm.js";
10
10
  import "./getBrowser-1yNcfFZR.esm.js";
11
11
  import "./tri-CFAPtAUM.esm.js";
@@ -14,30 +14,30 @@ 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-DqJSpW5Z.esm.js";
17
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-Gj6XnsY4.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-BvY-Bjln.esm.js";
24
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-fZsibQTR.esm.js";
25
- import "./onDeviceFaceResults-C9oNZSHm.esm.js";
23
+ import "./faceCaptureManagerFactory-Cf8m_RNb.esm.js";
24
+ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DaKI3I0m.esm.js";
25
+ import "./onDeviceFaceResults-BWxOJueW.esm.js";
26
26
  import "./ITimerCapability-DJ73P4RK.esm.js";
27
27
  import "./canvas-Pi10hG_l.esm.js";
28
28
  import "./backCameraStream-ChrMTJv-.esm.js";
29
29
  import "./video-ZY92rkel.esm.js";
30
30
  import "./getDeviceClass-C-Dg6IsJ.esm.js";
31
- import "./deepsightService-CkZqM1Q2.esm.js";
31
+ import "./deepsightService-CViys6T4.esm.js";
32
32
  import "./getDeviceClass-DIjnTPjR.esm.js";
33
33
  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-B8X6E9kx.esm.js";
37
+ import "./recordingService-lBmeVE49.esm.js";
38
38
  import "./mediaRecorderOptions-CClCKAiF.esm.js";
39
- import "./authenticationStateMachine-DXqqxJ6I.esm.js";
40
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CcD_dGoc.esm.js";
39
+ import "./authenticationStateMachine-BBNa41d5.esm.js";
40
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Dwf7TrZC.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-BjQjy8na.esm.js";
55
- import { n as createSelfieManagerFromActor } from "./selfieManager-up_j4EgF.esm.js";
56
- import "./idCaptureStateMachine-DfHWOR-E.esm.js";
54
+ import "./selfieStateMachine-Czcb2so_.esm.js";
55
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DsoqRiV2.esm.js";
56
+ import "./idCaptureStateMachine-B7vsPrsl.esm.js";
57
57
  import "./idCaptureDefaults-CZajItdO.esm.js";
58
- import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-DeObKOhW.esm.js";
58
+ import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-BziLyrVE.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";
@@ -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-DqJSpW5Z.esm.js";
3
+ import { n as concealmentToAvatar } from "./faceCaptureSetup-Gj6XnsY4.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-C9oNZSHm.esm.js";
4
+ import { c as sendLabelInspectionEvent, f as stopStream, l as startDetection, o as initializeCamera, s as initializeDeepsightSession } from "./onDeviceFaceResults-BWxOJueW.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-B8X6E9kx.esm.js";
9
+ import { n as preloadOpenViduProvider, r as flagFaceManualReview, t as createRecordingService } from "./recordingService-lBmeVE49.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 xstate965 from "xstate";
13
+ import * as xstate261 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: xstate965.StateMachine<xstate965.MachineContext, xstate965.AnyEventObject, {}, never, never, never, never, "finished", string, xstate965.NonReducibleUnknown, xstate965.NonReducibleUnknown, xstate965.EventObject, xstate965.MetaObject, {
65
+ declare const noOpFlowModuleMachine: xstate261.StateMachine<xstate261.MachineContext, xstate261.AnyEventObject, {}, never, never, never, never, "finished", string, xstate261.NonReducibleUnknown, xstate261.NonReducibleUnknown, xstate261.EventObject, xstate261.MetaObject, {
66
66
  readonly id: "noOpFlowModule";
67
67
  readonly initial: "finished";
68
68
  readonly states: {
package/dist/flow.esm.js CHANGED
@@ -3,8 +3,8 @@ 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-D3VzSnPy.esm.js";
7
- import "./browserSimulation-CWJhFPZ2.esm.js";
6
+ import "./sessionInitializer-DdIllyuV.esm.js";
7
+ import "./browserSimulation-DZwEy9bu.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";
@@ -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-CeUfzu0a.esm.js";
16
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-OFgzA7NX.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]?.configuration
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?.configuration
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?.configuration
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-D3VzSnPy.esm.js";
3
+ import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DdIllyuV.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 xstate637 from "xstate";
9
+ import * as xstate244 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: xstate637.StateMachine<HomeContext, {
41
+ declare const homeMachine: xstate244.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, xstate637.NonReducibleUnknown, xstate637.EventObject, xstate637.MetaObject, {
47
+ }, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate244.NonReducibleUnknown, xstate244.EventObject, xstate244.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): xstate637.ActorRefFromLogic<never>;
55
- <TLogic extends xstate637.AnyActorLogic>(src: TLogic, ...[options]: xstate637.ConditionalRequired<[options?: ({
54
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate244.ActorRefFromLogic<never>;
55
+ <TLogic extends xstate244.AnyActorLogic>(src: TLogic, ...[options]: xstate244.ConditionalRequired<[options?: ({
56
56
  id?: never;
57
57
  systemId?: string;
58
- input?: xstate637.InputFrom<TLogic> | undefined;
58
+ input?: xstate244.InputFrom<TLogic> | undefined;
59
59
  syncSnapshot?: boolean;
60
- } & { [K in xstate637.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate637.IsNotNever<xstate637.RequiredLogicInput<TLogic>>>): xstate637.ActorRefFromLogic<TLogic>;
60
+ } & { [K in xstate244.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate244.IsNotNever<xstate244.RequiredLogicInput<TLogic>>>): xstate244.ActorRefFromLogic<TLogic>;
61
61
  };
62
62
  input: HomeInput;
63
- self: xstate637.ActorRef<xstate637.MachineSnapshot<HomeContext, {
63
+ self: xstate244.ActorRef<xstate244.MachineSnapshot<HomeContext, {
64
64
  type: "LOAD";
65
65
  } | {
66
66
  type: "COMPLETE";
67
67
  } | {
68
68
  type: "RESET";
69
- }, Record<string, xstate637.AnyActorRef | undefined>, xstate637.StateValue, string, unknown, any, any>, {
69
+ }, Record<string, xstate244.AnyActorRef | undefined>, xstate244.StateValue, string, unknown, any, any>, {
70
70
  type: "LOAD";
71
71
  } | {
72
72
  type: "COMPLETE";
73
73
  } | {
74
74
  type: "RESET";
75
- }, xstate637.AnyEventObject>;
75
+ }, xstate244.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-In32pFy6.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-BeUOERWK.js";
5
5
 
6
6
  //#region src/modules/id-ocr/idOcrFields.d.ts
7
7
  declare const OCR_FIELDS: OcrFieldConfig[];