@incodetech/core 0.0.0-dev-20260728-af4e1aee → 0.0.0-dev-20260729-e2dda0b0

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 (170) hide show
  1. package/dist/BrowserDiagnosticsCryptoProvider-BZqV7sJR.esm.js +96 -0
  2. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +9 -0
  3. package/dist/{WasmUtilProvider-BrWOTaVG.esm.js → WasmUtilProvider-D13sxEmA.esm.js} +2 -406
  4. package/dist/{addressSearch-DEYnZoez.esm.js → addressSearch-D_0t2Wdn.esm.js} +2 -2
  5. package/dist/ae-signature.esm.js +1 -1
  6. package/dist/antifraud.esm.js +2 -2
  7. package/dist/{antifraudManager-CFsD4BgV.esm.js → antifraudManager-COYh4O_y.esm.js} +2 -2
  8. package/dist/{antifraudStateMachine-VB-aXHct.esm.js → antifraudStateMachine-NuzlVVte.esm.js} +2 -2
  9. package/dist/api-Bx3gKW_y.esm.js +129 -0
  10. package/dist/{apiError-B-PkYxln.esm.js → apiError-GA6MbJpI.esm.js} +12 -1
  11. package/dist/authentication.d.ts +3 -3
  12. package/dist/authentication.esm.js +2 -2
  13. package/dist/{authenticationManager-BDkpqQ-5.esm.js → authenticationManager-B7v0Jy-x.esm.js} +5 -5
  14. package/dist/{authenticationManager-B2KZQ9zw.d.ts → authenticationManager-BGM8bpD0.d.ts} +1 -1
  15. package/dist/{authenticationStateMachine-lTogTlQv.esm.js → authenticationStateMachine-DAh9ziFC.esm.js} +5 -5
  16. package/dist/camera.esm.js +1 -1
  17. package/dist/certificate-issuance.esm.js +2 -2
  18. package/dist/{certificateIssuanceStateMachine-Di_bLlkP.esm.js → certificateIssuanceStateMachine-N__sTAgu.esm.js} +2 -2
  19. package/dist/consent.d.ts +1 -1
  20. package/dist/consent.esm.js +2 -2
  21. package/dist/{consentManager-DLOyIZzt.d.ts → consentManager-BhYFeKiG.d.ts} +9 -9
  22. package/dist/{consentManager-0EiBXYtL.esm.js → consentManager-CWEAhAJ5.esm.js} +2 -2
  23. package/dist/{consentStateMachine-STURxpEc.esm.js → consentStateMachine-DWL-X0Jb.esm.js} +2 -2
  24. package/dist/cross-document-data-match.esm.js +1 -1
  25. package/dist/{crossDocumentDataMatchManager-Dw7euiiZ.esm.js → crossDocumentDataMatchManager-Bk4W2TDJ.esm.js} +3 -3
  26. package/dist/curp-validation.d.ts +1 -1
  27. package/dist/curp-validation.esm.js +2 -2
  28. package/dist/{curpValidationManager-BGj9U3E0.esm.js → curpValidationManager-B6gYKygj.esm.js} +2 -2
  29. package/dist/{curpValidationManager-BEWD-Lvo.d.ts → curpValidationManager-DVGr7Fq7.d.ts} +1 -1
  30. package/dist/{curpValidationStateMachine-Dq6l4oeZ.esm.js → curpValidationStateMachine-42RbYcam.esm.js} +2 -2
  31. package/dist/custom-fields.esm.js +3 -3
  32. package/dist/custom-watchlist.esm.js +2 -2
  33. package/dist/{customWatchlistStateMachine-BuQML-pk.esm.js → customWatchlistStateMachine-BbDtH5kk.esm.js} +2 -2
  34. package/dist/{deepsightLoader-DDu_KUyv.esm.js → deepsightLoader-CHG26pOB.esm.js} +14 -4
  35. package/dist/document-capture.d.ts +1 -1
  36. package/dist/document-capture.esm.js +2 -2
  37. package/dist/document-upload.d.ts +8 -8
  38. package/dist/document-upload.esm.js +3 -3
  39. package/dist/{documentCaptureManager-B-J1lXcH.d.ts → documentCaptureManager-BK_4RbHt.d.ts} +73 -73
  40. package/dist/{documentCaptureManager-DBRQX16v.esm.js → documentCaptureManager-FvcNYpkS.esm.js} +2 -2
  41. package/dist/{documentCaptureStateMachine-BXgH9gGq.esm.js → documentCaptureStateMachine-BlzN0-mU.esm.js} +4 -4
  42. package/dist/dynamic-forms.d.ts +2 -2
  43. package/dist/dynamic-forms.esm.js +2 -2
  44. package/dist/{dynamicFormsManager-DI0sCyVB.esm.js → dynamicFormsManager-CfJixpOW.esm.js} +8 -4
  45. package/dist/{dynamicFormsManager-BYac2uEY.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +9 -1
  46. package/dist/{dynamicFormsStateMachine-BQqAwNQ-.esm.js → dynamicFormsStateMachine-DrPO1i45.esm.js} +71 -6
  47. package/dist/ekyb.d.ts +1 -1
  48. package/dist/ekyb.esm.js +3 -3
  49. package/dist/{ekybManager-BQQyRMqw.esm.js → ekybManager-DVCqaSzz.esm.js} +2 -2
  50. package/dist/{ekybStateMachine-jsiqdGjv.esm.js → ekybStateMachine-C3y-Qx1a.esm.js} +4 -4
  51. package/dist/ekyc.esm.js +2 -2
  52. package/dist/{ekycManager-Cl2e4Knv.esm.js → ekycManager-dimNksoE.esm.js} +2 -2
  53. package/dist/{ekycStateMachine-9Mm7LBea.esm.js → ekycStateMachine-Yl3sQmhm.esm.js} +3 -3
  54. package/dist/electronic-signature.esm.js +1 -1
  55. package/dist/{electronicSignatureManager-BXIpAJ5m.esm.js → electronicSignatureManager-D0X7P-de.esm.js} +4 -4
  56. package/dist/email.esm.js +2 -2
  57. package/dist/{emailManager-Dmt1YrtS.esm.js → emailManager-BqJMritP.esm.js} +2 -2
  58. package/dist/{emailStateMachine-DQS-QMgQ.esm.js → emailStateMachine-CLtrh2Ot.esm.js} +2 -2
  59. package/dist/{endpoints-CfRg7iAr.esm.js → endpoints-DOfmJylF.esm.js} +8 -1
  60. package/dist/{events-Dy8PyVO5.esm.js → events-CMFCCu1H.esm.js} +2 -9
  61. package/dist/events.esm.js +1 -1
  62. package/dist/extensibility.d.ts +13 -13
  63. package/dist/extensibility.esm.js +26 -32
  64. package/dist/face-match.esm.js +2 -2
  65. package/dist/{faceCaptureManagerFactory-B2TUje5s.d.ts → faceCaptureManagerFactory-B92LFT16.d.ts} +3 -3
  66. package/dist/{faceCaptureManagerFactory-DaYwl0Yq.esm.js → faceCaptureManagerFactory-D2pR3ZnX.esm.js} +3 -3
  67. package/dist/{faceCaptureSetup-DlmX-9nD.esm.js → faceCaptureSetup-DbhDPMjb.esm.js} +5 -5
  68. package/dist/{faceMatchManager-fPX11GnX.esm.js → faceMatchManager-XxTEAj9C.esm.js} +2 -2
  69. package/dist/{faceMatchStateMachine-D_7UX1rV.esm.js → faceMatchStateMachine-ubds4WlI.esm.js} +2 -2
  70. package/dist/field-comparison.esm.js +1 -1
  71. package/dist/{fieldComparisonManager-USUE9qDr.esm.js → fieldComparisonManager-BzaX4TvX.esm.js} +3 -3
  72. package/dist/fiscal-qr.esm.js +3 -3
  73. package/dist/flow-events.d.ts +1 -1
  74. package/dist/flow.d.ts +6 -6
  75. package/dist/flow.esm.js +4 -4
  76. package/dist/{flowCompletionService-D5oIlcza.esm.js → flowCompletionService-BdZR6HyE.esm.js} +3 -3
  77. package/dist/{flowServices-T5JoA_1N.esm.js → flowServices-CPti9am-.esm.js} +8 -6
  78. package/dist/geolocation.esm.js +2 -2
  79. package/dist/{geolocationManager-zeqAcVHC.esm.js → geolocationManager-DW27-LTL.esm.js} +2 -2
  80. package/dist/{geolocationStateMachine-DxSETS9_.esm.js → geolocationStateMachine-Cz3Q6az0.esm.js} +3 -3
  81. package/dist/government-validation.esm.js +2 -2
  82. package/dist/{governmentValidationStateMachine-loZfWcU9.esm.js → governmentValidationStateMachine-CtG3bIdM.esm.js} +2 -2
  83. package/dist/home.d.ts +1 -1
  84. package/dist/home.esm.js +1 -1
  85. package/dist/http.esm.js +1 -1
  86. package/dist/id-ocr.d.ts +1 -1
  87. package/dist/id-ocr.esm.js +2 -2
  88. package/dist/id-verification.esm.js +2 -2
  89. package/dist/id.d.ts +2 -2
  90. package/dist/id.esm.js +5 -5
  91. package/dist/{idCaptureDefaults-DCrjeNl5.esm.js → idCaptureDefaults-BDS43fFL.esm.js} +2 -2
  92. package/dist/{idCaptureManager-D6fKtXhM.d.ts → idCaptureManager-C-WjmsN4.d.ts} +2 -2
  93. package/dist/{idCaptureManager-DaqabBBZ.esm.js → idCaptureManager-CPzgzVu8.esm.js} +4 -4
  94. package/dist/{idCaptureStateMachine-CU1CsT7x.esm.js → idCaptureStateMachine-CAKztWBq.esm.js} +28 -17
  95. package/dist/{idOcrManager-dLuxey6y.d.ts → idOcrManager-DXc_xRN7.d.ts} +1 -1
  96. package/dist/{idOcrManager-CnIWzuqU.esm.js → idOcrManager-Drs6frVO.esm.js} +2 -2
  97. package/dist/{idOcrStateMachine-Cqi8173Y.esm.js → idOcrStateMachine-s08FLvEh.esm.js} +3 -3
  98. package/dist/{idVerificationManager-BTsyXjv6.esm.js → idVerificationManager-Df97Bf0n.esm.js} +2 -2
  99. package/dist/{idVerificationStateMachine-7BSciEJk.esm.js → idVerificationStateMachine-tAF7pvC8.esm.js} +2 -2
  100. package/dist/identity-reuse.d.ts +1 -1
  101. package/dist/identity-reuse.esm.js +2 -2
  102. package/dist/{identityReuseManager-BjMJHKLP.esm.js → identityReuseManager-0ZHGWr9T.esm.js} +2 -2
  103. package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-v2TH5g7e.d.ts} +1 -1
  104. package/dist/{identityReuseStateMachine-B0IFF3R7.esm.js → identityReuseStateMachine-DG8kbKuy.esm.js} +2 -2
  105. package/dist/{index-X9serOZT.d.ts → index-CLMF0QLQ.d.ts} +1 -1
  106. package/dist/index.d.ts +1 -1
  107. package/dist/index.esm.js +1 -1
  108. package/dist/{invokeOnCaptureCallback-B-QfsCQY.esm.js → invokeOnCaptureCallback-Cgl54qED.esm.js} +1 -1
  109. package/dist/mandatory-consent.d.ts +2 -2
  110. package/dist/mandatory-consent.esm.js +2 -2
  111. package/dist/{mandatoryConsentManager-IKpruo6V.d.ts → mandatoryConsentManager-CzsVFG33.d.ts} +6 -6
  112. package/dist/{mandatoryConsentManager-BOOjm7SU.esm.js → mandatoryConsentManager-DaKK7S4q.esm.js} +2 -2
  113. package/dist/{mandatoryConsentStateMachine-BP3npRnI.esm.js → mandatoryConsentStateMachine-CjKpOQXU.esm.js} +2 -2
  114. package/dist/{onDeviceFaceResults-bUR2uNg0.esm.js → onDeviceFaceResults-CVhk1BWp.esm.js} +13 -6
  115. package/dist/{permissionGuards-5Cu6a8iN.esm.js → permissionGuards-UMiLlPfq.esm.js} +1 -1
  116. package/dist/{permissionServices-CkHL1BjH.esm.js → permissionServices-C4qKxOl4.esm.js} +1 -1
  117. package/dist/personhood.d.ts +1 -1
  118. package/dist/personhood.esm.js +9 -22
  119. package/dist/phone.esm.js +2 -2
  120. package/dist/{phoneManager-C3aqq6jS.esm.js → phoneManager-WImoAp4i.esm.js} +2 -2
  121. package/dist/{phoneStateMachine-CLGcLA8t.esm.js → phoneStateMachine-FJ-_x1G4.esm.js} +2 -2
  122. package/dist/qe-signature.esm.js +1 -1
  123. package/dist/{recordingService-ChBo1rvx.esm.js → recordingService-BGPq5vGr.esm.js} +3 -3
  124. package/dist/redirect-to-mobile.esm.js +2 -2
  125. package/dist/{redirectToMobileManager-BO0BVfgM.esm.js → redirectToMobileManager-CxEu6KnV.esm.js} +2 -2
  126. package/dist/{redirectToMobileStateMachine-BQuhw8_L.esm.js → redirectToMobileStateMachine-jI5XPtZJ.esm.js} +2 -2
  127. package/dist/{runChildModule-Crz1nHwJ.esm.js → runChildModule-fagPe5Ct.esm.js} +6 -1
  128. package/dist/selfie.d.ts +3 -3
  129. package/dist/selfie.esm.js +9 -9
  130. package/dist/{selfieErrorUtils-BAEYvNVr.esm.js → selfieErrorUtils-DCRRRj38.esm.js} +3 -3
  131. package/dist/{selfieManager-BT7dmOHi.d.ts → selfieManager-CxeMb2tM.d.ts} +1 -1
  132. package/dist/{selfieManager-9Eci1f5e.esm.js → selfieManager-DTiBsQNn.esm.js} +5 -5
  133. package/dist/{selfieStateMachine-CKRTfYh8.esm.js → selfieStateMachine-CxabK5_3.esm.js} +3 -3
  134. package/dist/session-Ccob4IUP.esm.js +161 -0
  135. package/dist/session.d.ts +9 -2
  136. package/dist/session.esm.js +4 -152
  137. package/dist/{sessionInitializer-CgjN51b2.esm.js → sessionInitializer-DEd0CQ74.esm.js} +27 -32
  138. package/dist/{setup-BFGd-cxt.esm.js → setup-BR4G3NHV.esm.js} +78 -11
  139. package/dist/{setup-B1WTXTQV.d.ts → setup-Dj8n_YLP.d.ts} +22 -0
  140. package/dist/signature.esm.js +2 -2
  141. package/dist/{signatureStateMachine-zRLvEGTw.esm.js → signatureStateMachine-Dx92l8pR.esm.js} +2 -2
  142. package/dist/{stats-4DAk7TYl.esm.js → stats-6sK3f5pc.esm.js} +2 -2
  143. package/dist/stats.esm.js +1 -1
  144. package/dist/trueSight-4L5GCqKy.esm.js +1 -0
  145. package/dist/trueSightService-DKC-gmQC.esm.js +1891 -0
  146. package/dist/trust-graph.esm.js +1 -1
  147. package/dist/{types-BK-v1UYb.d.ts → types-BBQjIaK4.d.ts} +1 -1
  148. package/dist/{types-xIEGXWk8.d.ts → types-BSBzhHRH.d.ts} +9 -0
  149. package/dist/{types-DjHL5Wa9.d.ts → types-BX_XkMsQ.d.ts} +1 -1
  150. package/dist/{types-DznwkfTc.d.ts → types-C2n-6lCx.d.ts} +1 -1
  151. package/dist/types-CrUhpMDP.d.ts +6 -0
  152. package/dist/{types-NSJbROLr.d.ts → types-KPvmag_B.d.ts} +2 -0
  153. package/dist/video-selfie.d.ts +2 -2
  154. package/dist/video-selfie.esm.js +9 -9
  155. package/dist/wasm.d.ts +1 -1
  156. package/dist/wasm.esm.js +3 -3
  157. package/dist/{wasmDefaults-B4DUtYET.esm.js → wasmDefaults-DJiEvV7f.esm.js} +1 -1
  158. package/dist/wasmWebClient-DM8lkb0z.esm.js +407 -0
  159. package/dist/watchlist-for-business.esm.js +2 -2
  160. package/dist/watchlist.esm.js +2 -2
  161. package/dist/{watchlistForBusinessStateMachine-Rc6BAwlr.esm.js → watchlistForBusinessStateMachine-Eo-WEYha.esm.js} +2 -2
  162. package/dist/{watchlistManager-FRMpgcWW.esm.js → watchlistManager-DnVfNc1v.esm.js} +2 -2
  163. package/dist/{watchlistStateMachine-64y9XBjm.esm.js → watchlistStateMachine-DZSOauwp.esm.js} +2 -2
  164. package/dist/workflow.d.ts +17 -9
  165. package/dist/workflow.esm.js +55 -40
  166. package/package.json +3 -3
  167. package/dist/api-BDTZNnca.esm.js +0 -71
  168. package/dist/clientLifecycle-BX83zwtT.esm.js +0 -528
  169. package/dist/session-B3d0Xtee.esm.js +0 -1
  170. package/dist/types-sK-eGomM.d.ts +0 -6
@@ -0,0 +1,129 @@
1
+ import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
+ //#region src/internal/http/api.ts
3
+ let client = null;
4
+ let currentToken = null;
5
+ function setClient(httpClient) {
6
+ client = httpClient;
7
+ }
8
+ function setToken(token) {
9
+ currentToken = token;
10
+ }
11
+ function getToken() {
12
+ return currentToken;
13
+ }
14
+ function getApi() {
15
+ if (!client) throw new Error("SDK not configured. Call setup({ apiURL: \"...\" }) first.");
16
+ return client;
17
+ }
18
+ function isApiConfigured() {
19
+ return client !== null;
20
+ }
21
+ function resetApi() {
22
+ client = null;
23
+ currentToken = null;
24
+ requestObserver = null;
25
+ }
26
+ let requestObserver = null;
27
+ /**
28
+ * Observer fired around every `api.*` call (ENG-48677 event map row 23b —
29
+ * Android-dashboard parity: every request gets a timing line, not just
30
+ * failures). Deliberately a plain setter, not a direct `trueSightLog` import:
31
+ * `trueSightService` already imports from this module, so importing it back
32
+ * here would create a cycle. `setup.ts` wires the real observer.
33
+ */
34
+ function setHttpRequestObserver(observer) {
35
+ requestObserver = observer;
36
+ }
37
+ function notifyRequestObserver(entry) {
38
+ if (!requestObserver) return;
39
+ try {
40
+ requestObserver(entry);
41
+ } catch {}
42
+ }
43
+ /** Strips a query string so `?communicationchannel=SMS`-style call sites don't fragment the endpoint label. */
44
+ function normalizeEndpoint(url) {
45
+ const queryIndex = url.indexOf("?");
46
+ return queryIndex === -1 ? url : url.slice(0, queryIndex);
47
+ }
48
+ function httpStatusOf(error) {
49
+ if (typeof error === "object" && error !== null && "status" in error && typeof error.status === "number") return error.status;
50
+ return null;
51
+ }
52
+ async function withTiming(method, url, call) {
53
+ const endpoint = normalizeEndpoint(url);
54
+ const startedAt = getTimestamp();
55
+ let response;
56
+ try {
57
+ response = await call();
58
+ } catch (error) {
59
+ notifyRequestObserver({
60
+ method,
61
+ endpoint,
62
+ httpStatus: httpStatusOf(error),
63
+ durationMs: getTimestamp() - startedAt,
64
+ outcome: "failure"
65
+ });
66
+ throw error;
67
+ }
68
+ notifyRequestObserver({
69
+ method,
70
+ endpoint,
71
+ httpStatus: response.status,
72
+ durationMs: getTimestamp() - startedAt,
73
+ outcome: "success"
74
+ });
75
+ return response;
76
+ }
77
+ /**
78
+ * Header-precedence contract: when a caller passes
79
+ * `X-Incode-Hardware-Id` in `config.headers`, their value wins over
80
+ * `currentToken`. Spreading `config?.headers` LAST achieves that
81
+ * (later keys overwrite earlier ones in object spread).
82
+ *
83
+ * Existing call sites that already pass an explicit
84
+ * `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`,
85
+ * `internal/virtualCameraCheck.logFrame`) now use the value they
86
+ * passed in unconditionally — previously the auto-injection silently
87
+ * clobbered them. Both call sites pass tokens that are already
88
+ * supposed to be the active session token, so behaviour is
89
+ * unchanged in practice; the change unblocks personhood (which
90
+ * needs to attach its own slot's token) without bypassing the
91
+ * shared `api` wrapper.
92
+ *
93
+ * Regression coverage lives in `api.test.ts → "should let explicit
94
+ * X-Incode-Hardware-Id override the auto-injected token"`.
95
+ */
96
+ function addTokenHeader(config) {
97
+ if (!currentToken) return config ?? {};
98
+ return {
99
+ ...config,
100
+ headers: {
101
+ "X-Incode-Hardware-Id": currentToken,
102
+ ...config?.headers
103
+ }
104
+ };
105
+ }
106
+ const api = {
107
+ get(url, config) {
108
+ const client = getApi();
109
+ return withTiming("GET", url, () => client.get(url, addTokenHeader(config)));
110
+ },
111
+ post(url, data, config) {
112
+ const client = getApi();
113
+ return withTiming("POST", url, () => client.post(url, data, addTokenHeader(config)));
114
+ },
115
+ put(url, data, config) {
116
+ const client = getApi();
117
+ return withTiming("PUT", url, () => client.put(url, data, addTokenHeader(config)));
118
+ },
119
+ patch(url, data, config) {
120
+ const client = getApi();
121
+ return withTiming("PATCH", url, () => client.patch(url, data, addTokenHeader(config)));
122
+ },
123
+ delete(url, config) {
124
+ const client = getApi();
125
+ return withTiming("DELETE", url, () => client.delete(url, addTokenHeader(config)));
126
+ }
127
+ };
128
+ //#endregion
129
+ export { resetApi as a, setToken as c, isApiConfigured as i, getApi as n, setClient as o, getToken as r, setHttpRequestObserver as s, api as t };
@@ -1,3 +1,4 @@
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-DKC-gmQC.esm.js";
1
2
  //#region src/internal/http/apiError.ts
2
3
  /**
3
4
  * Incode API error.
@@ -52,11 +53,21 @@ function isConnectivityError(err) {
52
53
  * other shape are re-thrown unchanged.
53
54
  */
54
55
  function toIncodeApiError(endpoint, err) {
55
- if (!isHttpError(err)) throw err;
56
+ if (!isHttpError(err)) {
57
+ if (isConnectivityError(err)) logHttpFailureBreadcrumb(`http connectivity lost endpoint=${endpoint}`, endpoint);
58
+ throw err;
59
+ }
56
60
  const body = err.data ?? {};
57
61
  const status = typeof body.status === "number" ? body.status : err.status;
58
62
  const message = body.error ?? body.message ?? err.statusText ?? `HTTP ${err.status}`;
63
+ logHttpFailureBreadcrumb(`http request failed endpoint=${endpoint} httpStatus=${err.status} incodeStatus=${status} message=${message}`, endpoint);
59
64
  throw new IncodeApiError(endpoint, status, err.status, message, err);
60
65
  }
66
+ /** Fail-open: the diagnostics tap must never mask the real error path. */
67
+ function logHttpFailureBreadcrumb(message, endpoint) {
68
+ try {
69
+ trueSightLog("error", "http", categoryForEndpoint(endpoint), message);
70
+ } catch {}
71
+ }
61
72
  //#endregion
62
73
  export { isConnectivityError as n, toIncodeApiError as r, IncodeApiError as t };
@@ -1,4 +1,4 @@
1
- import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B2TUje5s.js";
2
- import { t as AuthenticationConfig } from "./types-sK-eGomM.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-B2KZQ9zw.js";
1
+ import { b as createAuthenticationActor, v as AuthenticationActor, x as authenticationMachine, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B92LFT16.js";
2
+ import { t as AuthenticationConfig } from "./types-CrUhpMDP.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BGM8bpD0.js";
4
4
  export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-lTogTlQv.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BDkpqQ-5.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-DAh9ziFC.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-B7v0Jy-x.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
- import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
3
- import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DaYwl0Yq.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
5
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-lTogTlQv.esm.js";
3
+ import { n as eventModuleNames } from "./events-CMFCCu1H.esm.js";
4
+ import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-D2pR3ZnX.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-DAh9ziFC.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-CQQ99QOI.js";
2
2
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
3
- import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B2TUje5s.js";
3
+ import { n as FaceCaptureManagerState, t as FaceCaptureManager, v as AuthenticationActor, y as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B92LFT16.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,10 +1,10 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
3
- import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
+ import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DlmX-9nD.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-bUR2uNg0.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DbhDPMjb.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CVhk1BWp.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-BGmoQmjj.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,2 +1,2 @@
1
- import { i as requestPermission, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
1
+ import { i as requestPermission, t as checkPermission } from "./permissionServices-C4qKxOl4.esm.js";
2
2
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
2
2
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
- import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-Di_bLlkP.esm.js";
3
+ import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-N__sTAgu.esm.js";
4
4
  //#region src/modules/certificate-issuance/certificateIssuanceActor.ts
5
5
  /**
6
6
  * Creates and starts a certificate issuance actor.
@@ -1,5 +1,5 @@
1
- import { n as getApi, r as getToken } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
1
+ import { n as getApi, r as getToken } from "./api-Bx3gKW_y.esm.js";
2
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
package/dist/consent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-DLOyIZzt.js";
1
+ import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-BhYFeKiG.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,3 +1,3 @@
1
- import { t as consentMachine } from "./consentStateMachine-STURxpEc.esm.js";
2
- import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-0EiBXYtL.esm.js";
1
+ import { t as consentMachine } from "./consentStateMachine-DWL-X0Jb.esm.js";
2
+ import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-CWEAhAJ5.esm.js";
3
3
  export { consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -78,14 +78,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
78
78
  type: "setError";
79
79
  params: NonReducibleUnknown;
80
80
  };
81
- clearError: {
82
- type: "clearError";
83
- params: NonReducibleUnknown;
84
- };
85
- resetContext: {
86
- type: "resetContext";
87
- params: NonReducibleUnknown;
88
- };
89
81
  setConsentData: {
90
82
  type: "setConsentData";
91
83
  params: NonReducibleUnknown;
@@ -94,10 +86,18 @@ declare const consentMachine: StateMachine<ConsentContext, {
94
86
  type: "toggleCheckbox";
95
87
  params: NonReducibleUnknown;
96
88
  };
89
+ clearError: {
90
+ type: "clearError";
91
+ params: NonReducibleUnknown;
92
+ };
93
+ resetContext: {
94
+ type: "resetContext";
95
+ params: NonReducibleUnknown;
96
+ };
97
97
  }>, {
98
98
  type: "canSubmit";
99
99
  params: unknown;
100
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
100
+ }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
101
101
  readonly id: "consent";
102
102
  readonly initial: "idle";
103
103
  readonly context: ({ input }: {
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as consentMachine } from "./consentStateMachine-STURxpEc.esm.js";
4
+ import { t as consentMachine } from "./consentStateMachine-DWL-X0Jb.esm.js";
5
5
  //#region src/modules/consent/consentActor.ts
6
6
  function createConsentActor(options) {
7
7
  return createActor(consentMachine, { input: { config: options.config } }).start();
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  //#region src/modules/consent/consentServices.ts
@@ -1,2 +1,2 @@
1
- import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Dw7euiiZ.esm.js";
1
+ import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-Bk4W2TDJ.esm.js";
2
2
  export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
3
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
3
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
4
4
  import { c as createManager, o as createActor, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
@@ -1,4 +1,4 @@
1
- import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-BEWD-Lvo.js";
1
+ import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-DVGr7Fq7.js";
2
2
  //#region src/modules/curp-validation/curpValidationUtils.d.ts
3
3
  type MexicanState = {
4
4
  value: string;
@@ -1,3 +1,3 @@
1
- import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Dq6l4oeZ.esm.js";
2
- import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-BGj9U3E0.esm.js";
1
+ import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-42RbYcam.esm.js";
2
+ import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-B6gYKygj.esm.js";
3
3
  export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as curpValidationMachine } from "./curpValidationStateMachine-Dq6l4oeZ.esm.js";
4
+ import { t as curpValidationMachine } from "./curpValidationStateMachine-42RbYcam.esm.js";
5
5
  //#region src/modules/curp-validation/curpValidationActor.ts
6
6
  function createCurpValidationActor(options) {
7
7
  return createActor(curpValidationMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-CQQ99QOI.js";
3
3
  import "./Actor-iTq7YY48.js";
4
- import { i as FlowModuleConfig } from "./types-NSJbROLr.js";
4
+ import { i as FlowModuleConfig } from "./types-KPvmag_B.js";
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
7
7
  /** Maximum validation retries before auto-advancing. @default 1 */
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  //#region src/modules/curp-validation/curpValidationUtils.ts
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
4
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
5
5
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
6
6
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
7
7
  import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BuQML-pk.esm.js";
4
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BbDtH5kk.esm.js";
5
5
  //#region src/modules/custom-watchlist/customWatchlistActor.ts
6
6
  function createCustomWatchlistActor() {
7
7
  return createActor(customWatchlistMachine).start();
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
3
3
  import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
5
5
  //#region src/modules/custom-watchlist/customWatchlistServices.ts
@@ -1,7 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
2
- import { t as api } from "./api-BDTZNnca.esm.js";
3
- import { t as addDeviceStats } from "./stats-4DAk7TYl.esm.js";
4
- import { g as getThumbmarkId, m as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-CgjN51b2.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-D13sxEmA.esm.js";
2
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
3
+ import { l as trueSightLog } from "./trueSightService-DKC-gmQC.esm.js";
4
+ import { g as getThumbmarkId, h as IpifyProvider, n as getFingerprintEnabled, p as isBrowserSimulation, t as getDisableIpify, v as BrowserEnvironmentProvider } from "./sessionInitializer-DEd0CQ74.esm.js";
5
+ import "./trueSight-4L5GCqKy.esm.js";
6
+ import { t as addDeviceStats } from "./stats-6sK3f5pc.esm.js";
5
7
  import { t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
6
8
  import { t as getUserAgent } from "./getBrowser-Cb8Zgrgp.esm.js";
7
9
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYvM90IX.esm.js";
@@ -271,6 +273,14 @@ async function setWasmDsFlag(storage, enabled) {
271
273
  //#region src/internal/deepsight/deepsightLoader.ts
272
274
  const SDK_VERSION = "2.0.0";
273
275
  async function loadDeepsightSession(options) {
276
+ try {
277
+ return await loadDeepsightSessionInternal(options);
278
+ } catch (error) {
279
+ trueSightLog("warning", "deepsight", "other", `deepsight load failed error=${String(error)}`);
280
+ throw error;
281
+ }
282
+ }
283
+ async function loadDeepsightSessionInternal(options) {
274
284
  await setWasmDsFlag(options.storage, options.ds === true);
275
285
  const wasmUtil = await WasmUtilProvider.getInstance();
276
286
  const visibility = new VisibilityProvider();
@@ -1,3 +1,3 @@
1
1
  import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType } from "./types-B4BObr_7.js";
2
- import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-B-J1lXcH.js";
2
+ import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-BK_4RbHt.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -1,3 +1,3 @@
1
- import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BXgH9gGq.esm.js";
2
- import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-DBRQX16v.esm.js";
1
+ import { n as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-BlzN0-mU.esm.js";
2
+ import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-FvcNYpkS.esm.js";
3
3
  export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
@@ -38,6 +38,14 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
38
38
  id: string | undefined;
39
39
  };
40
40
  }>, Values<{
41
+ setError: {
42
+ type: "setError";
43
+ params: NonReducibleUnknown;
44
+ };
45
+ clearError: {
46
+ type: "clearError";
47
+ params: NonReducibleUnknown;
48
+ };
41
49
  setStream: {
42
50
  type: "setStream";
43
51
  params: NonReducibleUnknown;
@@ -50,14 +58,6 @@ declare const documentUploadMachine: StateMachine<DocumentUploadContext, {
50
58
  type: "setProgress";
51
59
  params: NonReducibleUnknown;
52
60
  };
53
- setError: {
54
- type: "setError";
55
- params: NonReducibleUnknown;
56
- };
57
- clearError: {
58
- type: "clearError";
59
- params: NonReducibleUnknown;
60
- };
61
61
  stopStream: {
62
62
  type: "stopStream";
63
63
  params: NonReducibleUnknown;
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-BDTZNnca.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
3
- import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
1
+ import { t as api } from "./api-Bx3gKW_y.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CMFCCu1H.esm.js";
3
+ import { t as endpoints } from "./endpoints-DOfmJylF.esm.js";
4
4
  import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
6
  import { a as stopCameraStream } from "./camera-BmFEyPP_.esm.js";