@regulaforensics/idv-capture-web 2.5.183-nightly → 2.5.184-nightly

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.
@@ -22,7 +22,7 @@ var oc = (e) => {
22
22
  throw s;
23
23
  }, "return" in t && o("return"), i;
24
24
  };
25
- import { B as Zs, r as H2, j as Dm } from "./index-BMHYHF3e.js";
25
+ import { B as Zs, r as H2, j as Dm } from "./index-DZy39UdA.js";
26
26
  var AV = Object.defineProperty, OV = Object.defineProperties, xV = Object.getOwnPropertyDescriptors, Lm = Object.getOwnPropertySymbols, NV = Object.prototype.hasOwnProperty, IV = Object.prototype.propertyIsEnumerable, Si = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), DV = (e) => {
27
27
  throw TypeError(e);
28
28
  }, zm = (e, t, r) => t in e ? AV(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
package/dist/index.d.ts CHANGED
@@ -86,11 +86,23 @@ declare class BaseTokenInitializationError extends BaseError {
86
86
  });
87
87
  }
88
88
 
89
- declare type ConfigureCompletion = {
89
+ export declare type ConfigureCompletion = {
90
90
  error?: BaseInitializationError;
91
91
  };
92
92
 
93
- declare type ConnectionConfig = {
93
+ export declare type ConnectionByApiKeyConfig = {
94
+ host: string;
95
+ apiKey: string;
96
+ isSecure?: boolean;
97
+ port?: number;
98
+ deviceDescriptor: {
99
+ ttl: number;
100
+ } & Record<string, unknown>;
101
+ httpRetryCount?: number;
102
+ httpTimeoutMs?: number;
103
+ };
104
+
105
+ export declare type ConnectionConfig = {
94
106
  host: string;
95
107
  httpRetryCount?: number;
96
108
  httpTimeoutMs?: number;
@@ -99,6 +111,9 @@ declare type ConnectionConfig = {
99
111
  port?: number;
100
112
  schema?: string;
101
113
  userName: string;
114
+ deviceDescriptor?: {
115
+ ttl?: number;
116
+ } & Record<string, unknown>;
102
117
  };
103
118
 
104
119
  export declare enum ConnectionError {
@@ -127,7 +142,7 @@ export declare class IdvIntegrationService {
127
142
  initialize(config: InitConfig): Promise<{
128
143
  error?: BaseInitializationError;
129
144
  }>;
130
- configure(config: ConnectionConfig | UrlConnectionConfig): Promise<ConfigureCompletion | UrlConfigureCompletion>;
145
+ configure(config: ConnectionConfig | UrlConnectionConfig | ConnectionByApiKeyConfig): Promise<ConfigureCompletion | UrlConfigureCompletion>;
131
146
  getWorkFlows(params?: WorkflowListRequest): Promise<WorkflowListCompletion>;
132
147
  prepareWorkflow({ workflowId }: {
133
148
  workflowId: string;
@@ -171,7 +186,7 @@ export declare class IdvWebComponent extends HTMLElement {
171
186
  disconnectedCallback(): void;
172
187
  }
173
188
 
174
- declare type InitConfig = {
189
+ export declare type InitConfig = {
175
190
  modulesConfig?: {
176
191
  docreader?: {
177
192
  devLicense: string;
@@ -239,7 +254,7 @@ export declare enum StartSessionError {
239
254
  TOKEN_ERROR = 3
240
255
  }
241
256
 
242
- declare type StartWorkflowConfig = {
257
+ export declare type StartWorkflowConfig = {
243
258
  metadata?: Record<string, unknown>;
244
259
  locale?: string;
245
260
  };
@@ -249,12 +264,14 @@ declare enum TokenInitializeError {
249
264
  WORKFLOW_ISSUE = 1
250
265
  }
251
266
 
252
- declare type UrlConfigureCompletion = {
267
+ export declare type UrlConfigureCompletion = {
253
268
  workflows: string[];
254
269
  error?: BaseTokenInitializationError;
255
270
  };
256
271
 
257
- declare type UrlConnectionConfig = string;
272
+ export declare type UrlConnectionConfig = {
273
+ url: string;
274
+ };
258
275
 
259
276
  declare type Workflow = {
260
277
  id: string;
@@ -265,11 +282,6 @@ declare type Workflow = {
265
282
  };
266
283
  } & Record<string, any>;
267
284
 
268
- /**
269
- * @deprecated Use `WorkflowCompletion` instead.
270
- */
271
- export declare type WorkflowCompetion = WorkflowCompletion;
272
-
273
285
  export declare type WorkflowCompletion = {
274
286
  results?: ScenarioResults;
275
287
  error?: BaseScenarioError;
@@ -286,7 +298,7 @@ export declare type WorkflowListCompletion = {
286
298
  error?: BasePrepareWorkflowError;
287
299
  };
288
300
 
289
- declare type WorkflowListRequest = {
301
+ export declare type WorkflowListRequest = {
290
302
  limit: number;
291
303
  skip: number;
292
304
  };