@incodetech/core 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4677d7f

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 (109) hide show
  1. package/dist/{BaseWasmProvider--AzPfwOm.esm.js → BaseWasmProvider-CQgeReKV.esm.js} +1 -785
  2. package/dist/MotionSensorProvider-BTDLt08l.esm.js +254 -0
  3. package/dist/StateMachine-8d441d6x.d.ts +2 -0
  4. package/dist/{WasmUtilProvider-BonqBWdj.esm.js → WasmUtilProvider-C45HStLj.esm.js} +1 -1
  5. package/dist/{addressSearch-DC5By0cC.esm.js → addressSearch-C5qzDvkN.esm.js} +15 -8
  6. package/dist/antifraud.d.ts +1 -1
  7. package/dist/antifraud.esm.js +3 -3
  8. package/dist/authentication.d.ts +11 -9
  9. package/dist/authentication.esm.js +18 -13
  10. package/dist/{authenticationManager-B4gSCgrO.esm.js → authenticationManager-CW4qxgcq.esm.js} +7 -6
  11. package/dist/{authenticationManager-Bd10YGSO.d.ts → authenticationManager-CiXsOTdM.d.ts} +2 -2
  12. package/dist/{backCameraStream-DF_d7hTz.esm.js → backCameraStream-CUo1USCT.esm.js} +2 -2
  13. package/dist/camera.d.ts +16 -0
  14. package/dist/camera.esm.js +5 -0
  15. package/dist/consent.d.ts +52 -52
  16. package/dist/consent.esm.js +3 -3
  17. package/dist/curp-validation.d.ts +5 -5
  18. package/dist/curp-validation.esm.js +3 -3
  19. package/dist/{deepsightLoader-DKgEdLIS.esm.js → deepsightLoader-Bs5jHgca.esm.js} +10 -7
  20. package/dist/deepsightService-C3gQ_9Ml.esm.js +493 -0
  21. package/dist/{deepsightService-Ciu0atv5.d.ts → deepsightService-CMAtxAC9.d.ts} +193 -197
  22. package/dist/device.d.ts +46 -0
  23. package/dist/device.esm.js +106 -0
  24. package/dist/document-capture.d.ts +78 -78
  25. package/dist/document-capture.esm.js +6 -6
  26. package/dist/document-upload.d.ts +53 -53
  27. package/dist/document-upload.esm.js +6 -6
  28. package/dist/ekyb.d.ts +3 -3
  29. package/dist/ekyb.esm.js +11 -10
  30. package/dist/ekyc.d.ts +3 -3
  31. package/dist/ekyc.esm.js +104 -22
  32. package/dist/email.d.ts +3 -3
  33. package/dist/email.esm.js +5 -5
  34. package/dist/{emailManager-CpAwvP3v.esm.js → emailManager-CZ2IGW0g.esm.js} +4 -4
  35. package/dist/{emailManager-BQPIJR_O.d.ts → emailManager-DEIxY7l6.d.ts} +2 -2
  36. package/dist/events-BlVGS-8F.esm.js +472 -0
  37. package/dist/events.d.ts +232 -0
  38. package/dist/events.esm.js +4 -0
  39. package/dist/extensibility.d.ts +15 -13
  40. package/dist/extensibility.esm.js +25 -20
  41. package/dist/face-match.d.ts +1 -1
  42. package/dist/face-match.esm.js +3 -3
  43. package/dist/{faceCaptureManagerFactory-CdwpYykv.d.ts → faceCaptureManagerFactory-CWj-nXdx.d.ts} +8 -6
  44. package/dist/{faceCaptureSetup-DbXgtcp7.esm.js → faceCaptureSetup-DIE5cftl.esm.js} +13 -10
  45. package/dist/flow.d.ts +7 -6
  46. package/dist/flow.esm.js +8 -8
  47. package/dist/{flowCompletionService-TnWijsSw.esm.js → flowCompletionService-N6-xypy-.esm.js} +2 -2
  48. package/dist/{flowServices-CO2sIR3D.esm.js → flowServices-xgqnJ64L.esm.js} +3 -3
  49. package/dist/geolocation.d.ts +2 -2
  50. package/dist/geolocation.esm.js +4 -4
  51. package/dist/getBrowser-B800KRAi.esm.js +41 -0
  52. package/dist/getDeviceClass-BKd2FOAf.esm.js +14 -0
  53. package/dist/government-validation.d.ts +2 -2
  54. package/dist/government-validation.esm.js +4 -4
  55. package/dist/http.d.ts +57 -0
  56. package/dist/http.esm.js +3 -0
  57. package/dist/id.d.ts +11 -10
  58. package/dist/id.esm.js +19 -15
  59. package/dist/{idCaptureManager-IdqsAASp.d.ts → idCaptureManager-H-rkXnbK.d.ts} +7 -6
  60. package/dist/{idCaptureManager-DaLU1ug7.esm.js → idCaptureManager-SHBRQ-X_.esm.js} +15 -11
  61. package/dist/index.d.ts +3 -611
  62. package/dist/index.esm.js +10 -562
  63. package/dist/{lib-i-4qLKdG.esm.js → lib-Cq5Wc-Hd.esm.js} +1 -1
  64. package/dist/mandatory-consent.d.ts +58 -58
  65. package/dist/mandatory-consent.esm.js +3 -3
  66. package/dist/permissionServices-CDqkkway.esm.js +50 -0
  67. package/dist/phone.d.ts +3 -3
  68. package/dist/phone.esm.js +5 -5
  69. package/dist/{phoneManager-DA8WUJtl.d.ts → phoneManager-Clfbrs6b.d.ts} +2 -2
  70. package/dist/{phoneManager-BAPHSXx8.esm.js → phoneManager-CscgaER2.esm.js} +4 -4
  71. package/dist/{StreamCanvasCapture-DkpkIgyL.esm.js → recordingsRepository-blYn-iKZ.esm.js} +157 -215
  72. package/dist/redirect-to-mobile.d.ts +2 -2
  73. package/dist/redirect-to-mobile.esm.js +4 -4
  74. package/dist/selfie.d.ts +11 -9
  75. package/dist/selfie.esm.js +18 -13
  76. package/dist/{selfieManager-BSkzncsa.esm.js → selfieManager-DeGqD5aN.esm.js} +5 -4
  77. package/dist/{selfieManager-Dft5wZQ_.d.ts → selfieManager-h_hhEefT.d.ts} +2 -2
  78. package/dist/{session-OglUYC9l.esm.js → session-PLjFj_T3.esm.js} +5 -19
  79. package/dist/session.d.ts +46 -2
  80. package/dist/session.esm.js +7 -4
  81. package/dist/setup-DJ3dFl5k.d.ts +120 -0
  82. package/dist/setup-fvDWE7f8.esm.js +450 -0
  83. package/dist/signature.d.ts +2 -2
  84. package/dist/signature.esm.js +3 -3
  85. package/dist/{stats-BVigf5Rn.esm.js → stats-BZ1kFW4p.esm.js} +1 -1
  86. package/dist/stats.esm.js +2 -2
  87. package/dist/{types-CiLyvJGb.d.ts → types-T0VjZW3T.d.ts} +1 -1
  88. package/dist/types-qhLxpptI.d.ts +5 -0
  89. package/dist/{types-D8Y1faI5.d.ts → types-zH5PDmSe.d.ts} +1 -1
  90. package/dist/{StateMachine-CM_aOfNL.d.ts → warmup-CEOVQKby.d.ts} +1 -4
  91. package/dist/wasm.d.ts +15 -0
  92. package/dist/wasm.esm.js +10 -0
  93. package/dist/{Manager-C6AGXEq_.esm.js → xstate.esm-BXrcOcSC.esm.js} +103 -507
  94. package/package.json +18 -2
  95. package/dist/endpoints-CI5-28jT.esm.js +0 -69
  96. package/dist/id-CzDAG_kM.esm.js +0 -0
  97. package/dist/index-BuVKc9bv.d.ts +0 -1
  98. /package/dist/{Actor-By8WNHi-.d.ts → Actor-C-jivmFF.d.ts} +0 -0
  99. /package/dist/{BrowserEnvironmentProvider-BECjyw3_.esm.js → BrowserEnvironmentProvider--xQUs3sg.esm.js} +0 -0
  100. /package/dist/{BrowserTimerProvider-CIqH6hJp.esm.js → BrowserTimerProvider-CkHEwJFa.esm.js} +0 -0
  101. /package/dist/{Manager-CCT_-HuZ.d.ts → Manager-BqFybBV-.d.ts} +0 -0
  102. /package/dist/{api-C2uzxrpN.esm.js → api-CyI8qTie.esm.js} +0 -0
  103. /package/dist/{browserSimulation-DYAk0Ipe.esm.js → browserSimulation-yzDdWSBf.esm.js} +0 -0
  104. /package/dist/{camera-6XJdOeBF.d.ts → camera-CKsQVNlH.d.ts} +0 -0
  105. /package/dist/{camera-DAuRUvnp.esm.js → camera-CsT06Zqy.esm.js} +0 -0
  106. /package/dist/{chunk-D6hkk-hd.esm.js → chunk-BcQWkoAq.esm.js} +0 -0
  107. /package/dist/{displayErrors-CGJwvrTl.d.ts → displayErrors-CjMXlBnu.d.ts} +0 -0
  108. /package/dist/{flowCompletionService-BOd4Rk8n.d.ts → flowCompletionService-BV6ThEJ1.d.ts} +0 -0
  109. /package/dist/{platform-DdhkonXk.esm.js → platform-Dcuv6w60.esm.js} +0 -0
@@ -0,0 +1,232 @@
1
+ //#region src/internal/events/types.d.ts
2
+ type Event = {
3
+ code: string;
4
+ module?: string;
5
+ screen?: string;
6
+ payload?: Record<string, unknown>;
7
+ clientTimestamp?: number;
8
+ };
9
+ declare const eventModuleNames: {
10
+ readonly selfie: "SELFIE";
11
+ readonly authentication: "AUTHENTICATION";
12
+ readonly authFace: "AUTH_FACE";
13
+ readonly mlConsent: "ML_CONSENT";
14
+ readonly combinedConsent: "COMBINED_CONSENT";
15
+ readonly curpValidation: "CURP_VALIDATION";
16
+ readonly faceMatch: "FACE_MATCH";
17
+ readonly qr: "QR";
18
+ readonly videoSelfie: "VIDEO_ONBOARDING";
19
+ readonly passport: "ID";
20
+ readonly front: "ID";
21
+ readonly back: "ID";
22
+ readonly id: "ID";
23
+ readonly document: "DOCUMENT_CAPTURE";
24
+ readonly creditCard: "CREDIT_CARD_FRONT";
25
+ readonly creditCardBack: "CREDIT_CARD_BACK";
26
+ readonly conference: "CONFERENCE";
27
+ readonly otp: "OTP";
28
+ readonly signature: "SIGNATURE";
29
+ readonly ekyc: "EXTERNAL_VERIFICATION";
30
+ readonly globalWatchList: "GLOBAL_WATCHLIST";
31
+ readonly customWatchList: "CUSTOM_WATCHLIST";
32
+ readonly email: "EMAIL";
33
+ readonly phone: "PHONE";
34
+ readonly instantVerifyEmail: "INSTANT_VERIFY_EMAIL";
35
+ readonly instantVerifyConsent: "INSTANT_VERIFY_CONSENT";
36
+ readonly forms: "FORMS";
37
+ readonly customModule: "CUSTOM_MODULE";
38
+ readonly geolocation: "GEOLOCATION";
39
+ readonly ekyb: "EKYB";
40
+ readonly antifraud: "ANTIFRAUD";
41
+ };
42
+ declare const eventScreenNames: {
43
+ readonly faceMatch: "FACE_MATCH";
44
+ readonly faceCaptureTutorial: "SELFIE_CAPTURE_TUTORIAL";
45
+ readonly faceCaptureCamera: "SELFIE_CAMERA_CAPTURE";
46
+ readonly faceCaptureError: "SELFIE_ATTEMPT_FAILED";
47
+ readonly faceCaptureSuccess: "SELFIE_UPLOAD_SUCCEEDED";
48
+ readonly faceCaptureUpload: "SELFIE_UPLOAD_PROGRESS";
49
+ readonly mlConsent: "MACHINE_LEARNING_CONSENT";
50
+ readonly combinedConsent: "COMBINED_CONSENT";
51
+ readonly curpEnter: "ENTER_CURP";
52
+ readonly curpValidate: "VALIDATE_CURP";
53
+ readonly curpGenerate: "GENERATE_CURP";
54
+ readonly curpValidation: "CURP_VALIDATION_PROGRESS";
55
+ readonly curpValidationFailed: "CURP_VALIDATION_FAILED";
56
+ readonly curpValidationSuccess: "CURP_VALIDATION_SUCCEEDED";
57
+ readonly qrTutorial: "QR_TUTORIAL";
58
+ readonly qrScan: "QR_SCAN";
59
+ readonly smsOtp: "OTP";
60
+ readonly simpleOTP: "OTP";
61
+ readonly signatureInput: "SIGNATURE_INPUT";
62
+ readonly signatureInitialsInput: "INITIALS_INPUT";
63
+ readonly frontTutorial: "FRONT_ID_CAPTURE_TUTORIAL";
64
+ readonly frontCameraCapture: "FRONT_ID_CAMERA_CAPTURE";
65
+ readonly frontHelp: "FRONT_ID_HELP";
66
+ readonly frontReviewPhoto: "FRONT_ID_REVIEW_PHOTO";
67
+ readonly frontUploadProgress: "FRONT_ID_UPLOAD_PROGRESS";
68
+ readonly frontAttemptFailed: "FRONT_ID_ATTEMPT_FAILED";
69
+ readonly frontUploadSuccess: "FRONT_ID_UPLOAD_SUCCEEDED";
70
+ readonly backTutorial: "BACK_ID_CAPTURE_TUTORIAL";
71
+ readonly backCameraCapture: "BACK_ID_CAMERA_CAPTURE";
72
+ readonly backReviewPhoto: "BACK_ID_REVIEW_PHOTO";
73
+ readonly backUploadProgress: "BACK_ID_UPLOAD_PROGRESS";
74
+ readonly backAttemptFailed: "BACK_ID_ATTEMPT_FAILED";
75
+ readonly backUploadSuccess: "BACK_ID_UPLOAD_SUCCEEDED";
76
+ readonly backHelp: "BACK_ID_HELP";
77
+ readonly passportTutorial: "TUTORIAL_PASSPORT";
78
+ readonly documentTutorial: "DOCUMENT_CAPTURE_TUTORIAL";
79
+ readonly documentCameraCapture: "DOCUMENT_CAMERA_CAPTURE";
80
+ readonly documentHelp: "DOCUMENT_HELP";
81
+ readonly documentReviewPhoto: "DOCUMENT_REVIEW_PHOTO";
82
+ readonly documentUploadProgress: "DOCUMENT_UPLOAD_IN_PROGRESS";
83
+ readonly documentAttemptFailed: "DOCUMENT_ATTEMPT_FAILED";
84
+ readonly documentUploadSuccess: "DOCUMENT_UPLOAD_SUCCEEDED";
85
+ readonly conferenceWait: "CONFERENCE_WAIT";
86
+ readonly conferenceVideoChat: "CONFERENCE_VIDEO_CHAT";
87
+ readonly conferenceMessageChat: "CONFERENCE_MESSAGE_CHAT";
88
+ readonly videoSelfieTutorial: "VIDEO_SELFIE_TUTORIAL";
89
+ readonly videoSelfie: "VIDEO_SELFIE";
90
+ readonly videoSelfieFaceCapture: "VIDEO_SELFIE_FACE_CAPTURE";
91
+ readonly videoSelfieFaceUploadProgress: "VIDEO_SELFIE_FACE_UPLOAD_PROGRESS";
92
+ readonly videoSelfieFaceAttemptFailed: "VIDEO_SELFIE_FACE_ATTEMPT_FAILED";
93
+ readonly videoSelfieFaceUploadSucceeded: "VIDEO_SELFIE_FACE_UPLOAD_SUCCEEDED";
94
+ readonly videoSelfieFrontIdCapture: "VIDEO_SELFIE_FRONT_ID_CAPTURE";
95
+ readonly videoSelfieFrontIdUploadProgress: "VIDEO_SELFIE_FRONT_ID_UPLOAD_PROGRESS";
96
+ readonly videoSelfieFrontIdAttemptFailed: "VIDEO_SELFIE_FRONT_ID_ATTEMPT_FAILED";
97
+ readonly videoSelfieFrontIdUploadSucceeded: "VIDEO_SELFIE_FRONT_ID_UPLOAD_SUCCEEDED";
98
+ readonly videoSelfieBackIdCapture: "VIDEO_SELFIE_BACK_ID_CAPTURE";
99
+ readonly videoSelfieBackIdUploadProgress: "VIDEO_SELFIE_BACK_ID_UPLOAD_PROGRESS";
100
+ readonly videoSelfieBackIdAttemptFailed: "VIDEO_SELFIE_BACK_ID_ATTEMPT_FAILED";
101
+ readonly videoSelfieBackIdUploadSucceeded: "VIDEO_SELFIE_BACK_ID_UPLOAD_SUCCEEDED";
102
+ readonly videoSelfieDocumentCapture: "VIDEO_SELFIE_DOCUMENT_CAPTURE";
103
+ readonly videoSelfieVoiceQuestion: "VIDEO_SELFIE_VOICE_QUESTION";
104
+ readonly videoSelfieVoiceFinalQuestion: "VIDEO_SELFIE_VOICE_FINAL_QUESTION";
105
+ readonly videoSelfieVideoUpload: "VIDEO SELFIE VIDEO UPLOAD";
106
+ readonly ekycInput: "EKYC_INPUT";
107
+ readonly ekycProgress: "EKYC_PROGRESS";
108
+ readonly ekycSucceeded: "EKYC_SUCCEEDED";
109
+ readonly ekycFailed: "EKYC_FAILED";
110
+ readonly forms: "FORMS";
111
+ readonly globalWatchListInput: "GLOBAL_WATCHLIST_INPUT";
112
+ readonly globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS";
113
+ readonly globalWatchListSuccess: "GLOBAL_WATCHLIST_SUCCEEDED";
114
+ readonly globalWatchListFailed: "GLOBAL_WATCHLIST_FAILED";
115
+ readonly customWatchListInput: "CUSTOM_WATCHLIST_INPUT";
116
+ readonly customWatchListProgress: "CUSTOM_WATCHLIST_PROGRESS";
117
+ readonly customWatchListSuccess: "CUSTOM_WATCHLIST_SUCCEEDED";
118
+ readonly customWatchListFailed: "CUSTOM_WATCHLIST_FAILED";
119
+ readonly emailInput: "EMAIL_INPUT";
120
+ readonly phoneInput: "PHONE_INPUT";
121
+ readonly instantVerify: "INSTANT_VERIFY";
122
+ readonly authFace: "AUTH_FACE";
123
+ readonly authFaceError: "AUTH_FACE_ATTEMPT_FAILED";
124
+ readonly authFaceUpload: "AUTH_FACE_UPLOAD_PROGRESS";
125
+ readonly authFaceUploadSuccess: "AUTH_FACE_UPLOAD_SUCCEEDED";
126
+ readonly authFaceUploadFailed: "AUTH_FACE_UPLOAD_FAILED";
127
+ readonly customModuleCallback: "CUSTOM_MODULE_CALLBACK";
128
+ readonly customModuleProcessing: "CUSTOM_MODULE_PROCESSING";
129
+ readonly digitalIdFileSelection: "DIGITAL_ID_FILE_SELECTION";
130
+ readonly digitalIdFileReview: "DIGITAL_ID_FILE_REVIEW";
131
+ readonly digitalIdUploadProgress: "DIGITAL_ID_UPLOAD_PROGRESS";
132
+ readonly digitalIdUploadSuccess: "DIGITAL_ID_UPLOAD_SUCCEEDED";
133
+ readonly digitalIdUploadFailed: "DIGITAL_ID_UPLOAD_FAILED";
134
+ readonly digitalIdAnalysisProgress: "DIGITAL_ID_ANALYSIS_PROGRESS";
135
+ readonly digitalIdVerificationSuccess: "DIGITAL_ID_VERIFICATION_SUCCESS";
136
+ readonly digitalIdVerificationFailed: "DIGITAL_ID_VERIFICATION_FAILED";
137
+ readonly ekybForm: "EKYB_FORM";
138
+ };
139
+ declare const videoSelfieEvents: {
140
+ readonly imageTooBlurry: "imageTooBlurry";
141
+ readonly fillFrame: "fillFrame";
142
+ readonly checkCameraOrLighting: "checkCameraOrLighting";
143
+ readonly frontIdCaptureStarted: "frontIdCaptureStarted";
144
+ readonly lookAtCamera: "lookAtCamera";
145
+ readonly moveCloser: "moveCloser";
146
+ readonly lookingForFrontId: "lookingForFrontId";
147
+ readonly lookingForBackId: "lookingForBackId";
148
+ readonly cameraSwitchToBack: "cameraSwitchToBack";
149
+ readonly cameraSwitchToFront: "cameraSwitchToFront";
150
+ readonly audioStreamOpened: "audioStreamOpened";
151
+ readonly audioStreamClosed: "audioStreamClosed";
152
+ readonly videoSelfieVideoUploadInProgress: "videoSelfieVideoUploadInProgress";
153
+ readonly videoSelfieTosNotAccepted: "videoSelfieTosNotAccepted";
154
+ readonly videoSelfieTosAccepted: "videoSelfieTosAccepted";
155
+ readonly videoSelfieStreamCreated: "videoSelfieStreamCreated";
156
+ readonly videoSelfieStreamDestroyed: "videoSelfieStreamDestroyed";
157
+ readonly videoSelfieReconnecting: "videoSelfieReconnecting";
158
+ readonly videoSelfieReconnected: "videoSelfieReconnected";
159
+ };
160
+ declare const tutorialScreenNamesMapper: {
161
+ readonly passport: "TUTORIAL_PASSPORT";
162
+ readonly front: "FRONT_ID_CAPTURE_TUTORIAL";
163
+ readonly back: "BACK_ID_CAPTURE_TUTORIAL";
164
+ readonly selfie: "SELFIE_CAPTURE_TUTORIAL";
165
+ };
166
+ declare const cameraScreenNamesMapper: {
167
+ readonly front: "front";
168
+ readonly back: "back";
169
+ readonly passport: "passport";
170
+ readonly creditCard: "front";
171
+ readonly creditCardBack: "back";
172
+ readonly document: "document";
173
+ };
174
+ type EventModule = (typeof eventModuleNames)[keyof typeof eventModuleNames];
175
+ type EventScreen = (typeof eventScreenNames)[keyof typeof eventScreenNames];
176
+ //#endregion
177
+ //#region src/internal/events/addEvent.d.ts
178
+ type EventSubscriber = (event: Event) => void;
179
+ /**
180
+ * Subscribes to all SDK events for logging, debugging, or custom analytics.
181
+ * Returns an unsubscribe function.
182
+ *
183
+ * @param listener - Callback function that receives each event
184
+ * @returns Unsubscribe function to remove the listener
185
+ *
186
+ * @example
187
+ * ```typescript
188
+ * const unsubscribe = subscribeEvent((event) => {
189
+ * console.log('[Event]', event.code, event.module);
190
+ * });
191
+ *
192
+ * // Later
193
+ * unsubscribe();
194
+ * ```
195
+ */
196
+ declare function subscribeEvent(listener: EventSubscriber): () => void;
197
+ /**
198
+ * Sends an event to the dashboard for tracking.
199
+ * Fire-and-forget: never blocks, never throws.
200
+ * Events are queued if SDK is not configured yet.
201
+ */
202
+ declare function addEvent(event: Event): void;
203
+ /**
204
+ * Flushes any queued events that were sent before SDK was configured.
205
+ * Called automatically by setup() after token is set.
206
+ */
207
+ declare function flushEventQueue(): void;
208
+ //#endregion
209
+ //#region src/internal/events/helpers.d.ts
210
+ type ScreenEventParams = {
211
+ module: EventModule | string;
212
+ screen?: EventScreen | string;
213
+ code: string;
214
+ payload?: Record<string, unknown>;
215
+ };
216
+ type ElementClickedPayload = {
217
+ element: string;
218
+ action?: string;
219
+ metadata?: Record<string, unknown>;
220
+ };
221
+ type CaptureAttemptFinishedPayload = {
222
+ logs: string;
223
+ };
224
+ declare function screenEvent(params: ScreenEventParams): void;
225
+ declare function moduleOpened(module: EventModule | string, screen?: EventScreen | string, payload?: Record<string, unknown>): void;
226
+ declare function moduleClosed(module: EventModule | string, screen?: EventScreen | string, payload?: Record<string, unknown>): void;
227
+ declare function screenOpened(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
228
+ declare function screenClosed(module: EventModule | string, screen: EventScreen | string, payload?: Record<string, unknown>): void;
229
+ declare function elementClicked(module: EventModule | string, screen: EventScreen | string | undefined, payload: ElementClickedPayload): void;
230
+ declare function captureAttemptFinished(module: EventModule | string, screen: EventScreen | string | undefined, payload: CaptureAttemptFinishedPayload): void;
231
+ //#endregion
232
+ export { type CaptureAttemptFinishedPayload, type ElementClickedPayload, type Event, type EventModule, type EventScreen, addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -0,0 +1,4 @@
1
+ import "./api-CyI8qTie.esm.js";
2
+ import { a as videoSelfieEvents, c as elementClicked, d as screenClosed, f as screenEvent, g as subscribeEvent, h as flushEventQueue, i as tutorialScreenNamesMapper, l as moduleClosed, m as addEvent, n as eventModuleNames, p as screenOpened, r as eventScreenNames, s as captureAttemptFinished, t as cameraScreenNamesMapper, u as moduleOpened } from "./events-BlVGS-8F.esm.js";
3
+
4
+ export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, flushEventQueue, moduleClosed, moduleOpened, screenClosed, screenEvent, screenOpened, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
@@ -1,16 +1,18 @@
1
- import { r as fromPromise } from "./StateMachine-CM_aOfNL.js";
2
- import { n as createActor } from "./Actor-By8WNHi-.js";
3
- import { i as WasmUtilConfig, n as IWasmUtilCapability, o as IStorageCapability, r as VirtualCameraCheckOutput } from "./deepsightService-Ciu0atv5.js";
4
- import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-IdqsAASp.js";
5
- import "./camera-6XJdOeBF.js";
6
- import "./types-CiLyvJGb.js";
7
- import "./types-D8Y1faI5.js";
8
- import "./Manager-CCT_-HuZ.js";
9
- import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-CdwpYykv.js";
10
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Dft5wZQ_.js";
11
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-Bd10YGSO.js";
12
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-BQPIJR_O.js";
13
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-DA8WUJtl.js";
1
+ import "./warmup-CEOVQKby.js";
2
+ import "./Manager-BqFybBV-.js";
3
+ import { n as createActor } from "./Actor-C-jivmFF.js";
4
+ import { r as fromPromise } from "./StateMachine-8d441d6x.js";
5
+ import { c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, p as BaseWasmProvider, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine } from "./faceCaptureManagerFactory-CWj-nXdx.js";
6
+ import "./camera-CKsQVNlH.js";
7
+ import "./types-T0VjZW3T.js";
8
+ import "./types-zH5PDmSe.js";
9
+ import { a as IWasmUtilCapability, o as VirtualCameraCheckOutput, s as WasmUtilConfig, u as IStorageCapability } from "./deepsightService-CMAtxAC9.js";
10
+ import "./types-qhLxpptI.js";
11
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-h_hhEefT.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CiXsOTdM.js";
13
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-DEIxY7l6.js";
14
+ import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-H-rkXnbK.js";
15
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-Clfbrs6b.js";
14
16
 
15
17
  //#region src/modules/authentication/authenticationUploadService.d.ts
16
18
  type AuthenticationUploadResponse = {
@@ -1,23 +1,28 @@
1
- import "./platform-DdhkonXk.esm.js";
2
- import "./BaseWasmProvider--AzPfwOm.esm.js";
3
- import { f as BrowserStorageProvider } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
4
- import "./browserSimulation-DYAk0Ipe.esm.js";
5
- import "./api-C2uzxrpN.esm.js";
6
- import { C as createActor, S as fromPromise } from "./Manager-C6AGXEq_.esm.js";
7
- import "./endpoints-CI5-28jT.esm.js";
8
- import { c as FingerprintProvider, l as getDeviceFingerprintInfo, s as IpifyProvider, t as getDisableIpify } from "./session-OglUYC9l.esm.js";
9
- import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
10
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DaLU1ug7.esm.js";
11
- import "./BrowserTimerProvider-CIqH6hJp.esm.js";
12
- import "./camera-DAuRUvnp.esm.js";
13
- import "./stats-BVigf5Rn.esm.js";
14
- import "./backCameraStream-DF_d7hTz.esm.js";
15
- import { t as WasmUtilProvider } from "./WasmUtilProvider-BonqBWdj.esm.js";
16
- import { t as faceCaptureMachine } from "./faceCaptureSetup-DbXgtcp7.esm.js";
17
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-B4gSCgrO.esm.js";
18
- import { n as createEmailManagerFromActor } from "./emailManager-CpAwvP3v.esm.js";
19
- import { n as createSelfieManagerFromActor } from "./selfieManager-BSkzncsa.esm.js";
20
- import { n as createPhoneManagerFromActor } from "./phoneManager-BAPHSXx8.esm.js";
1
+ import "./BaseWasmProvider-CQgeReKV.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-C45HStLj.esm.js";
3
+ import "./api-CyI8qTie.esm.js";
4
+ import "./events-BlVGS-8F.esm.js";
5
+ import { a as IpifyProvider, o as FingerprintProvider, s as getDeviceFingerprintInfo, t as getDisableIpify } from "./session-PLjFj_T3.esm.js";
6
+ import "./BrowserEnvironmentProvider--xQUs3sg.esm.js";
7
+ import "./browserSimulation-yzDdWSBf.esm.js";
8
+ import { a as createActor, i as fromPromise } from "./xstate.esm-BXrcOcSC.esm.js";
9
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DIE5cftl.esm.js";
10
+ import { u as BrowserStorageProvider } from "./recordingsRepository-blYn-iKZ.esm.js";
11
+ import "./deepsightService-C3gQ_9Ml.esm.js";
12
+ import "./camera-CsT06Zqy.esm.js";
13
+ import "./getBrowser-B800KRAi.esm.js";
14
+ import "./stats-BZ1kFW4p.esm.js";
15
+ import "./MotionSensorProvider-BTDLt08l.esm.js";
16
+ import "./permissionServices-CDqkkway.esm.js";
17
+ import "./platform-Dcuv6w60.esm.js";
18
+ import "./backCameraStream-CUo1USCT.esm.js";
19
+ import "./getDeviceClass-BKd2FOAf.esm.js";
20
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-CW4qxgcq.esm.js";
21
+ import "./BrowserTimerProvider-CkHEwJFa.esm.js";
22
+ import { n as createEmailManagerFromActor } from "./emailManager-CZ2IGW0g.esm.js";
23
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DeGqD5aN.esm.js";
24
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-SHBRQ-X_.esm.js";
25
+ import { n as createPhoneManagerFromActor } from "./phoneManager-CscgaER2.esm.js";
21
26
 
22
27
  //#region src/internal/fingerprint/fingerprintApi.ts
23
28
  async function getFingerprint(disableIpify) {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
1
+ import { t as Manager } from "./Manager-BqFybBV-.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
3
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
4
4
 
5
5
  //#region src/modules/face-match/faceMatchServices.ts
6
6
  /**
@@ -1,9 +1,11 @@
1
- import { a as WasmPipeline, n as StateMachine, t as AnyStateMachine } from "./StateMachine-CM_aOfNL.js";
2
- import { t as ActorRefFrom } from "./Actor-By8WNHi-.js";
3
- import { a as StreamCanvasCapture, c as PermissionResult, f as IMLProviderCapability, l as PermissionStatus, m as IncodeCanvas, n as IWasmUtilCapability, o as IStorageCapability, p as MLProviderConfig, t as DeepsightService, u as IRecordingCapability } from "./deepsightService-Ciu0atv5.js";
4
- import { t as CameraStream } from "./camera-6XJdOeBF.js";
5
- import { r as FlowModuleConfig, t as Flow } from "./types-D8Y1faI5.js";
6
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
1
+ import { n as WasmPipeline } from "./warmup-CEOVQKby.js";
2
+ import { t as Manager } from "./Manager-BqFybBV-.js";
3
+ import { t as ActorRefFrom } from "./Actor-C-jivmFF.js";
4
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-8d441d6x.js";
5
+ import { t as CameraStream } from "./camera-CKsQVNlH.js";
6
+ import { r as FlowModuleConfig, t as Flow } from "./types-zH5PDmSe.js";
7
+ import { a as IWasmUtilCapability, c as IMLProviderCapability, d as IRecordingCapability, i as IncodeCanvas, l as MLProviderConfig, r as StreamCanvasCapture, t as DeepsightService, u as IStorageCapability } from "./deepsightService-CMAtxAC9.js";
8
+ import { n as PermissionStatus, t as PermissionResult } from "./types-qhLxpptI.js";
7
9
 
8
10
  //#region src/modules/authentication/authenticationStateMachine.d.ts
9
11
  declare const _authenticationMachine: AnyStateMachine;
@@ -1,12 +1,15 @@
1
- import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } from "./platform-DdhkonXk.esm.js";
2
- import { i as IncodeCanvas, l as mlWasmJSApi_default, t as BaseWasmProvider, u as WasmPipelineType } from "./BaseWasmProvider--AzPfwOm.esm.js";
3
- import { a as uploadDeepsightVideo, c as requestPermission, i as stopRecording$1, l as StreamCanvasProcessingSession, n as createRecordingSession, o as OpenViduRecordingProvider, p as getDeviceClass, r as startRecording, s as checkPermission, t as StreamCanvasCapture, u as flagFaceManualReview } from "./StreamCanvasCapture-DkpkIgyL.esm.js";
4
- import { r as getToken, t as api } from "./api-C2uzxrpN.esm.js";
5
- import { S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
6
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
7
- import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DAuRUvnp.esm.js";
8
- import { t as addDeviceStats } from "./stats-BVigf5Rn.esm.js";
9
- import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-DF_d7hTz.esm.js";
1
+ import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-CQgeReKV.esm.js";
2
+ import { r as getToken, t as api } from "./api-CyI8qTie.esm.js";
3
+ import { _ as endpoints, o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
4
+ import { i as fromPromise, n as assign, o as createManager, r as fromCallback, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
5
+ import { a as StreamCanvasProcessingSession, i as uploadDeepsightVideo, l as StreamCanvasCapture, n as startRecording, o as OpenViduRecordingProvider, r as stopRecording$1, s as flagFaceManualReview, t as createRecordingSession } from "./recordingsRepository-blYn-iKZ.esm.js";
6
+ import { n as IncodeCanvas } from "./deepsightService-C3gQ_9Ml.esm.js";
7
+ import { i as stopCameraStream, r as requestCameraAccess } from "./camera-CsT06Zqy.esm.js";
8
+ import { t as addDeviceStats } from "./stats-BZ1kFW4p.esm.js";
9
+ import { n as requestPermission, t as checkPermission } from "./permissionServices-CDqkkway.esm.js";
10
+ import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } from "./platform-Dcuv6w60.esm.js";
11
+ import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-CUo1USCT.esm.js";
12
+ import { t as getDeviceClass } from "./getDeviceClass-BKd2FOAf.esm.js";
10
13
 
11
14
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
12
15
  function getPermissionStatus(snapshot) {
@@ -543,7 +546,7 @@ async function stopRecording(session) {
543
546
  }
544
547
  }
545
548
  async function initializeDeepsightSession(options) {
546
- const { loadDeepsightSession } = await import("./deepsightLoader-DKgEdLIS.esm.js");
549
+ const { loadDeepsightSession } = await import("./deepsightLoader-Bs5jHgca.esm.js");
547
550
  return loadDeepsightSession({
548
551
  ds: options.ds,
549
552
  storage: options.storage
package/dist/flow.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { a as WasmPipeline, t as AnyStateMachine } from "./StateMachine-CM_aOfNL.js";
2
- import "./camera-6XJdOeBF.js";
3
- import "./types-CiLyvJGb.js";
4
- import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-D8Y1faI5.js";
5
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
6
- import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-BOd4Rk8n.js";
1
+ import { n as WasmPipeline } from "./warmup-CEOVQKby.js";
2
+ import { t as Manager } from "./Manager-BqFybBV-.js";
3
+ import { t as AnyStateMachine } from "./StateMachine-8d441d6x.js";
4
+ import "./camera-CKsQVNlH.js";
5
+ import "./types-T0VjZW3T.js";
6
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-zH5PDmSe.js";
7
+ import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-BV6ThEJ1.js";
7
8
 
8
9
  //#region src/modules/flow/flowUtils.d.ts
9
10
 
package/dist/flow.esm.js CHANGED
@@ -1,11 +1,11 @@
1
- import "./browserSimulation-DYAk0Ipe.esm.js";
2
- import "./api-C2uzxrpN.esm.js";
3
- import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
4
- import "./endpoints-CI5-28jT.esm.js";
5
- import "./session-OglUYC9l.esm.js";
6
- import "./BrowserEnvironmentProvider-BECjyw3_.esm.js";
7
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-CO2sIR3D.esm.js";
8
- import { t as getFinishStatus } from "./flowCompletionService-TnWijsSw.esm.js";
1
+ import "./api-CyI8qTie.esm.js";
2
+ import { o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
3
+ import "./session-PLjFj_T3.esm.js";
4
+ import "./BrowserEnvironmentProvider--xQUs3sg.esm.js";
5
+ import "./browserSimulation-yzDdWSBf.esm.js";
6
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, r as fromCallback, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
7
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-xgqnJ64L.esm.js";
8
+ import { t as getFinishStatus } from "./flowCompletionService-N6-xypy-.esm.js";
9
9
 
10
10
  //#region src/modules/flow/flowStateMachine.ts
11
11
  const flowMachine = setup({
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints } from "./events-BlVGS-8F.esm.js";
3
3
 
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
3
- import { i as initializeSession, r as getSessionFingerprintResult } from "./session-OglUYC9l.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints } from "./events-BlVGS-8F.esm.js";
3
+ import { n as getSessionFingerprintResult, r as initializeSession } from "./session-PLjFj_T3.esm.js";
4
4
 
5
5
  //#region src/modules/flow/flowUtils.ts
6
6
  const WASM_MODULE_PIPELINES = {
@@ -1,5 +1,5 @@
1
- import "./Actor-By8WNHi-.js";
2
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
1
+ import { t as Manager } from "./Manager-BqFybBV-.js";
2
+ import "./Actor-C-jivmFF.js";
3
3
 
4
4
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
5
5
  type GeolocationCoords = {
@@ -1,7 +1,7 @@
1
- import { r as isIOS, t as isAndroid } from "./platform-DdhkonXk.esm.js";
2
- import { t as api } from "./api-C2uzxrpN.esm.js";
3
- import { C as createActor, S as fromPromise, b as assign, r as eventModuleNames, s as createManagerInstrumentation, t as createManager, y as setup } from "./Manager-C6AGXEq_.esm.js";
4
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
4
+ import { r as isIOS, t as isAndroid } from "./platform-Dcuv6w60.esm.js";
5
5
 
6
6
  //#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
7
7
  var BrowserGeolocationProvider = class {
@@ -0,0 +1,41 @@
1
+ //#region ../infra/src/device/getDeviceClass.ts
2
+ function getDeviceInfo() {
3
+ if (typeof navigator === "undefined") return {
4
+ userAgent: "",
5
+ platform: "",
6
+ maxTouchPoints: 0
7
+ };
8
+ return {
9
+ userAgent: navigator.userAgent,
10
+ platform: navigator.platform,
11
+ maxTouchPoints: navigator.maxTouchPoints
12
+ };
13
+ }
14
+ /**
15
+ * Gets the current window dimensions.
16
+ * Returns default values (1280x720) in non-browser environments.
17
+ */
18
+ function getWindowDimensions(defaultWidth = 1280, defaultHeight = 720) {
19
+ if (typeof window === "undefined") return {
20
+ outerWidth: defaultWidth,
21
+ outerHeight: defaultHeight,
22
+ innerWidth: defaultWidth,
23
+ innerHeight: defaultHeight
24
+ };
25
+ return {
26
+ outerWidth: window.outerWidth,
27
+ outerHeight: window.outerHeight,
28
+ innerWidth: window.innerWidth,
29
+ innerHeight: window.innerHeight
30
+ };
31
+ }
32
+
33
+ //#endregion
34
+ //#region ../infra/src/device/getBrowser.ts
35
+ function getUserAgent() {
36
+ if (typeof navigator === "undefined") return "";
37
+ return navigator.userAgent;
38
+ }
39
+
40
+ //#endregion
41
+ export { getDeviceInfo as n, getWindowDimensions as r, getUserAgent as t };
@@ -0,0 +1,14 @@
1
+ import { n as getDeviceInfo } from "./getBrowser-B800KRAi.esm.js";
2
+
3
+ //#region src/internal/device/getDeviceClass.ts
4
+ function getDeviceClass() {
5
+ const { userAgent, platform, maxTouchPoints } = getDeviceInfo();
6
+ if (!userAgent) return "desktop";
7
+ const ua = userAgent.toLowerCase();
8
+ if (/iphone|ipad|ipod/.test(ua) || platform === "MacIntel" && maxTouchPoints > 1) return "ios";
9
+ if (/android/.test(ua)) return "android";
10
+ return "desktop";
11
+ }
12
+
13
+ //#endregion
14
+ export { getDeviceClass as t };
@@ -1,5 +1,5 @@
1
- import "./Actor-By8WNHi-.js";
2
- import { t as Manager } from "./Manager-CCT_-HuZ.js";
1
+ import { t as Manager } from "./Manager-BqFybBV-.js";
2
+ import "./Actor-C-jivmFF.js";
3
3
 
4
4
  //#region src/modules/government-validation/types.d.ts
5
5
  type GovernmentValidationConfig = {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-C2uzxrpN.esm.js";
2
- import { C as createActor, S as fromPromise, b as assign, s as createManagerInstrumentation, t as createManager, x as fromCallback, y as setup } from "./Manager-C6AGXEq_.esm.js";
3
- import { t as endpoints } from "./endpoints-CI5-28jT.esm.js";
4
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CIqH6hJp.esm.js";
1
+ import { t as api } from "./api-CyI8qTie.esm.js";
2
+ import { _ as endpoints, o as createManagerInstrumentation } from "./events-BlVGS-8F.esm.js";
3
+ import { a as createActor, i as fromPromise, n as assign, o as createManager, r as fromCallback, t as setup } from "./xstate.esm-BXrcOcSC.esm.js";
4
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-CkHEwJFa.esm.js";
5
5
 
6
6
  //#region src/modules/government-validation/governmentValidationServices.ts
7
7
  async function processGovernmentValidation(signal) {
package/dist/http.d.ts ADDED
@@ -0,0 +1,57 @@
1
+ //#region ../infra/src/http/types.d.ts
2
+
3
+ type RequestConfig = {
4
+ method?: string;
5
+ url: string;
6
+ headers?: Record<string, string>;
7
+ query?: Record<string, string | number | boolean | undefined>;
8
+ params?: Record<string, string | number | boolean | undefined>;
9
+ body?: unknown;
10
+ signal?: AbortSignal;
11
+ timeout?: number;
12
+ parse?: 'json' | 'text' | 'blob' | 'arrayBuffer' | 'response';
13
+ onUploadProgress?: (progress: number) => void;
14
+ };
15
+ type HttpResponse<T = unknown> = {
16
+ ok: boolean;
17
+ status: number;
18
+ statusText: string;
19
+ url: string;
20
+ headers: Record<string, string>;
21
+ data: T;
22
+ };
23
+ type HttpClient = {
24
+ defaults: {
25
+ baseURL: string;
26
+ headers: Record<string, string>;
27
+ };
28
+ request<T = unknown>(config: RequestConfig): Promise<HttpResponse<T>>;
29
+ get<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
30
+ post<T = unknown>(url: string, body?: unknown, config?: Omit<RequestConfig, 'method' | 'url' | 'body'>): Promise<HttpResponse<T>>;
31
+ put<T = unknown>(url: string, body?: unknown, config?: Omit<RequestConfig, 'method' | 'url' | 'body'>): Promise<HttpResponse<T>>;
32
+ patch<T = unknown>(url: string, body?: unknown, config?: Omit<RequestConfig, 'method' | 'url' | 'body'>): Promise<HttpResponse<T>>;
33
+ delete<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
34
+ head<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
35
+ options<T = unknown>(url: string, config?: Omit<RequestConfig, 'method' | 'url'>): Promise<HttpResponse<T>>;
36
+ setHeader(name: string, value: string): void;
37
+ };
38
+ //#endregion
39
+ //#region src/internal/http/api.d.ts
40
+ type MethodConfig = {
41
+ headers?: Record<string, string>;
42
+ signal?: AbortSignal;
43
+ timeout?: number;
44
+ query?: Record<string, string | number | boolean | undefined>;
45
+ onUploadProgress?: (progress: number) => void;
46
+ };
47
+ type ApiClient = {
48
+ get<T>(url: string, config?: MethodConfig): Promise<HttpResponse<T>>;
49
+ post<T>(url: string, data?: unknown, config?: MethodConfig): Promise<HttpResponse<T>>;
50
+ put<T>(url: string, data?: unknown, config?: MethodConfig): Promise<HttpResponse<T>>;
51
+ patch<T>(url: string, data?: unknown, config?: MethodConfig): Promise<HttpResponse<T>>;
52
+ delete<T>(url: string, config?: MethodConfig): Promise<HttpResponse<T>>;
53
+ };
54
+ declare function getApi(): HttpClient;
55
+ declare const api: ApiClient;
56
+ //#endregion
57
+ export { api, getApi };
@@ -0,0 +1,3 @@
1
+ import { n as getApi, t as api } from "./api-CyI8qTie.esm.js";
2
+
3
+ export { api, getApi };