@regulaforensics/idv-capture-web 0.1.113-nightly → 0.1.115-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.
package/dist/index.d.ts CHANGED
@@ -108,6 +108,12 @@ export declare enum ConnectionError {
108
108
  PROVIDER_ERROR = 1
109
109
  }
110
110
 
111
+ declare type CurrentScreenConfig = {
112
+ templateId: string;
113
+ sessionId?: string;
114
+ serviceToken?: string;
115
+ } & Record<string, any>;
116
+
111
117
  export declare enum DeinitializationError {
112
118
  INITIALIZATION_REQUIRED = 0,
113
119
  SCENARIO_IN_PROGRESS = 3
@@ -137,7 +143,7 @@ export declare class IdvIntegrationService {
137
143
  prepareWorkflow({ workfowId }: {
138
144
  workfowId: string;
139
145
  }): Promise<PrepareWorkflowCompletion>;
140
- startWorkflow(): Promise<WorkflowCompetion>;
146
+ startWorkflow(metadata?: Record<string, unknown>): Promise<WorkflowCompetion>;
141
147
  deinitialize(): Promise<DeinitializeCompletion>;
142
148
  /** service commands */
143
149
  setNonce(id: string): void;
@@ -201,7 +207,7 @@ declare type InitConfig = {
201
207
  };
202
208
  face?: Record<string, any>;
203
209
  };
204
- includedModules: any[];
210
+ includedModules: IdvModules[];
205
211
  };
206
212
 
207
213
  export declare type InitializeCompletion = {
@@ -254,7 +260,8 @@ export declare enum SessionError {
254
260
  export declare enum StartSessionError {
255
261
  HTTP_ISSUE = 0,
256
262
  PROVIDER_ERROR = 1,
257
- DECODING_FAILED = 2
263
+ DECODING_FAILED = 2,
264
+ TOKEN_ERROR = 3
258
265
  }
259
266
 
260
267
  declare enum TokenInitializeError {
@@ -274,7 +281,7 @@ declare type Workflow = {
274
281
  steps: Array<WorkflowStep>;
275
282
  client: {
276
283
  layout: Record<string, any>;
277
- steps: Array<WorkflowStep>;
284
+ steps: Array<CurrentScreenConfig>;
278
285
  };
279
286
  } & Record<string, any>;
280
287