@incodetech/core 0.0.0-dev-20260320-2b71e13 → 0.0.0-dev-20260320-80a2d6d

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 (78) hide show
  1. package/dist/{addressSearch-O-LFYClt.esm.js → addressSearch-BpdtojH_.esm.js} +4 -4
  2. package/dist/authentication.d.ts +10 -10
  3. package/dist/authentication.esm.js +10 -11
  4. package/dist/{authenticationManager-BH1ZY_16.d.ts → authenticationManager-BjTgDn8A.d.ts} +2 -2
  5. package/dist/{authenticationManager-BDCN6xbG.esm.js → authenticationManager-Yjdutfo0.esm.js} +8 -9
  6. package/dist/{backCameraStream-D-_dxon_.esm.js → backCameraStream-DQY36Tsq.esm.js} +1 -1
  7. package/dist/consent.d.ts +47 -47
  8. package/dist/consent.esm.js +6 -6
  9. package/dist/curp-validation.d.ts +4 -4
  10. package/dist/curp-validation.esm.js +6 -6
  11. package/dist/{deepsightLoader-DXU9BgO8.esm.js → deepsightLoader-De-U_lRn.esm.js} +4 -4
  12. package/dist/{deepsightService-B4HcyNDh.d.ts → deepsightService-CdGGD_BP.d.ts} +1 -1
  13. package/dist/{deepsightService-B4jCQAh8.esm.js → deepsightService-PlHPx0yD.esm.js} +3 -3
  14. package/dist/document-capture.d.ts +2 -2
  15. package/dist/document-capture.esm.js +7 -7
  16. package/dist/document-upload.d.ts +46 -46
  17. package/dist/document-upload.esm.js +7 -6
  18. package/dist/ekyb.d.ts +2 -2
  19. package/dist/ekyb.esm.js +8 -15
  20. package/dist/ekyc.d.ts +2 -2
  21. package/dist/ekyc.esm.js +7 -14
  22. package/dist/email.d.ts +3 -3
  23. package/dist/email.esm.js +5 -6
  24. package/dist/{emailManager-BWKRZIDo.esm.js → emailManager-B5pmZ3O4.esm.js} +8 -7
  25. package/dist/{emailManager-jXfroijR.d.ts → emailManager-lUXVfa0R.d.ts} +2 -2
  26. package/dist/{xstate.esm-nEixMy7s.esm.js → events-BKOSYNaw.esm.js} +299 -1
  27. package/dist/extensibility.d.ts +14 -14
  28. package/dist/extensibility.esm.js +14 -15
  29. package/dist/face-match.d.ts +1 -1
  30. package/dist/face-match.esm.js +7 -17
  31. package/dist/{faceCaptureManagerFactory-CULlsJHa.d.ts → faceCaptureManagerFactory-BulU7xFu.d.ts} +8 -8
  32. package/dist/{faceCaptureSetup-ePWTb1VF.esm.js → faceCaptureSetup-BQ7cV8vo.esm.js} +11 -11
  33. package/dist/flow.d.ts +7 -7
  34. package/dist/flow.esm.js +10 -8
  35. package/dist/{flowCompletionService-BJ1cHA-d.esm.js → flowCompletionService-C-pC9OZ9.esm.js} +2 -2
  36. package/dist/{flowServices-B5BTeA3c.esm.js → flowServices-Cc1HxYIC.esm.js} +2 -2
  37. package/dist/geolocation.d.ts +1 -1
  38. package/dist/geolocation.esm.js +6 -6
  39. package/dist/government-validation.d.ts +1 -1
  40. package/dist/government-validation.esm.js +6 -5
  41. package/dist/id.d.ts +9 -9
  42. package/dist/id.esm.js +10 -11
  43. package/dist/{idCaptureManager-DY9Le1U5.d.ts → idCaptureManager-DCXMoCXo.d.ts} +6 -6
  44. package/dist/{idCaptureManager-DJaBQlDY.esm.js → idCaptureManager-hbqwL7Qt.esm.js} +13 -12
  45. package/dist/index.d.ts +10 -10
  46. package/dist/index.esm.js +10 -11
  47. package/dist/phone.d.ts +3 -3
  48. package/dist/phone.esm.js +5 -6
  49. package/dist/{phoneManager-CQKg7NiP.esm.js → phoneManager-CXYPFfUs.esm.js} +8 -7
  50. package/dist/{phoneManager-BXeQetqQ.d.ts → phoneManager-pTIOvlCD.d.ts} +2 -2
  51. package/dist/redirect-to-mobile.d.ts +1 -1
  52. package/dist/redirect-to-mobile.esm.js +6 -5
  53. package/dist/selfie.d.ts +10 -10
  54. package/dist/selfie.esm.js +10 -11
  55. package/dist/{selfieManager-BzVXhKYT.d.ts → selfieManager-BqX2VFj1.d.ts} +2 -2
  56. package/dist/{selfieManager-DBIy2tuK.esm.js → selfieManager-DMnrP5LU.esm.js} +5 -6
  57. package/dist/session.d.ts +1 -1
  58. package/dist/session.esm.js +3 -3
  59. package/dist/{src-LjezYyPe.esm.js → src-xUbMTjnz.esm.js} +7 -2
  60. package/dist/{stats-DJ3CICeP.esm.js → stats-D76Thmqp.esm.js} +1 -1
  61. package/dist/stats.esm.js +2 -2
  62. package/dist/{streamingEvents-JeLmnOFf.esm.js → streamingEvents-BNVENF4-.esm.js} +3 -3
  63. package/dist/{types-CSgWWTDb.d.ts → types-CHzupruc.d.ts} +1 -1
  64. package/dist/{types-S1nlDDGB.d.ts → types-DSJflCEU.d.ts} +1 -1
  65. package/package.json +1 -1
  66. package/dist/events-CcXL3VWp.esm.js +0 -289
  67. /package/dist/{Actor-Bd72Yikw.d.ts → Actor-D6rhGxJy.d.ts} +0 -0
  68. /package/dist/{Manager-DKHVvCA1.d.ts → Manager-CVDYGoSq.d.ts} +0 -0
  69. /package/dist/{StateMachine-D-N4dLZo.d.ts → StateMachine-BqtRw_hz.d.ts} +0 -0
  70. /package/dist/{api-G4JA8CXK.esm.js → api-3fZO5bmj.esm.js} +0 -0
  71. /package/dist/{camera-pEBK1r31.d.ts → camera-CVBwqx-j.d.ts} +0 -0
  72. /package/dist/{displayErrors-mVWkbnVw.d.ts → displayErrors-BgtBHbfb.d.ts} +0 -0
  73. /package/dist/{endpoints-BGaT9ldX.esm.js → endpoints-Bydn-Ave.esm.js} +0 -0
  74. /package/dist/{flowCompletionService-B89QmIQg.d.ts → flowCompletionService-De8JDo87.d.ts} +0 -0
  75. /package/dist/{id-B1BwT5Nd.esm.js → id-r_CoQ3r-.esm.js} +0 -0
  76. /package/dist/{index-DwdIY3SO.d.ts → index-LKrIp3Oo.d.ts} +0 -0
  77. /package/dist/{lib-DCX3_IAU.esm.js → lib-3ivDs79I.esm.js} +0 -0
  78. /package/dist/{warmup-LifmFv5i.d.ts → warmup-DoQLFT3z.d.ts} +0 -0
@@ -1,3 +1,15 @@
1
+ import { i as isApiConfigured, r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
3
+
4
+ //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
5
+ function getTimestamp() {
6
+ return Date.now();
7
+ }
8
+ function revokeObjectURL(url) {
9
+ URL.revokeObjectURL(url);
10
+ }
11
+
12
+ //#endregion
1
13
  //#region ../../node_modules/.pnpm/xstate@5.24.0/node_modules/xstate/dev/dist/xstate-dev.esm.js
2
14
  function getGlobal() {
3
15
  if (typeof globalThis !== "undefined") return globalThis;
@@ -3258,4 +3270,290 @@ function setup({ schemas, actors, actions, guards, delays }) {
3258
3270
  }
3259
3271
 
3260
3272
  //#endregion
3261
- export { createActor as a, fromPromise as i, assign as n, fromCallback as r, setup as t };
3273
+ //#region src/internal/events/addEvent.ts
3274
+ const eventsQueue = [];
3275
+ const eventSubscribers = [];
3276
+ /**
3277
+ * Subscribes to all SDK events for logging, debugging, or custom analytics.
3278
+ * Returns an unsubscribe function.
3279
+ *
3280
+ * @param listener - Callback function that receives each event
3281
+ * @returns Unsubscribe function to remove the listener
3282
+ *
3283
+ * @example
3284
+ * ```typescript
3285
+ * const unsubscribe = subscribeEvent((event) => {
3286
+ * console.log('[Event]', event.code, event.module);
3287
+ * });
3288
+ *
3289
+ * // Later
3290
+ * unsubscribe();
3291
+ * ```
3292
+ */
3293
+ function subscribeEvent(listener) {
3294
+ eventSubscribers.push(listener);
3295
+ return () => {
3296
+ const index = eventSubscribers.indexOf(listener);
3297
+ if (index > -1) eventSubscribers.splice(index, 1);
3298
+ };
3299
+ }
3300
+ function notifySubscribers(event) {
3301
+ eventSubscribers.forEach((listener) => {
3302
+ try {
3303
+ listener(event);
3304
+ } catch (_error) {}
3305
+ });
3306
+ }
3307
+ /**
3308
+ * Sends an event to the dashboard for tracking.
3309
+ * Fire-and-forget: never blocks, never throws.
3310
+ * Events are queued if SDK is not configured yet.
3311
+ */
3312
+ function addEvent(event) {
3313
+ notifySubscribers(event);
3314
+ const token = getToken();
3315
+ if (!isApiConfigured() || !token) {
3316
+ eventsQueue.push(event);
3317
+ return;
3318
+ }
3319
+ api.post(endpoints.events, [{
3320
+ code: event.code,
3321
+ module: event.module,
3322
+ screen: event.screen,
3323
+ clientTimestamp: event.clientTimestamp ?? getTimestamp(),
3324
+ payload: event.payload ?? {}
3325
+ }]).catch(() => {});
3326
+ }
3327
+ /**
3328
+ * Flushes any queued events that were sent before SDK was configured.
3329
+ * Called automatically by setup() after token is set.
3330
+ */
3331
+ function flushEventQueue() {
3332
+ if (!isApiConfigured() || !getToken()) return;
3333
+ const queuedEvents = [...eventsQueue];
3334
+ eventsQueue.length = 0;
3335
+ for (const event of queuedEvents) addEvent(event);
3336
+ }
3337
+
3338
+ //#endregion
3339
+ //#region src/internal/events/helpers.ts
3340
+ function screenEvent(params) {
3341
+ addEvent({
3342
+ code: params.code,
3343
+ module: params.module,
3344
+ screen: params.screen,
3345
+ clientTimestamp: getTimestamp(),
3346
+ payload: params.payload
3347
+ });
3348
+ }
3349
+ function moduleOpened(module, screen, payload) {
3350
+ screenEvent({
3351
+ module,
3352
+ screen,
3353
+ code: "moduleOpened",
3354
+ payload
3355
+ });
3356
+ }
3357
+ function moduleClosed(module, screen, payload) {
3358
+ screenEvent({
3359
+ module,
3360
+ screen,
3361
+ code: "moduleClosed",
3362
+ payload
3363
+ });
3364
+ }
3365
+ function screenOpened(module, screen, payload) {
3366
+ screenEvent({
3367
+ module,
3368
+ screen,
3369
+ code: "screenOpened",
3370
+ payload
3371
+ });
3372
+ }
3373
+ function screenClosed(module, screen, payload) {
3374
+ screenEvent({
3375
+ module,
3376
+ screen,
3377
+ code: "screenClosed",
3378
+ payload
3379
+ });
3380
+ }
3381
+
3382
+ //#endregion
3383
+ //#region src/internal/events/managerInstrumentation.ts
3384
+ function createManagerInstrumentation(moduleName) {
3385
+ return {
3386
+ moduleName,
3387
+ onModuleOpened: moduleOpened,
3388
+ onModuleClosed: moduleClosed
3389
+ };
3390
+ }
3391
+
3392
+ //#endregion
3393
+ //#region src/internal/events/types.ts
3394
+ const eventModuleNames = {
3395
+ selfie: "SELFIE",
3396
+ authentication: "AUTHENTICATION",
3397
+ authFace: "AUTH_FACE",
3398
+ mlConsent: "ML_CONSENT",
3399
+ combinedConsent: "COMBINED_CONSENT",
3400
+ curpValidation: "CURP_VALIDATION",
3401
+ faceMatch: "FACE_MATCH",
3402
+ qr: "QR",
3403
+ videoSelfie: "VIDEO_ONBOARDING",
3404
+ passport: "ID",
3405
+ front: "ID",
3406
+ back: "ID",
3407
+ id: "ID",
3408
+ document: "DOCUMENT_CAPTURE",
3409
+ creditCard: "CREDIT_CARD_FRONT",
3410
+ creditCardBack: "CREDIT_CARD_BACK",
3411
+ conference: "CONFERENCE",
3412
+ otp: "OTP",
3413
+ signature: "SIGNATURE",
3414
+ ekyc: "EXTERNAL_VERIFICATION",
3415
+ globalWatchList: "GLOBAL_WATCHLIST",
3416
+ customWatchList: "CUSTOM_WATCHLIST",
3417
+ email: "EMAIL",
3418
+ phone: "PHONE",
3419
+ instantVerifyEmail: "INSTANT_VERIFY_EMAIL",
3420
+ instantVerifyConsent: "INSTANT_VERIFY_CONSENT",
3421
+ forms: "FORMS",
3422
+ customModule: "CUSTOM_MODULE",
3423
+ geolocation: "GEOLOCATION",
3424
+ ekyb: "EKYB"
3425
+ };
3426
+ const eventScreenNames = {
3427
+ faceMatch: "FACE_MATCH",
3428
+ faceCaptureTutorial: "SELFIE_CAPTURE_TUTORIAL",
3429
+ faceCaptureCamera: "SELFIE_CAMERA_CAPTURE",
3430
+ faceCaptureError: "SELFIE_ATTEMPT_FAILED",
3431
+ faceCaptureSuccess: "SELFIE_UPLOAD_SUCCEEDED",
3432
+ faceCaptureUpload: "SELFIE_UPLOAD_PROGRESS",
3433
+ mlConsent: "MACHINE_LEARNING_CONSENT",
3434
+ combinedConsent: "COMBINED_CONSENT",
3435
+ curpEnter: "ENTER_CURP",
3436
+ curpValidate: "VALIDATE_CURP",
3437
+ curpGenerate: "GENERATE_CURP",
3438
+ curpValidation: "CURP_VALIDATION_PROGRESS",
3439
+ curpValidationFailed: "CURP_VALIDATION_FAILED",
3440
+ curpValidationSuccess: "CURP_VALIDATION_SUCCEEDED",
3441
+ qrTutorial: "QR_TUTORIAL",
3442
+ qrScan: "QR_SCAN",
3443
+ smsOtp: "OTP",
3444
+ simpleOTP: "OTP",
3445
+ signatureInput: "SIGNATURE_INPUT",
3446
+ frontTutorial: "FRONT_ID_CAPTURE_TUTORIAL",
3447
+ frontCameraCapture: "FRONT_ID_CAMERA_CAPTURE",
3448
+ frontHelp: "FRONT_ID_HELP",
3449
+ frontReviewPhoto: "FRONT_ID_REVIEW_PHOTO",
3450
+ frontUploadProgress: "FRONT_ID_UPLOAD_PROGRESS",
3451
+ frontAttemptFailed: "FRONT_ID_ATTEMPT_FAILED",
3452
+ frontUploadSuccess: "FRONT_ID_UPLOAD_SUCCEEDED",
3453
+ backTutorial: "BACK_ID_CAPTURE_TUTORIAL",
3454
+ backCameraCapture: "BACK_ID_CAMERA_CAPTURE",
3455
+ backReviewPhoto: "BACK_ID_REVIEW_PHOTO",
3456
+ backUploadProgress: "BACK_ID_UPLOAD_PROGRESS",
3457
+ backAttemptFailed: "BACK_ID_ATTEMPT_FAILED",
3458
+ backUploadSuccess: "BACK_ID_UPLOAD_SUCCEEDED",
3459
+ backHelp: "BACK_ID_HELP",
3460
+ passportTutorial: "TUTORIAL_PASSPORT",
3461
+ documentTutorial: "DOCUMENT_CAPTURE_TUTORIAL",
3462
+ documentCameraCapture: "DOCUMENT_CAMERA_CAPTURE",
3463
+ documentHelp: "DOCUMENT_HELP",
3464
+ documentReviewPhoto: "DOCUMENT_REVIEW_PHOTO",
3465
+ documentUploadProgress: "DOCUMENT_UPLOAD_IN_PROGRESS",
3466
+ documentAttemptFailed: "DOCUMENT_ATTEMPT_FAILED",
3467
+ documentUploadSuccess: "DOCUMENT_UPLOAD_SUCCEEDED",
3468
+ conferenceWait: "CONFERENCE_WAIT",
3469
+ conferenceVideoChat: "CONFERENCE_VIDEO_CHAT",
3470
+ conferenceMessageChat: "CONFERENCE_MESSAGE_CHAT",
3471
+ videoSelfieTutorial: "VIDEO_SELFIE_TUTORIAL",
3472
+ videoSelfie: "VIDEO_SELFIE",
3473
+ videoSelfieFaceCapture: "VIDEO_SELFIE_FACE_CAPTURE",
3474
+ videoSelfieFaceUploadProgress: "VIDEO_SELFIE_FACE_UPLOAD_PROGRESS",
3475
+ videoSelfieFaceAttemptFailed: "VIDEO_SELFIE_FACE_ATTEMPT_FAILED",
3476
+ videoSelfieFaceUploadSucceeded: "VIDEO_SELFIE_FACE_UPLOAD_SUCCEEDED",
3477
+ videoSelfieFrontIdCapture: "VIDEO_SELFIE_FRONT_ID_CAPTURE",
3478
+ videoSelfieFrontIdUploadProgress: "VIDEO_SELFIE_FRONT_ID_UPLOAD_PROGRESS",
3479
+ videoSelfieFrontIdAttemptFailed: "VIDEO_SELFIE_FRONT_ID_ATTEMPT_FAILED",
3480
+ videoSelfieFrontIdUploadSucceeded: "VIDEO_SELFIE_FRONT_ID_UPLOAD_SUCCEEDED",
3481
+ videoSelfieBackIdCapture: "VIDEO_SELFIE_BACK_ID_CAPTURE",
3482
+ videoSelfieBackIdUploadProgress: "VIDEO_SELFIE_BACK_ID_UPLOAD_PROGRESS",
3483
+ videoSelfieBackIdAttemptFailed: "VIDEO_SELFIE_BACK_ID_ATTEMPT_FAILED",
3484
+ videoSelfieBackIdUploadSucceeded: "VIDEO_SELFIE_BACK_ID_UPLOAD_SUCCEEDED",
3485
+ videoSelfieDocumentCapture: "VIDEO_SELFIE_DOCUMENT_CAPTURE",
3486
+ videoSelfieVoiceQuestion: "VIDEO_SELFIE_VOICE_QUESTION",
3487
+ videoSelfieVoiceFinalQuestion: "VIDEO_SELFIE_VOICE_FINAL_QUESTION",
3488
+ videoSelfieVideoUpload: "VIDEO SELFIE VIDEO UPLOAD",
3489
+ ekycInput: "EKYC_INPUT",
3490
+ ekycProgress: "EKYC_PROGRESS",
3491
+ ekycSucceeded: "EKYC_SUCCEEDED",
3492
+ ekycFailed: "EKYC_FAILED",
3493
+ forms: "FORMS",
3494
+ globalWatchListInput: "GLOBAL_WATCHLIST_INPUT",
3495
+ globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS",
3496
+ globalWatchListSuccess: "GLOBAL_WATCHLIST_SUCCEEDED",
3497
+ globalWatchListFailed: "GLOBAL_WATCHLIST_FAILED",
3498
+ customWatchListInput: "CUSTOM_WATCHLIST_INPUT",
3499
+ customWatchListProgress: "CUSTOM_WATCHLIST_PROGRESS",
3500
+ customWatchListSuccess: "CUSTOM_WATCHLIST_SUCCEEDED",
3501
+ customWatchListFailed: "CUSTOM_WATCHLIST_FAILED",
3502
+ emailInput: "EMAIL_INPUT",
3503
+ phoneInput: "PHONE_INPUT",
3504
+ instantVerify: "INSTANT_VERIFY",
3505
+ authFace: "AUTH_FACE",
3506
+ authFaceError: "AUTH_FACE_ATTEMPT_FAILED",
3507
+ authFaceUpload: "AUTH_FACE_UPLOAD_PROGRESS",
3508
+ authFaceUploadSuccess: "AUTH_FACE_UPLOAD_SUCCEEDED",
3509
+ authFaceUploadFailed: "AUTH_FACE_UPLOAD_FAILED",
3510
+ customModuleCallback: "CUSTOM_MODULE_CALLBACK",
3511
+ customModuleProcessing: "CUSTOM_MODULE_PROCESSING",
3512
+ digitalIdFileSelection: "DIGITAL_ID_FILE_SELECTION",
3513
+ digitalIdFileReview: "DIGITAL_ID_FILE_REVIEW",
3514
+ digitalIdUploadProgress: "DIGITAL_ID_UPLOAD_PROGRESS",
3515
+ digitalIdUploadSuccess: "DIGITAL_ID_UPLOAD_SUCCEEDED",
3516
+ digitalIdUploadFailed: "DIGITAL_ID_UPLOAD_FAILED",
3517
+ digitalIdAnalysisProgress: "DIGITAL_ID_ANALYSIS_PROGRESS",
3518
+ digitalIdVerificationSuccess: "DIGITAL_ID_VERIFICATION_SUCCESS",
3519
+ digitalIdVerificationFailed: "DIGITAL_ID_VERIFICATION_FAILED",
3520
+ ekybForm: "EKYB_FORM"
3521
+ };
3522
+ const videoSelfieEvents = {
3523
+ imageTooBlurry: "imageTooBlurry",
3524
+ fillFrame: "fillFrame",
3525
+ checkCameraOrLighting: "checkCameraOrLighting",
3526
+ frontIdCaptureStarted: "frontIdCaptureStarted",
3527
+ lookAtCamera: "lookAtCamera",
3528
+ moveCloser: "moveCloser",
3529
+ lookingForFrontId: "lookingForFrontId",
3530
+ lookingForBackId: "lookingForBackId",
3531
+ cameraSwitchToBack: "cameraSwitchToBack",
3532
+ cameraSwitchToFront: "cameraSwitchToFront",
3533
+ audioStreamOpened: "audioStreamOpened",
3534
+ audioStreamClosed: "audioStreamClosed",
3535
+ videoSelfieVideoUploadInProgress: "videoSelfieVideoUploadInProgress",
3536
+ videoSelfieTosNotAccepted: "videoSelfieTosNotAccepted",
3537
+ videoSelfieTosAccepted: "videoSelfieTosAccepted",
3538
+ videoSelfieStreamCreated: "videoSelfieStreamCreated",
3539
+ videoSelfieStreamDestroyed: "videoSelfieStreamDestroyed",
3540
+ videoSelfieReconnecting: "videoSelfieReconnecting",
3541
+ videoSelfieReconnected: "videoSelfieReconnected"
3542
+ };
3543
+ const tutorialScreenNamesMapper = {
3544
+ passport: eventScreenNames.passportTutorial,
3545
+ front: eventScreenNames.frontTutorial,
3546
+ back: eventScreenNames.backTutorial,
3547
+ selfie: eventScreenNames.faceCaptureTutorial
3548
+ };
3549
+ const cameraScreenNamesMapper = {
3550
+ front: "front",
3551
+ back: "back",
3552
+ passport: "passport",
3553
+ creditCard: "front",
3554
+ creditCardBack: "back",
3555
+ document: "document"
3556
+ };
3557
+
3558
+ //#endregion
3559
+ export { fromCallback as _, videoSelfieEvents as a, revokeObjectURL as b, moduleOpened as c, screenOpened as d, addEvent as f, assign as g, setup as h, tutorialScreenNamesMapper as i, screenClosed as l, subscribeEvent as m, eventModuleNames as n, createManagerInstrumentation as o, flushEventQueue as p, eventScreenNames as r, moduleClosed as s, cameraScreenNamesMapper as t, screenEvent as u, fromPromise as v, createActor as y };
@@ -1,17 +1,17 @@
1
- import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-DY9Le1U5.js";
2
- import { a as IStorageCapability } from "./deepsightService-B4HcyNDh.js";
3
- import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-CULlsJHa.js";
4
- import "./warmup-LifmFv5i.js";
5
- import "./Manager-DKHVvCA1.js";
6
- import "./camera-pEBK1r31.js";
7
- import { n as createActor } from "./Actor-Bd72Yikw.js";
8
- import { r as fromPromise } from "./StateMachine-D-N4dLZo.js";
9
- import "./types-CSgWWTDb.js";
10
- import "./types-S1nlDDGB.js";
11
- import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BzVXhKYT.js";
12
- import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BH1ZY_16.js";
13
- import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-jXfroijR.js";
14
- import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-BXeQetqQ.js";
1
+ import { S as CaptureIdResponse, i as createIdCaptureManagerFromActor, n as IdCaptureState, t as IdCaptureManager } from "./idCaptureManager-DCXMoCXo.js";
2
+ import { a as IStorageCapability } from "./deepsightService-CdGGD_BP.js";
3
+ import { C as WasmUtilConfig, S as VirtualCameraCheckOutput, b as BaseWasmProvider, c as FaceCaptureEvent, f as SendFaceImageResponse, l as FaceCaptureInput, n as FaceCaptureManagerState, s as FaceCaptureContext, t as FaceCaptureManager, u as faceCaptureMachine, x as IWasmUtilCapability } from "./faceCaptureManagerFactory-BulU7xFu.js";
4
+ import "./warmup-DoQLFT3z.js";
5
+ import "./Manager-CVDYGoSq.js";
6
+ import "./camera-CVBwqx-j.js";
7
+ import { n as createActor } from "./Actor-D6rhGxJy.js";
8
+ import { r as fromPromise } from "./StateMachine-BqtRw_hz.js";
9
+ import "./types-CHzupruc.js";
10
+ import "./types-DSJflCEU.js";
11
+ import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-BqX2VFj1.js";
12
+ import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BjTgDn8A.js";
13
+ import { i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-lUXVfa0R.js";
14
+ import { i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-pTIOvlCD.js";
15
15
 
16
16
  //#region ../infra/src/providers/browser/BrowserStorageProvider.d.ts
17
17
  /**
@@ -1,17 +1,16 @@
1
- import "./events-CcXL3VWp.esm.js";
2
- import "./backCameraStream-D-_dxon_.esm.js";
3
- import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-LjezYyPe.esm.js";
4
- import { a as createActor, i as fromPromise } from "./xstate.esm-nEixMy7s.esm.js";
5
- import "./streamingEvents-JeLmnOFf.esm.js";
6
- import "./deepsightService-B4jCQAh8.esm.js";
7
- import "./api-G4JA8CXK.esm.js";
8
- import "./endpoints-BGaT9ldX.esm.js";
9
- import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-DJaBQlDY.esm.js";
10
- import "./stats-DJ3CICeP.esm.js";
11
- import { n as faceCaptureMachine } from "./faceCaptureSetup-ePWTb1VF.esm.js";
12
- import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BDCN6xbG.esm.js";
13
- import { n as createEmailManagerFromActor } from "./emailManager-BWKRZIDo.esm.js";
14
- import { n as createSelfieManagerFromActor } from "./selfieManager-DBIy2tuK.esm.js";
15
- import { n as createPhoneManagerFromActor } from "./phoneManager-CQKg7NiP.esm.js";
1
+ import { v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
+ import "./backCameraStream-DQY36Tsq.esm.js";
3
+ import { _ as BrowserStorageProvider, a as WasmUtilProvider } from "./src-xUbMTjnz.esm.js";
4
+ import "./streamingEvents-BNVENF4-.esm.js";
5
+ import "./deepsightService-PlHPx0yD.esm.js";
6
+ import "./api-3fZO5bmj.esm.js";
7
+ import "./endpoints-Bydn-Ave.esm.js";
8
+ import { n as createIdCaptureManagerFromActor } from "./idCaptureManager-hbqwL7Qt.esm.js";
9
+ import "./stats-D76Thmqp.esm.js";
10
+ import { n as faceCaptureMachine } from "./faceCaptureSetup-BQ7cV8vo.esm.js";
11
+ import { n as createAuthenticationManagerFromActor } from "./authenticationManager-Yjdutfo0.esm.js";
12
+ import { n as createEmailManagerFromActor } from "./emailManager-B5pmZ3O4.esm.js";
13
+ import { n as createSelfieManagerFromActor } from "./selfieManager-DMnrP5LU.esm.js";
14
+ import { n as createPhoneManagerFromActor } from "./phoneManager-CXYPFfUs.esm.js";
16
15
 
17
16
  export { BrowserStorageProvider, WasmUtilProvider, createActor, createAuthenticationManagerFromActor, createEmailManagerFromActor, createIdCaptureManagerFromActor, createPhoneManagerFromActor, createSelfieManagerFromActor, faceCaptureMachine, fromPromise };
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DKHVvCA1.js";
1
+ import { t as Manager } from "./Manager-CVDYGoSq.js";
2
2
 
3
3
  //#region src/modules/face-match/types.d.ts
4
4
 
@@ -1,8 +1,7 @@
1
- import { d as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-CcXL3VWp.esm.js";
2
- import { A as createManager } from "./src-LjezYyPe.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
- import { t as api } from "./api-G4JA8CXK.esm.js";
5
- import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
1
+ import { f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, r as eventScreenNames, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
+ import { A as createManager } from "./src-xUbMTjnz.esm.js";
3
+ import { t as api } from "./api-3fZO5bmj.esm.js";
4
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
6
5
 
7
6
  //#region src/modules/face-match/faceMatchServices.ts
8
7
  /**
@@ -85,13 +84,6 @@ const faceMatchMachine = setup({
85
84
  result: null,
86
85
  error: void 0
87
86
  })),
88
- trackModuleOpened: () => {
89
- addEvent({
90
- code: "moduleOpened",
91
- module: eventModuleNames.faceMatch,
92
- screen: eventScreenNames.faceMatch
93
- });
94
- },
95
87
  trackContinue: () => {
96
88
  addEvent({
97
89
  code: "continue",
@@ -111,10 +103,7 @@ const faceMatchMachine = setup({
111
103
  error: void 0
112
104
  }),
113
105
  states: {
114
- idle: {
115
- entry: "trackModuleOpened",
116
- on: { LOAD: { target: "loading" } }
117
- },
106
+ idle: { on: { LOAD: { target: "loading" } } },
118
107
  loading: { invoke: {
119
108
  id: "fetchData",
120
109
  src: "fetchData",
@@ -305,7 +294,8 @@ function createFaceMatchManager(options) {
305
294
  return createManager({
306
295
  actor: createFaceMatchActor(options),
307
296
  mapState,
308
- createApi
297
+ createApi,
298
+ instrumentation: createManagerInstrumentation(eventModuleNames.faceMatch)
309
299
  });
310
300
  }
311
301
 
@@ -1,10 +1,10 @@
1
- import { a as IStorageCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-B4HcyNDh.js";
2
- import { n as WasmPipeline } from "./warmup-LifmFv5i.js";
3
- import { t as Manager } from "./Manager-DKHVvCA1.js";
4
- import { t as CameraStream } from "./camera-pEBK1r31.js";
5
- import { t as ActorRefFrom } from "./Actor-Bd72Yikw.js";
6
- import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-D-N4dLZo.js";
7
- import { r as FlowModuleConfig, t as Flow } from "./types-S1nlDDGB.js";
1
+ import { a as IStorageCapability, d as IncodeCanvas, i as StreamCanvasCapture, l as IMLProviderCapability, n as PermissionResult, o as IRecordingCapability, r as PermissionStatus, t as DeepsightService, u as MLProviderConfig } from "./deepsightService-CdGGD_BP.js";
2
+ import { n as WasmPipeline } from "./warmup-DoQLFT3z.js";
3
+ import { t as Manager } from "./Manager-CVDYGoSq.js";
4
+ import { t as CameraStream } from "./camera-CVBwqx-j.js";
5
+ import { t as ActorRefFrom } from "./Actor-D6rhGxJy.js";
6
+ import { n as StateMachine, t as AnyStateMachine } from "./StateMachine-BqtRw_hz.js";
7
+ import { r as FlowModuleConfig, t as Flow } from "./types-DSJflCEU.js";
8
8
 
9
9
  //#region ../infra/src/capabilities/IFaceDetectionCapability.d.ts
10
10
  /**
@@ -555,7 +555,7 @@ type FaceCaptureErrorState = {
555
555
  };
556
556
  /** Union of all possible face capture states */
557
557
  type FaceCaptureManagerState = FaceCaptureIdleState | FaceCaptureLoadingState | FaceCaptureTutorialState | FaceCapturePermissionsState | FaceCaptureCaptureState | FaceCaptureProcessingState | FaceCaptureFinishedState | FaceCaptureClosedState | FaceCaptureErrorState;
558
- declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor): Manager<FaceCaptureManagerState> & {
558
+ declare function createFaceCaptureManagerFromActor(actor: FaceCaptureActor, moduleName: string): Manager<FaceCaptureManagerState> & {
559
559
  /**
560
560
  * Starts the face capture flow.
561
561
  * Goes to `tutorial` if showTutorial is true, otherwise to `loading`.
@@ -1,11 +1,10 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-CcXL3VWp.esm.js";
2
- import { t as getBackCameraStream } from "./backCameraStream-D-_dxon_.esm.js";
3
- import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-LjezYyPe.esm.js";
4
- import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
5
- import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-JeLmnOFf.esm.js";
6
- import { r as getToken, t as api } from "./api-G4JA8CXK.esm.js";
7
- import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
8
- import { t as addDeviceStats } from "./stats-DJ3CICeP.esm.js";
1
+ import { _ as fromCallback, f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromPromise } from "./events-BKOSYNaw.esm.js";
2
+ import { t as getBackCameraStream } from "./backCameraStream-DQY36Tsq.esm.js";
3
+ import { A as createManager, O as requestCameraAccess, S as StreamCanvasCapture, d as OpenViduRecordingProvider, k as stopCameraStream, p as LocalRecordingProvider, s as FaceDetectionProvider, x as StreamCanvasProcessingSession } from "./src-xUbMTjnz.esm.js";
4
+ import { a as uploadDeepsightVideo, i as stopRecording$1, l as getDeviceClass, n as createRecordingSession, o as checkPermission, r as startRecording, s as requestPermission, t as streamingEvents } from "./streamingEvents-BNVENF4-.esm.js";
5
+ import { r as getToken, t as api } from "./api-3fZO5bmj.esm.js";
6
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
7
+ import { t as addDeviceStats } from "./stats-D76Thmqp.esm.js";
9
8
 
10
9
  //#region src/internal/faceCapture/faceCaptureManagerFactory.ts
11
10
  function getPermissionStatus(snapshot) {
@@ -96,11 +95,12 @@ function createApi({ actor }) {
96
95
  }
97
96
  };
98
97
  }
99
- function createFaceCaptureManagerFromActor(actor) {
98
+ function createFaceCaptureManagerFromActor(actor, moduleName) {
100
99
  return createManager({
101
100
  actor,
102
101
  mapState,
103
- createApi
102
+ createApi,
103
+ instrumentation: createManagerInstrumentation(moduleName)
104
104
  });
105
105
  }
106
106
 
@@ -445,7 +445,7 @@ async function stopRecording(session) {
445
445
  }
446
446
  }
447
447
  async function initializeDeepsightSession(options) {
448
- const { loadDeepsightSession } = await import("./deepsightLoader-DXU9BgO8.esm.js");
448
+ const { loadDeepsightSession } = await import("./deepsightLoader-De-U_lRn.esm.js");
449
449
  return loadDeepsightSession({
450
450
  ds: options.ds,
451
451
  storage: options.storage
package/dist/flow.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { n as WasmPipeline } from "./warmup-LifmFv5i.js";
2
- import { t as Manager } from "./Manager-DKHVvCA1.js";
3
- import "./camera-pEBK1r31.js";
4
- import { t as AnyStateMachine } from "./StateMachine-D-N4dLZo.js";
5
- import "./types-CSgWWTDb.js";
6
- import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-S1nlDDGB.js";
7
- import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-B89QmIQg.js";
1
+ import { n as WasmPipeline } from "./warmup-DoQLFT3z.js";
2
+ import { t as Manager } from "./Manager-CVDYGoSq.js";
3
+ import "./camera-CVBwqx-j.js";
4
+ import { t as AnyStateMachine } from "./StateMachine-BqtRw_hz.js";
5
+ import "./types-CHzupruc.js";
6
+ import { n as FlowModule, r as FlowModuleConfig, t as Flow } from "./types-DSJflCEU.js";
7
+ import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-De8JDo87.js";
8
8
 
9
9
  //#region src/modules/flow/flowUtils.d.ts
10
10
 
package/dist/flow.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { A as createManager } from "./src-LjezYyPe.esm.js";
2
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
3
- import "./api-G4JA8CXK.esm.js";
4
- import "./endpoints-BGaT9ldX.esm.js";
5
- import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-B5BTeA3c.esm.js";
6
- import { t as getFinishStatus } from "./flowCompletionService-BJ1cHA-d.esm.js";
1
+ import { _ as fromCallback, g as assign, h as setup, o as createManagerInstrumentation, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
+ import { A as createManager } from "./src-xUbMTjnz.esm.js";
3
+ import "./api-3fZO5bmj.esm.js";
4
+ import "./endpoints-Bydn-Ave.esm.js";
5
+ import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Cc1HxYIC.esm.js";
6
+ import { t as getFinishStatus } from "./flowCompletionService-C-pC9OZ9.esm.js";
7
7
 
8
8
  //#region src/modules/flow/flowStateMachine.ts
9
9
  const flowMachine = setup({
@@ -234,7 +234,8 @@ function createFlowManager(options) {
234
234
  return createManager({
235
235
  actor: createFlowActor(options),
236
236
  mapState: mapState$1,
237
- createApi: createApi$1
237
+ createApi: createApi$1,
238
+ instrumentation: createManagerInstrumentation("FLOW")
238
239
  });
239
240
  }
240
241
 
@@ -587,7 +588,8 @@ function createOrchestratedFlowManager(options) {
587
588
  return createManager({
588
589
  actor: createOrchestratedFlowActor(options),
589
590
  mapState,
590
- createApi
591
+ createApi,
592
+ instrumentation: createManagerInstrumentation("FLOW")
591
593
  });
592
594
  }
593
595
 
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-G4JA8CXK.esm.js";
2
- import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
3
3
 
4
4
  //#region src/modules/flow/flowCompletionService.ts
5
5
  const getFinishStatus = async (flowId, signal) => {
@@ -1,5 +1,5 @@
1
- import { t as api } from "./api-G4JA8CXK.esm.js";
2
- import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
1
+ import { t as api } from "./api-3fZO5bmj.esm.js";
2
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
3
3
 
4
4
  //#region src/modules/flow/flowUtils.ts
5
5
  const WASM_MODULE_PIPELINES = {
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DKHVvCA1.js";
1
+ import { t as Manager } from "./Manager-CVDYGoSq.js";
2
2
 
3
3
  //#region ../infra/src/capabilities/IGeolocationCapability.d.ts
4
4
  type GeolocationCoords = {
@@ -1,8 +1,7 @@
1
- import { d as addEvent, n as eventModuleNames } from "./events-CcXL3VWp.esm.js";
2
- import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-LjezYyPe.esm.js";
3
- import { a as createActor, i as fromPromise, n as assign, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
4
- import { t as api } from "./api-G4JA8CXK.esm.js";
5
- import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
1
+ import { f as addEvent, g as assign, h as setup, n as eventModuleNames, o as createManagerInstrumentation, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
+ import { A as createManager, F as isAndroid, L as isIOS, b as BrowserGeolocationProvider } from "./src-xUbMTjnz.esm.js";
3
+ import { t as api } from "./api-3fZO5bmj.esm.js";
4
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
6
5
 
7
6
  //#region src/modules/geolocation/geolocationServices.ts
8
7
  async function addGeolocation(params, signal) {
@@ -178,7 +177,8 @@ function createGeolocationManager(options) {
178
177
  return createManager({
179
178
  actor: createGeolocationActor(options),
180
179
  mapState,
181
- createApi
180
+ createApi,
181
+ instrumentation: createManagerInstrumentation(eventModuleNames.geolocation)
182
182
  });
183
183
  }
184
184
 
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-DKHVvCA1.js";
1
+ import { t as Manager } from "./Manager-CVDYGoSq.js";
2
2
 
3
3
  //#region src/modules/government-validation/types.d.ts
4
4
  type GovernmentValidationConfig = {
@@ -1,7 +1,7 @@
1
- import { A as createManager, g as BrowserTimerProvider } from "./src-LjezYyPe.esm.js";
2
- import { a as createActor, i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-nEixMy7s.esm.js";
3
- import { t as api } from "./api-G4JA8CXK.esm.js";
4
- import { t as endpoints } from "./endpoints-BGaT9ldX.esm.js";
1
+ import { _ as fromCallback, g as assign, h as setup, o as createManagerInstrumentation, v as fromPromise, y as createActor } from "./events-BKOSYNaw.esm.js";
2
+ import { A as createManager, g as BrowserTimerProvider } from "./src-xUbMTjnz.esm.js";
3
+ import { t as api } from "./api-3fZO5bmj.esm.js";
4
+ import { t as endpoints } from "./endpoints-Bydn-Ave.esm.js";
5
5
 
6
6
  //#region src/modules/government-validation/governmentValidationServices.ts
7
7
  async function processGovernmentValidation(signal) {
@@ -332,7 +332,8 @@ function createGovernmentValidationManager(options) {
332
332
  return createManager({
333
333
  actor: createGovernmentValidationActor(options),
334
334
  mapState,
335
- createApi
335
+ createApi,
336
+ instrumentation: createManagerInstrumentation("GOVERNMENT_VALIDATION")
336
337
  });
337
338
  }
338
339