@jumio/websdk 0.2.7 → 0.2.8

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 (52) hide show
  1. package/dac.JbpouLOM.js +5 -0
  2. package/dac_simd.D-XVS7_V.js +5 -0
  3. package/i18n/{ar.CkHba5Wm.js → ar.CgLLIqv9.js} +189 -191
  4. package/i18n/{bg.CfHTXxHz.js → bg.BhGkYnFD.js} +177 -179
  5. package/i18n/{cs.Di6Bni_C.js → cs.DUP0BFBH.js} +320 -322
  6. package/i18n/{da.f3x390-4.js → da.CR5xZm13.js} +177 -179
  7. package/i18n/{de.BFnpN3-8.js → de.Cjx9fjej.js} +83 -85
  8. package/i18n/{el.Bo75RPjG.js → el.CYHLaioj.js} +197 -199
  9. package/i18n/{en.CNXOapeZ.js → en.BccP_JAu.js} +73 -75
  10. package/i18n/{en_GB.ChNlcoFz.js → en_GB.Ba-4NP1e.js} +73 -75
  11. package/i18n/{es.B8tn3Cq3.js → es.By_eUu1r.js} +73 -75
  12. package/i18n/{es_MX.UKW8NJdJ.js → es_MX.D-8reCG9.js} +151 -153
  13. package/i18n/{et.CV8qrYMG.js → et.CQwBUEYn.js} +139 -141
  14. package/i18n/{fi.fOGIM5DL.js → fi.DTSgjo2b.js} +209 -211
  15. package/i18n/{fr.DTiopzpg.js → fr.C0fU3_44.js} +83 -85
  16. package/i18n/{he.DwLGHVsm.js → he.5K50I1Tb.js} +181 -183
  17. package/i18n/{hr.BE1Jcp-I.js → hr.BqJ9XDS3.js} +188 -190
  18. package/i18n/{hu.Ch6_w_hs.js → hu.DLUFXILk.js} +239 -241
  19. package/i18n/{hy.Toy2lP3j.js → hy.Dt3QfDB4.js} +185 -187
  20. package/i18n/{id.C0IM9l4o.js → id.CLJcrTcf.js} +161 -163
  21. package/i18n/{it.CS7ye1ya.js → it.2eiXstYk.js} +73 -75
  22. package/i18n/{ja.CIoIcfXn.js → ja.BsViAHOD.js} +171 -173
  23. package/i18n/{ka_GE.Qm6C10WB.js → ka_GE.D_NW6xUK.js} +187 -189
  24. package/i18n/{km_KH.whmx_O6H.js → km_KH.Cx9kWQKs.js} +187 -189
  25. package/i18n/{ko.Ff80_pAx.js → ko.DjnnFEZ0.js} +163 -165
  26. package/i18n/{lt.Wr4pnlaC.js → lt.0gYQCFBT.js} +187 -189
  27. package/i18n/{ms.CCfV9WgD.js → ms.KLMOz30B.js} +139 -141
  28. package/i18n/{nl.CiV2GL1B.js → nl.Da05X3Of.js} +73 -75
  29. package/i18n/{no.TWbl3yzz.js → no.DiLD8jXX.js} +155 -157
  30. package/i18n/{pl.DUrOL7Sa.js → pl.DOUZglso.js} +154 -156
  31. package/i18n/{pt.BtYpPaA5.js → pt.BwZrQKcw.js} +73 -75
  32. package/i18n/{pt_BR.z-7R789n.js → pt_BR.EUk44pFz.js} +77 -79
  33. package/i18n/{ro.Bpz8fgLH.js → ro.PuaZtjX7.js} +113 -115
  34. package/i18n/{ru.C_4BVvIF.js → ru.Dh3_Wt-u.js} +165 -167
  35. package/i18n/{sk.Je8xgox_.js → sk._66BXazu.js} +167 -169
  36. package/i18n/{sr_Cyrl.CyKHkxYk.js → sr_Cyrl.ChScGUsl.js} +197 -199
  37. package/i18n/{sr_Latn.nHoq2q1t.js → sr_Latn.BgxN9dQp.js} +157 -159
  38. package/i18n/{sv.BqQo8pxk.js → sv.JG5WmppA.js} +135 -137
  39. package/i18n/{sw.CteFsxDP.js → sw.D3FNmwgJ.js} +183 -185
  40. package/i18n/{th.CfYoxfjv.js → th.B8_605rD.js} +183 -185
  41. package/i18n/{tr.D-sbpW_k.js → tr.KifHB2LX.js} +169 -171
  42. package/i18n/{uk.DRMEW-a0.js → uk.CI_9FElr.js} +73 -75
  43. package/i18n/{vi._W1z6LL_.js → vi.CLjoVttR.js} +165 -167
  44. package/i18n/{zh_CN.CdxFYozc.js → zh_CN.DOzZeODz.js} +177 -179
  45. package/i18n/{zh_HK.1-fRiyXy.js → zh_HK.DhlRquPj.js} +211 -213
  46. package/{iProovMe.CWOJXVVS.js → iProovMe.HmsBhZrV.js} +2 -2
  47. package/{index.CQ2tXomE.js → index.DS4U2exh.js} +13120 -13079
  48. package/index.d.ts +58 -19
  49. package/index.js +249 -247
  50. package/package.json +1 -1
  51. package/dac.Dd7ZvQh1.js +0 -5
  52. package/dac_simd.CciLAeXU.js +0 -5
package/index.d.ts CHANGED
@@ -1846,7 +1846,6 @@ export declare type CameraCaptureIdAutocaptureStateLogEvent = 'auto-capture' | '
1846
1846
  export declare class CameraComponent extends BaseComponent {
1847
1847
  #private;
1848
1848
  static styles: CSSResult[];
1849
- applyConstraintCallback?: ConstraintsApply;
1850
1849
  videoRenderingEngineCollection: CameraRenderingEngine[];
1851
1850
  videoOverlayVideoRenderingEngineCollection: CameraRenderingEngine[];
1852
1851
  videoRenderingEngineBackdrop: CameraRenderingEngine[];
@@ -2565,13 +2564,6 @@ export declare class ConsentPolicyComponent extends BaseComponent {
2565
2564
  render(): TemplateResult<1>;
2566
2565
  }
2567
2566
 
2568
- export declare type ConstraintsApply = (params: ConstraintsParams) => Promise<MediaTrackSettings>;
2569
-
2570
- export declare interface ConstraintsParams {
2571
- stream: MediaStream;
2572
- track: MediaStreamTrack;
2573
- }
2574
-
2575
2567
  declare type ControllerProvider<TWorkflowStepController, TComponentController> = WorkflowStepControllerProvider<TWorkflowStepController> & ComponentControllerProvider<TComponentController>;
2576
2568
 
2577
2569
  declare interface Country {
@@ -4371,7 +4363,9 @@ export declare const generateStateMachineFromCredentials: ({ credentials, setWor
4371
4363
  type: "setWorkflowStep";
4372
4364
  params: NavigationStep;
4373
4365
  }, never, never, {
4374
- step: VirtualStep;
4366
+ step: VirtualStep.Setup | VirtualStep.Finish | {
4367
+ start: StartStep;
4368
+ };
4375
4369
  activeScreen: ActiveScreen;
4376
4370
  }, string, NonReducibleUnknown, NonReducibleUnknown, EventObject, MetaObject, {
4377
4371
  readonly id: "@jumio/websdk workflow state machine";
@@ -4386,15 +4380,27 @@ readonly on: {
4386
4380
  readonly "step-navigation-previous-step": `${string}-${string}-${string}-${string}-${string}`;
4387
4381
  };
4388
4382
  };
4389
- readonly setup: {
4383
+ readonly start: {
4384
+ readonly initial: import("../../../types/src/index.js").StartStep.Consent;
4385
+ readonly states: {
4386
+ readonly "start-consent": {
4390
4387
  readonly on: {
4391
- readonly "step-navigation-next-step": VirtualStep.Start;
4388
+ readonly "start-screen-proceed": import("../../../types/src/index.js").StartStep.Finish;
4389
+ };
4390
+ };
4391
+ readonly "start-finish": {
4392
+ readonly type: "final";
4392
4393
  };
4393
4394
  };
4394
- readonly start: {
4395
4395
  readonly on: {
4396
4396
  readonly "step-navigation-next-step": `${string}-${string}-${string}-${string}-${string}`;
4397
4397
  };
4398
+ readonly onDone: `${string}-${string}-${string}-${string}-${string}`;
4399
+ };
4400
+ readonly setup: {
4401
+ readonly on: {
4402
+ readonly "step-navigation-next-step": VirtualStep.Start;
4403
+ };
4398
4404
  };
4399
4405
  };
4400
4406
  readonly entry: ActionFunction<MachineContext, AnyEventObject, AnyEventObject, undefined, never, {
@@ -4471,6 +4477,8 @@ export declare const getCurrentDeviceLabel: () => string | undefined;
4471
4477
 
4472
4478
  export declare const getCustomerId: () => "" | `${string}-${string}-${string}-${string}-${string}`;
4473
4479
 
4480
+ export declare const getDefaultVideoConstraints: () => MediaTrackConstraintSet;
4481
+
4474
4482
  export declare const getDeviceList: () => JMediaDeviceInfo[];
4475
4483
 
4476
4484
  export declare const getDeviceListState: () => DeviceStore & {
@@ -4582,6 +4590,11 @@ export declare const getStateMachineIdActions: (credentialId: UUID) => {
4582
4590
 
4583
4591
  export declare const getStateMachineInstance: () => Actor<ReturnType<typeof generateStateMachineFromCredentials>>;
4584
4592
 
4593
+ export declare const getStateMachineStartScreenActions: () => {
4594
+ readonly Start: "start-screen-start";
4595
+ readonly Proceed: "start-screen-proceed";
4596
+ };
4597
+
4585
4598
  export declare const getToken: () => TokenState;
4586
4599
 
4587
4600
  export declare const getTransactionId: () => `${string}-${string}-${string}-${string}-${string}`;
@@ -4960,6 +4973,7 @@ export declare class JumioSdkAutocaptureProviderComponent extends BaseComponent
4960
4973
 
4961
4974
  export declare class JumioSdkAutocaptureService {
4962
4975
  #private;
4976
+ private static readonly WASM_MODULE_INIT_FALLBACK_MS;
4963
4977
  readonly pose$: Observable<AutocaptureDocPose | undefined>;
4964
4978
  readonly videoResolution$: Observable<AutocaptureVideoResolution | undefined>;
4965
4979
  readonly docFinder$: Observable<AutocaptureStateDocFinderPosition>;
@@ -5243,7 +5257,7 @@ export declare class JumioSdkMessageService {
5243
5257
  showMessageIfPossible(message: JumioSdkMessage): void;
5244
5258
  clearMessage(): void;
5245
5259
  closeActiveClosableMessage(): void;
5246
- closeActiveClosableMessageById(id: JumioSdkMessageId): void;
5260
+ closeActiveClosableMessageById(...ids: JumioSdkMessageId[]): void;
5247
5261
  getMessage(): JumioSdkMessage | undefined;
5248
5262
  }
5249
5263
 
@@ -6151,7 +6165,7 @@ export declare enum LogLevel {
6151
6165
  None = "none"
6152
6166
  }
6153
6167
 
6154
- export declare enum ManualCaptureFallbackReason {
6168
+ declare enum ManualCaptureFallbackReason {
6155
6169
  ModuleLoadingError = "module-loading-error",
6156
6170
  ModuleInitializationError = "module-initialization-error",
6157
6171
  WorkerCrashed = "worker-crashed",
@@ -6208,7 +6222,9 @@ export declare class MessageDetailsComponent extends BaseComponent {
6208
6222
  export declare interface MockedDeviceIdConstraint {
6209
6223
  constraints: {
6210
6224
  video: {
6211
- deviceId: string;
6225
+ deviceId: {
6226
+ exact: string;
6227
+ };
6212
6228
  };
6213
6229
  };
6214
6230
  }
@@ -6520,7 +6536,9 @@ export declare const recreateStateMachine: ({ credentials, setWorkflowStepCallba
6520
6536
  type: "setWorkflowStep";
6521
6537
  params: NavigationStep;
6522
6538
  }, never, never, {
6523
- step: VirtualStep;
6539
+ step: import("../../../types/src/index.js").VirtualStep.Setup | import("../../../types/src/index.js").VirtualStep.Finish | {
6540
+ start: StartStep;
6541
+ };
6524
6542
  activeScreen: ActiveScreen;
6525
6543
  }, string, NonReducibleUnknown, NonReducibleUnknown, EventObject, MetaObject, {
6526
6544
  readonly id: "@jumio/websdk workflow state machine";
@@ -6535,15 +6553,27 @@ readonly on: {
6535
6553
  readonly "step-navigation-previous-step": `${string}-${string}-${string}-${string}-${string}`;
6536
6554
  };
6537
6555
  };
6538
- readonly setup: {
6556
+ readonly start: {
6557
+ readonly initial: import("../../../types/src/index.js").StartStep.Consent;
6558
+ readonly states: {
6559
+ readonly "start-consent": {
6539
6560
  readonly on: {
6540
- readonly "step-navigation-next-step": import("../../../types/src/index.js").VirtualStep.Start;
6561
+ readonly "start-screen-proceed": import("../../../types/src/index.js").StartStep.Finish;
6562
+ };
6563
+ };
6564
+ readonly "start-finish": {
6565
+ readonly type: "final";
6541
6566
  };
6542
6567
  };
6543
- readonly start: {
6544
6568
  readonly on: {
6545
6569
  readonly "step-navigation-next-step": `${string}-${string}-${string}-${string}-${string}`;
6546
6570
  };
6571
+ readonly onDone: `${string}-${string}-${string}-${string}-${string}`;
6572
+ };
6573
+ readonly setup: {
6574
+ readonly on: {
6575
+ readonly "step-navigation-next-step": import("../../../types/src/index.js").VirtualStep.Start;
6576
+ };
6547
6577
  };
6548
6578
  };
6549
6579
  readonly entry: ActionFunction<MachineContext, AnyEventObject, AnyEventObject, undefined, never, {
@@ -6994,6 +7024,15 @@ export declare class StartCaptureEvent extends CustomEvent<void> {
6994
7024
  constructor();
6995
7025
  }
6996
7026
 
7027
+ export declare enum StartStep {
7028
+ Consent = "start-consent",
7029
+ Finish = "start-finish"
7030
+ }
7031
+
7032
+ export declare interface StateMachineCredentialIdLike {
7033
+ credentialId: UUID;
7034
+ }
7035
+
6997
7036
  export declare interface StateMachineSnapshotValue {
6998
7037
  step: Record<UUID, string> | string;
6999
7038
  activeScreen: ActiveScreen;