@regulaforensics/idv-capture-web 2.5.218-nightly → 3.1.220-rc
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/dist/index.d.ts +67 -67
- package/dist/main.iife.js +34 -34
- package/dist/main.js +6049 -5982
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
export declare type ApiKeyConnectionConfig = {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
ttl?: number;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
declare class BaseConfigureError extends BaseError {
|
|
8
|
+
private static readonly MODULE;
|
|
9
|
+
private static readonly ERROR_ENUM_NAME;
|
|
10
|
+
private static readonly SHORT_CODE;
|
|
11
|
+
constructor({ errorCode, message, underlyingError, underlyingBaseError, }: {
|
|
12
|
+
errorCode: ConfigureError;
|
|
13
|
+
message?: string;
|
|
14
|
+
underlyingError?: string;
|
|
15
|
+
underlyingBaseError?: BaseError;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
1
19
|
declare class BaseDeinitializationError extends BaseError {
|
|
2
20
|
private static readonly MODULE;
|
|
3
21
|
private static readonly ERROR_ENUM_NAME;
|
|
@@ -62,24 +80,24 @@ declare class BasePrepareWorkflowError extends BaseError {
|
|
|
62
80
|
});
|
|
63
81
|
}
|
|
64
82
|
|
|
65
|
-
declare class
|
|
83
|
+
declare class BaseTokenInitializationError extends BaseError {
|
|
66
84
|
private static readonly MODULE;
|
|
67
85
|
private static readonly ERROR_ENUM_NAME;
|
|
68
86
|
private static readonly SHORT_CODE;
|
|
69
87
|
constructor({ errorCode, message, underlyingError, underlyingBaseError, }: {
|
|
70
|
-
errorCode:
|
|
88
|
+
errorCode: TokenInitializeError;
|
|
71
89
|
message?: string;
|
|
72
90
|
underlyingError?: string;
|
|
73
91
|
underlyingBaseError?: BaseError;
|
|
74
92
|
});
|
|
75
93
|
}
|
|
76
94
|
|
|
77
|
-
declare class
|
|
95
|
+
declare class BaseWorkflowError extends BaseError {
|
|
78
96
|
private static readonly MODULE;
|
|
79
97
|
private static readonly ERROR_ENUM_NAME;
|
|
80
98
|
private static readonly SHORT_CODE;
|
|
81
99
|
constructor({ errorCode, message, underlyingError, underlyingBaseError, }: {
|
|
82
|
-
errorCode:
|
|
100
|
+
errorCode: WorkflowError;
|
|
83
101
|
message?: string;
|
|
84
102
|
underlyingError?: string;
|
|
85
103
|
underlyingBaseError?: BaseError;
|
|
@@ -87,38 +105,27 @@ declare class BaseTokenInitializationError extends BaseError {
|
|
|
87
105
|
}
|
|
88
106
|
|
|
89
107
|
export declare type ConfigureCompletion = {
|
|
90
|
-
error?:
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export declare type ConnectionByApiKeyConfig = {
|
|
94
|
-
host: string;
|
|
95
|
-
apiKey: string;
|
|
96
|
-
isSecure?: boolean;
|
|
97
|
-
port?: number;
|
|
98
|
-
deviceDescriptor?: Record<string, unknown>;
|
|
99
|
-
httpRetryCount?: number;
|
|
100
|
-
httpTimeoutMs?: number;
|
|
108
|
+
error?: BaseConfigureError;
|
|
101
109
|
};
|
|
102
110
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
port?: number;
|
|
110
|
-
schema?: string;
|
|
111
|
-
userName: string;
|
|
112
|
-
deviceDescriptor?: {
|
|
113
|
-
ttl?: number;
|
|
114
|
-
} & Record<string, unknown>;
|
|
115
|
-
};
|
|
111
|
+
declare enum ConfigureError {
|
|
112
|
+
CONNECTION_ISSUE = 0,
|
|
113
|
+
CONFIG_MISSED_OR_INVALID = 1,
|
|
114
|
+
INITIALIZATION_REQUIRED = 2,
|
|
115
|
+
SCENARIO_IN_PROGRESS = 3
|
|
116
|
+
}
|
|
116
117
|
|
|
117
118
|
export declare enum ConnectionError {
|
|
118
119
|
HTTP_ISSUE = 0,
|
|
119
120
|
PROVIDER_ERROR = 1
|
|
120
121
|
}
|
|
121
122
|
|
|
123
|
+
export declare type CredentialConnectionConfig = {
|
|
124
|
+
baseUrl: string;
|
|
125
|
+
password: string;
|
|
126
|
+
userName: string;
|
|
127
|
+
};
|
|
128
|
+
|
|
122
129
|
export declare enum DeinitializationError {
|
|
123
130
|
INITIALIZATION_REQUIRED = 0,
|
|
124
131
|
SCENARIO_IN_PROGRESS = 3
|
|
@@ -140,7 +147,7 @@ export declare class IdvIntegrationService {
|
|
|
140
147
|
initialize(config: InitConfig): Promise<{
|
|
141
148
|
error?: BaseInitializationError;
|
|
142
149
|
}>;
|
|
143
|
-
configure(config:
|
|
150
|
+
configure(config: CredentialConnectionConfig | TokenConnectionConfig | ApiKeyConnectionConfig): Promise<ConfigureCompletion | TokenConfigureCompletion>;
|
|
144
151
|
getWorkFlows(params?: WorkflowListRequest): Promise<WorkflowListCompletion>;
|
|
145
152
|
prepareWorkflow({ workflowId }: {
|
|
146
153
|
workflowId: string;
|
|
@@ -160,13 +167,6 @@ export declare type IdvMessageEvent = {
|
|
|
160
167
|
message?: IdvServiceMessages;
|
|
161
168
|
};
|
|
162
169
|
|
|
163
|
-
export declare const IdvModules: {
|
|
164
|
-
readonly LIVENESS: "LIVENESS";
|
|
165
|
-
readonly DOC_READER: "DOC_READER";
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export declare type IdvModulesType = (typeof IdvModules)[keyof typeof IdvModules];
|
|
169
|
-
|
|
170
170
|
export declare enum IdvServiceMessages {
|
|
171
171
|
DID_START_SESSION = "DID_START_SESSION",
|
|
172
172
|
DID_END_SESSION = "DID_END_SESSION",
|
|
@@ -218,25 +218,6 @@ export declare enum PrepareWorkflowError {
|
|
|
218
218
|
SCENARIO_IN_PROGRESS = 4
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
export declare enum ScenarioError {
|
|
222
|
-
INITIALIZATION_REQUIRED = 0,
|
|
223
|
-
PREPARED_REQUIRED = 1,
|
|
224
|
-
START_SESSION_FAILED = 2,
|
|
225
|
-
UNKNOWN_STEP = 3,
|
|
226
|
-
MODULES_ISSUE = 4,
|
|
227
|
-
ALREADY_STARTED = 5,
|
|
228
|
-
INTERNAL_ISSUE = 6
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
declare type ScenarioResults = {
|
|
232
|
-
sessionId?: string;
|
|
233
|
-
finalStep?: {
|
|
234
|
-
id: string;
|
|
235
|
-
name: string;
|
|
236
|
-
final: boolean;
|
|
237
|
-
};
|
|
238
|
-
} & Record<string, any>;
|
|
239
|
-
|
|
240
221
|
export declare enum SessionError {
|
|
241
222
|
HTTP_ISSUE = 0,
|
|
242
223
|
PROVIDER_ERROR = 1,
|
|
@@ -259,20 +240,20 @@ export declare type StartWorkflowConfig = {
|
|
|
259
240
|
locale?: string;
|
|
260
241
|
};
|
|
261
242
|
|
|
262
|
-
declare
|
|
263
|
-
CONNECTION_ISSUE = 0,
|
|
264
|
-
WORKFLOW_ISSUE = 1
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export declare type UrlConfigureCompletion = {
|
|
243
|
+
export declare type TokenConfigureCompletion = {
|
|
268
244
|
workflows: string[];
|
|
269
245
|
error?: BaseTokenInitializationError;
|
|
270
246
|
};
|
|
271
247
|
|
|
272
|
-
export declare type
|
|
248
|
+
export declare type TokenConnectionConfig = {
|
|
273
249
|
url: string;
|
|
274
250
|
};
|
|
275
251
|
|
|
252
|
+
declare enum TokenInitializeError {
|
|
253
|
+
CONNECTION_ISSUE = 0,
|
|
254
|
+
WORKFLOW_ISSUE = 1
|
|
255
|
+
}
|
|
256
|
+
|
|
276
257
|
declare type Workflow = {
|
|
277
258
|
id: string;
|
|
278
259
|
steps: Array<WorkflowStep>;
|
|
@@ -283,14 +264,18 @@ declare type Workflow = {
|
|
|
283
264
|
} & Record<string, any>;
|
|
284
265
|
|
|
285
266
|
export declare type WorkflowCompletion = {
|
|
286
|
-
results?:
|
|
287
|
-
error?:
|
|
267
|
+
results?: WorkflowResult;
|
|
268
|
+
error?: BaseWorkflowError;
|
|
288
269
|
};
|
|
289
270
|
|
|
290
271
|
export declare enum WorkflowError {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
272
|
+
INITIALIZATION_REQUIRED = 0,
|
|
273
|
+
PREPARED_REQUIRED = 1,
|
|
274
|
+
START_SESSION_FAILED = 2,
|
|
275
|
+
UNKNOWN_STEP = 3,
|
|
276
|
+
MODULES_ISSUE = 4,
|
|
277
|
+
ALREADY_STARTED = 5,
|
|
278
|
+
INTERNAL_ISSUE = 6
|
|
294
279
|
}
|
|
295
280
|
|
|
296
281
|
export declare type WorkflowListCompletion = {
|
|
@@ -303,6 +288,21 @@ export declare type WorkflowListRequest = {
|
|
|
303
288
|
skip: number;
|
|
304
289
|
};
|
|
305
290
|
|
|
291
|
+
export declare enum WorkflowPlatformError {
|
|
292
|
+
HTTP_ISSUE = 0,
|
|
293
|
+
PROVIDER_ERROR = 1,
|
|
294
|
+
DECODING_FAILED = 2
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare type WorkflowResult = {
|
|
298
|
+
sessionId?: string;
|
|
299
|
+
finalStep?: {
|
|
300
|
+
id: string;
|
|
301
|
+
name: string;
|
|
302
|
+
final: boolean;
|
|
303
|
+
};
|
|
304
|
+
} & Record<string, any>;
|
|
305
|
+
|
|
306
306
|
declare type WorkflowStep = {
|
|
307
307
|
id: string;
|
|
308
308
|
name: string;
|