@incodetech/core 0.0.0-dev-20260729-9e7b030a → 0.0.0-dev-20260729-a31df3b7

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 (87) hide show
  1. package/dist/{FaceDetectionProvider-BHweGBEM.d.ts → FaceDetectionProvider-Mh6q3EbA.d.ts} +1 -2
  2. package/dist/IIdCaptureCapability-Cj_aceph.d.ts +231 -0
  3. package/dist/{IStorageCapability-B8IGxCwe.d.ts → IStorageCapability-ORkQfK3F.d.ts} +112 -1
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/{apiError-CzR7Y6Ua.esm.js → apiError-CS9ZMDr2.esm.js} +1 -1
  6. package/dist/authentication.d.ts +3 -3
  7. package/dist/authentication.esm.js +2 -2
  8. package/dist/{authenticationManager-CmkHvt7_.esm.js → authenticationManager-Cd4tefr2.esm.js} +2 -2
  9. package/dist/{authenticationManager-BGM8bpD0.d.ts → authenticationManager-Y2_MuGXy.d.ts} +1 -1
  10. package/dist/{authenticationStateMachine-O3acuOqq.esm.js → authenticationStateMachine-BnH1mizY.esm.js} +2 -2
  11. package/dist/consent.d.ts +1 -1
  12. package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-5HWbGwOa.d.ts} +9 -9
  13. package/dist/{deepsightLoader-CaUpu0Dy.esm.js → deepsightLoader-CN4B5ugn.esm.js} +3 -3
  14. package/dist/{deepsightService-CR-CYdka.d.ts → deepsightService-DLVQS_RH.d.ts} +2 -112
  15. package/dist/document-capture.d.ts +1 -1
  16. package/dist/document-upload.d.ts +4 -4
  17. package/dist/{documentCaptureManager-pEqMY_Oo.d.ts → documentCaptureManager-DeSYkGWc.d.ts} +70 -70
  18. package/dist/dynamic-forms.esm.js +2 -2
  19. package/dist/{dynamicFormsManager-BxUgij0L.esm.js → dynamicFormsManager-B80PGYEF.esm.js} +1 -1
  20. package/dist/{dynamicFormsStateMachine-D0cEsDMH.esm.js → dynamicFormsStateMachine-B7R09HRI.esm.js} +1 -1
  21. package/dist/ekyb.esm.js +3 -3
  22. package/dist/{ekybManager-LicVPYug.esm.js → ekybManager-Cg_boKM5.esm.js} +1 -1
  23. package/dist/{ekybStateMachine-IgLa1nXx.esm.js → ekybStateMachine-CAXjJ2gA.esm.js} +1 -1
  24. package/dist/electronic-signature.esm.js +1 -1
  25. package/dist/{electronicSignatureManager-DqPJCXMG.esm.js → electronicSignatureManager-JuycNykG.esm.js} +1 -1
  26. package/dist/extensibility.d.ts +14 -14
  27. package/dist/extensibility.esm.js +8 -8
  28. package/dist/{faceCaptureManagerFactory-2W_XduCs.esm.js → faceCaptureManagerFactory-Cd1uQnGS.esm.js} +1 -1
  29. package/dist/{faceCaptureManagerFactory-B92LFT16.d.ts → faceCaptureManagerFactory-K8iLKaRl.d.ts} +5 -4
  30. package/dist/{faceCaptureSetup-D-9s0vUS.esm.js → faceCaptureSetup-CS7exiIh.esm.js} +3 -2
  31. package/dist/flow.d.ts +5 -5
  32. package/dist/flow.esm.js +3 -3
  33. package/dist/{flowCompletionService-D_DJ1dNA.esm.js → flowCompletionService-C77_-GvG.esm.js} +1 -1
  34. package/dist/{flowServices-ZgW3UGcz.esm.js → flowServices-BuSZYjB9.esm.js} +3 -3
  35. package/dist/geolocation.esm.js +2 -2
  36. package/dist/{geolocationManager-oLdeMbdy.esm.js → geolocationManager-D2ptN5BO.esm.js} +1 -1
  37. package/dist/{geolocationStateMachine-CSDKlrHE.esm.js → geolocationStateMachine-fOQUnMxw.esm.js} +1 -1
  38. package/dist/id-ocr.d.ts +1 -1
  39. package/dist/id-selfie-flow.d.ts +179 -0
  40. package/dist/id-selfie-flow.esm.js +917 -0
  41. package/dist/id.d.ts +3 -2
  42. package/dist/id.esm.js +3 -2
  43. package/dist/{idCaptureManager-DAsfVDWq.esm.js → idCaptureManager-BokR8KKO.esm.js} +2 -1
  44. package/dist/{idCaptureManager-B2w2CGuV.d.ts → idCaptureManager-wKz4MXR8.d.ts} +10 -2
  45. package/dist/idCaptureServices-C3nAZ64o.esm.js +353 -0
  46. package/dist/{idCaptureStateMachine-BMZCf9M7.esm.js → idCaptureStateMachine-CM8EP_MM.esm.js} +38 -374
  47. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-dLuxey6y.d.ts} +1 -1
  48. package/dist/identity-reuse.d.ts +1 -1
  49. package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
  50. package/dist/index.esm.js +1 -1
  51. package/dist/mandatory-consent.d.ts +2 -2
  52. package/dist/{mandatoryConsentManager-DOZSFZA2.d.ts → mandatoryConsentManager-DXlHM88Z.d.ts} +6 -6
  53. package/dist/manualReviewService-BnFXpAg9.esm.js +15 -0
  54. package/dist/{onDeviceFaceResults-D8FzOXsM.esm.js → onDeviceFaceResults-DFEU5wcC.esm.js} +3 -3
  55. package/dist/personhood.d.ts +4 -4
  56. package/dist/personhood.esm.js +3 -3
  57. package/dist/qe-signature.esm.js +1 -1
  58. package/dist/{recordingService-D6Hbc408.esm.js → recordingService-BwaHFQSV.esm.js} +2 -16
  59. package/dist/redirect-to-mobile.d.ts +2 -2
  60. package/dist/{redirectToMobileManager-BiVH2Ymm.d.ts → redirectToMobileManager-BD2PvT5B.d.ts} +1 -1
  61. package/dist/{runChildModule-CVKUUVl2.esm.js → runChildModule-1jsZfyb9.esm.js} +1 -1
  62. package/dist/selfie.d.ts +4 -4
  63. package/dist/selfie.esm.js +4 -4
  64. package/dist/{selfieManager-Cnw55Hp_.esm.js → selfieManager-hwv10r0j.esm.js} +2 -2
  65. package/dist/{selfieManager-CxeMb2tM.d.ts → selfieManager-tMxWiUk6.d.ts} +1 -1
  66. package/dist/{selfieStateMachine-D-wolitw.esm.js → selfieStateMachine-Cwb5y4OR.esm.js} +2 -2
  67. package/dist/{session-XugVyrIq.esm.js → session-DWfXLkyx.esm.js} +4 -4
  68. package/dist/session.esm.js +4 -4
  69. package/dist/{sessionInitializer-B3g2uAsl.esm.js → sessionInitializer-B58TmxdW.esm.js} +2 -2
  70. package/dist/{setup-BVuwm-QH.esm.js → setup-sxUVsl_J.esm.js} +4 -4
  71. package/dist/trueSight-D7YiTge6.esm.js +1 -0
  72. package/dist/{trueSightService-DGkNMx-E.esm.js → trueSightService-BIbE2pK1.esm.js} +1 -1
  73. package/dist/{types-4-pU2Nhm.d.ts → types-BsTkSXlg2.d.ts} +13 -232
  74. package/dist/{types-CrUhpMDP.d.ts → types-EELWyWpd.d.ts} +1 -1
  75. package/dist/{types-BBQjIaK4.d.ts → types-Hmd7U0JA.d.ts} +1 -1
  76. package/dist/video-selfie.d.ts +8 -100
  77. package/dist/video-selfie.esm.js +17 -608
  78. package/dist/videoSelfieCameraWarmer-lG-12ONu.esm.js +614 -0
  79. package/dist/videoSelfieStepDetector-144x423X.d.ts +117 -0
  80. package/dist/wasm.esm.js +1 -1
  81. package/dist/workflow.d.ts +1 -1
  82. package/dist/workflow.esm.js +14 -14
  83. package/package.json +8 -3
  84. package/dist/trueSight-DWfPmAL_.esm.js +0 -1
  85. /package/dist/{types-BX_XkMsQ.d.ts → types-BX_XkMsQ2.d.ts} +0 -0
  86. /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
  87. /package/dist/{types-DPIDuhut2.d.ts → types-DPIDuhut.d.ts} +0 -0
package/dist/id-ocr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-CJ7Yl9K-2.js";
2
- import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DXc_xRN7.js";
2
+ import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-dLuxey6y.js";
3
3
  //#region src/modules/id-ocr/idOcrFields.d.ts
4
4
  declare const OCR_FIELDS: OcrFieldConfig[];
5
5
  declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
@@ -0,0 +1,179 @@
1
+ import "./StateMachine-EDpYWy0i.js";
2
+ import "./Actor-iTq7YY48.js";
3
+ import { t as CameraStream } from "./camera-9wWD-pwg.js";
4
+ import { t as DetectionOrientation } from "./IIdCaptureCapability-Cj_aceph.js";
5
+ import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
6
+ import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-144x423X.js";
7
+ //#region src/modules/id-selfie-flow/types.d.ts
8
+ /**
9
+ * The capture steps an ID + Selfie flow session can run, in flow order. A
10
+ * strict subset of {@link VideoSelfieStep} so the Video Selfie UI overlays
11
+ * (steps header, ID/selfie masks) can be reused as-is.
12
+ */
13
+ type IdSelfieFlowStep = Extract<VideoSelfieStep, 'frontId' | 'backId' | 'selfie'>;
14
+ /**
15
+ * Configuration for the ID + Selfie flow PoC module.
16
+ *
17
+ * The module runs the REGULAR onboarding capture pipeline (ID front/back →
18
+ * `add/front-id` / `add/back-id` → `process/id`, selfie → `add/face` →
19
+ * `process/face`) behind the Video Selfie single-session UX: one continuous
20
+ * camera experience that switches facing between the ID and selfie steps.
21
+ * Nothing is recorded and no microphone access is requested.
22
+ */
23
+ type IdSelfieFlowConfig = {
24
+ /** Show the instructions tutorial before capture begins. @default false */
25
+ showTutorials?: boolean;
26
+ /**
27
+ * Validation attempts per capture step before the session fails.
28
+ * `-1` means unlimited. @default 3
29
+ */
30
+ numberOfTries?: number;
31
+ /** Reject selfies wearing glasses. @default false */
32
+ validateLenses?: boolean;
33
+ /** Reject selfies wearing a face mask. @default false */
34
+ validateFaceMask?: boolean;
35
+ /** Reject selfies with closed eyes. @default false */
36
+ validateClosedEyes?: boolean;
37
+ /** Reject selfies wearing head cover. @default false */
38
+ validateHeadCover?: boolean;
39
+ /** Optional queue name forwarded to `POST /omni/process/id`. */
40
+ processIdQueueName?: string;
41
+ /**
42
+ * Override the capture steps. Defaults to the full
43
+ * `frontId → backId → selfie` sequence.
44
+ */
45
+ steps?: IdSelfieFlowStep[];
46
+ };
47
+ //#endregion
48
+ //#region src/modules/id-selfie-flow/idSelfieFlowStateMachine.d.ts
49
+ type IdSelfieFlowDependencies = {
50
+ createCompositor?: () => CameraCompositor;
51
+ acquireCamera?: (facingMode: FacingMode, withAudio: boolean) => Promise<CameraStream>;
52
+ /** Runs WASM detection + regular-endpoint upload per step; resolves to advance. */
53
+ detect?: StepDetector;
54
+ /** Calls `POST /omni/process/id` once the last ID side is accepted. */
55
+ runProcessId?: (queueName: string, signal: AbortSignal) => Promise<void>;
56
+ /** Fetches `GET /omni/finish-status` once the last step is accepted. */
57
+ runFinish?: (signal: AbortSignal) => Promise<FinishStatus>;
58
+ /** Minimum time to hold the switching-camera screen before resuming capture. */
59
+ switchingCameraMinDwellMs?: number;
60
+ };
61
+ //#endregion
62
+ //#region src/modules/id-selfie-flow/idSelfieFlowActor.d.ts
63
+ type CreateIdSelfieFlowActorOptions = {
64
+ /** Module config; its flags determine the active steps + selfie validations. */
65
+ config?: IdSelfieFlowConfig;
66
+ dependencies?: IdSelfieFlowDependencies;
67
+ };
68
+ //#endregion
69
+ //#region src/modules/id-selfie-flow/idSelfieFlowManager.d.ts
70
+ type IdSelfieFlowStatus = 'idle' | 'starting' | 'capturing' | 'validationFeedback' | 'flippingId' | 'processingId' | 'switchingCamera' | 'finishing' | 'success' | 'finished' | 'error' | 'closed';
71
+ type IdSelfieFlowState = {
72
+ /** Current lifecycle status. */
73
+ status: IdSelfieFlowStatus;
74
+ /** The active capture step (e.g. `frontId`, `selfie`). */
75
+ step: IdSelfieFlowStep | undefined;
76
+ /** Zero-based index of the active step. */
77
+ stepIndex: number;
78
+ /** Whether the active step is the last one. */
79
+ isLastStep: boolean;
80
+ /** The active source camera (raw, per-step facing) driving detection. */
81
+ stream: MediaStream | undefined;
82
+ /**
83
+ * THE session stream: a single composited stream that lives for the whole
84
+ * session and follows camera switches without ever being interrupted or
85
+ * killed between steps. Bind the live preview to this one.
86
+ */
87
+ composite: MediaStream | undefined;
88
+ /** Live per-step detection feedback (e.g. `tooFar`, `blur`, `detecting`). */
89
+ detectionStatus: VideoSelfieDetectionStatus | undefined;
90
+ /**
91
+ * Live document orientation from the ID detector — the mask follows a
92
+ * rotated ID exactly like the standalone ID module's overlay.
93
+ */
94
+ orientation: DetectionOrientation | undefined;
95
+ /**
96
+ * Autocapture timed out on the active ID step — show a capture button
97
+ * wired to `manualCapture()`. Sticky until the step advances.
98
+ */
99
+ manualCaptureAvailable: boolean;
100
+ /** Validation failure shown during the current retry dwell. */
101
+ validationFailure: VideoSelfieValidationFailure | undefined;
102
+ /** Remaining validation attempts for the active step; `-1` means unlimited. */
103
+ attemptsRemaining: number;
104
+ /**
105
+ * The session's finish status (`GET /omni/finish-status`), available from
106
+ * `success` onward.
107
+ */
108
+ finishStatus: FinishStatus | undefined;
109
+ /** Failure detail, set when `status === 'error'`. */
110
+ error: string | undefined;
111
+ };
112
+ /**
113
+ * Creates a manager for the ID + Selfie flow PoC: the regular ID front/back +
114
+ * selfie capture pipeline (regular endpoints, regular validations) presented
115
+ * through the Video Selfie continuous-camera UX. No recording, no microphone.
116
+ *
117
+ * Exposes `getState()` / `subscribe()` (status, step, preview `stream`) plus
118
+ * `start()`, `nextStep()`, `retry()`, and `abort()`.
119
+ */
120
+ declare function createIdSelfieFlowManager(options?: CreateIdSelfieFlowActorOptions): {
121
+ stop(): void;
122
+ getState(): IdSelfieFlowState;
123
+ subscribe(listener: (state: IdSelfieFlowState) => void): () => void;
124
+ /** Acquire the first camera and begin the capture session. */
125
+ start(): void;
126
+ retry(): void;
127
+ /**
128
+ * Advance to the next step (manual steps only — the capture steps
129
+ * auto-advance once the backend accepts the frame).
130
+ */
131
+ nextStep(): void;
132
+ /**
133
+ * Capture + upload the current ID frame. Meaningful once
134
+ * `manualCaptureAvailable` is `true` (autocapture timed out).
135
+ */
136
+ manualCapture(): void;
137
+ /** Abandon the session. */
138
+ abort(): void;
139
+ };
140
+ type IdSelfieFlowManager = ReturnType<typeof createIdSelfieFlowManager>;
141
+ //#endregion
142
+ //#region src/modules/id-selfie-flow/idSelfieFlowWasm.d.ts
143
+ /**
144
+ * Warms the WASM pipelines the ID + Selfie flow needs. Idempotent and safe to
145
+ * call eagerly (e.g. while the tutorial or permissions screen is up). No-op
146
+ * when WASM was not configured.
147
+ */
148
+ declare function warmupIdSelfieFlowWasm(config: IdSelfieFlowConfig): Promise<void>;
149
+ //#endregion
150
+ //#region src/modules/id-selfie-flow/idSelfieFlowDashboardConfig.d.ts
151
+ type ResolveIdSelfieFlowConfigOptions = {
152
+ /**
153
+ * Partial config that wins over the flow-derived values (e.g. a host
154
+ * forcing `showTutorials`). Keys set to `undefined` are ignored.
155
+ */
156
+ config?: IdSelfieFlowConfig;
157
+ signal?: AbortSignal;
158
+ };
159
+ /**
160
+ * Derives the ID + Selfie flow config from the active session's FLOW
161
+ * configuration — the same dashboard config the regular ID and SELFIE modules
162
+ * read. Requires an active session token (`initializeSession`).
163
+ *
164
+ * Mapping:
165
+ * - Steps: `frontId`/`backId` when the flow has an ID module (`onlyFront` /
166
+ * `onlyBack` respected), `selfie` when it has a SELFIE module.
167
+ * - `showTutorials`: either module's `showTutorial`.
168
+ * - `numberOfTries`: the larger of the two modules' `captureAttempts`.
169
+ * - Selfie validations (`validateLenses` / mask / eyes / head cover): from
170
+ * the SELFIE module config.
171
+ *
172
+ * A module missing from the flow simply drops its steps; if neither module is
173
+ * present the promise rejects. Any `options.config` values win over the
174
+ * derived ones. If the flow cannot be fetched but `options.config` was
175
+ * provided, it is returned as-is (standalone fallback).
176
+ */
177
+ declare function resolveIdSelfieFlowConfig(options?: ResolveIdSelfieFlowConfigOptions): Promise<IdSelfieFlowConfig>;
178
+ //#endregion
179
+ export { type CreateIdSelfieFlowActorOptions, type IdSelfieFlowConfig, type IdSelfieFlowManager, type IdSelfieFlowState, type IdSelfieFlowStatus, type IdSelfieFlowStep, createIdSelfieFlowManager, resolveIdSelfieFlowConfig, warmupIdSelfieFlowWasm };