onfido-sdk-ui 14.35.1 → 14.37.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.4.6
13
+ Version: 2.5.1
14
14
  License: null
15
15
  Private: false
16
16
  Description: A shared library to use in various capture packages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onfido-sdk-ui",
3
- "version": "14.35.1",
3
+ "version": "14.37.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": {
package/types/Onfido.d.ts CHANGED
@@ -215,6 +215,8 @@ declare type StepDefinition = {
215
215
  export declare type StudioSdkParameters = {
216
216
  workflowRunId: string;
217
217
  disableWelcomeScreen?: boolean;
218
+ onBiometricTokenGenerated?: (customerUserHash: string, biometricToken: string) => void;
219
+ onBiometricTokenRequested?: (customerUserHash: string) => Promise<string>;
218
220
  } & TokenParameters;
219
221
 
220
222
  declare type SubmitDocument = {
@@ -47,7 +47,9 @@ export type DocumentModuleConfiguration = {
47
47
  uploadFallback?: boolean
48
48
  }
49
49
 
50
- export type DocumentModuleInput = Record<string, unknown>
50
+ export type DocumentModuleInput = {
51
+ preferredUserCountry?: string
52
+ }
51
53
 
52
54
  export type DocumentSideOutput = {
53
55
  id: string
@@ -56,9 +58,12 @@ export type DocumentSideOutput = {
56
58
 
57
59
  export type Side = 'front' | 'back'
58
60
 
59
- export type DocumentIds = Partial<
60
- Record<`${Side}` | `${Side}_video`, DocumentSideOutput>
61
- >
61
+ export type DocumentIds = {
62
+ front?: DocumentSideOutput,
63
+ back?: DocumentSideOutput,
64
+ front_video?: DocumentSideOutput,
65
+ back_video?: DocumentSideOutput,
66
+ }
62
67
 
63
68
  export type DocumentModuleOutput = {
64
69
  type: string
@@ -77,4 +82,5 @@ export type DocumentFeatureFlags = {
77
82
  enable_js_camera_doc_capture?: boolean
78
83
  max_total_retries?: number
79
84
  enable_native_camera_fallback?: boolean
85
+ enable_passport_card?: boolean
80
86
  }
@@ -3,9 +3,11 @@ export type FaceModuleConfiguration = {
3
3
  useMultipleSelfieCapture?: boolean
4
4
  }
5
5
 
6
+ type FaceModuleVariant = 'standard';
7
+
6
8
  export type FaceModuleOutput = {
7
9
  id: string
8
- variant: 'standard'
10
+ variant: FaceModuleVariant
9
11
  }
10
12
 
11
13
  export type FaceFeatureFlags = {
@@ -9,6 +9,7 @@ export type SdkFeatures = {
9
9
  enable_document_support_rules?: boolean;
10
10
  web_allow_source_only_media_callback?: boolean;
11
11
  web_enable_cross_device_verification?: boolean;
12
+ web_enable_js_camera_poa?: boolean;
12
13
  logger?: {
13
14
  enabled?: boolean;
14
15
  levels?: LogLevels[];
@@ -45,6 +45,8 @@ export type TokenParameters = {
45
45
  export type StudioSdkParameters = {
46
46
  workflowRunId: string;
47
47
  disableWelcomeScreen?: boolean;
48
+ onBiometricTokenGenerated?: (customerUserHash: string, biometricToken: string) => void;
49
+ onBiometricTokenRequested?: (customerUserHash: string) => Promise<string>;
48
50
  } & TokenParameters;
49
51
  export type ClassicSdkParameters = {
50
52
  steps: LegacyStepDefinition[];
@@ -21,7 +21,7 @@ export type ExecutorMethod = 'bootstrap' | 'ping' | 'start';
21
21
  export type CrossDeviceExecutorMethod = 'crossDevice.update';
22
22
  export type RunnerMethod = 'captureModule.finish' | 'captureModule.error' | 'captureModule.unsupported' | 'crossDevice.start' | 'crossDevice.preload' | 'crossDevice.verify' | 'crossDevice.abort' | 'analytics.send' | 'analytics.userAnalytics' | 'navigation.back' | 'navigation.exit' | 'navigation.externalLink' | 'customCallback.invoke' | 'passkey.create' | 'passkey.get';
23
23
  export type Configuration<T = unknown> = {
24
- translations: T;
24
+ translations?: T;
25
25
  theme?: Theme;
26
26
  language?: string;
27
27
  workflowRunId?: string;