onfido-sdk-ui 14.51.0 → 14.52.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 +1 -1
- package/package.json +1 -1
- package/types/Onfido.d.ts +2 -2
- package/types/shared/Error.d.ts +3 -1
- package/types/shared/FeatureFlags.d.ts +2 -0
- package/types/shared/Types.d.ts +1 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onfido-sdk-ui",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.52.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' | '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' | '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;
|
|
@@ -17,7 +17,9 @@ export type SdkFeatures = {
|
|
|
17
17
|
web_enable_cross_device_verification?: boolean;
|
|
18
18
|
web_enable_js_camera_poa?: boolean;
|
|
19
19
|
web_enable_cross_device_qr_refresh?: boolean;
|
|
20
|
+
web_cross_device_qr_refresh_timeout?: number;
|
|
20
21
|
web_enable_cross_device_confirmation?: boolean;
|
|
22
|
+
web_enable_cross_device_reconnect?: boolean;
|
|
21
23
|
web_enable_pre_init_permission_check?: boolean;
|
|
22
24
|
use_customized_api_requests?: boolean;
|
|
23
25
|
logger?: {
|
package/types/shared/Types.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type ModuleFinishOptions = {
|
|
|
20
20
|
};
|
|
21
21
|
export type ExecutorMethod = 'bootstrap' | 'ping' | 'start';
|
|
22
22
|
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';
|
|
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' | 'crossDevice.browserReload';
|
|
24
24
|
export type Configuration<T = unknown> = {
|
|
25
25
|
translations?: T;
|
|
26
26
|
theme?: Theme;
|