@incodetech/core 0.0.0-dev-20260409-09dfd52 → 0.0.0-dev-20260409-73c2599

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 (136) hide show
  1. package/dist/{OpenViduRecordingProvider-D_cVAwYQ.esm.js → OpenViduRecordingProvider-JatjSE3h.esm.js} +1 -1
  2. package/dist/{WasmUtilProvider-mWSXzp7b.esm.js → WasmUtilProvider-DRh0wrlm.esm.js} +1 -1
  3. package/dist/{addressSearch-C26OZIx0.esm.js → addressSearch-CDdN30un.esm.js} +4 -4
  4. package/dist/antifraud.d.ts +1 -1
  5. package/dist/antifraud.esm.js +4 -4
  6. package/dist/{antifraudStateMachine-B74mO8vr.esm.js → antifraudStateMachine-C1AgS0nL.esm.js} +3 -3
  7. package/dist/authentication.d.ts +11 -11
  8. package/dist/authentication.esm.js +22 -22
  9. package/dist/{authenticationManager-DOTo1EYF.d.ts → authenticationManager-DYFYx68i.d.ts} +2 -2
  10. package/dist/{authenticationManager-BBQHippG.esm.js → authenticationManager-UaO9UTN7.esm.js} +6 -6
  11. package/dist/{authenticationStateMachine-DCJ0ArAt.esm.js → authenticationStateMachine-DWI65EwK.esm.js} +6 -6
  12. package/dist/{backCameraStream-D9g2wyil.esm.js → backCameraStream-BihRmMzc.esm.js} +3 -3
  13. package/dist/camera.d.ts +1 -1
  14. package/dist/camera.esm.js +3 -3
  15. package/dist/consent.d.ts +52 -52
  16. package/dist/consent.esm.js +4 -4
  17. package/dist/{consentStateMachine-DIdJXJW0.esm.js → consentStateMachine-CpRu2hF0.esm.js} +3 -3
  18. package/dist/cross-document-data-match.d.ts +1 -1
  19. package/dist/cross-document-data-match.esm.js +4 -4
  20. package/dist/curp-validation.d.ts +5 -5
  21. package/dist/curp-validation.esm.js +4 -4
  22. package/dist/{curpValidationStateMachine-Dp5WB6__.esm.js → curpValidationStateMachine-Czzgv2W1.esm.js} +3 -3
  23. package/dist/{deepsightLoader-CaULV07H.esm.js → deepsightLoader-jIgoauFK.esm.js} +10 -10
  24. package/dist/{deepsightService-rPGLH8Xp.esm.js → deepsightService-D4mM8yJ2.esm.js} +5 -5
  25. package/dist/{deepsightService-S-tU77m-.d.ts → deepsightService-DAeakjDd.d.ts} +2 -2
  26. package/dist/device.esm.js +3 -3
  27. package/dist/document-capture.d.ts +70 -70
  28. package/dist/document-capture.esm.js +8 -8
  29. package/dist/document-upload.d.ts +4 -4
  30. package/dist/document-upload.esm.js +7 -7
  31. package/dist/{documentCaptureStateMachine-ByYOCKz5.esm.js → documentCaptureStateMachine-XbpsHzh5.esm.js} +5 -5
  32. package/dist/ekyb.d.ts +3 -3
  33. package/dist/ekyb.esm.js +10 -10
  34. package/dist/{ekybStateMachine-DRku_YmR.esm.js → ekybStateMachine-BDuCae6s.esm.js} +5 -5
  35. package/dist/ekyc.d.ts +3 -3
  36. package/dist/ekyc.esm.js +6 -6
  37. package/dist/{ekycStateMachine-CSWaaWVl.esm.js → ekycStateMachine-DCeUngwi.esm.js} +12 -5
  38. package/dist/email.d.ts +3 -3
  39. package/dist/email.esm.js +6 -6
  40. package/dist/{emailManager-DByjyeY8.esm.js → emailManager-CAeo59lD.esm.js} +3 -3
  41. package/dist/{emailManager-D6CHM2QO.d.ts → emailManager-CZYfcu0n.d.ts} +2 -2
  42. package/dist/{emailStateMachine-BoIkeCw5.esm.js → emailStateMachine-Bqwe_sQS.esm.js} +4 -4
  43. package/dist/{events-W91zLpx4.esm.js → events-CZ2ka3pu.esm.js} +4 -1
  44. package/dist/events.d.ts +1 -0
  45. package/dist/events.esm.js +2 -2
  46. package/dist/extensibility.d.ts +15 -15
  47. package/dist/extensibility.esm.js +33 -33
  48. package/dist/face-match.d.ts +1 -1
  49. package/dist/face-match.esm.js +4 -4
  50. package/dist/{faceCaptureManagerFactory-Bspg2Tyf.esm.js → faceCaptureManagerFactory-D8zlMTvd.esm.js} +2 -2
  51. package/dist/{faceCaptureManagerFactory-P2yy30KU.d.ts → faceCaptureManagerFactory-DS-6yCya.d.ts} +8 -8
  52. package/dist/{faceCaptureSetup-CQevz86q.esm.js → faceCaptureSetup-1M6uUEjK.esm.js} +4 -4
  53. package/dist/{faceMatchStateMachine-CLterVEC.esm.js → faceMatchStateMachine-D3DuP_ya.esm.js} +3 -3
  54. package/dist/flow.d.ts +8 -8
  55. package/dist/flow.esm.js +9 -9
  56. package/dist/{flowCompletionService-DZSDUXus.esm.js → flowCompletionService-W6bj7Xd3.esm.js} +2 -2
  57. package/dist/{flowServices-YATk0fgY.esm.js → flowServices-C4tjBD8q.esm.js} +3 -3
  58. package/dist/geolocation.d.ts +2 -2
  59. package/dist/geolocation.esm.js +5 -5
  60. package/dist/{geolocationStateMachine-CRRUCl9K.esm.js → geolocationStateMachine-Bj2LkGwy.esm.js} +4 -4
  61. package/dist/{getDeviceClass-DBF-ExLR.esm.js → getDeviceClass-BoiWvKAc.esm.js} +1 -1
  62. package/dist/government-validation.d.ts +2 -2
  63. package/dist/government-validation.esm.js +5 -5
  64. package/dist/{governmentValidationStateMachine-C_iPX9VE.esm.js → governmentValidationStateMachine-W1CzRjVw.esm.js} +4 -4
  65. package/dist/http.esm.js +1 -1
  66. package/dist/id.d.ts +10 -10
  67. package/dist/id.esm.js +22 -22
  68. package/dist/{idCaptureManager-CJfatzuY.esm.js → idCaptureManager-BcS8fgW4.esm.js} +4 -4
  69. package/dist/{idCaptureManager-CbZvdr9y.d.ts → idCaptureManager-oR6YPYHj.d.ts} +7 -7
  70. package/dist/{idCaptureStateMachine-gf-Q9piu.esm.js → idCaptureStateMachine-MAzfM_2O.esm.js} +16 -16
  71. package/dist/identity-reuse.d.ts +530 -0
  72. package/dist/identity-reuse.esm.js +273 -0
  73. package/dist/index.d.ts +2 -2
  74. package/dist/index.esm.js +8 -8
  75. package/dist/{lib-BzVJ-zxG.esm.js → lib-CxDxnzRd.esm.js} +1 -1
  76. package/dist/mandatory-consent.d.ts +55 -55
  77. package/dist/mandatory-consent.esm.js +4 -4
  78. package/dist/{mandatoryConsentStateMachine-BZNBJ1fK.esm.js → mandatoryConsentStateMachine-BMKi26Re.esm.js} +3 -3
  79. package/dist/{openviduLazy-CLg_-u0m.esm.js → openviduLazy-B8tinh9W.esm.js} +2 -2
  80. package/dist/openviduLazy-CItjpMfL.esm.js +3 -0
  81. package/dist/{permissionServices-Cisv73eQ.esm.js → permissionServices-Cj120WaT.esm.js} +2 -2
  82. package/dist/phone.d.ts +3 -3
  83. package/dist/phone.esm.js +6 -6
  84. package/dist/{phoneManager-DhC4obPF.esm.js → phoneManager-Bvj6Jr4o.esm.js} +3 -3
  85. package/dist/{phoneManager-Zwr-qCnC.d.ts → phoneManager-CCMCkyYr.d.ts} +2 -2
  86. package/dist/{phoneStateMachine-Cc_w4tC0.esm.js → phoneStateMachine-B1t1Z-Dd.esm.js} +4 -4
  87. package/dist/{recordingService-CCfxUY7-.esm.js → recordingService-8I_-hhNI.esm.js} +13 -13
  88. package/dist/redirect-to-mobile.d.ts +2 -2
  89. package/dist/redirect-to-mobile.esm.js +5 -5
  90. package/dist/{redirectToMobileStateMachine-vOe27Ufw.esm.js → redirectToMobileStateMachine-BVP1KcoO.esm.js} +4 -4
  91. package/dist/{runChildModule-DVC4JEjp.esm.js → runChildModule-B5DEiOS7.esm.js} +1 -1
  92. package/dist/selfie.d.ts +11 -11
  93. package/dist/selfie.esm.js +22 -22
  94. package/dist/{selfieManager-CorEST5h.esm.js → selfieManager-B6x3O5Ns.esm.js} +6 -6
  95. package/dist/{selfieManager-DNwfxieF.d.ts → selfieManager-gizt3Zha.d.ts} +2 -2
  96. package/dist/{selfieStateMachine-3b19ON1z.esm.js → selfieStateMachine-DHPSBFj0.esm.js} +3 -3
  97. package/dist/{session-B_rKSRql.esm.js → session-DoI-X9FK.esm.js} +4 -4
  98. package/dist/session.d.ts +1 -1
  99. package/dist/session.esm.js +6 -6
  100. package/dist/{setup-DLvhsDol.esm.js → setup-Bh2S53NT.esm.js} +5 -5
  101. package/dist/{setup-BYqwVLiv.d.ts → setup-Bz3Ffaoc.d.ts} +1 -1
  102. package/dist/signature.d.ts +2 -2
  103. package/dist/signature.esm.js +4 -4
  104. package/dist/{signatureStateMachine-CU92zCXU.esm.js → signatureStateMachine-Cv7yPuEf.esm.js} +3 -3
  105. package/dist/{stats-gFD2351t.esm.js → stats-wkQyDFV3.esm.js} +1 -1
  106. package/dist/stats.esm.js +2 -2
  107. package/dist/{types-CjsEZRcz.d.ts → types-BdEM5Jj7.d.ts} +1 -1
  108. package/dist/{types-CYJ0Ish6.d.ts → types-CdlQrTiZ.d.ts} +1 -1
  109. package/dist/{types-DU8HmI5U.d.ts → types-m43DfiSx.d.ts} +1 -1
  110. package/dist/wasm.d.ts +2 -2
  111. package/dist/wasm.esm.js +8 -8
  112. package/dist/workflow.d.ts +116 -116
  113. package/dist/workflow.esm.js +41 -41
  114. package/package.json +7 -3
  115. package/dist/openviduLazy-rFXBtZVZ.esm.js +0 -3
  116. /package/dist/{Actor-DbWH1K6E.d.ts → Actor-BkPcZGke.d.ts} +0 -0
  117. /package/dist/{BaseWasmProvider-DoYDYH1z.esm.js → BaseWasmProvider-C73c2nV9.esm.js} +0 -0
  118. /package/dist/{BrowserEnvironmentProvider-BtKLxTx4.esm.js → BrowserEnvironmentProvider-lxn4oxXn.esm.js} +0 -0
  119. /package/dist/{BrowserStorageProvider-CXaS5Ooj.esm.js → BrowserStorageProvider-ByxoNfxC.esm.js} +0 -0
  120. /package/dist/{BrowserTimerProvider-v7bpbrAk.esm.js → BrowserTimerProvider-CSdm7__S.esm.js} +0 -0
  121. /package/dist/{ITimerCapability-BZO_FsCo.esm.js → ITimerCapability-DAIaq369.esm.js} +0 -0
  122. /package/dist/{Manager-DcPMRgTm.d.ts → Manager-Bcnemkyi.d.ts} +0 -0
  123. /package/dist/{MotionSensorProvider-D90R4qwV.esm.js → MotionSensorProvider-BLnFo6My.esm.js} +0 -0
  124. /package/dist/{StateMachine-BBuIgsHT.d.ts → StateMachine-DIeoDJ7r.d.ts} +0 -0
  125. /package/dist/{api-aa9Mx20l.esm.js → api-CqKwkjJ3.esm.js} +0 -0
  126. /package/dist/{browserSimulation-DFqGKQAD.esm.js → browserSimulation-7W5-A3RV.esm.js} +0 -0
  127. /package/dist/{camera-DpPQS_-5.esm.js → camera-B-5traWf.esm.js} +0 -0
  128. /package/dist/{camera-DATT31my.d.ts → camera-CgnuDuxy.d.ts} +0 -0
  129. /package/dist/{chunk-YGHKo4MY.esm.js → chunk-Qw4qVmMx.esm.js} +0 -0
  130. /package/dist/{displayErrors-xrg0ejaS.d.ts → displayErrors-C9-VaqmS.d.ts} +0 -0
  131. /package/dist/{flowCompletionService-gxt5reFV.d.ts → flowCompletionService-CPLdZxe-.d.ts} +0 -0
  132. /package/dist/{getBrowser-DCcD7H-M.esm.js → getBrowser-DJkbzQ5t.esm.js} +0 -0
  133. /package/dist/{platform-DctkySJU.esm.js → platform-BfoqeM61.esm.js} +0 -0
  134. /package/dist/{types-CIjb0FKu.d.ts → types-CxU9jTRl.d.ts} +0 -0
  135. /package/dist/{warmup-Ckb1hN85.d.ts → warmup-Cs0uqxUW.d.ts} +0 -0
  136. /package/dist/{xstate.esm-B7FPE6br.esm.js → xstate.esm-D7D6CGwY.esm.js} +0 -0
@@ -0,0 +1,273 @@
1
+ import { t as api } from "./api-CqKwkjJ3.esm.js";
2
+ import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
4
+
5
+ //#region src/modules/identity-reuse/identityReuseServices.ts
6
+ /** Fetches candidate organizations for identity reuse. Throws on failure. */
7
+ async function fetchCandidates(signal) {
8
+ const res = await api.get(endpoints.identityReuseCandidates, { signal });
9
+ if (!res.ok) throw new Error(`GET ${endpoints.identityReuseCandidates} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
10
+ return res.data;
11
+ }
12
+ /** Submits the final reuse decision. Throws on failure. */
13
+ async function submitDecision(params, signal) {
14
+ const res = await api.post(endpoints.identityReuseSubmit, params, { signal });
15
+ if (!res.ok) throw new Error(`POST ${endpoints.identityReuseSubmit} failed: ${res.status} ${res.statusText} — ${JSON.stringify(res.data)}`);
16
+ return res.data;
17
+ }
18
+
19
+ //#endregion
20
+ //#region src/modules/identity-reuse/identityReuseStateMachine.ts
21
+ const identityReuseMachine = setup({
22
+ types: {
23
+ context: {},
24
+ events: {},
25
+ input: {}
26
+ },
27
+ actors: {
28
+ fetchCandidates: fromPromise(async ({ signal }) => {
29
+ return fetchCandidates(signal);
30
+ }),
31
+ submitContinue: fromPromise(async ({ signal }) => {
32
+ return submitDecision({ accepted: true }, signal);
33
+ }),
34
+ submitSkip: fromPromise(async ({ signal }) => {
35
+ return submitDecision({ accepted: false }, signal);
36
+ })
37
+ },
38
+ actions: {
39
+ setCandidates: assign(({ event }) => {
40
+ const output = event.output;
41
+ return {
42
+ currentOrganizationName: output.currentOrganizationName,
43
+ candidateOrganizationNames: output.candidateOrganizationNames
44
+ };
45
+ }),
46
+ setSelectedCandidate: assign(({ event }) => {
47
+ return { selectedOrganizationName: event.organizationName };
48
+ }),
49
+ autoSelectSingleCandidate: assign(({ context }) => ({ selectedOrganizationName: context.candidateOrganizationNames[0] })),
50
+ clearSelection: assign({ selectedOrganizationName: () => void 0 }),
51
+ setError: assign(({ event }) => ({ error: String(event.error) })),
52
+ clearError: assign({ error: () => void 0 })
53
+ },
54
+ guards: {
55
+ hasMultipleCandidates: ({ event }) => {
56
+ return event.output.candidateOrganizationNames.length > 1;
57
+ },
58
+ hasOneCandidate: ({ event }) => {
59
+ return event.output.candidateOrganizationNames.length === 1;
60
+ },
61
+ hasChosenCandidate: ({ context }) => context.selectedOrganizationName !== void 0 && context.selectedOrganizationName.length > 0
62
+ }
63
+ }).createMachine({
64
+ id: "identityReuse",
65
+ initial: "idle",
66
+ context: ({ input }) => ({
67
+ config: input.config,
68
+ currentOrganizationName: void 0,
69
+ candidateOrganizationNames: [],
70
+ selectedOrganizationName: void 0,
71
+ error: void 0
72
+ }),
73
+ states: {
74
+ idle: { on: { LOAD: { target: "loading" } } },
75
+ loading: { invoke: {
76
+ id: "fetchCandidates",
77
+ src: "fetchCandidates",
78
+ onDone: [
79
+ {
80
+ target: "multiCandidatesFound",
81
+ guard: "hasMultipleCandidates",
82
+ actions: "setCandidates"
83
+ },
84
+ {
85
+ target: "oneCandidateFound",
86
+ guard: "hasOneCandidate",
87
+ actions: "setCandidates"
88
+ },
89
+ {
90
+ target: "noCandidatesFound",
91
+ actions: "setCandidates"
92
+ }
93
+ ],
94
+ onError: {
95
+ target: "error",
96
+ actions: "setError"
97
+ }
98
+ } },
99
+ multiCandidatesFound: {
100
+ initial: "noCandidateSelected",
101
+ states: {
102
+ noCandidateSelected: { on: { START_SELECTION: { target: "choosingCandidate" } } },
103
+ choosingCandidate: { on: { CANDIDATE_CHOSEN: {
104
+ target: "candidateSelected",
105
+ actions: "setSelectedCandidate"
106
+ } } },
107
+ candidateSelected: { on: { CHANGE_CANDIDATE: {
108
+ target: "choosingCandidate",
109
+ actions: "clearSelection"
110
+ } } }
111
+ },
112
+ on: {
113
+ SUBMIT_CANDIDATE: {
114
+ target: "submitContinue",
115
+ guard: "hasChosenCandidate"
116
+ },
117
+ SKIP: { target: "submitSkip" }
118
+ }
119
+ },
120
+ oneCandidateFound: {
121
+ entry: "autoSelectSingleCandidate",
122
+ on: {
123
+ SUBMIT_CANDIDATE: { target: "submitContinue" },
124
+ SKIP: { target: "submitSkip" }
125
+ }
126
+ },
127
+ noCandidatesFound: { on: { SKIP: { target: "submitSkip" } } },
128
+ submitContinue: { invoke: {
129
+ id: "submitContinue",
130
+ src: "submitContinue",
131
+ onDone: { target: "finished" },
132
+ onError: {
133
+ target: "error",
134
+ actions: "setError"
135
+ }
136
+ } },
137
+ submitSkip: { invoke: {
138
+ id: "submitSkip",
139
+ src: "submitSkip",
140
+ onDone: { target: "finished" },
141
+ onError: {
142
+ target: "error",
143
+ actions: "setError"
144
+ }
145
+ } },
146
+ finished: { type: "final" },
147
+ error: { on: {
148
+ RETRY: {
149
+ target: "loading",
150
+ actions: "clearError"
151
+ },
152
+ SKIP: { target: "submitSkip" }
153
+ } }
154
+ }
155
+ });
156
+
157
+ //#endregion
158
+ //#region src/modules/identity-reuse/identityReuseActor.ts
159
+ /**
160
+ * Creates and starts an IdentityReuse actor.
161
+ *
162
+ * The actor begins in 'idle' state, ready to receive events.
163
+ */
164
+ function createIdentityReuseActor(options) {
165
+ return createActor(identityReuseMachine, { input: { config: options.config } }).start();
166
+ }
167
+
168
+ //#endregion
169
+ //#region src/modules/identity-reuse/identityReuseManager.ts
170
+ function mapState(snapshot) {
171
+ const { context } = snapshot;
172
+ if (snapshot.matches("idle")) return { status: "idle" };
173
+ if (snapshot.matches("loading")) return { status: "loading" };
174
+ if (snapshot.matches("multiCandidatesFound")) {
175
+ let selectionPhase = "noCandidateSelected";
176
+ if (snapshot.matches({ multiCandidatesFound: "candidateSelected" })) selectionPhase = "candidateSelected";
177
+ else if (snapshot.matches({ multiCandidatesFound: "choosingCandidate" })) selectionPhase = "choosingCandidate";
178
+ return {
179
+ status: "multiCandidatesFound",
180
+ currentOrganizationName: context.currentOrganizationName,
181
+ candidateOrganizationNames: context.candidateOrganizationNames,
182
+ selectedOrganizationName: context.selectedOrganizationName,
183
+ selectionPhase
184
+ };
185
+ }
186
+ if (snapshot.matches("oneCandidateFound")) return {
187
+ status: "oneCandidateFound",
188
+ currentOrganizationName: context.currentOrganizationName,
189
+ selectedOrganizationName: context.selectedOrganizationName
190
+ };
191
+ if (snapshot.matches("noCandidatesFound")) return {
192
+ status: "noCandidatesFound",
193
+ currentOrganizationName: context.currentOrganizationName
194
+ };
195
+ if (snapshot.matches("submitContinue")) return { status: "submitContinue" };
196
+ if (snapshot.matches("submitSkip")) return { status: "submitSkip" };
197
+ if (snapshot.matches("finished")) return { status: "finished" };
198
+ if (snapshot.matches("error")) return {
199
+ status: "error",
200
+ error: context.error ?? "An error occurred"
201
+ };
202
+ return { status: "idle" };
203
+ }
204
+ function createApi({ actor, trackElementClicked }) {
205
+ return {
206
+ load() {
207
+ actor.send({ type: "LOAD" });
208
+ },
209
+ startSelection() {
210
+ trackElementClicked?.("startSelection");
211
+ actor.send({ type: "START_SELECTION" });
212
+ },
213
+ chooseCandidate(organizationName) {
214
+ trackElementClicked?.("chooseCandidate");
215
+ actor.send({
216
+ type: "CANDIDATE_CHOSEN",
217
+ organizationName
218
+ });
219
+ },
220
+ changeCandidate() {
221
+ trackElementClicked?.("changeCandidate");
222
+ actor.send({ type: "CHANGE_CANDIDATE" });
223
+ },
224
+ submitCandidate() {
225
+ trackElementClicked?.("submitCandidate");
226
+ actor.send({ type: "SUBMIT_CANDIDATE" });
227
+ },
228
+ skip() {
229
+ trackElementClicked?.("skip");
230
+ actor.send({ type: "SKIP" });
231
+ },
232
+ retry() {
233
+ trackElementClicked?.("retry");
234
+ actor.send({ type: "RETRY" });
235
+ }
236
+ };
237
+ }
238
+ /**
239
+ * Creates an IdentityReuse manager for headless or UI-driven usage.
240
+ *
241
+ * @example Headless usage
242
+ * ```typescript
243
+ * const manager = createIdentityReuseManager({ config: {} });
244
+ * manager.subscribe((state) => {
245
+ * if (state.status === 'oneCandidateFound') manager.submitCandidate();
246
+ * if (state.status === 'finished') console.log('Done!');
247
+ * });
248
+ * manager.load();
249
+ * ```
250
+ */
251
+ function createIdentityReuseManager(options) {
252
+ return createManager({
253
+ actor: createIdentityReuseActor(options),
254
+ mapState,
255
+ createApi,
256
+ instrumentation: createManagerInstrumentation(eventModuleNames.identityReuse)
257
+ });
258
+ }
259
+ /**
260
+ * Creates an IdentityReuse manager from a pre-built actor.
261
+ * Use this when overriding the machine via `.provide()` for custom backends or testing.
262
+ */
263
+ function createIdentityReuseManagerFromActor(actor) {
264
+ return createManager({
265
+ actor,
266
+ mapState,
267
+ createApi,
268
+ instrumentation: createManagerInstrumentation(eventModuleNames.identityReuse)
269
+ });
270
+ }
271
+
272
+ //#endregion
273
+ export { createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import "./warmup-Ckb1hN85.js";
2
- import { a as reset, i as isConfigured, s as setup, t as SetupOptions } from "./setup-BYqwVLiv.js";
1
+ import "./warmup-Cs0uqxUW.js";
2
+ import { a as reset, i as isConfigured, s as setup, t as SetupOptions } from "./setup-Bz3Ffaoc.js";
3
3
  export { type SetupOptions, isConfigured, reset, setup };
package/dist/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { a as setup, n as isConfigured, r as reset } from "./setup-DLvhsDol.esm.js";
2
- import "./BaseWasmProvider-DoYDYH1z.esm.js";
3
- import "./WasmUtilProvider-mWSXzp7b.esm.js";
4
- import "./api-aa9Mx20l.esm.js";
5
- import "./events-W91zLpx4.esm.js";
6
- import "./session-B_rKSRql.esm.js";
7
- import "./BrowserEnvironmentProvider-BtKLxTx4.esm.js";
8
- import "./browserSimulation-DFqGKQAD.esm.js";
1
+ import { a as setup, n as isConfigured, r as reset } from "./setup-Bh2S53NT.esm.js";
2
+ import "./BaseWasmProvider-C73c2nV9.esm.js";
3
+ import "./WasmUtilProvider-DRh0wrlm.esm.js";
4
+ import "./api-CqKwkjJ3.esm.js";
5
+ import "./events-CZ2ka3pu.esm.js";
6
+ import "./session-DoI-X9FK.esm.js";
7
+ import "./BrowserEnvironmentProvider-lxn4oxXn.esm.js";
8
+ import "./browserSimulation-7W5-A3RV.esm.js";
9
9
 
10
10
  export { isConfigured, reset, setup };
@@ -1,4 +1,4 @@
1
- import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-YGHKo4MY.esm.js";
1
+ import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-Qw4qVmMx.esm.js";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
4
4
  var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
@@ -1,9 +1,9 @@
1
- import { t as Manager } from "./Manager-DcPMRgTm.js";
2
- import "./Actor-DbWH1K6E.js";
3
- import "./camera-DATT31my.js";
4
- import "./types-CYJ0Ish6.js";
5
- import { i as RegulationTypes } from "./types-DU8HmI5U.js";
6
- import * as xstate63 from "xstate";
1
+ import { t as Manager } from "./Manager-Bcnemkyi.js";
2
+ import "./Actor-BkPcZGke.js";
3
+ import "./camera-CgnuDuxy.js";
4
+ import "./types-CdlQrTiZ.js";
5
+ import { i as RegulationTypes } from "./types-m43DfiSx.js";
6
+ import * as xstate228 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: xstate63.StateMachine<MandatoryConsentContext, {
33
+ declare const mandatoryConsentMachine: xstate228.StateMachine<MandatoryConsentContext, {
34
34
  type: "LOAD";
35
35
  } | {
36
36
  type: "TOGGLE";
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
43
43
  } | {
44
44
  type: "RESET";
45
45
  }, {
46
- [x: string]: xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
46
+ [x: string]: xstate228.ActorRefFromLogic<xstate228.PromiseActorLogic<FetchMandatoryConsentResponse, {
47
47
  config: MandatoryConsentConfig;
48
- }, xstate63.EventObject>> | xstate63.ActorRefFromLogic<xstate63.PromiseActorLogic<void, {
48
+ }, xstate228.EventObject>> | xstate228.ActorRefFromLogic<xstate228.PromiseActorLogic<void, {
49
49
  consentId: string;
50
50
  isSigned: boolean;
51
- }, xstate63.EventObject>> | undefined;
52
- }, xstate63.Values<{
51
+ }, xstate228.EventObject>> | undefined;
52
+ }, xstate228.Values<{
53
53
  fetchConsent: {
54
54
  src: "fetchConsent";
55
- logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
55
+ logic: xstate228.PromiseActorLogic<FetchMandatoryConsentResponse, {
56
56
  config: MandatoryConsentConfig;
57
- }, xstate63.EventObject>;
57
+ }, xstate228.EventObject>;
58
58
  id: string | undefined;
59
59
  };
60
60
  submitConsent: {
61
61
  src: "submitConsent";
62
- logic: xstate63.PromiseActorLogic<void, {
62
+ logic: xstate228.PromiseActorLogic<void, {
63
63
  consentId: string;
64
64
  isSigned: boolean;
65
- }, xstate63.EventObject>;
65
+ }, xstate228.EventObject>;
66
66
  id: string | undefined;
67
67
  };
68
- }>, xstate63.Values<{
68
+ }>, xstate228.Values<{
69
69
  setError: {
70
70
  type: "setError";
71
- params: xstate63.NonReducibleUnknown;
71
+ params: xstate228.NonReducibleUnknown;
72
72
  };
73
73
  clearError: {
74
74
  type: "clearError";
75
- params: xstate63.NonReducibleUnknown;
75
+ params: xstate228.NonReducibleUnknown;
76
+ };
77
+ resetContext: {
78
+ type: "resetContext";
79
+ params: xstate228.NonReducibleUnknown;
76
80
  };
77
81
  setConsent: {
78
82
  type: "setConsent";
79
- params: xstate63.NonReducibleUnknown;
83
+ params: xstate228.NonReducibleUnknown;
80
84
  };
81
85
  toggleSigned: {
82
86
  type: "toggleSigned";
83
- params: xstate63.NonReducibleUnknown;
84
- };
85
- resetContext: {
86
- type: "resetContext";
87
- params: xstate63.NonReducibleUnknown;
87
+ params: xstate228.NonReducibleUnknown;
88
88
  };
89
89
  }>, {
90
90
  type: "canSubmit";
91
91
  params: unknown;
92
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate63.NonReducibleUnknown, xstate63.EventObject, xstate63.MetaObject, {
92
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate228.NonReducibleUnknown, xstate228.EventObject, xstate228.MetaObject, {
93
93
  readonly id: "mandatoryConsent";
94
94
  readonly initial: "idle";
95
95
  readonly context: ({
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
98
98
  spawn: {
99
99
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
100
100
  src: "fetchConsent";
101
- logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
101
+ logic: xstate228.PromiseActorLogic<FetchMandatoryConsentResponse, {
102
102
  config: MandatoryConsentConfig;
103
- }, xstate63.EventObject>;
103
+ }, xstate228.EventObject>;
104
104
  id: string | undefined;
105
105
  } extends infer T ? T extends {
106
106
  src: "fetchConsent";
107
- logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
107
+ logic: xstate228.PromiseActorLogic<FetchMandatoryConsentResponse, {
108
108
  config: MandatoryConsentConfig;
109
- }, xstate63.EventObject>;
109
+ }, xstate228.EventObject>;
110
110
  id: string | undefined;
111
111
  } ? T extends {
112
112
  src: TSrc;
113
- } ? xstate63.ConditionalRequired<[options?: ({
113
+ } ? xstate228.ConditionalRequired<[options?: ({
114
114
  id?: T["id"] | undefined;
115
115
  systemId?: string;
116
- input?: xstate63.InputFrom<T["logic"]> | undefined;
116
+ input?: xstate228.InputFrom<T["logic"]> | undefined;
117
117
  syncSnapshot?: boolean;
118
- } & { [K in xstate63.RequiredActorOptions<T>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T>>> : never : never : never) | ({
118
+ } & { [K in xstate228.RequiredActorOptions<T>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredActorOptions<T>>> : never : never : never) | ({
119
119
  src: "submitConsent";
120
- logic: xstate63.PromiseActorLogic<void, {
120
+ logic: xstate228.PromiseActorLogic<void, {
121
121
  consentId: string;
122
122
  isSigned: boolean;
123
- }, xstate63.EventObject>;
123
+ }, xstate228.EventObject>;
124
124
  id: string | undefined;
125
125
  } extends infer T_1 ? T_1 extends {
126
126
  src: "submitConsent";
127
- logic: xstate63.PromiseActorLogic<void, {
127
+ logic: xstate228.PromiseActorLogic<void, {
128
128
  consentId: string;
129
129
  isSigned: boolean;
130
- }, xstate63.EventObject>;
130
+ }, xstate228.EventObject>;
131
131
  id: string | undefined;
132
132
  } ? T_1 extends {
133
133
  src: TSrc;
134
- } ? xstate63.ConditionalRequired<[options?: ({
134
+ } ? xstate228.ConditionalRequired<[options?: ({
135
135
  id?: T_1["id"] | undefined;
136
136
  systemId?: string;
137
- input?: xstate63.InputFrom<T_1["logic"]> | undefined;
137
+ input?: xstate228.InputFrom<T_1["logic"]> | undefined;
138
138
  syncSnapshot?: boolean;
139
- } & { [K_1 in xstate63.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredActorOptions<T_1>>> : never : never : never)): xstate63.ActorRefFromLogic<xstate63.GetConcreteByKey<xstate63.Values<{
139
+ } & { [K_1 in xstate228.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredActorOptions<T_1>>> : never : never : never)): xstate228.ActorRefFromLogic<xstate228.GetConcreteByKey<xstate228.Values<{
140
140
  fetchConsent: {
141
141
  src: "fetchConsent";
142
- logic: xstate63.PromiseActorLogic<FetchMandatoryConsentResponse, {
142
+ logic: xstate228.PromiseActorLogic<FetchMandatoryConsentResponse, {
143
143
  config: MandatoryConsentConfig;
144
- }, xstate63.EventObject>;
144
+ }, xstate228.EventObject>;
145
145
  id: string | undefined;
146
146
  };
147
147
  submitConsent: {
148
148
  src: "submitConsent";
149
- logic: xstate63.PromiseActorLogic<void, {
149
+ logic: xstate228.PromiseActorLogic<void, {
150
150
  consentId: string;
151
151
  isSigned: boolean;
152
- }, xstate63.EventObject>;
152
+ }, xstate228.EventObject>;
153
153
  id: string | undefined;
154
154
  };
155
155
  }>, "src", TSrc>["logic"]>;
156
- <TLogic extends xstate63.AnyActorLogic>(src: TLogic, ...[options]: xstate63.ConditionalRequired<[options?: ({
156
+ <TLogic extends xstate228.AnyActorLogic>(src: TLogic, ...[options]: xstate228.ConditionalRequired<[options?: ({
157
157
  id?: never;
158
158
  systemId?: string;
159
- input?: xstate63.InputFrom<TLogic> | undefined;
159
+ input?: xstate228.InputFrom<TLogic> | undefined;
160
160
  syncSnapshot?: boolean;
161
- } & { [K in xstate63.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate63.IsNotNever<xstate63.RequiredLogicInput<TLogic>>>): xstate63.ActorRefFromLogic<TLogic>;
161
+ } & { [K in xstate228.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate228.IsNotNever<xstate228.RequiredLogicInput<TLogic>>>): xstate228.ActorRefFromLogic<TLogic>;
162
162
  };
163
163
  input: MandatoryConsentInput;
164
- self: xstate63.ActorRef<xstate63.MachineSnapshot<MandatoryConsentContext, {
164
+ self: xstate228.ActorRef<xstate228.MachineSnapshot<MandatoryConsentContext, {
165
165
  type: "LOAD";
166
166
  } | {
167
167
  type: "TOGGLE";
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
173
173
  type: "RETRY";
174
174
  } | {
175
175
  type: "RESET";
176
- }, Record<string, xstate63.AnyActorRef | undefined>, xstate63.StateValue, string, unknown, any, any>, {
176
+ }, Record<string, xstate228.AnyActorRef | undefined>, xstate228.StateValue, string, unknown, any, any>, {
177
177
  type: "LOAD";
178
178
  } | {
179
179
  type: "TOGGLE";
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
185
185
  type: "RETRY";
186
186
  } | {
187
187
  type: "RESET";
188
- }, xstate63.AnyEventObject>;
188
+ }, xstate228.AnyEventObject>;
189
189
  }) => {
190
190
  config: MandatoryConsentConfig;
191
191
  consent: undefined;
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
222
222
  } | {
223
223
  type: "RESET";
224
224
  };
225
- self: xstate63.ActorRef<xstate63.MachineSnapshot<MandatoryConsentContext, {
225
+ self: xstate228.ActorRef<xstate228.MachineSnapshot<MandatoryConsentContext, {
226
226
  type: "LOAD";
227
227
  } | {
228
228
  type: "TOGGLE";
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
234
234
  type: "RETRY";
235
235
  } | {
236
236
  type: "RESET";
237
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
237
+ }, Record<string, xstate228.AnyActorRef>, xstate228.StateValue, string, unknown, any, any>, {
238
238
  type: "LOAD";
239
239
  } | {
240
240
  type: "TOGGLE";
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
246
246
  type: "RETRY";
247
247
  } | {
248
248
  type: "RESET";
249
- }, xstate63.AnyEventObject>;
249
+ }, xstate228.AnyEventObject>;
250
250
  }) => {
251
251
  config: MandatoryConsentConfig;
252
252
  };
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
299
299
  } | {
300
300
  type: "RESET";
301
301
  };
302
- self: xstate63.ActorRef<xstate63.MachineSnapshot<MandatoryConsentContext, {
302
+ self: xstate228.ActorRef<xstate228.MachineSnapshot<MandatoryConsentContext, {
303
303
  type: "LOAD";
304
304
  } | {
305
305
  type: "TOGGLE";
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
311
311
  type: "RETRY";
312
312
  } | {
313
313
  type: "RESET";
314
- }, Record<string, xstate63.AnyActorRef>, xstate63.StateValue, string, unknown, any, any>, {
314
+ }, Record<string, xstate228.AnyActorRef>, xstate228.StateValue, string, unknown, any, any>, {
315
315
  type: "LOAD";
316
316
  } | {
317
317
  type: "TOGGLE";
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate63.StateMachine<MandatoryConsentCon
323
323
  type: "RETRY";
324
324
  } | {
325
325
  type: "RESET";
326
- }, xstate63.AnyEventObject>;
326
+ }, xstate228.AnyEventObject>;
327
327
  }) => {
328
328
  consentId: string;
329
329
  isSigned: boolean;
@@ -1,7 +1,7 @@
1
- import "./api-aa9Mx20l.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-W91zLpx4.esm.js";
3
- import { a as createActor, o as createManager } from "./xstate.esm-B7FPE6br.esm.js";
4
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BZNBJ1fK.esm.js";
1
+ import "./api-CqKwkjJ3.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
3
+ import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
4
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-BMKi26Re.esm.js";
5
5
 
6
6
  //#region src/modules/mandatory-consent/mandatoryConsentActor.ts
7
7
  function createMandatoryConsentActor(options) {
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-aa9Mx20l.esm.js";
2
- import { _ as endpoints } from "./events-W91zLpx4.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-B7FPE6br.esm.js";
1
+ import { t as api } from "./api-CqKwkjJ3.esm.js";
2
+ import { _ as endpoints } from "./events-CZ2ka3pu.esm.js";
3
+ import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-D7D6CGwY.esm.js";
4
4
 
5
5
  //#region src/modules/mandatory-consent/mandatoryConsentServices.ts
6
6
  async function fetchMandatoryConsent(regulationType, signal) {
@@ -1,10 +1,10 @@
1
- import { a as __toDynamicImportESM } from "./chunk-YGHKo4MY.esm.js";
1
+ import { a as __toDynamicImportESM } from "./chunk-Qw4qVmMx.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/browser/openviduLazy.ts
4
4
  let openViduImport;
5
5
  async function loadOpenVidu() {
6
6
  if (openViduImport) return openViduImport;
7
- openViduImport = import("./lib-BzVJ-zxG.esm.js").then(__toDynamicImportESM(1));
7
+ openViduImport = import("./lib-CxDxnzRd.esm.js").then(__toDynamicImportESM(1));
8
8
  return openViduImport;
9
9
  }
10
10
 
@@ -0,0 +1,3 @@
1
+ import { t as loadOpenVidu } from "./openviduLazy-B8tinh9W.esm.js";
2
+
3
+ export { loadOpenVidu };
@@ -1,5 +1,5 @@
1
- import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DpPQS_-5.esm.js";
2
- import { t as MotionSensorProvider } from "./MotionSensorProvider-D90R4qwV.esm.js";
1
+ import { i as stopCameraStream, r as requestCameraAccess } from "./camera-B-5traWf.esm.js";
2
+ import { t as MotionSensorProvider } from "./MotionSensorProvider-BLnFo6My.esm.js";
3
3
 
4
4
  //#region ../infra/src/media/permissions.ts
5
5
  async function queryPermission(name) {
package/dist/phone.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "./Manager-DcPMRgTm.js";
2
- import "./Actor-DbWH1K6E.js";
3
- import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-Zwr-qCnC.js";
1
+ import "./Manager-Bcnemkyi.js";
2
+ import "./Actor-BkPcZGke.js";
3
+ import { a as phoneMachine, n as PhoneState, o as PhoneConfig, r as createPhoneManager, t as PhoneManager } from "./phoneManager-CCMCkyYr.js";
4
4
  export { type PhoneConfig, type PhoneManager, type PhoneState, createPhoneManager, phoneMachine };
package/dist/phone.esm.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./api-aa9Mx20l.esm.js";
2
- import "./events-W91zLpx4.esm.js";
3
- import "./xstate.esm-B7FPE6br.esm.js";
4
- import "./BrowserTimerProvider-v7bpbrAk.esm.js";
5
- import { t as phoneMachine } from "./phoneStateMachine-Cc_w4tC0.esm.js";
6
- import { t as createPhoneManager } from "./phoneManager-DhC4obPF.esm.js";
1
+ import "./api-CqKwkjJ3.esm.js";
2
+ import "./events-CZ2ka3pu.esm.js";
3
+ import "./xstate.esm-D7D6CGwY.esm.js";
4
+ import "./BrowserTimerProvider-CSdm7__S.esm.js";
5
+ import { t as phoneMachine } from "./phoneStateMachine-B1t1Z-Dd.esm.js";
6
+ import { t as createPhoneManager } from "./phoneManager-Bvj6Jr4o.esm.js";
7
7
 
8
8
  export { createPhoneManager, phoneMachine };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-W91zLpx4.esm.js";
2
- import { a as createActor, o as createManager } from "./xstate.esm-B7FPE6br.esm.js";
3
- import { t as phoneMachine } from "./phoneStateMachine-Cc_w4tC0.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CZ2ka3pu.esm.js";
2
+ import { a as createActor, o as createManager } from "./xstate.esm-D7D6CGwY.esm.js";
3
+ import { t as phoneMachine } from "./phoneStateMachine-B1t1Z-Dd.esm.js";
4
4
 
5
5
  //#region src/modules/phone/phoneActor.ts
6
6
  function createPhoneActor(options) {
@@ -1,5 +1,5 @@
1
- import { t as Manager } from "./Manager-DcPMRgTm.js";
2
- import { t as ActorRefFrom } from "./Actor-DbWH1K6E.js";
1
+ import { t as Manager } from "./Manager-Bcnemkyi.js";
2
+ import { t as ActorRefFrom } from "./Actor-BkPcZGke.js";
3
3
 
4
4
  //#region src/modules/phone/types.d.ts
5
5