onfido-sdk-ui 14.46.1 → 14.47.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.23.3
13
+ Version: 2.23.5
14
14
  License: null
15
15
  Private: false
16
16
  Description: A shared library to use in various capture packages
@@ -236,7 +236,7 @@ SOFTWARE.
236
236
  ---
237
237
 
238
238
  Name: @onfido/sdk-analytics
239
- Version: 0.0.88
239
+ Version: 0.0.110
240
240
  License: null
241
241
  Private: false
242
242
  Description: Contracts for Onfido in-house analytics
@@ -273,4 +273,12 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
273
273
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
274
274
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
275
275
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
276
- SOFTWARE.
276
+ SOFTWARE.
277
+
278
+ ---
279
+
280
+ Name: @onfido/capture-contract
281
+ Version: 0.0.0-feat-v2.1911725
282
+ License: null
283
+ Private: false
284
+ Description: Contracts for the SDKs and modules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onfido-sdk-ui",
3
- "version": "14.46.1",
3
+ "version": "14.47.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": {
@@ -0,0 +1,70 @@
1
+ export type DocumentType = 'driving_licence' | 'national_identity_card' | 'residence_permit' | 'passport' | 'passport_card';
2
+ export type DocumentTypeGeneric = 'generic_document';
3
+ export type DocumentCountrySelection = {
4
+ documentType: DocumentType;
5
+ issuingCountry: string;
6
+ };
7
+ export type DocumentAllSelection = {
8
+ documentType: DocumentType;
9
+ allCountries: true;
10
+ };
11
+ export type DocumentGenericSelection = {
12
+ documentType: DocumentTypeGeneric;
13
+ id: string;
14
+ };
15
+ export type DocumentSelection = DocumentCountrySelection | DocumentAllSelection | DocumentGenericSelection;
16
+ export type DocumentSelectionFilter = {
17
+ include?: DocumentSelection[];
18
+ exclude?: DocumentSelection[];
19
+ extend?: GenericDocumentType[];
20
+ };
21
+ export type GenericDocumentType = {
22
+ id: string;
23
+ title: string;
24
+ subTitle: string;
25
+ country: string;
26
+ pages: number;
27
+ };
28
+ export type DocumentModuleConfiguration = {
29
+ filter?: DocumentSelectionFilter;
30
+ /**
31
+ * @deprecated
32
+ */
33
+ hideCountrySelection?: boolean;
34
+ uploadFallback?: boolean;
35
+ };
36
+ export type DocumentModuleInput = {
37
+ preferredUserCountry?: string;
38
+ taskId: string;
39
+ };
40
+ export type DocumentSideOutput = {
41
+ id: string;
42
+ type?: string;
43
+ };
44
+ export type Side = 'front' | 'back';
45
+ export type DocumentIds = {
46
+ front?: DocumentSideOutput;
47
+ back?: DocumentSideOutput;
48
+ front_video?: DocumentSideOutput;
49
+ back_video?: DocumentSideOutput;
50
+ };
51
+ export type DocumentModuleOutput = {
52
+ type: string;
53
+ sides: DocumentIds;
54
+ };
55
+ export type EnabledDocumentType = {
56
+ country: string;
57
+ document_type: string;
58
+ };
59
+ export type DocumentFeatureFlags = {
60
+ auto_capture_enabled_documents: EnabledDocumentType[];
61
+ auto_capture_timeout_ms?: number;
62
+ enable_auto_capture_doc_capture?: boolean;
63
+ enable_js_camera_doc_capture?: boolean;
64
+ max_total_retries?: number;
65
+ enable_native_camera_fallback?: boolean;
66
+ enable_passport_card?: boolean;
67
+ enable_photon?: boolean;
68
+ enable_photon_doc_selection?: boolean;
69
+ enable_iq_experiment?: boolean;
70
+ };
@@ -0,0 +1,16 @@
1
+ import type { Empty } from './Common';
2
+ export type FaceModuleConfiguration = {
3
+ showIntro?: boolean;
4
+ };
5
+ type FaceModuleVariant = 'standard';
6
+ export type FaceModuleInput = Empty;
7
+ export type FaceModuleOutput = {
8
+ id: string;
9
+ variant: FaceModuleVariant;
10
+ };
11
+ export type FaceFeatureFlags = {
12
+ sign_upload?: boolean;
13
+ passive_signals_on_upload?: boolean;
14
+ enable_native_camera_fallback?: boolean;
15
+ };
16
+ export {};
@@ -0,0 +1,27 @@
1
+ export type FaceMotionModuleConfiguration = {
2
+ recordAudio?: boolean;
3
+ showIntro?: boolean;
4
+ };
5
+ type FaceMotionVariantType = 'motion';
6
+ export type EncryptedBiometricTokenType = {
7
+ type: 'encrypted_biometric_token';
8
+ value: string;
9
+ };
10
+ export type FaceMotionModuleInput = {
11
+ encryptedBiometricToken?: EncryptedBiometricTokenType[];
12
+ };
13
+ export type FaceMotionModuleOutput = {
14
+ id: string;
15
+ variant: FaceMotionVariantType;
16
+ };
17
+ export type FaceMotionFeatureFlags = {
18
+ supported: boolean;
19
+ sign_upload?: boolean;
20
+ snapshot_photo?: boolean;
21
+ min_eye_openness?: number;
22
+ passive_signals_on_upload?: boolean;
23
+ video_settings: {
24
+ webm_mime_type_preference: string[];
25
+ };
26
+ };
27
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { Empty } from './Common';
2
+ export type FaceVideoModuleConfiguration = {
3
+ showIntro?: boolean;
4
+ showConfirmation?: boolean;
5
+ };
6
+ type FaceVideoModuleVariant = 'video';
7
+ export type FaceVideoModuleInput = Empty;
8
+ export type FaceVideoModuleOutput = {
9
+ id: string;
10
+ variant: FaceVideoModuleVariant;
11
+ };
12
+ export type FaceVideoFeatureFlags = {
13
+ sign_upload?: boolean;
14
+ passive_signals_on_upload?: boolean;
15
+ webm_mime_type_preference: string[];
16
+ photo_capture_fallback?: boolean;
17
+ };
18
+ export {};
@@ -1,88 +0,0 @@
1
- export type DocumentType =
2
- | 'driving_licence'
3
- | 'national_identity_card'
4
- | 'residence_permit'
5
- | 'passport'
6
- | 'passport_card'
7
-
8
- export type DocumentTypeGeneric = 'generic_document'
9
-
10
- export type DocumentCountrySelection = {
11
- documentType: DocumentType
12
- issuingCountry: string
13
- }
14
-
15
- export type DocumentAllSelection = {
16
- documentType: DocumentType
17
- allCountries: true
18
- }
19
-
20
- export type DocumentGenericSelection = {
21
- documentType: DocumentTypeGeneric
22
- id: string
23
- }
24
-
25
- export type DocumentSelection =
26
- | DocumentCountrySelection
27
- | DocumentAllSelection
28
- | DocumentGenericSelection
29
-
30
- export type DocumentSelectionFilter = {
31
- include?: DocumentSelection[]
32
- exclude?: DocumentSelection[]
33
- }
34
-
35
- export type GenericDocumentType = {
36
- id: string
37
- title: string
38
- subTitle: string
39
- country: string
40
- pages: number
41
- }
42
-
43
- export type DocumentModuleConfiguration = {
44
- filter?: DocumentSelectionFilter
45
- extend?: GenericDocumentType[]
46
- hideCountrySelection?: boolean
47
- uploadFallback?: boolean
48
- }
49
-
50
- export type DocumentModuleInput = {
51
- preferredUserCountry?: string
52
- }
53
-
54
- export type DocumentSideOutput = {
55
- id: string
56
- type?: string
57
- }
58
-
59
- export type Side = 'front' | 'back'
60
-
61
- export type DocumentIds = {
62
- front?: DocumentSideOutput,
63
- back?: DocumentSideOutput,
64
- front_video?: DocumentSideOutput,
65
- back_video?: DocumentSideOutput,
66
- }
67
-
68
- export type DocumentModuleOutput = {
69
- type: string
70
- sides: DocumentIds
71
- }
72
-
73
- export type EnabledDocumentType = {
74
- country: string
75
- document_type: string
76
- }
77
-
78
- export type DocumentFeatureFlags = {
79
- auto_capture_enabled_documents: EnabledDocumentType[]
80
- auto_capture_timeout_ms?: number
81
- enable_auto_capture_doc_capture?: boolean
82
- enable_js_camera_doc_capture?: boolean
83
- max_total_retries?: number
84
- enable_native_camera_fallback?: boolean
85
- enable_passport_card?: boolean
86
- enable_photon?: boolean
87
- enable_iq_experiment?: boolean
88
- }
@@ -1,19 +0,0 @@
1
- export type FaceModuleConfiguration = {
2
- showIntro?: boolean
3
- useMultipleSelfieCapture?: boolean
4
- }
5
-
6
- type FaceModuleVariant = 'standard';
7
-
8
- export type FaceModuleInput = {}
9
-
10
- export type FaceModuleOutput = {
11
- id: string
12
- variant: FaceModuleVariant
13
- }
14
-
15
- export type FaceFeatureFlags = {
16
- sign_upload?: boolean
17
- passive_signals_on_upload?: boolean
18
- enable_native_camera_fallback?: boolean
19
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }