@incodetech/core 0.0.0-dev-20260918-5cab0f73 → 0.0.0-dev-20260921-b7e58eb5

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 (88) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-YzSTx645.esm.js → BrowserDiagnosticsCryptoProvider-Bh5BLVQ8.esm.js} +1 -1
  2. package/dist/{FaceDetectionProvider-BGdxN0Zs.esm.js → FaceDetectionProvider-JgulaYPT.esm.js} +4 -4
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-D7MNCAJk.esm.js → apiError-BI_DIL8-.esm.js} +1 -1
  5. package/dist/authentication.d.ts +3 -3
  6. package/dist/authentication.esm.js +2 -2
  7. package/dist/{authenticationManager-BzD0aGAV.d.ts → authenticationManager-BK2M68y1.d.ts} +1 -7
  8. package/dist/{authenticationManager-5H2-DxBi.esm.js → authenticationManager-CuUtDrlp.esm.js} +3 -3
  9. package/dist/{authenticationStateMachine-BGEwZIOs.esm.js → authenticationStateMachine-5jWG5IWN.esm.js} +3 -3
  10. package/dist/{createCameraCycleOwnership-UAS1fFZF.esm.js → createCameraCycleOwnership-BjoMVvya.esm.js} +1 -55
  11. package/dist/curp-validation.d.ts +1 -1
  12. package/dist/{curpValidationManager-BJZ96KwC.d.ts → curpValidationManager-Ca_hyfn8.d.ts} +1 -1
  13. package/dist/{deepsightLoader-ClS4buil.esm.js → deepsightLoader-_UsfC4N5.esm.js} +3 -3
  14. package/dist/document-capture.d.ts +1 -1
  15. package/dist/{documentCaptureManager-CbAGkHWh.d.ts → documentCaptureManager-C8eO0hbv.d.ts} +1 -1
  16. package/dist/dynamic-forms.esm.js +2 -2
  17. package/dist/{dynamicFormsManager-CJXEcdgp.esm.js → dynamicFormsManager-DnLPFgpo.esm.js} +1 -1
  18. package/dist/{dynamicFormsStateMachine-BCIETgMA.esm.js → dynamicFormsStateMachine-DZMvXU5C.esm.js} +1 -1
  19. package/dist/ekyb.d.ts +1 -1
  20. package/dist/ekyb.esm.js +3 -3
  21. package/dist/{ekybManager-BXBQElBA.esm.js → ekybManager-wxfTuhMw.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-G_Nc0Ivr.esm.js → ekybStateMachine-CJekohHm.esm.js} +1 -1
  23. package/dist/electronic-signature.esm.js +1 -1
  24. package/dist/{electronicSignatureManager-BfRaSEfH.esm.js → electronicSignatureManager-B2s_UpGX.esm.js} +1 -1
  25. package/dist/extensibility.d.ts +10 -10
  26. package/dist/extensibility.esm.js +10 -10
  27. package/dist/{faceCaptureManagerFactory-OT8cpWWg.esm.js → faceCaptureManagerFactory-B3i_gukQ.esm.js} +3 -48
  28. package/dist/{faceCaptureManagerFactory-Cd48RMoz.d.ts → faceCaptureManagerFactory-BbD7mKqo.d.ts} +4 -43
  29. package/dist/{faceCaptureSetup-BYnRHKy-.esm.js → faceCaptureSetup-nNxycISh.esm.js} +5 -271
  30. package/dist/{feature-management-fKRm2ALz.esm.js → feature-management-79K7xbqh.esm.js} +1 -1
  31. package/dist/feature-management.esm.js +1 -1
  32. package/dist/flow-events.d.ts +1 -1
  33. package/dist/flow.d.ts +5 -5
  34. package/dist/flow.esm.js +3 -3
  35. package/dist/{flowCompletionService-DyteW8N2.esm.js → flowCompletionService-rS_YFQ6t.esm.js} +1 -1
  36. package/dist/{flowServices-JxDEQEvw.esm.js → flowServices-U9b0ahPM.esm.js} +4 -4
  37. package/dist/geolocation.esm.js +2 -2
  38. package/dist/{geolocationManager-CQfmoTDc.esm.js → geolocationManager-B9IuSkTU.esm.js} +1 -1
  39. package/dist/{geolocationStateMachine-CfZw2p6n.esm.js → geolocationStateMachine-TAJQ1khU.esm.js} +1 -1
  40. package/dist/home.d.ts +1 -1
  41. package/dist/id-selfie-flow.d.ts +1 -1
  42. package/dist/id-selfie-flow.esm.js +8 -8
  43. package/dist/id.d.ts +3 -3
  44. package/dist/id.esm.js +4 -5
  45. package/dist/{idCaptureDefaults-CCDNrEyH.esm.js → idCaptureDefaults-mlWsFVol.esm.js} +1 -1
  46. package/dist/{idCaptureManager-D1eI8wto.esm.js → idCaptureManager--1kTG7zh.esm.js} +3 -149
  47. package/dist/{idCaptureManager-BwgZAxRm.d.ts → idCaptureManager-x8HYtbU_.d.ts} +4 -77
  48. package/dist/{idCaptureServices-ugA6g9lm.esm.js → idCaptureServices-C-kakh6D.esm.js} +4 -31
  49. package/dist/{idCaptureStateMachine-BzSjOmhQ.esm.js → idCaptureStateMachine-B12AOO3l.esm.js} +317 -788
  50. package/dist/identity-reuse.d.ts +1 -1
  51. package/dist/{identityReuseManager-x2QG6QAm.d.ts → identityReuseManager-D30b2UEC.d.ts} +4 -4
  52. package/dist/{index-1E8g-2g7.d.ts → index-CB9o8nNO.d.ts} +1 -1
  53. package/dist/index.esm.js +1 -1
  54. package/dist/mandatory-consent.d.ts +2 -2
  55. package/dist/{mandatoryConsentManager-BF3b2SF-.d.ts → mandatoryConsentManager-BEg7LM9Y.d.ts} +5 -5
  56. package/dist/personhood.d.ts +1 -1
  57. package/dist/personhood.esm.js +4 -4
  58. package/dist/qe-signature.esm.js +1 -1
  59. package/dist/{runChildModule-ClkAUc6x.esm.js → runChildModule-Cik6cSGU.esm.js} +1 -1
  60. package/dist/{sdkVersion-BCY7wMPM.esm.js → sdkVersion-BaqyXxtV.esm.js} +1 -1
  61. package/dist/selfie.d.ts +3 -3
  62. package/dist/selfie.esm.js +7 -7
  63. package/dist/{selfieErrorUtils-UiQ46EBa.esm.js → selfieErrorUtils-yjRptLFi.esm.js} +1 -27
  64. package/dist/{selfieManager-2XhaWSPN.esm.js → selfieManager-B-joeD7D.esm.js} +3 -3
  65. package/dist/{selfieManager-CDEI-0sG.d.ts → selfieManager-BYY1eWDa.d.ts} +1 -7
  66. package/dist/selfieStateMachine-BtJHDS_g.esm.js +40 -0
  67. package/dist/{session-CTNuAH2T.esm.js → session-IbTLb79e.esm.js} +3 -3
  68. package/dist/session.d.ts +1 -1
  69. package/dist/session.esm.js +4 -4
  70. package/dist/{sessionInitializer-CsXOAxxm.esm.js → sessionInitializer-Bw1QJcYn.esm.js} +3 -3
  71. package/dist/{setup-BUHgnW1t.esm.js → setup--3OJBjl-.esm.js} +4 -4
  72. package/dist/{trueSightService-C4pbgK2N.esm.js → trueSightService-WChjnB6y.esm.js} +2 -2
  73. package/dist/{types-ExpE7pl7.d.ts → types-BtX86Xl6.d.ts} +1 -1
  74. package/dist/{types-B-yKe-iB.d.ts → types-C--rKe_Y.d.ts} +1 -1
  75. package/dist/{types-BJ5OoZiu2.d.ts → types-DBu4S_vo2.d.ts} +8 -50
  76. package/dist/{types-COFO2tJb.d.ts → types-DvZVYbHR.d.ts} +2 -4
  77. package/dist/{types-BlTGii11.d.ts → types-Ijf6vvwm.d.ts} +1 -2
  78. package/dist/types-ixFGXL3F.d.ts +6 -0
  79. package/dist/video-selfie.d.ts +1 -1
  80. package/dist/video-selfie.esm.js +4 -4
  81. package/dist/{videoSelfieCameraWarmer-DYhJLlU-.esm.js → videoSelfieCameraWarmer-Cksm9p7e.esm.js} +4 -4
  82. package/dist/{videoSelfieStepDetector-D9BB7QLa.d.ts → videoSelfieStepDetector-Apm7Puet.d.ts} +2 -2
  83. package/dist/wasm.esm.js +1 -1
  84. package/dist/workflow.d.ts +1 -1
  85. package/dist/workflow.esm.js +14 -14
  86. package/package.json +1 -1
  87. package/dist/selfieStateMachine-C5_lbUwS.esm.js +0 -69
  88. package/dist/types-DzX4bQBH.d.ts +0 -6
@@ -1,12 +1,12 @@
1
- import { l as BrowserStorageProvider } from "./setup-BUHgnW1t.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup--3OJBjl-.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";
5
5
  import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Czjlp68o.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-C8DqhjX7.esm.js";
8
- import { a as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, s as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-BzSjOmhQ.esm.js";
9
- import { _ as resolveCaptureOptimizingTreatment, v as resolveIdCaptureThresholds } from "./idCaptureServices-ugA6g9lm.esm.js";
8
+ import { l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-B12AOO3l.esm.js";
9
+ import { _ as resolveIdCaptureThresholds, g as resolveCaptureOptimizingTreatment } from "./idCaptureServices-C-kakh6D.esm.js";
10
10
  //#region src/modules/id/digitalUpload/instrumentation.ts
11
11
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
12
12
  function isHoldingState(value) {
@@ -86,67 +86,6 @@ function mapDigitalIdRedirectScreenName(value) {
86
86
  }
87
87
  }
88
88
  //#endregion
89
- //#region src/modules/id/manualUpload/instrumentation.ts
90
- /**
91
- * Maps an ID Manual Upload child-machine snapshot to the exact Figma
92
- * "Tracked Events" screen name. Source: ID Manual Upload Figma file
93
- * (`https://www.figma.com/design/WCx6d4zXG5nu946mu0KZNO/ID-Manual-Upload---Latest-Design?node-id=2462-18986`).
94
- *
95
- * Family is `IDmanual.*` — emitted cross-family under the parent
96
- * `idCapture` module token (same precedent as `uploadDigitalid.*` from
97
- * the digital-upload sub-flow). Manual upload has no standalone manager
98
- * or module token of its own.
99
- *
100
- * The mapper returns Figma-verbatim strings (e.g.
101
- * `'IDmanual.upload.uploadedFrontandBack'`) which the adapter emits as-is
102
- * on `event.screen`. See `docs/patterns/INSTRUMENTATION.md`.
103
- *
104
- * In-scope Figma screens (driven from child SM state + context):
105
- *
106
- * - `IDmanual.upload.default` — selecting, ID tab, no front file yet
107
- * - `IDmanual.upload.uploadedFront` — selecting, ID tab, front uploaded,
108
- * back still needed
109
- * - `IDmanual.upload.uploadedFrontandBack` — selecting, ID tab, both
110
- * sides uploaded (or `onlyFront`/`skipBackFromServer` short-circuit)
111
- * - `IDmanual.upload.passport` — selecting, passport tab, no file
112
- * - `IDmanual.upload.uploadedPassport` — selecting, passport tab,
113
- * passport uploaded
114
- * - `IDmanual.error.document` — selecting, with a populated
115
- * `errorMessage`
116
- *
117
- * Figma screens intentionally NOT mapped here (parent-level surfaces or
118
- * shared with other families):
119
- *
120
- * - `IDmanual.documentchooser.default` / `IDmanual.howtoverify` —
121
- * the chooser and the "how to verify" tutorial are PARENT-LEVEL
122
- * `idCapture` surfaces (one shared React component, fired BEFORE the
123
- * user picks manual-vs-digital). The Upload Digital ID canvas
124
- * describes the same physical pixels under its own family name.
125
- * Decision (Option A, recorded in `.cursor/commands/sync-events.md`):
126
- * keep emitting the neutral parent names `idCapture.documentchooser`
127
- * and `idCapture.tutorial.{front,back,passport}` and treat the
128
- * per-canvas Figma names as design-side aliases. Per-flow attribution
129
- * would require a `selectedDocumentType`-aware override at the parent
130
- * dispatcher — explicitly NOT shipped here.
131
- * - `digitalID.success.default` — appears on the canvas for reference,
132
- * but the actual success surface is emitted by `mapDigitalIdScreenName`
133
- * as `uploadDigitalid.success.default`. Manual upload has no dedicated
134
- * success screen; `finished` returns control to the parent SM.
135
- *
136
- * Returns `undefined` for transient (`uploadingFront`/`uploadingBack`/
137
- * `uploadingPassport`/`checkRetries`) and terminal (`retriesExhausted`/
138
- * `exhausted`/`finished`) states — the parent dispatcher falls back to
139
- * its existing default (`idCapture.manualIdUpload`) for those beats.
140
- */
141
- function mapIdManualUploadScreenName(value, context) {
142
- if (value !== "selecting" || context === void 0) return;
143
- if (context.errorMessage !== null) return "IDmanual.error.document";
144
- if (context.activeTab === "passport") return context.passportUploaded ? "IDmanual.upload.uploadedPassport" : "IDmanual.upload.passport";
145
- if (!context.frontUploaded) return "IDmanual.upload.default";
146
- if (context.backUploaded || context.skipBackFromServer || context.onlyFront) return "IDmanual.upload.uploadedFrontandBack";
147
- return "IDmanual.upload.uploadedFront";
148
- }
149
- //#endregion
150
89
  //#region src/internal/idCapture/idCaptureManagerFactory.ts
151
90
  function getPermissionStatus(snapshot) {
152
91
  if (!snapshot.matches("permissions")) return;
@@ -349,56 +288,6 @@ function mapTutorialState(snapshot, context) {
349
288
  currentMode: context.currentMode
350
289
  };
351
290
  }
352
- function mapManualUploadState(snapshot) {
353
- const { config } = snapshot.context;
354
- const { showIdTab, showPassportTab } = getManualUploadTabs(config);
355
- const childSnapshot = snapshot.children["manualIdUpload"]?.getSnapshot();
356
- const childCtx = childSnapshot?.context;
357
- const childValue = childSnapshot?.value;
358
- const phase = childValue === "retriesExhausted" ? "exhausted" : childValue === "uploadingFront" || childValue === "uploadingBack" || childValue === "uploadingPassport" ? "uploading" : "selecting";
359
- const uploadingSide = childValue === "uploadingFront" ? "front" : childValue === "uploadingBack" ? "back" : childValue === "uploadingPassport" ? "passport" : void 0;
360
- /**
361
- * Server told us the document doesn't need a back side (e.g. passport-class
362
- * docs, single-sided IDs). Treat the back slot as uploaded so the UI shows
363
- * a green check rather than hiding the slot — matches v1's behavior and
364
- * keeps both slots visible once the front has been processed.
365
- */
366
- const backUploaded = (childCtx?.backUploaded ?? false) || (childCtx?.skipBackFromServer ?? false);
367
- /**
368
- * Manual upload is client-authoritative for the back side: the slot must be
369
- * shown or hidden before any upload round-trip, so there is no
370
- * `skipBackIdCapture` to defer to yet. The side-only flags are therefore read
371
- * directly here (`onlyFront`: ENG-50532; `onlyBack`: ENG-51547). The camera
372
- * path is the opposite: it forwards only-front and waits for the server's
373
- * answer.
374
- */
375
- const onlyFront = config.onlyFront === true;
376
- const onlyBack = config.onlyBack === true;
377
- const idTabCanContinue = onlyBack && backUploaded || !onlyBack && (childCtx?.frontUploaded ?? false) && (onlyFront || backUploaded);
378
- const canContinue = childCtx?.activeTab === "id" ? idTabCanContinue : !onlyBack && (childCtx?.passportUploaded ?? false);
379
- const showFrontSlot = !onlyBack;
380
- const showBackSlot = onlyBack || !onlyFront;
381
- return {
382
- status: "manualUpload",
383
- phase,
384
- uploadingSide,
385
- activeTab: childCtx?.activeTab ?? "id",
386
- showIdTab,
387
- showPassportTab,
388
- showFrontSlot,
389
- showBackSlot,
390
- frontFileName: childCtx?.frontFile?.name,
391
- backFileName: childCtx?.backFile?.name,
392
- passportFileName: childCtx?.passportFile?.name,
393
- frontUploaded: childCtx?.frontUploaded ?? false,
394
- backUploaded,
395
- passportUploaded: childCtx?.passportUploaded ?? false,
396
- canContinue,
397
- retriesLeft: childCtx?.retriesLeft ?? snapshot.context.config.captureAttempts,
398
- errorKey: childCtx?.errorMessage ?? null,
399
- errorSide: childCtx?.errorSide ?? null
400
- };
401
- }
402
291
  function mapDigitalUploadState(snapshot) {
403
292
  const childSnapshot = snapshot.children["digitalIdUpload"]?.getSnapshot();
404
293
  const childCtx = childSnapshot?.context;
@@ -509,7 +398,6 @@ function mapState(snapshot, presentationStream) {
509
398
  status: "error",
510
399
  error: context.error ?? "Unknown error"
511
400
  };
512
- if (snapshot.matches("manualIdUpload")) return mapManualUploadState(snapshot);
513
401
  if (snapshot.matches("digitalIdUpload")) return mapDigitalUploadState(snapshot);
514
402
  if (snapshot.matches("digitalIdRedirect") || snapshot.matches("digitalIdRedirectReturning")) return mapDigitalIdRedirectState(snapshot);
515
403
  if (snapshot.matches("deviceWallet") || snapshot.matches("digitalIdRouting")) return mapDeviceWalletState(snapshot);
@@ -621,35 +509,6 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
621
509
  detectionArea
622
510
  });
623
511
  },
624
- /**
625
- * Manual upload: tab change (ID / Passport). Resets per-tab file selections.
626
- * Note: there is intentionally no `switchToManualUpload` method — entry to
627
- * the manual-upload flow is gated by config + Chooser to prevent a
628
- * dev-console bypass of live camera capture.
629
- */
630
- manualUploadChangeTab(tab) {
631
- trackElementClicked?.(`manualUpload.tab.${tab}`);
632
- actor.send({
633
- type: "MANUAL_UPLOAD_TAB_CHANGED",
634
- tab
635
- });
636
- },
637
- manualUploadSelectFile(side, file) {
638
- trackElementClicked?.(`manualUpload.select.${side}`);
639
- actor.send({
640
- type: "MANUAL_UPLOAD_FILE_SELECTED",
641
- side,
642
- file
643
- });
644
- },
645
- manualUploadContinue() {
646
- trackElementClicked?.("manualUpload.continue");
647
- actor.send({ type: "MANUAL_UPLOAD_CONTINUE" });
648
- },
649
- manualUploadReset() {
650
- trackElementClicked?.("manualUpload.reset");
651
- actor.send({ type: "MANUAL_UPLOAD_RESET" });
652
- },
653
512
  digitalUploadNextStep() {
654
513
  trackElementClicked?.("digitalUpload.nextStep");
655
514
  actor.send({ type: "DIGITAL_UPLOAD_NEXT_STEP" });
@@ -843,11 +702,6 @@ function getIdCaptureScreenName(snapshot) {
843
702
  const childContext = child?.context;
844
703
  return mapDigitalIdScreenName(child?.value, childContext?.failReason ?? null);
845
704
  }
846
- case "manualIdUpload": {
847
- const child = snapshot.children["manualIdUpload"]?.getSnapshot();
848
- const childContext = child?.context;
849
- return mapIdManualUploadScreenName(child?.value, childContext) ?? "idCapture.manualIdUpload";
850
- }
851
705
  case "digitalIdRedirect":
852
706
  case "digitalIdRedirectReturning": {
853
707
  const child = snapshot.children["digitalIdRedirect"]?.getSnapshot();
@@ -4,7 +4,7 @@ import "./Actor-DpTj5PFb.js";
4
4
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
5
5
  import "./index-DpTj5PFb.js";
6
6
  import "./createFaceAvatar-DXgmQmQy.js";
7
- import { a as RegulationTypes } from "./types-COFO2tJb.js";
7
+ import { a as RegulationTypes } from "./types-DvZVYbHR.js";
8
8
  import { n as VirtualCameraCheckOutput, r as WasmUtilConfig, t as IWasmUtilCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
9
9
  import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
10
10
  import { t as BaseWasmProvider } from "./BaseWasmProvider-BL9wIRnN.js";
@@ -12,7 +12,7 @@ import "./types-CfuWgAi-.js";
12
12
  import { n as DeepsightService } from "./StreamCanvasCapture-CeBBJ_RC.js";
13
13
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
14
14
  import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
15
- import { C as IdDocumentType, D as UploadIdResponse, L as DeviceWalletFailReason, N as ManualUploadSide, O as IAnalyticsCapability, P as ManualUploadTab, T as IdErrorCode, X as FailureReason, Y as DigitalIdProviderId, _ as IdCaptureInput, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, h as IdCaptureEvent, i as CaptureIdResponse, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, y as IdCaptureOnlyConfig, z as DeviceWalletPlatform } from "./types-BJ5OoZiu2.js";
15
+ import { C as IdDocumentType, D as UploadIdResponse, N as DeviceWalletPlatform, O as IAnalyticsCapability, T as IdErrorCode, U as DigitalIdProviderId, W as FailureReason, _ as IdCaptureInput, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, h as IdCaptureEvent, i as CaptureIdResponse, j as DeviceWalletFailReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, y as IdCaptureOnlyConfig } from "./types-DBu4S_vo2.js";
16
16
  //#region ../infra/src/providers/wasm/WasmUtilProvider.d.ts
17
17
  declare class WasmUtilProvider extends BaseWasmProvider implements IWasmUtilCapability {
18
18
  private static instance;
@@ -137,40 +137,6 @@ declare function stopRecording(session: object): void;
137
137
  declare function processId(isSecondId?: boolean, queueName?: string, signal?: AbortSignal): Promise<{
138
138
  isDocumentExpired: boolean;
139
139
  }>;
140
- type UploadManualIdFileParams = {
141
- side: 'front' | 'back' | 'passport';
142
- /**
143
- * Raw base64 payload (no `data:<mime>;base64,` prefix). Callers must strip
144
- * the data-URL prefix — the v2 backend rejects data URLs with
145
- * `IllegalArgumentException: Illegal base64 character 3a`.
146
- */
147
- base64Image: string;
148
- retry?: boolean;
149
- onlyFront?: boolean;
150
- signal?: AbortSignal;
151
- isSecondId?: boolean;
152
- /**
153
- * [ENG-44176] When `false`, attaches `extractIdFace=false` to the upload
154
- * so the backend skips biometric face extraction. Forwarded only for the
155
- * `front` and `passport` sides; back uploads ignore it. Omitted / `true`
156
- * is a no-op on the wire.
157
- */
158
- extractIdFace?: boolean;
159
- };
160
- /**
161
- * Upload a user-selected image as front / back / passport ID.
162
- *
163
- * Uses the same request shape as the live-camera path (`uploadIdImage`):
164
- * JSON body `{ base64Image }` with default application/json Content-Type,
165
- * `captureType=UPLOAD` query param, `retry=true` when retrying.
166
- * Back is POSTed to `/omni/add/back-id/v2` (or `/omni/add/back-second-id/v2`
167
- * when `isSecondId`); front and passport go to `/omni/add/front-id/v2` (or
168
- * `/omni/add/front-second-id/v2` when `isSecondId`).
169
- *
170
- * The v2 endpoints reject raw `image/jpeg` bodies with 415, so the caller
171
- * must convert the File to base64 before calling this service.
172
- */
173
- declare function uploadManualIdFile(params: UploadManualIdFileParams): Promise<UploadIdResponse>;
174
140
  /**
175
141
  * UTF-8-safe base64 encoding of a decoded barcode payload. Uses the browser
176
142
  * `TextEncoder` + `btoa` (always available in the SDK's target environment) so
@@ -420,31 +386,6 @@ type IdCaptureErrorState = {
420
386
  status: 'error';
421
387
  error: string;
422
388
  };
423
- type ManualUploadUploadingSide = ManualUploadSide;
424
- type IdCaptureManualUploadState = {
425
- status: 'manualUpload';
426
- phase: 'selecting' | 'uploading' | 'exhausted';
427
- /** Which side is currently uploading (undefined in `selecting`/`exhausted`). */
428
- uploadingSide: ManualUploadUploadingSide | undefined;
429
- activeTab: ManualUploadTab;
430
- showIdTab: boolean;
431
- showPassportTab: boolean;
432
- /** Whether the ID tab should render a front-of-ID slot. Defaults to true. */
433
- showFrontSlot?: boolean;
434
- /** Whether the ID tab should render a back-of-ID slot. */
435
- showBackSlot: boolean;
436
- frontFileName: string | undefined;
437
- backFileName: string | undefined;
438
- passportFileName: string | undefined;
439
- frontUploaded: boolean;
440
- backUploaded: boolean;
441
- passportUploaded: boolean;
442
- canContinue: boolean;
443
- retriesLeft: number;
444
- /** i18n key for the current error message, if any. */
445
- errorKey: string | null;
446
- errorSide: ManualUploadSide | null;
447
- };
448
389
  type IdCaptureDigitalUploadState = {
449
390
  status: 'digitalIdUpload';
450
391
  phase: 'tutorial' | 'selecting' | 'reviewing' | 'uploading' | 'holding' | 'success' | 'error' | 'fileTooLarge' | 'exhausted';
@@ -485,7 +426,7 @@ type IdCaptureDeviceWalletState = {
485
426
  failReason: DeviceWalletFailReason | null;
486
427
  platform: DeviceWalletPlatform | undefined;
487
428
  };
488
- type IdCaptureState = IdCaptureIdleState | IdCaptureChooserState | IdCaptureLoadingState | IdCaptureTutorialState | IdCaptureAgeVerificationState | IdCapturePermissionsState | IdCaptureCaptureState | IdCaptureMandatoryConsentState | IdCaptureFrontFinishedState | IdCaptureBackFinishedState | IdCaptureProcessingState | IdCaptureExpiredState | IdCaptureExpiredExhaustedState | IdCaptureFinishedState | IdCaptureClosedState | IdCaptureErrorState | IdCaptureManualUploadState | IdCaptureDigitalUploadState | IdCaptureDigitalIdRedirectState | IdCaptureDeviceWalletState;
429
+ type IdCaptureState = IdCaptureIdleState | IdCaptureChooserState | IdCaptureLoadingState | IdCaptureTutorialState | IdCaptureAgeVerificationState | IdCapturePermissionsState | IdCaptureCaptureState | IdCaptureMandatoryConsentState | IdCaptureFrontFinishedState | IdCaptureBackFinishedState | IdCaptureProcessingState | IdCaptureExpiredState | IdCaptureExpiredExhaustedState | IdCaptureFinishedState | IdCaptureClosedState | IdCaptureErrorState | IdCaptureDigitalUploadState | IdCaptureDigitalIdRedirectState | IdCaptureDeviceWalletState;
489
430
  /**
490
431
  * Union of all `idCaptureMachine` variants' actor types. Variants share the
491
432
  * same state tree and context shape, so the manager helpers
@@ -539,16 +480,6 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
539
480
  * Call this when the UI detection area dimensions change (e.g., on resize or orientation change).
540
481
  */
541
482
  updateDetectionArea(detectionArea: DetectionArea): void;
542
- /**
543
- * Manual upload: tab change (ID / Passport). Resets per-tab file selections.
544
- * Note: there is intentionally no `switchToManualUpload` method — entry to
545
- * the manual-upload flow is gated by config + Chooser to prevent a
546
- * dev-console bypass of live camera capture.
547
- */
548
- manualUploadChangeTab(tab: ManualUploadTab): void;
549
- manualUploadSelectFile(side: ManualUploadSide, file: File): void;
550
- manualUploadContinue(): void;
551
- manualUploadReset(): void;
552
483
  digitalUploadNextStep(): void;
553
484
  digitalUploadPickFile(file: File): void;
554
485
  digitalUploadConfirm(): void;
@@ -601,10 +532,6 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
601
532
  acceptMandatoryConsent(): void;
602
533
  cancelMandatoryConsent(): void;
603
534
  updateDetectionArea(detectionArea: DetectionArea): void;
604
- manualUploadChangeTab(tab: ManualUploadTab): void;
605
- manualUploadSelectFile(side: ManualUploadSide, file: File): void;
606
- manualUploadContinue(): void;
607
- manualUploadReset(): void;
608
535
  digitalUploadNextStep(): void;
609
536
  digitalUploadPickFile(file: File): void;
610
537
  digitalUploadConfirm(): void;
@@ -620,4 +547,4 @@ declare function createIdCaptureManager(options: CreateIdCaptureActorOptions): M
620
547
  deviceWalletUseAnotherMethod(): void;
621
548
  };
622
549
  //#endregion
623
- export { prepareRecordingForCameraRetry as A, addBarcode as C, getRealQualityValue as D, finalizeRecordingSession as E, uploadIdImage as F, uploadManualIdFile as I, validateUploadResponse as L, startRecordingSession as M, stopRecording as N, initializeIdCapture as O, stopStream as P, WasmUtilProvider as R, ValidationError as S, disposeRecordingSession as T, IdCaptureInitResult as _, CreateIdCaptureOnlyActorOptions as a, UploadIdImageParams as b, IdCaptureOnlyMachine as c, IdCaptureActor as d, createIdCaptureActor as f, FinalizedIdRecording as g, AddBarcodeParams as h, createIdCaptureManagerFromActor as i, processId as j, pauseRecordingForAttempt as k, idCaptureOnlyMachine as l, idCaptureMachine as m, IdCaptureManager as n, IdCaptureOnlyActor as o, IdCaptureMachine as p, IdCaptureState as r, createIdCaptureOnlyActor as s, createIdCaptureManager as t, CreateIdCaptureActorOptions as u, InitializeIdCaptureParams as v, barcodeToBase64 as w, UploadManualIdFileParams as x, StartRecordingParams as y };
550
+ export { processId as A, barcodeToBase64 as C, initializeIdCapture as D, getRealQualityValue as E, validateUploadResponse as F, WasmUtilProvider as I, stopRecording as M, stopStream as N, pauseRecordingForAttempt as O, uploadIdImage as P, addBarcode as S, finalizeRecordingSession as T, IdCaptureInitResult as _, CreateIdCaptureOnlyActorOptions as a, UploadIdImageParams as b, IdCaptureOnlyMachine as c, IdCaptureActor as d, createIdCaptureActor as f, FinalizedIdRecording as g, AddBarcodeParams as h, createIdCaptureManagerFromActor as i, startRecordingSession as j, prepareRecordingForCameraRetry as k, idCaptureOnlyMachine as l, idCaptureMachine as m, IdCaptureManager as n, IdCaptureOnlyActor as o, IdCaptureMachine as p, IdCaptureState as r, createIdCaptureOnlyActor as s, createIdCaptureManager as t, CreateIdCaptureActorOptions as u, InitializeIdCaptureParams as v, disposeRecordingSession as w, ValidationError as x, StartRecordingParams as y };
@@ -1,5 +1,5 @@
1
- import { t as ensureWasmPipelines } from "./setup-BUHgnW1t.esm.js";
2
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-fKRm2ALz.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup--3OJBjl-.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-79K7xbqh.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -9,7 +9,7 @@ import { s as queryCameraPermission } from "./permissionServices-C8DqhjX7.esm.js
9
9
  import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-BOtyQowf.esm.js";
10
10
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
11
11
  import { t as MultipartRecordingService } from "./multipartRecordingService-OEgIRvqC.esm.js";
12
- import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CCDNrEyH.esm.js";
12
+ import { i as CameraCompositor, n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-mlWsFVol.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -663,33 +663,6 @@ async function processId(isSecondId = false, queueName = "", signal) {
663
663
  return { isDocumentExpired: (await api.post(url, {}, { signal })).data?.isDocumentExpired ?? false };
664
664
  }
665
665
  /**
666
- * Upload a user-selected image as front / back / passport ID.
667
- *
668
- * Uses the same request shape as the live-camera path (`uploadIdImage`):
669
- * JSON body `{ base64Image }` with default application/json Content-Type,
670
- * `captureType=UPLOAD` query param, `retry=true` when retrying.
671
- * Back is POSTed to `/omni/add/back-id/v2` (or `/omni/add/back-second-id/v2`
672
- * when `isSecondId`); front and passport go to `/omni/add/front-id/v2` (or
673
- * `/omni/add/front-second-id/v2` when `isSecondId`).
674
- *
675
- * The v2 endpoints reject raw `image/jpeg` bodies with 415, so the caller
676
- * must convert the File to base64 before calling this service.
677
- */
678
- async function uploadManualIdFile(params) {
679
- const { side, base64Image, retry, onlyFront, signal, isSecondId, extractIdFace } = params;
680
- const endpoint = getUploadEndpoint(side === "back" ? "back" : "front", isSecondId);
681
- const queryParams = { captureType: "UPLOAD" };
682
- if (retry) queryParams.retry = true;
683
- if (onlyFront && side === "front") queryParams.onlyFront = true;
684
- if (extractIdFace === false && side !== "back") queryParams.extractIdFace = false;
685
- const res = await api.post(endpoint, { base64Image }, {
686
- signal,
687
- query: queryParams
688
- });
689
- if (!res.ok) throw new Error(`POST ${endpoint} failed: ${res.status} ${res.statusText}`);
690
- return res.data;
691
- }
692
- /**
693
666
  * UTF-8-safe base64 encoding of a decoded barcode payload. Uses the browser
694
667
  * `TextEncoder` + `btoa` (always available in the SDK's target environment) so
695
668
  * non-ASCII payloads survive `btoa`, which only accepts Latin-1.
@@ -732,4 +705,4 @@ async function addBarcode(params) {
732
705
  return res.data;
733
706
  }
734
707
  //#endregion
735
- export { resolveCaptureOptimizingTreatment as _, getRealQualityValue as a, OPTIMIZING_WATCHDOG_MARGIN_MS as b, prepareRecordingForCameraRetry as c, stopRecording as d, stopStream as f, ID_ERROR_CODES as g, validateUploadResponse as h, finalizeRecordingSession as i, processId as l, uploadManualIdFile as m, barcodeToBase64 as n, initializeIdCapture as o, uploadIdImage as p, disposeRecordingSession as r, pauseRecordingForAttempt as s, addBarcode as t, startRecordingSession as u, resolveIdCaptureThresholds as v, getIdCameraStream as x, CAPTURE_OPTIMIZING as y };
708
+ export { resolveIdCaptureThresholds as _, getRealQualityValue as a, getIdCameraStream as b, prepareRecordingForCameraRetry as c, stopRecording as d, stopStream as f, resolveCaptureOptimizingTreatment as g, ID_ERROR_CODES as h, finalizeRecordingSession as i, processId as l, validateUploadResponse as m, barcodeToBase64 as n, initializeIdCapture as o, uploadIdImage as p, disposeRecordingSession as r, pauseRecordingForAttempt as s, addBarcode as t, startRecordingSession as u, CAPTURE_OPTIMIZING as v, OPTIMIZING_WATCHDOG_MARGIN_MS as y };