@incodetech/core 0.0.0-dev-20260417-d5a60c8 → 0.0.0-dev-20260418-89e0d60

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 (79) hide show
  1. package/dist/{addressSearch-C7jdpkpZ.esm.js → addressSearch-CBmh3AXP.esm.js} +1 -1
  2. package/dist/{ae-signature-Bo9bcyNn.esm.js → ae-signature-BbRI5Qzn.esm.js} +1 -1
  3. package/dist/ae-signature.d.ts +1 -1
  4. package/dist/ae-signature.esm.js +3 -3
  5. package/dist/antifraud.esm.js +2 -2
  6. package/dist/{antifraudStateMachine-9HvNUpbn.esm.js → antifraudStateMachine-CpwtQyX5.esm.js} +1 -1
  7. package/dist/authentication.esm.js +6 -6
  8. package/dist/{authenticationManager-CNE7WbxB.esm.js → authenticationManager-D1CGAxwM.esm.js} +3 -3
  9. package/dist/{authenticationStateMachine-DrZH7hSN.esm.js → authenticationStateMachine-yeeQh71H.esm.js} +3 -3
  10. package/dist/consent.d.ts +53 -53
  11. package/dist/consent.esm.js +2 -2
  12. package/dist/{consentStateMachine-hnEBcICC.esm.js → consentStateMachine-DCDbjgLj.esm.js} +1 -1
  13. package/dist/cross-document-data-match.esm.js +1 -1
  14. package/dist/curp-validation.esm.js +2 -2
  15. package/dist/{curpValidationStateMachine-tPZjHZeF.esm.js → curpValidationStateMachine-BURePwX5.esm.js} +1 -1
  16. package/dist/document-capture.d.ts +76 -76
  17. package/dist/document-capture.esm.js +2 -2
  18. package/dist/document-upload.d.ts +49 -49
  19. package/dist/document-upload.esm.js +1 -1
  20. package/dist/{documentCaptureStateMachine-CNlRr6_9.esm.js → documentCaptureStateMachine-vuDvKpBa.esm.js} +1 -1
  21. package/dist/ekyb.esm.js +5 -5
  22. package/dist/{ekybStateMachine-BdztAoD6.esm.js → ekybStateMachine-CF4d_Fq4.esm.js} +3 -3
  23. package/dist/ekyc.esm.js +3 -3
  24. package/dist/{ekycStateMachine-DMBeGWMr.esm.js → ekycStateMachine-CMkH73Rd.esm.js} +2 -2
  25. package/dist/electronic-signature.d.ts +1 -1
  26. package/dist/electronic-signature.esm.js +2 -2
  27. package/dist/{electronicSignatureManager-GcFaftXp.esm.js → electronicSignatureManager-Cp450Tvy.esm.js} +1 -1
  28. package/dist/email.esm.js +3 -3
  29. package/dist/{emailManager-rQAZJqi6.esm.js → emailManager-DZ1bKeHd.esm.js} +2 -2
  30. package/dist/{emailStateMachine-s7890k9s.esm.js → emailStateMachine-CSyUXPrM.esm.js} +1 -1
  31. package/dist/{events-GaZE-J-6.esm.js → events-CLo0CBD5.esm.js} +1 -0
  32. package/dist/events.esm.js +1 -1
  33. package/dist/extensibility.esm.js +15 -15
  34. package/dist/face-match.esm.js +2 -2
  35. package/dist/{faceCaptureManagerFactory-HCZKJWs9.esm.js → faceCaptureManagerFactory-B9xq08-G.esm.js} +1 -1
  36. package/dist/{faceCaptureSetup-DqAsTyMA.esm.js → faceCaptureSetup-Dmvit1y7.esm.js} +1 -1
  37. package/dist/{faceMatchStateMachine-BOg2w1nJ.esm.js → faceMatchStateMachine-B03-JK_T.esm.js} +1 -1
  38. package/dist/flow.esm.js +4 -4
  39. package/dist/{flowCompletionService-BoRh9z5O.esm.js → flowCompletionService-DDrZ_9FJ.esm.js} +1 -1
  40. package/dist/{flowServices-ibDApkcC.esm.js → flowServices-UvwXCNq9.esm.js} +2 -2
  41. package/dist/geolocation.esm.js +2 -2
  42. package/dist/{geolocationStateMachine-Cyz25gsF.esm.js → geolocationStateMachine-Co0puEUX.esm.js} +1 -1
  43. package/dist/government-validation.esm.js +2 -2
  44. package/dist/{governmentValidationStateMachine-ubUpL0QS.esm.js → governmentValidationStateMachine-CtccpJa8.esm.js} +1 -1
  45. package/dist/home.d.ts +10 -10
  46. package/dist/home.esm.js +1 -1
  47. package/dist/id.esm.js +5 -5
  48. package/dist/{idCaptureManager-Bvv0ssj8.esm.js → idCaptureManager-DhQXfuJt.esm.js} +2 -2
  49. package/dist/{idCaptureStateMachine-hELTmJQc.esm.js → idCaptureStateMachine-BdfhVQwC.esm.js} +3 -3
  50. package/dist/identity-reuse.d.ts +44 -44
  51. package/dist/identity-reuse.esm.js +1 -1
  52. package/dist/{index-Ddix1a4Z.d.ts → index-KnSX6CGk.d.ts} +119 -119
  53. package/dist/index.esm.js +3 -3
  54. package/dist/mandatory-consent.d.ts +50 -50
  55. package/dist/mandatory-consent.esm.js +2 -2
  56. package/dist/{mandatoryConsentStateMachine-C6GePX2H.esm.js → mandatoryConsentStateMachine-DNVESbJF.esm.js} +1 -1
  57. package/dist/phone.esm.js +3 -3
  58. package/dist/{phoneManager-CPVBmE6I.esm.js → phoneManager-BFinSDdo.esm.js} +2 -2
  59. package/dist/{phoneStateMachine-B2GLKrTW.esm.js → phoneStateMachine-BjhtmUGF.esm.js} +1 -1
  60. package/dist/{qe-signature-DJaEMQVC.esm.js → qe-signature-LHWeEEln.esm.js} +1 -1
  61. package/dist/qe-signature.d.ts +1 -1
  62. package/dist/qe-signature.esm.js +3 -3
  63. package/dist/{recordingService-MRs_oIlD.esm.js → recordingService-B6vw5h4n.esm.js} +1 -1
  64. package/dist/redirect-to-mobile.esm.js +2 -2
  65. package/dist/{redirectToMobileStateMachine-CRFimlD6.esm.js → redirectToMobileStateMachine-Clr48nAr.esm.js} +1 -1
  66. package/dist/selfie.esm.js +6 -6
  67. package/dist/{selfieManager-Cvixzq_O.esm.js → selfieManager-BSGrpyaa.esm.js} +3 -3
  68. package/dist/{selfieStateMachine-BkYFIb_x.esm.js → selfieStateMachine-C5LVaSTG.esm.js} +2 -2
  69. package/dist/{session-4kX3TYAC.esm.js → session-Ccqv3mbs.esm.js} +35 -2
  70. package/dist/session.d.ts +29 -1
  71. package/dist/session.esm.js +4 -4
  72. package/dist/{setup-DTuM389Q.esm.js → setup-BNco1B1s.esm.js} +2 -2
  73. package/dist/signature.esm.js +2 -2
  74. package/dist/{signatureStateMachine-tCR_BVLG.esm.js → signatureStateMachine-CJC7eNaf.esm.js} +1 -1
  75. package/dist/wasm.esm.js +3 -3
  76. package/dist/watchlist.esm.js +1 -1
  77. package/dist/workflow.d.ts +82 -82
  78. package/dist/workflow.esm.js +27 -27
  79. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { a as setup, n as isConfigured, r as reset } from "./setup-DTuM389Q.esm.js";
1
+ import { a as setup, n as isConfigured, r as reset } from "./setup-BNco1B1s.esm.js";
2
2
  import "./BaseWasmProvider-D2uvIbAN.esm.js";
3
3
  import "./WasmUtilProvider-OnSlurfW.esm.js";
4
4
  import "./api-BhYI_G8R.esm.js";
5
- import "./events-GaZE-J-6.esm.js";
6
- import "./session-4kX3TYAC.esm.js";
5
+ import "./events-CLo0CBD5.esm.js";
6
+ import "./session-Ccqv3mbs.esm.js";
7
7
  import "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
8
8
  import "./browserSimulation-UTYyQOiB.esm.js";
9
9
 
@@ -3,7 +3,7 @@ import "./Actor-Cqaw-2DF.js";
3
3
  import "./camera-C1Lz6NFz.js";
4
4
  import "./types-DGwsRYfm.js";
5
5
  import { a as RegulationTypes } from "./types-x6tue2ld.js";
6
- import * as xstate67 from "xstate";
6
+ import * as xstate794 from "xstate";
7
7
 
8
8
  //#region src/modules/mandatory-consent/types.d.ts
9
9
  type MandatoryConsentConfig = {
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
30
30
  type MandatoryConsentInput = {
31
31
  config: MandatoryConsentConfig;
32
32
  };
33
- declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate794.StateMachine<MandatoryConsentContext, {
34
34
  type: "LOAD";
35
35
  } | {
36
36
  type: "TOGGLE";
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
43
43
  } | {
44
44
  type: "RESET";
45
45
  }, {
46
- [x: string]: xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate794.ActorRefFromLogic<xstate794.PromiseActorLogic<FetchMandatoryConsentResponse, {
47
47
  config: MandatoryConsentConfig;
48
- }, xstate67.EventObject>> | xstate67.ActorRefFromLogic<xstate67.PromiseActorLogic<void, {
48
+ }, xstate794.EventObject>> | xstate794.ActorRefFromLogic<xstate794.PromiseActorLogic<void, {
49
49
  consentId: string;
50
50
  isSigned: boolean;
51
- }, xstate67.EventObject>> | undefined;
52
- }, xstate67.Values<{
51
+ }, xstate794.EventObject>> | undefined;
52
+ }, xstate794.Values<{
53
53
  fetchConsent: {
54
54
  src: "fetchConsent";
55
- logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate794.PromiseActorLogic<FetchMandatoryConsentResponse, {
56
56
  config: MandatoryConsentConfig;
57
- }, xstate67.EventObject>;
57
+ }, xstate794.EventObject>;
58
58
  id: string | undefined;
59
59
  };
60
60
  submitConsent: {
61
61
  src: "submitConsent";
62
- logic: xstate67.PromiseActorLogic<void, {
62
+ logic: xstate794.PromiseActorLogic<void, {
63
63
  consentId: string;
64
64
  isSigned: boolean;
65
- }, xstate67.EventObject>;
65
+ }, xstate794.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate67.Values<{
68
+ }>, xstate794.Values<{
69
69
  setConsent: {
70
70
  type: "setConsent";
71
- params: xstate67.NonReducibleUnknown;
72
- };
73
- setError: {
74
- type: "setError";
75
- params: xstate67.NonReducibleUnknown;
71
+ params: xstate794.NonReducibleUnknown;
76
72
  };
77
73
  clearError: {
78
74
  type: "clearError";
79
- params: xstate67.NonReducibleUnknown;
75
+ params: xstate794.NonReducibleUnknown;
76
+ };
77
+ setError: {
78
+ type: "setError";
79
+ params: xstate794.NonReducibleUnknown;
80
80
  };
81
81
  resetContext: {
82
82
  type: "resetContext";
83
- params: xstate67.NonReducibleUnknown;
83
+ params: xstate794.NonReducibleUnknown;
84
84
  };
85
85
  toggleSigned: {
86
86
  type: "toggleSigned";
87
- params: xstate67.NonReducibleUnknown;
87
+ params: xstate794.NonReducibleUnknown;
88
88
  };
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate67.NonReducibleUnknown, xstate67.EventObject, xstate67.MetaObject, {
92
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate794.NonReducibleUnknown, xstate794.EventObject, xstate794.MetaObject, {
93
93
  readonly id: "mandatoryConsent";
94
94
  readonly initial: "idle";
95
95
  readonly context: ({
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
98
98
  spawn: {
99
99
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
100
100
  src: "fetchConsent";
101
- logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate794.PromiseActorLogic<FetchMandatoryConsentResponse, {
102
102
  config: MandatoryConsentConfig;
103
- }, xstate67.EventObject>;
103
+ }, xstate794.EventObject>;
104
104
  id: string | undefined;
105
105
  } extends infer T ? T extends {
106
106
  src: "fetchConsent";
107
- logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate794.PromiseActorLogic<FetchMandatoryConsentResponse, {
108
108
  config: MandatoryConsentConfig;
109
- }, xstate67.EventObject>;
109
+ }, xstate794.EventObject>;
110
110
  id: string | undefined;
111
111
  } ? T extends {
112
112
  src: TSrc;
113
- } ? xstate67.ConditionalRequired<[options?: ({
113
+ } ? xstate794.ConditionalRequired<[options?: ({
114
114
  id?: T["id"] | undefined;
115
115
  systemId?: string;
116
- input?: xstate67.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate794.InputFrom<T["logic"]> | undefined;
117
117
  syncSnapshot?: boolean;
118
- } & { [K in xstate67.RequiredActorOptions<T>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate794.RequiredActorOptions<T>]: unknown }) | undefined], xstate794.IsNotNever<xstate794.RequiredActorOptions<T>>> : never : never : never) | ({
119
119
  src: "submitConsent";
120
- logic: xstate67.PromiseActorLogic<void, {
120
+ logic: xstate794.PromiseActorLogic<void, {
121
121
  consentId: string;
122
122
  isSigned: boolean;
123
- }, xstate67.EventObject>;
123
+ }, xstate794.EventObject>;
124
124
  id: string | undefined;
125
125
  } extends infer T_1 ? T_1 extends {
126
126
  src: "submitConsent";
127
- logic: xstate67.PromiseActorLogic<void, {
127
+ logic: xstate794.PromiseActorLogic<void, {
128
128
  consentId: string;
129
129
  isSigned: boolean;
130
- }, xstate67.EventObject>;
130
+ }, xstate794.EventObject>;
131
131
  id: string | undefined;
132
132
  } ? T_1 extends {
133
133
  src: TSrc;
134
- } ? xstate67.ConditionalRequired<[options?: ({
134
+ } ? xstate794.ConditionalRequired<[options?: ({
135
135
  id?: T_1["id"] | undefined;
136
136
  systemId?: string;
137
- input?: xstate67.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate794.InputFrom<T_1["logic"]> | undefined;
138
138
  syncSnapshot?: boolean;
139
- } & { [K_1 in xstate67.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredActorOptions<T_1>>> : never : never : never)): xstate67.ActorRefFromLogic<xstate67.GetConcreteByKey<xstate67.Values<{
139
+ } & { [K_1 in xstate794.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate794.IsNotNever<xstate794.RequiredActorOptions<T_1>>> : never : never : never)): xstate794.ActorRefFromLogic<xstate794.GetConcreteByKey<xstate794.Values<{
140
140
  fetchConsent: {
141
141
  src: "fetchConsent";
142
- logic: xstate67.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate794.PromiseActorLogic<FetchMandatoryConsentResponse, {
143
143
  config: MandatoryConsentConfig;
144
- }, xstate67.EventObject>;
144
+ }, xstate794.EventObject>;
145
145
  id: string | undefined;
146
146
  };
147
147
  submitConsent: {
148
148
  src: "submitConsent";
149
- logic: xstate67.PromiseActorLogic<void, {
149
+ logic: xstate794.PromiseActorLogic<void, {
150
150
  consentId: string;
151
151
  isSigned: boolean;
152
- }, xstate67.EventObject>;
152
+ }, xstate794.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  }>, "src", TSrc>["logic"]>;
156
- <TLogic extends xstate67.AnyActorLogic>(src: TLogic, ...[options]: xstate67.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate794.AnyActorLogic>(src: TLogic, ...[options]: xstate794.ConditionalRequired<[options?: ({
157
157
  id?: never;
158
158
  systemId?: string;
159
- input?: xstate67.InputFrom<TLogic> | undefined;
159
+ input?: xstate794.InputFrom<TLogic> | undefined;
160
160
  syncSnapshot?: boolean;
161
- } & { [K in xstate67.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate67.IsNotNever<xstate67.RequiredLogicInput<TLogic>>>): xstate67.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate794.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate794.IsNotNever<xstate794.RequiredLogicInput<TLogic>>>): xstate794.ActorRefFromLogic<TLogic>;
162
162
  };
163
163
  input: MandatoryConsentInput;
164
- self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate794.ActorRef<xstate794.MachineSnapshot<MandatoryConsentContext, {
165
165
  type: "LOAD";
166
166
  } | {
167
167
  type: "TOGGLE";
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
173
173
  type: "RETRY";
174
174
  } | {
175
175
  type: "RESET";
176
- }, Record<string, xstate67.AnyActorRef | undefined>, xstate67.StateValue, string, unknown, any, any>, {
176
+ }, Record<string, xstate794.AnyActorRef | undefined>, xstate794.StateValue, string, unknown, any, any>, {
177
177
  type: "LOAD";
178
178
  } | {
179
179
  type: "TOGGLE";
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
185
185
  type: "RETRY";
186
186
  } | {
187
187
  type: "RESET";
188
- }, xstate67.AnyEventObject>;
188
+ }, xstate794.AnyEventObject>;
189
189
  }) => {
190
190
  config: MandatoryConsentConfig;
191
191
  consent: undefined;
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
222
222
  } | {
223
223
  type: "RESET";
224
224
  };
225
- self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate794.ActorRef<xstate794.MachineSnapshot<MandatoryConsentContext, {
226
226
  type: "LOAD";
227
227
  } | {
228
228
  type: "TOGGLE";
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
234
234
  type: "RETRY";
235
235
  } | {
236
236
  type: "RESET";
237
- }, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
237
+ }, Record<string, xstate794.AnyActorRef>, xstate794.StateValue, string, unknown, any, any>, {
238
238
  type: "LOAD";
239
239
  } | {
240
240
  type: "TOGGLE";
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
246
246
  type: "RETRY";
247
247
  } | {
248
248
  type: "RESET";
249
- }, xstate67.AnyEventObject>;
249
+ }, xstate794.AnyEventObject>;
250
250
  }) => {
251
251
  config: MandatoryConsentConfig;
252
252
  };
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
299
299
  } | {
300
300
  type: "RESET";
301
301
  };
302
- self: xstate67.ActorRef<xstate67.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate794.ActorRef<xstate794.MachineSnapshot<MandatoryConsentContext, {
303
303
  type: "LOAD";
304
304
  } | {
305
305
  type: "TOGGLE";
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
311
311
  type: "RETRY";
312
312
  } | {
313
313
  type: "RESET";
314
- }, Record<string, xstate67.AnyActorRef>, xstate67.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate794.AnyActorRef>, xstate794.StateValue, string, unknown, any, any>, {
315
315
  type: "LOAD";
316
316
  } | {
317
317
  type: "TOGGLE";
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate67.StateMachine<MandatoryConsentCon
323
323
  type: "RETRY";
324
324
  } | {
325
325
  type: "RESET";
326
- }, xstate67.AnyEventObject>;
326
+ }, xstate794.AnyEventObject>;
327
327
  }) => {
328
328
  consentId: string;
329
329
  isSigned: boolean;
@@ -1,7 +1,7 @@
1
1
  import "./api-BhYI_G8R.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-GaZE-J-6.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CLo0CBD5.esm.js";
3
3
  import { a as createActor, o as createManager } from "./xstate.esm-BlgyVBVv.esm.js";
4
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-C6GePX2H.esm.js";
4
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DNVESbJF.esm.js";
5
5
 
6
6
  //#region src/modules/mandatory-consent/mandatoryConsentActor.ts
7
7
  function createMandatoryConsentActor(options) {
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BhYI_G8R.esm.js";
2
- import { _ as endpoints } from "./events-GaZE-J-6.esm.js";
2
+ import { _ as endpoints } from "./events-CLo0CBD5.esm.js";
3
3
  import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
4
4
 
5
5
  //#region src/modules/mandatory-consent/mandatoryConsentServices.ts
package/dist/phone.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./api-BhYI_G8R.esm.js";
2
- import "./events-GaZE-J-6.esm.js";
2
+ import "./events-CLo0CBD5.esm.js";
3
3
  import "./xstate.esm-BlgyVBVv.esm.js";
4
4
  import "./BrowserTimerProvider-DDCqhG2g.esm.js";
5
- import { t as phoneMachine } from "./phoneStateMachine-B2GLKrTW.esm.js";
6
- import { t as createPhoneManager } from "./phoneManager-CPVBmE6I.esm.js";
5
+ import { t as phoneMachine } from "./phoneStateMachine-BjhtmUGF.esm.js";
6
+ import { t as createPhoneManager } from "./phoneManager-BFinSDdo.esm.js";
7
7
 
8
8
  export { createPhoneManager, phoneMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-GaZE-J-6.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CLo0CBD5.esm.js";
2
2
  import { a as createActor, o as createManager } from "./xstate.esm-BlgyVBVv.esm.js";
3
- import { t as phoneMachine } from "./phoneStateMachine-B2GLKrTW.esm.js";
3
+ import { t as phoneMachine } from "./phoneStateMachine-BjhtmUGF.esm.js";
4
4
 
5
5
  //#region src/modules/phone/phoneActor.ts
6
6
  function createPhoneActor(options) {
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BhYI_G8R.esm.js";
2
- import { _ as endpoints } from "./events-GaZE-J-6.esm.js";
2
+ import { _ as endpoints } from "./events-CLo0CBD5.esm.js";
3
3
  import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DDCqhG2g.esm.js";
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as createElectronicSignatureManager } from "./electronicSignatureManager-GcFaftXp.esm.js";
1
+ import { t as createElectronicSignatureManager } from "./electronicSignatureManager-Cp450Tvy.esm.js";
2
2
 
3
3
  //#region src/modules/qe-signature/index.ts
4
4
  function createQeSignatureManager(options) {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C1r-74H0.js";
2
2
  import "./Actor-Cqaw-2DF.js";
3
- import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-Ddix1a4Z.js";
3
+ import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-KnSX6CGk.js";
4
4
 
5
5
  //#region src/modules/qe-signature/index.d.ts
6
6
 
@@ -1,7 +1,7 @@
1
1
  import "./api-BhYI_G8R.esm.js";
2
- import "./events-GaZE-J-6.esm.js";
2
+ import "./events-CLo0CBD5.esm.js";
3
3
  import "./xstate.esm-BlgyVBVv.esm.js";
4
- import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks } from "./electronicSignatureManager-GcFaftXp.esm.js";
5
- import { t as createQeSignatureManager } from "./qe-signature-DJaEMQVC.esm.js";
4
+ import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks } from "./electronicSignatureManager-Cp450Tvy.esm.js";
5
+ import { t as createQeSignatureManager } from "./qe-signature-LHWeEEln.esm.js";
6
6
 
7
7
  export { QE_CONSENT_KEYS, areAllConsented, createQeSignatureManager, getDefaultConsentChecks, electronicSignatureMachine as qeSignatureMachine };
@@ -1,6 +1,6 @@
1
1
  import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-D2uvIbAN.esm.js";
2
2
  import { t as api } from "./api-BhYI_G8R.esm.js";
3
- import { _ as endpoints } from "./events-GaZE-J-6.esm.js";
3
+ import { _ as endpoints } from "./events-CLo0CBD5.esm.js";
4
4
  import { n as IncodeCanvas } from "./deepsightService-C8LxpD33.esm.js";
5
5
  import { i as stopCameraStream, r as requestCameraAccess } from "./camera-tcz9eaMX.esm.js";
6
6
  import { t as addDeviceStats } from "./stats-CEGFkSDj.esm.js";
@@ -1,8 +1,8 @@
1
1
  import "./api-BhYI_G8R.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-GaZE-J-6.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CLo0CBD5.esm.js";
3
3
  import { a as createActor, o as createManager } from "./xstate.esm-BlgyVBVv.esm.js";
4
4
  import "./BrowserTimerProvider-DDCqhG2g.esm.js";
5
- import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-CRFimlD6.esm.js";
5
+ import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-Clr48nAr.esm.js";
6
6
 
7
7
  //#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
8
8
  function createRedirectToMobileActor(options) {
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BhYI_G8R.esm.js";
2
- import { _ as endpoints } from "./events-GaZE-J-6.esm.js";
2
+ import { _ as endpoints } from "./events-CLo0CBD5.esm.js";
3
3
  import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-DDCqhG2g.esm.js";
5
5
 
@@ -1,12 +1,12 @@
1
1
  import "./BaseWasmProvider-D2uvIbAN.esm.js";
2
2
  import "./WasmUtilProvider-OnSlurfW.esm.js";
3
3
  import "./api-BhYI_G8R.esm.js";
4
- import "./events-GaZE-J-6.esm.js";
4
+ import "./events-CLo0CBD5.esm.js";
5
5
  import "./browserSimulation-UTYyQOiB.esm.js";
6
6
  import "./xstate.esm-BlgyVBVv.esm.js";
7
- import "./faceCaptureManagerFactory-HCZKJWs9.esm.js";
7
+ import "./faceCaptureManagerFactory-B9xq08-G.esm.js";
8
8
  import "./BrowserStorageProvider-DOp7HlOV.esm.js";
9
- import { l as processFace } from "./recordingService-MRs_oIlD.esm.js";
9
+ import { l as processFace } from "./recordingService-B6vw5h4n.esm.js";
10
10
  import "./deepsightService-C8LxpD33.esm.js";
11
11
  import "./camera-tcz9eaMX.esm.js";
12
12
  import "./getBrowser-a8Hu_roJ.esm.js";
@@ -17,8 +17,8 @@ import "./platform-BcNZipjK.esm.js";
17
17
  import "./ITimerCapability-6rqYcRcc.esm.js";
18
18
  import "./backCameraStream-BgZ58W73.esm.js";
19
19
  import "./getDeviceClass-DEQ0Ko8p.esm.js";
20
- import "./faceCaptureSetup-DqAsTyMA.esm.js";
21
- import { t as selfieMachine } from "./selfieStateMachine-BkYFIb_x.esm.js";
22
- import { t as createSelfieManager } from "./selfieManager-Cvixzq_O.esm.js";
20
+ import "./faceCaptureSetup-Dmvit1y7.esm.js";
21
+ import { t as selfieMachine } from "./selfieStateMachine-C5LVaSTG.esm.js";
22
+ import { t as createSelfieManager } from "./selfieManager-BSGrpyaa.esm.js";
23
23
 
24
24
  export { createSelfieManager, processFace, selfieMachine };
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-OnSlurfW.esm.js";
2
- import { n as eventModuleNames } from "./events-GaZE-J-6.esm.js";
2
+ import { n as eventModuleNames } from "./events-CLo0CBD5.esm.js";
3
3
  import { a as createActor } from "./xstate.esm-BlgyVBVv.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-HCZKJWs9.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B9xq08-G.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-DOp7HlOV.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-BkYFIb_x.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-C5LVaSTG.esm.js";
7
7
 
8
8
  //#region src/modules/selfie/selfieActor.ts
9
9
  function createSelfieActor(options) {
@@ -1,6 +1,6 @@
1
1
  import { i as fromPromise, n as assign } from "./xstate.esm-BlgyVBVv.esm.js";
2
- import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-MRs_oIlD.esm.js";
3
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DqAsTyMA.esm.js";
2
+ import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-B6vw5h4n.esm.js";
3
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-Dmvit1y7.esm.js";
4
4
 
5
5
  //#region src/modules/selfie/selfieErrorUtils.ts
6
6
  const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
@@ -1,9 +1,17 @@
1
1
  import { n as getApi, t as api } from "./api-BhYI_G8R.esm.js";
2
- import { _ as endpoints, m as addEvent } from "./events-GaZE-J-6.esm.js";
2
+ import { _ as endpoints, m as addEvent } from "./events-CLo0CBD5.esm.js";
3
3
  import { t as BrowserEnvironmentProvider } from "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
4
4
  import { t as isBrowserSimulation } from "./browserSimulation-UTYyQOiB.esm.js";
5
5
 
6
6
  //#region src/internal/session/sessionService.ts
7
+ var QrValidationError = class extends Error {
8
+ constructor(status, statusText) {
9
+ super(`POST ${endpoints.qrValidateUuid} failed: ${status} ${statusText}`);
10
+ this.name = "QrValidationError";
11
+ this.status = status;
12
+ this.statusText = statusText;
13
+ }
14
+ };
7
15
  /**
8
16
  * Creates a new onboarding session.
9
17
  *
@@ -29,6 +37,7 @@ async function createSession(apiKey, options, signal) {
29
37
  language: options.language ?? "en-US",
30
38
  customFields: options.customFields,
31
39
  uuid: options.uuid ?? null,
40
+ urlUuid: options.urlUuid ?? null,
32
41
  interviewId: options.interviewId ?? null
33
42
  }, {
34
43
  headers: {
@@ -40,6 +49,30 @@ async function createSession(apiKey, options, signal) {
40
49
  if (!res.ok) throw new Error(`POST ${endpoints.createSession} failed: ${res.status} ${res.statusText}`);
41
50
  return res.data;
42
51
  }
52
+ /**
53
+ * Validates and rotates a QR anti-phishing URL UUID before creating a session.
54
+ *
55
+ * This call is unauthenticated; the `{ onboardingId, urlUuid }` pair itself
56
+ * acts as the credential. The server burns the incoming `urlUuid` and returns
57
+ * a freshly minted one that must be used in the subsequent `createSession`
58
+ * call.
59
+ *
60
+ * @param options - `{ onboardingId, urlUuid }` from the incoming URL
61
+ * @param signal - Optional AbortSignal for request cancellation
62
+ * @returns The refreshed `urlUuid` to use for the session
63
+ * @throws {QrValidationError} When the server rejects the validation request.
64
+ */
65
+ async function validateQrUuid(options, signal) {
66
+ const res = await getApi().post(endpoints.qrValidateUuid, {
67
+ onboardingId: options.onboardingId,
68
+ urlUuid: options.urlUuid
69
+ }, {
70
+ headers: { "api-version": "1.0" },
71
+ signal
72
+ });
73
+ if (!res.ok) throw new QrValidationError(res.status, res.statusText);
74
+ return res.data;
75
+ }
43
76
 
44
77
  //#endregion
45
78
  //#region ../../node_modules/.pnpm/ua-parser-js@2.0.9/node_modules/ua-parser-js/src/main/ua-parser.mjs
@@ -3113,4 +3146,4 @@ function resetSessionInit() {
3113
3146
  }
3114
3147
 
3115
3148
  //#endregion
3116
- export { IpifyProvider as a, createSession as c, resetSessionInit as i, getSessionFingerprintResult as n, FingerprintProvider as o, initializeSession as r, getDeviceFingerprintInfo as s, getDisableIpify as t };
3149
+ export { IpifyProvider as a, QrValidationError as c, resetSessionInit as i, createSession as l, getSessionFingerprintResult as n, FingerprintProvider as o, initializeSession as r, getDeviceFingerprintInfo as s, getDisableIpify as t, validateQrUuid as u };
package/dist/session.d.ts CHANGED
@@ -14,6 +14,8 @@ type CreateSessionOptions = {
14
14
  customFields?: Record<string, unknown>;
15
15
  /** UUID for continuing an existing session */
16
16
  uuid?: string;
17
+ /** QR anti-phishing token for continuing a phishing-resistant session from a mobile link */
18
+ urlUuid?: string;
17
19
  /** Interview ID for continuing an existing interview */
18
20
  interviewId?: string;
19
21
  };
@@ -24,6 +26,18 @@ type Session = {
24
26
  regulationType?: string;
25
27
  showMandatoryConsent?: boolean;
26
28
  };
29
+ type ValidateQrUuidOptions = {
30
+ onboardingId: string | null;
31
+ urlUuid: string;
32
+ };
33
+ type QrValidationResult = {
34
+ urlUuid: string;
35
+ };
36
+ declare class QrValidationError extends Error {
37
+ readonly status: number;
38
+ readonly statusText: string;
39
+ constructor(status: number, statusText: string);
40
+ }
27
41
  /**
28
42
  * Creates a new onboarding session.
29
43
  *
@@ -42,5 +56,19 @@ type Session = {
42
56
  * ```
43
57
  */
44
58
  declare function createSession(apiKey: string, options: CreateSessionOptions, signal?: AbortSignal): Promise<Session>;
59
+ /**
60
+ * Validates and rotates a QR anti-phishing URL UUID before creating a session.
61
+ *
62
+ * This call is unauthenticated; the `{ onboardingId, urlUuid }` pair itself
63
+ * acts as the credential. The server burns the incoming `urlUuid` and returns
64
+ * a freshly minted one that must be used in the subsequent `createSession`
65
+ * call.
66
+ *
67
+ * @param options - `{ onboardingId, urlUuid }` from the incoming URL
68
+ * @param signal - Optional AbortSignal for request cancellation
69
+ * @returns The refreshed `urlUuid` to use for the session
70
+ * @throws {QrValidationError} When the server rejects the validation request.
71
+ */
72
+ declare function validateQrUuid(options: ValidateQrUuidOptions, signal?: AbortSignal): Promise<QrValidationResult>;
45
73
  //#endregion
46
- export { type CreateSessionOptions, type FinishStatus, type GetFinishStatusFn, type Session, createSession, getFinishStatus };
74
+ export { type CreateSessionOptions, type FinishStatus, type GetFinishStatusFn, QrValidationError, type QrValidationResult, type Session, type ValidateQrUuidOptions, createSession, getFinishStatus, validateQrUuid };
@@ -1,8 +1,8 @@
1
1
  import "./api-BhYI_G8R.esm.js";
2
- import "./events-GaZE-J-6.esm.js";
3
- import { c as createSession } from "./session-4kX3TYAC.esm.js";
2
+ import "./events-CLo0CBD5.esm.js";
3
+ import { c as QrValidationError, l as createSession, u as validateQrUuid } from "./session-Ccqv3mbs.esm.js";
4
4
  import "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
5
5
  import "./browserSimulation-UTYyQOiB.esm.js";
6
- import { t as getFinishStatus } from "./flowCompletionService-BoRh9z5O.esm.js";
6
+ import { t as getFinishStatus } from "./flowCompletionService-DDrZ_9FJ.esm.js";
7
7
 
8
- export { createSession, getFinishStatus };
8
+ export { QrValidationError, createSession, getFinishStatus, validateQrUuid };
@@ -1,8 +1,8 @@
1
1
  import { n as warmupWasm } from "./BaseWasmProvider-D2uvIbAN.esm.js";
2
2
  import { t as WasmUtilProvider } from "./WasmUtilProvider-OnSlurfW.esm.js";
3
3
  import { a as resetApi, o as setClient, s as setToken } from "./api-BhYI_G8R.esm.js";
4
- import { h as flushEventQueue } from "./events-GaZE-J-6.esm.js";
5
- import { i as resetSessionInit, r as initializeSession } from "./session-4kX3TYAC.esm.js";
4
+ import { h as flushEventQueue } from "./events-CLo0CBD5.esm.js";
5
+ import { i as resetSessionInit, r as initializeSession } from "./session-Ccqv3mbs.esm.js";
6
6
 
7
7
  //#region ../infra/src/http/createApi.ts
8
8
  var FetchHttpError = class extends Error {
@@ -1,7 +1,7 @@
1
1
  import "./api-BhYI_G8R.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-GaZE-J-6.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CLo0CBD5.esm.js";
3
3
  import { a as createActor, o as createManager } from "./xstate.esm-BlgyVBVv.esm.js";
4
- import { t as signatureMachine } from "./signatureStateMachine-tCR_BVLG.esm.js";
4
+ import { t as signatureMachine } from "./signatureStateMachine-CJC7eNaf.esm.js";
5
5
 
6
6
  //#region src/modules/signature/signatureActor.ts
7
7
  function createSignatureActor(options) {
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BhYI_G8R.esm.js";
2
- import { _ as endpoints, m as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-GaZE-J-6.esm.js";
2
+ import { _ as endpoints, m as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CLo0CBD5.esm.js";
3
3
  import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
4
4
 
5
5
  //#region src/modules/signature/signatureServices.ts
package/dist/wasm.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-DTuM389Q.esm.js";
1
+ import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-BNco1B1s.esm.js";
2
2
  import { n as warmupWasm } from "./BaseWasmProvider-D2uvIbAN.esm.js";
3
3
  import "./WasmUtilProvider-OnSlurfW.esm.js";
4
4
  import "./api-BhYI_G8R.esm.js";
5
- import "./events-GaZE-J-6.esm.js";
6
- import "./session-4kX3TYAC.esm.js";
5
+ import "./events-CLo0CBD5.esm.js";
6
+ import "./session-Ccqv3mbs.esm.js";
7
7
  import "./BrowserEnvironmentProvider-D7IR7V-D.esm.js";
8
8
  import "./browserSimulation-UTYyQOiB.esm.js";
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { t as api } from "./api-BhYI_G8R.esm.js";
2
- import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-GaZE-J-6.esm.js";
2
+ import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CLo0CBD5.esm.js";
3
3
  import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BlgyVBVv.esm.js";
4
4
 
5
5
  //#region src/modules/watchlist/watchlistServices.ts