@incodetech/core 0.0.0-dev-20260930-745d12fa → 0.0.0-dev-20260930-d4ff5ab8

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 (57) hide show
  1. package/dist/{FaceDetectionProvider-BndGfmQ8.esm.js → FaceDetectionProvider-Cvj1_Ymy.esm.js} +4 -4
  2. package/dist/{PhoneValidationProvider-Dok_Det7.esm.js → PhoneValidationProvider-CG6ZVdz1.esm.js} +71 -22
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-COxhsmXI.esm.js → apiError-D9tifEpC.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager-fyQycKSY.esm.js → authenticationManager-DlfCCFD9.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-B5MLfQ9A.esm.js → authenticationStateMachine-DoHDzFwH.esm.js} +2 -2
  8. package/dist/{deepsightLoader-D1o7cwbx.esm.js → deepsightLoader-CcCEf7oe.esm.js} +3 -3
  9. package/dist/dynamic-forms.esm.js +2 -2
  10. package/dist/{dynamicFormsManager-CNKKOobl.esm.js → dynamicFormsManager-B35E9gH9.esm.js} +1 -1
  11. package/dist/{dynamicFormsStateMachine-9DMPmacN.esm.js → dynamicFormsStateMachine-P-JjrehB.esm.js} +1 -1
  12. package/dist/ekyb.esm.js +3 -3
  13. package/dist/{ekybManager-B-04Y_gO.esm.js → ekybManager-oF_sPUOw.esm.js} +1 -1
  14. package/dist/{ekybStateMachine-BXhRmRMP.esm.js → ekybStateMachine-CIApHD7u.esm.js} +1 -1
  15. package/dist/ekyc.esm.js +2 -2
  16. package/dist/{ekycManager-pYMEF56-.esm.js → ekycManager-AHzro9W9.esm.js} +1 -1
  17. package/dist/{ekycStateMachine-DtTIJSz_.esm.js → ekycStateMachine-CySBCorS.esm.js} +1 -1
  18. package/dist/electronic-signature.esm.js +1 -1
  19. package/dist/{electronicSignatureManager-13Ktick8.esm.js → electronicSignatureManager-Dk7Q3E3i.esm.js} +1 -1
  20. package/dist/extensibility.esm.js +12 -12
  21. package/dist/{faceCaptureManagerFactory-CYdHJ7Q6.esm.js → faceCaptureManagerFactory-DANyCvgN.esm.js} +1 -1
  22. package/dist/{faceCaptureSetup-C5caGotH.esm.js → faceCaptureSetup-BCRAojxy.esm.js} +3 -3
  23. package/dist/{feature-management-DVT1tn0c.esm.js → feature-management-Ccg5zlkB.esm.js} +1 -1
  24. package/dist/feature-management.esm.js +1 -1
  25. package/dist/flow.esm.js +3 -3
  26. package/dist/{flowCompletionService-BSyXSqh-.esm.js → flowCompletionService-Cs4AgJhJ.esm.js} +1 -1
  27. package/dist/{flowServices-DycvmUeM.esm.js → flowServices-pvloXH7G.esm.js} +4 -4
  28. package/dist/geolocation.esm.js +2 -2
  29. package/dist/{geolocationManager-BG2MUjjx.esm.js → geolocationManager-BTi46_n3.esm.js} +1 -1
  30. package/dist/{geolocationStateMachine-D9ZJ0ZeD.esm.js → geolocationStateMachine-CbH5L_lc.esm.js} +1 -1
  31. package/dist/id-selfie-flow.esm.js +7 -7
  32. package/dist/id.esm.js +3 -3
  33. package/dist/{idCaptureDefaults-DbvDQ1Vb.esm.js → idCaptureDefaults-BLsrCpnc.esm.js} +1 -1
  34. package/dist/{idCaptureManager-Cp1UFATb.esm.js → idCaptureManager-BvqvirzG.esm.js} +3 -3
  35. package/dist/{idCaptureServices-BrzBShmO.esm.js → idCaptureServices-QkxG2qev.esm.js} +3 -3
  36. package/dist/{idCaptureStateMachine-xJIl1m-i.esm.js → idCaptureStateMachine-BeMf0ogh.esm.js} +9 -9
  37. package/dist/index.esm.js +1 -1
  38. package/dist/phone-number.d.ts +24 -0
  39. package/dist/phone-number.esm.js +1922 -0
  40. package/dist/phone.esm.js +1 -1
  41. package/dist/{phoneManager-D46pkVfg.esm.js → phoneManager-DA8hsPmm.esm.js} +1 -1
  42. package/dist/qe-signature.esm.js +1 -1
  43. package/dist/{runChildModule-MghAqUHu.esm.js → runChildModule-DpDd5hXI.esm.js} +1 -1
  44. package/dist/{sdkVersion-BSSktVtv.esm.js → sdkVersion-BPfZ8U6L.esm.js} +1 -1
  45. package/dist/selfie.esm.js +5 -5
  46. package/dist/{selfieManager-DHD6vh_A.esm.js → selfieManager-DE8P16_w.esm.js} +3 -3
  47. package/dist/{selfieStateMachine-Bl7uiwCZ.esm.js → selfieStateMachine-BjZQm9q9.esm.js} +2 -2
  48. package/dist/{session-C01i_Iu2.esm.js → session-Csgo_71V.esm.js} +3 -3
  49. package/dist/session.esm.js +4 -4
  50. package/dist/{sessionInitializer-D6edi3Q7.esm.js → sessionInitializer-DlH51ecl.esm.js} +3 -3
  51. package/dist/{setup-C4eauLpA.esm.js → setup-C9O-XOmZ.esm.js} +4 -4
  52. package/dist/{trueSightService-BC9gRF72.esm.js → trueSightService-CiueMAv8.esm.js} +1 -1
  53. package/dist/video-selfie.esm.js +3 -3
  54. package/dist/{videoSelfieCameraWarmer-BSZLxE0D.esm.js → videoSelfieCameraWarmer-q2scCxub.esm.js} +3 -3
  55. package/dist/wasm.esm.js +2 -2
  56. package/dist/workflow.esm.js +15 -15
  57. package/package.json +6 -1
@@ -1,4 +1,4 @@
1
- import { l as BrowserStorageProvider } from "./setup-C4eauLpA.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-C9O-XOmZ.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
@@ -6,8 +6,8 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B9IqVf3c.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
9
- import { l as createIdProtectedCaptureController, m as mapDeviceWalletScreenName, n as provideIdProtectedCaptureController, p as BrowserDigitalCredentialsProvider, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-xJIl1m-i.esm.js";
10
- import { b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-BrzBShmO.esm.js";
9
+ import { l as createIdProtectedCaptureController, m as mapDeviceWalletScreenName, n as provideIdProtectedCaptureController, p as BrowserDigitalCredentialsProvider, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-BeMf0ogh.esm.js";
10
+ import { b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-QkxG2qev.esm.js";
11
11
  //#region src/modules/id/digitalUpload/instrumentation.ts
12
12
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
13
13
  function isHoldingState(value) {
@@ -1,5 +1,5 @@
1
- import { t as ensureWasmPipelines } from "./setup-C4eauLpA.esm.js";
2
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DVT1tn0c.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-C9O-XOmZ.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Ccg5zlkB.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -9,7 +9,7 @@ import { l as queryCameraPermission } from "./permissionServices-B9IqVf3c.esm.js
9
9
  import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-CMjkhS2x.esm.js";
10
10
  import { n as getBackCameraStream, o as isBackFacingTrack } from "./backCameraStream-CMvXj4X4.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DbvDQ1Vb.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BLsrCpnc.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -1,16 +1,16 @@
1
- import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-BC9gRF72.esm.js";
1
+ import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-CiueMAv8.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
3
- import { l as BrowserStorageProvider } from "./setup-C4eauLpA.esm.js";
3
+ import { l as BrowserStorageProvider } from "./setup-C9O-XOmZ.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
- import { s as exposeExperimentOnce } from "./feature-management-DVT1tn0c.esm.js";
5
+ import { s as exposeExperimentOnce } from "./feature-management-Ccg5zlkB.esm.js";
6
6
  import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
7
7
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
8
8
  import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, v as addEvent } from "./events-ijlbX_Wx.esm.js";
9
- import { t as getDisableIpify } from "./sessionInitializer-D6edi3Q7.esm.js";
9
+ import { t as getDisableIpify } from "./sessionInitializer-DlH51ecl.esm.js";
10
10
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
12
12
  import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
13
- import "./session-C01i_Iu2.esm.js";
13
+ import "./session-Csgo_71V.esm.js";
14
14
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
15
15
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
16
16
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
@@ -26,8 +26,8 @@ import { a as isBackCameraLabel } from "./backCameraStream-CMvXj4X4.esm.js";
26
26
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
27
27
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-CW8mFdt9.esm.js";
28
28
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
29
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DbvDQ1Vb.esm.js";
30
- import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-BrzBShmO.esm.js";
29
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BLsrCpnc.esm.js";
30
+ import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-QkxG2qev.esm.js";
31
31
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
32
32
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
33
33
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1398,7 +1398,7 @@ fromPromise(async ({ input }) => {
1398
1398
  });
1399
1399
  fromPromise(async ({ input }) => {
1400
1400
  if (!input.dependencies) return;
1401
- const { loadDeepsightSession } = await import("./deepsightLoader-D1o7cwbx.esm.js");
1401
+ const { loadDeepsightSession } = await import("./deepsightLoader-CcCEf7oe.esm.js");
1402
1402
  return loadDeepsightSession({
1403
1403
  ds: input.ds,
1404
1404
  storage: input.dependencies.storage,
@@ -1841,7 +1841,7 @@ function cleanup(service) {
1841
1841
  service.cleanup();
1842
1842
  } catch {}
1843
1843
  }
1844
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-D1o7cwbx.esm.js")).loadDeepsightSession(input)) {
1844
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-CcCEf7oe.esm.js")).loadDeepsightSession(input)) {
1845
1845
  let disposed = false;
1846
1846
  let preparation;
1847
1847
  let service;
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-C4eauLpA.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-C9O-XOmZ.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -0,0 +1,24 @@
1
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/types.d.ts
2
+ // The rationale for having a separate `CountryCode` type instead of just a `string`:
3
+ // https://github.com/catamphetamine/libphonenumber-js/issues/170#issuecomment-363156068
4
+ type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
5
+ //#endregion
6
+ //#region src/modules/phone-number/phoneNumber.d.ts
7
+ /** Returns `+52` for `MX`, or an empty string for a country with no phone metadata. */
8
+ declare function getCallingCode(country: CountryCode): string;
9
+ /** Formats national digits while the user types them, without the calling code. */
10
+ declare function formatPhoneAsYouType(nationalDigits: string, country: CountryCode): string;
11
+ /** Returns an example mobile number in national format, without a trunk prefix. */
12
+ declare function formatExamplePhoneNumber(country: CountryCode): string;
13
+ /**
14
+ * Finds the country of a valid international number (`+12025550123`) and
15
+ * formats its national part. Returns `null` when the number is not valid.
16
+ */
17
+ declare function parsePhoneNumber(phone: string): {
18
+ country: CountryCode;
19
+ national: string;
20
+ } | null;
21
+ /** Checks a full international number against the rules of `country`. */
22
+ declare function isValidPhoneNumber(phone: string, country: CountryCode): boolean;
23
+ //#endregion
24
+ export { type CountryCode, formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, isValidPhoneNumber, parsePhoneNumber };