onfido-sdk-ui 14.39.2 → 14.40.0

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.
package/LICENSE CHANGED
@@ -10,7 +10,7 @@ at https://documentation.onfido.com/sdk/sdk-licenses/.
10
10
  ------------------
11
11
 
12
12
  Name: @onfido/capture-shared
13
- Version: 2.8.0
13
+ Version: 2.11.7
14
14
  License: null
15
15
  Private: false
16
16
  Description: A shared library to use in various capture packages
@@ -235,6 +235,14 @@ SOFTWARE.
235
235
 
236
236
  ---
237
237
 
238
+ Name: @onfido/sdk-analytics
239
+ Version: 0.0.44
240
+ License: null
241
+ Private: false
242
+ Description: Contracts for Onfido in-house analytics
243
+
244
+ ---
245
+
238
246
  Name: js-cookie
239
247
  Version: 3.0.5
240
248
  License: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onfido-sdk-ui",
3
- "version": "14.39.2",
3
+ "version": "14.40.0",
4
4
  "description": "JavaScript SDK view layer for Onfido identity verification",
5
5
  "author": "Onfido Customer Support <support@onfido.com> (https://documentation.onfido.com/sdk/web/)",
6
6
  "repository": {
@@ -83,4 +83,6 @@ export type DocumentFeatureFlags = {
83
83
  max_total_retries?: number
84
84
  enable_native_camera_fallback?: boolean
85
85
  enable_passport_card?: boolean
86
+ enable_photon?: boolean
87
+ enable_iq_experiment?: boolean
86
88
  }
@@ -5,6 +5,8 @@ export type FaceModuleConfiguration = {
5
5
 
6
6
  type FaceModuleVariant = 'standard';
7
7
 
8
+ export type FaceModuleInput = {}
9
+
8
10
  export type FaceModuleOutput = {
9
11
  id: string
10
12
  variant: FaceModuleVariant
@@ -12,5 +14,6 @@ export type FaceModuleOutput = {
12
14
 
13
15
  export type FaceFeatureFlags = {
14
16
  sign_upload?: boolean
17
+ passive_signals_on_upload?: boolean
15
18
  enable_native_camera_fallback?: boolean
16
19
  }
@@ -0,0 +1,22 @@
1
+ export type FaceMotionModuleConfiguration = {
2
+ recordAudio?: boolean
3
+ showIntro?: boolean
4
+ }
5
+
6
+ type FaceMotionVariantType = 'motion';
7
+
8
+ export type FaceMotionModuleInput = {}
9
+
10
+ export type FaceMotionModuleOutput = {
11
+ id: string
12
+ variant: FaceMotionVariantType
13
+ }
14
+
15
+ export type FaceMotionFeatureFlags = {
16
+ supported: boolean
17
+ sign_upload?: boolean
18
+ passive_signals_on_upload?: boolean
19
+ video_settings: {
20
+ webm_mime_type_preference: string[]
21
+ }
22
+ }
@@ -0,0 +1,20 @@
1
+ export type FaceVideoModuleConfiguration = {
2
+ photoCaptureFallback?: boolean
3
+ showVideoConfirmation?: boolean
4
+ showIntro?: boolean
5
+ }
6
+
7
+ type FaceVideoModuleVariant = 'video';
8
+
9
+ export type FaceVideoModuleInput = {}
10
+
11
+ export type FaceVideoModuleOutput = {
12
+ id: string
13
+ variant: FaceVideoModuleVariant
14
+ }
15
+
16
+ export type FaceVideoFeatureFlags = {
17
+ sign_upload?: boolean
18
+ passive_signals_on_upload?: boolean
19
+ webm_mime_type_preference: string[]
20
+ }
@@ -1,5 +1,7 @@
1
1
  import type { DocumentFeatureFlags } from '../contract/module/DocumentModule';
2
2
  import type { FaceFeatureFlags } from '../contract/module/FaceModule';
3
+ import type { FaceVideoFeatureFlags } from '../contract/module/FaceVideoModule';
4
+ import type { FaceMotionFeatureFlags } from '../contract/module/FaceMotionModule';
3
5
  export type LogLevels = 'debug' | 'info' | 'warning' | 'error' | 'fatal';
4
6
  export type SdkFeatures = {
5
7
  enable_require_applicant_consents?: boolean;
@@ -7,6 +9,8 @@ export type SdkFeatures = {
7
9
  enable_in_house_analytics?: boolean;
8
10
  enable_performance_analytics?: boolean;
9
11
  enable_document_support_rules?: boolean;
12
+ disable_essential_analytics?: boolean;
13
+ analytics_v2_enabled?: boolean;
10
14
  web_allow_source_only_media_callback?: boolean;
11
15
  web_enable_cross_device_verification?: boolean;
12
16
  web_enable_js_camera_poa?: boolean;
@@ -21,6 +25,8 @@ export type ExperimentalFeatures = {
21
25
  export type FeatureFlags = {
22
26
  document_capture?: DocumentFeatureFlags;
23
27
  face_selfie_capture?: FaceFeatureFlags;
28
+ face_video_capture?: FaceVideoFeatureFlags;
29
+ motion_capture?: FaceMotionFeatureFlags;
24
30
  experimental_features?: ExperimentalFeatures;
25
31
  sdk_features?: SdkFeatures;
26
32
  device_intelligence?: {
@@ -1,3 +1,4 @@
1
+ import type { CrossDeviceMethod } from './CrossDeviceConnect.types';
1
2
  import type { FeatureFlags } from './FeatureFlags';
2
3
  export type ModuleError = {
3
4
  type: 'no_camera';
@@ -13,7 +14,7 @@ export type ModuleUnsupported = {
13
14
  data?: unknown;
14
15
  };
15
16
  export type Outputs = ModuleFinish | ModuleUnsupported;
16
- export type Output = unknown | ModuleError;
17
+ export type Output = object | object[];
17
18
  export type ModuleFinishOptions = {
18
19
  complete?: boolean;
19
20
  };
@@ -27,6 +28,7 @@ export type Configuration<T = unknown> = {
27
28
  workflowRunId?: string;
28
29
  };
29
30
  export type Input = Record<string, unknown>;
31
+ export type Empty = Record<string, never>;
30
32
  export type LocaleDirection = 'ltr' | 'rtl';
31
33
  export type TranslationData<T> = T & {
32
34
  meta?: {
@@ -44,6 +46,9 @@ export type Theme = {
44
46
  config?: ThemeConfig;
45
47
  };
46
48
  export type Optional<T> = undefined | T;
49
+ export type RecursivePartial<T> = {
50
+ [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
51
+ };
47
52
  export declare enum Platform {
48
53
  WEB = "web",
49
54
  IOS = "ios",
@@ -86,6 +91,8 @@ export type ClientConfiguration = {
86
91
  theme?: Theme;
87
92
  language?: string;
88
93
  translations?: Translations;
94
+ workflowId: string | undefined;
95
+ workflowVersionId: number | undefined;
89
96
  analytics: {
90
97
  enabled: boolean;
91
98
  anonymousUuid: string;
@@ -106,6 +113,7 @@ export type ClientConfiguration = {
106
113
  };
107
114
  crossDevice: {
108
115
  verification?: boolean;
116
+ linkMethods: CrossDeviceMethod[];
109
117
  };
110
118
  enterpriseFeatures?: EnterpriseFeatures;
111
119
  crossDeviceClientIntroProductName?: string;