onfido-sdk-ui 14.51.0 → 14.53.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 +2 -2
- package/package.json +1 -1
- package/types/Onfido.d.ts +2 -2
- package/types/shared/Error.d.ts +4 -1
- package/types/shared/FeatureFlags.d.ts +19 -16
- package/types/shared/Types.d.ts +2 -1
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.
|
|
13
|
+
Version: 2.24.0
|
|
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.
|
|
239
|
+
Version: 0.0.129
|
|
240
240
|
License: null
|
|
241
241
|
Private: false
|
|
242
242
|
Description: Contracts for Onfido in-house analytics
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onfido-sdk-ui",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.53.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CaptureRunEvents } from './Events';
|
|
2
2
|
|
|
3
|
-
export declare const backwardCompatibility: (parameter: SdkParameters) =>
|
|
3
|
+
export declare const backwardCompatibility: (parameter: SdkParameters) => SdkParameters;
|
|
4
4
|
|
|
5
5
|
declare type CaptureModule = HostedModule | ExternalModule;
|
|
6
6
|
|
|
@@ -203,7 +203,7 @@ declare type Score = {
|
|
|
203
203
|
threshold: number;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
declare type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort' | 'workflow_abandoned' | 'workflow_error' | 'workflow_input_error';
|
|
206
|
+
declare type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'lazy_component_load_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort' | 'workflow_abandoned' | 'workflow_error' | 'workflow_input_error' | 'cross_device_desktop_unavailable' | 'cross_device_connection_lost';
|
|
207
207
|
|
|
208
208
|
export declare type SdkParameters = StudioSdkParameters | ClassicSdkParameters | CrossDeviceSdkParameters;
|
|
209
209
|
|
package/types/shared/Error.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ export declare enum SdkErrorLevel {
|
|
|
3
3
|
EXTERNAL = "external",
|
|
4
4
|
INTERNAL = "internal"
|
|
5
5
|
}
|
|
6
|
-
export type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort' | 'workflow_abandoned' | 'workflow_error' | 'workflow_input_error';
|
|
6
|
+
export type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'lazy_component_load_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort' | 'workflow_abandoned' | 'workflow_error' | 'workflow_input_error' | 'cross_device_desktop_unavailable' | 'cross_device_connection_lost';
|
|
7
7
|
export declare const isSdkError: (error: unknown) => boolean;
|
|
8
8
|
export type SdkErrors = {
|
|
9
9
|
type: SdkErrorTypes;
|
|
10
10
|
message: string;
|
|
11
11
|
level: SdkErrorLevel;
|
|
12
12
|
};
|
|
13
|
+
export declare const CrossDeviceDesktopUnavailable: SdkErrors;
|
|
14
|
+
export declare const CrossDeviceConnectionLost: SdkErrors;
|
|
13
15
|
export declare const CrossDeviceRestartError: SdkErrors;
|
|
14
16
|
export declare const CrossDeviceDesktopError: SdkErrors;
|
|
15
17
|
export declare const CrossDeviceVerificationInvalidError: SdkErrors;
|
|
@@ -31,6 +33,7 @@ export declare const NoCameraError: SdkErrors;
|
|
|
31
33
|
export declare const UserConsentDeniedError: SdkErrors;
|
|
32
34
|
export declare const ApiError: SdkErrors;
|
|
33
35
|
export declare const UncaughtFetchError: SdkErrors;
|
|
36
|
+
export declare const LazyComponentLoadError: SdkErrors;
|
|
34
37
|
export type ErrorModuleConfiguration = Configuration & {
|
|
35
38
|
type: SdkErrorTypes;
|
|
36
39
|
};
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
export type LogLevels = 'debug' | 'info' | 'warning' | 'error' | 'fatal';
|
|
2
2
|
export type SdkFeatures = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
web_disable_has_camera_check?: boolean;
|
|
3
|
+
analytics_v2_enabled?: boolean;
|
|
4
|
+
disable_behavioural_analytics?: boolean;
|
|
6
5
|
disable_cross_device_copy_link?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
enable_document_support_rules?: boolean;
|
|
6
|
+
disable_cross_device_sms?: boolean;
|
|
7
|
+
disable_essential_analytics?: boolean;
|
|
10
8
|
enable_cobrand?: boolean;
|
|
9
|
+
enable_document_support_rules?: boolean;
|
|
10
|
+
enable_in_house_analytics?: boolean;
|
|
11
11
|
enable_logo_cobrand?: boolean;
|
|
12
|
+
enable_performance_analytics?: boolean;
|
|
13
|
+
enable_require_applicant_consents?: boolean;
|
|
12
14
|
hide_onfido_logo?: boolean;
|
|
13
|
-
disable_essential_analytics?: boolean;
|
|
14
|
-
disable_behavioural_analytics?: boolean;
|
|
15
|
-
analytics_v2_enabled?: boolean;
|
|
16
|
-
web_allow_source_only_media_callback?: boolean;
|
|
17
|
-
web_enable_cross_device_verification?: boolean;
|
|
18
|
-
web_enable_js_camera_poa?: boolean;
|
|
19
|
-
web_enable_cross_device_qr_refresh?: boolean;
|
|
20
|
-
web_enable_cross_device_confirmation?: boolean;
|
|
21
|
-
web_enable_pre_init_permission_check?: boolean;
|
|
22
|
-
use_customized_api_requests?: boolean;
|
|
23
15
|
logger?: {
|
|
24
16
|
enabled?: boolean;
|
|
25
17
|
levels?: LogLevels[];
|
|
26
18
|
};
|
|
19
|
+
use_customized_api_requests?: boolean;
|
|
20
|
+
web_allow_source_only_media_callback?: boolean;
|
|
21
|
+
web_cross_device_qr_refresh_timeout?: number;
|
|
22
|
+
web_disable_has_camera_check?: boolean;
|
|
23
|
+
web_enable_cross_device_confirmation?: boolean;
|
|
24
|
+
web_enable_cross_device_qr_refresh?: boolean;
|
|
25
|
+
web_enable_cross_device_reconnect?: boolean;
|
|
26
|
+
web_enable_cross_device_verification?: boolean;
|
|
27
|
+
web_enable_js_camera_poa?: boolean;
|
|
28
|
+
web_enable_pre_init_permission_check?: boolean;
|
|
29
|
+
web_enable_shared_iframe?: boolean;
|
|
27
30
|
};
|
|
28
31
|
export type FeatureFlags = {
|
|
29
32
|
sdk_features?: SdkFeatures;
|
package/types/shared/Types.d.ts
CHANGED
|
@@ -18,9 +18,10 @@ export type Output = object | object[];
|
|
|
18
18
|
export type ModuleFinishOptions = {
|
|
19
19
|
complete?: boolean;
|
|
20
20
|
};
|
|
21
|
+
export type SharedFrameMethod = 'moduleVisibility' | 'loaderVisibility' | 'tearDown' | 'waitForModule';
|
|
21
22
|
export type ExecutorMethod = 'bootstrap' | 'ping' | 'start';
|
|
22
23
|
export type CrossDeviceExecutorMethod = 'crossDevice.update' | 'crossDevice.abort';
|
|
23
|
-
export type RunnerMethod = 'captureModule.finish' | 'captureModule.error' | 'captureModule.unsupported' | 'crossDevice.start' | 'crossDevice.preload' | 'crossDevice.verify' | 'crossDevice.abort' | 'crossDevice.regenerate' | 'analytics.send' | 'analyticsV2.send' | 'analytics.userAnalytics' | 'navigation.back' | 'navigation.exit' | 'navigation.externalLink' | 'navigation.closeExternalLink' | 'customCallback.invoke' | 'passkey.create' | 'passkey.get';
|
|
24
|
+
export type RunnerMethod = 'captureModule.finish' | 'captureModule.error' | 'captureModule.unsupported' | 'crossDevice.start' | 'crossDevice.preload' | 'crossDevice.verify' | 'crossDevice.abort' | 'crossDevice.regenerate' | 'analytics.send' | 'analyticsV2.send' | 'analytics.userAnalytics' | 'navigation.back' | 'navigation.exit' | 'navigation.externalLink' | 'navigation.closeExternalLink' | 'customCallback.invoke' | 'passkey.create' | 'passkey.get' | 'crossDevice.browserReload';
|
|
24
25
|
export type Configuration<T = unknown> = {
|
|
25
26
|
translations?: T;
|
|
26
27
|
theme?: Theme;
|