onfido-sdk-ui 14.45.2 → 14.46.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/shared/FeatureFlags.d.ts +0 -15
- package/types/shared/Types.d.ts +15 -14
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.46.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": {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type { DocumentFeatureFlags } from '../contract/module/DocumentModule';
|
|
2
|
-
import type { FaceFeatureFlags } from '../contract/module/FaceModule';
|
|
3
|
-
import type { FaceVideoFeatureFlags } from '../contract/module/FaceVideoModule';
|
|
4
|
-
import type { FaceMotionFeatureFlags } from '../contract/module/FaceMotionModule';
|
|
5
1
|
export type LogLevels = 'debug' | 'info' | 'warning' | 'error' | 'fatal';
|
|
6
2
|
export type SdkFeatures = {
|
|
7
3
|
enable_require_applicant_consents?: boolean;
|
|
@@ -27,17 +23,6 @@ export type SdkFeatures = {
|
|
|
27
23
|
levels?: LogLevels[];
|
|
28
24
|
};
|
|
29
25
|
};
|
|
30
|
-
export type ExperimentalFeatures = {
|
|
31
|
-
enable_multi_frame_capture?: boolean;
|
|
32
|
-
};
|
|
33
26
|
export type FeatureFlags = {
|
|
34
|
-
document_capture?: DocumentFeatureFlags;
|
|
35
|
-
face_selfie_capture?: FaceFeatureFlags;
|
|
36
|
-
face_video_capture?: FaceVideoFeatureFlags;
|
|
37
|
-
motion_capture?: FaceMotionFeatureFlags;
|
|
38
|
-
experimental_features?: ExperimentalFeatures;
|
|
39
27
|
sdk_features?: SdkFeatures;
|
|
40
|
-
device_intelligence?: {
|
|
41
|
-
passive_signals?: Record<string, unknown>;
|
|
42
|
-
};
|
|
43
28
|
};
|
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.
|
|
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
24
|
export type Configuration<T = unknown> = {
|
|
25
25
|
translations?: T;
|
|
26
26
|
theme?: Theme;
|
|
@@ -87,34 +87,31 @@ export type UserDetails = {
|
|
|
87
87
|
export type ClientConfiguration = {
|
|
88
88
|
token: string;
|
|
89
89
|
sdkToken: SdkToken;
|
|
90
|
-
featureFlags: FeatureFlags
|
|
90
|
+
featureFlags: FeatureFlags & Partial<Record<string, unknown>>;
|
|
91
91
|
theme?: Theme;
|
|
92
92
|
language?: string;
|
|
93
93
|
translations?: Translations;
|
|
94
|
-
|
|
95
|
-
workflowTaskId?: string | undefined;
|
|
96
|
-
workflowVersionId: number | undefined;
|
|
97
|
-
analytics: {
|
|
94
|
+
analytics?: {
|
|
98
95
|
enabled: boolean;
|
|
99
96
|
anonymousUuid: string;
|
|
100
97
|
sessionUuid: string;
|
|
101
98
|
workflowRunId: string | undefined;
|
|
102
99
|
steps: LegacyStepDefinition[];
|
|
103
|
-
source: {
|
|
104
|
-
platform: string;
|
|
105
|
-
version: string;
|
|
106
|
-
sdk_environment: string;
|
|
107
|
-
distribution_source: string;
|
|
108
|
-
pinned_version?: string;
|
|
109
|
-
};
|
|
110
100
|
referrer?: string;
|
|
111
101
|
domain?: string;
|
|
112
102
|
};
|
|
103
|
+
source: {
|
|
104
|
+
platform: string;
|
|
105
|
+
version: string;
|
|
106
|
+
sdk_environment: string;
|
|
107
|
+
distribution_source: string;
|
|
108
|
+
pinned_version?: string;
|
|
109
|
+
};
|
|
113
110
|
logger: {
|
|
114
111
|
enabled: boolean;
|
|
115
112
|
levels: string[];
|
|
116
113
|
};
|
|
117
|
-
crossDevice
|
|
114
|
+
crossDevice?: {
|
|
118
115
|
verification?: boolean;
|
|
119
116
|
confirmation?: boolean;
|
|
120
117
|
desktopInfo: TrackedEnvironmentData;
|
|
@@ -128,6 +125,7 @@ export type ClientConfiguration = {
|
|
|
128
125
|
};
|
|
129
126
|
export type SdkToken = {
|
|
130
127
|
exp: number;
|
|
128
|
+
sub?: UUID;
|
|
131
129
|
payload: Payload;
|
|
132
130
|
enterpriseFeatures?: TokenEnterpriseFeatures;
|
|
133
131
|
urls: {
|
|
@@ -259,4 +257,7 @@ export type StepDefinition = {
|
|
|
259
257
|
key?: string;
|
|
260
258
|
};
|
|
261
259
|
export type ExternalLinkTarget = 'overlay' | 'browser';
|
|
260
|
+
export type ExternalLinkHandle = {
|
|
261
|
+
window?: Window;
|
|
262
|
+
};
|
|
262
263
|
export {};
|