@onfido/api 4.3.0 → 4.4.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/dist/api.d.ts CHANGED
@@ -8072,7 +8072,7 @@ export interface Task {
8072
8072
  */
8073
8073
  'input'?: object;
8074
8074
  /**
8075
- * Output object with the fields produced by the Task execution.
8075
+ * Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
8076
8076
  * @type {object}
8077
8077
  * @memberof Task
8078
8078
  */
@@ -10089,7 +10089,7 @@ export interface WebhookEventPayloadResource {
10089
10089
  */
10090
10090
  'input'?: object;
10091
10091
  /**
10092
- * Output object with the fields produced by the Task execution.
10092
+ * Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
10093
10093
  * @type {object}
10094
10094
  * @memberof WebhookEventPayloadResource
10095
10095
  */
@@ -10125,6 +10125,8 @@ export declare const WebhookEventResourceType: {
10125
10125
  readonly WorkflowRun: "workflow_run";
10126
10126
  readonly WorkflowTask: "workflow_task";
10127
10127
  readonly WatchlistMonitor: "watchlist_monitor";
10128
+ readonly WorkflowTimelineFile: "workflow_timeline_file";
10129
+ readonly WorkflowRunEvidenceFolder: "workflow_run_evidence_folder";
10128
10130
  readonly UnknownDefaultOpenApi: "11184809";
10129
10131
  };
10130
10132
  export type WebhookEventResourceType = typeof WebhookEventResourceType[keyof typeof WebhookEventResourceType];
@@ -10151,6 +10153,7 @@ export declare const WebhookEventType: {
10151
10153
  readonly ReportCompleted: "report.completed";
10152
10154
  readonly WorkflowTimelineFileCreated: "workflow_timeline_file.created";
10153
10155
  readonly WorkflowSignedEvidenceFileCreated: "workflow_signed_evidence_file.created";
10156
+ readonly WorkflowRunEvidenceFolderCreated: "workflow_run_evidence_folder.created";
10154
10157
  readonly UnknownDefaultOpenApi: "11184809";
10155
10158
  };
10156
10159
  export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
package/dist/api.js CHANGED
@@ -750,6 +750,8 @@ exports.WebhookEventResourceType = {
750
750
  WorkflowRun: 'workflow_run',
751
751
  WorkflowTask: 'workflow_task',
752
752
  WatchlistMonitor: 'watchlist_monitor',
753
+ WorkflowTimelineFile: 'workflow_timeline_file',
754
+ WorkflowRunEvidenceFolder: 'workflow_run_evidence_folder',
753
755
  UnknownDefaultOpenApi: '11184809'
754
756
  };
755
757
  /**
@@ -775,6 +777,7 @@ exports.WebhookEventType = {
775
777
  ReportCompleted: 'report.completed',
776
778
  WorkflowTimelineFileCreated: 'workflow_timeline_file.created',
777
779
  WorkflowSignedEvidenceFileCreated: 'workflow_signed_evidence_file.created',
780
+ WorkflowRunEvidenceFolderCreated: 'workflow_run_evidence_folder.created',
778
781
  UnknownDefaultOpenApi: '11184809'
779
782
  };
780
783
  exports.WorkflowRunLinkLanguageEnum = {
@@ -32,7 +32,7 @@ class Configuration {
32
32
  }
33
33
  this.apiKey = 'Token token=' + param.apiToken;
34
34
  this.basePath = param.basePath || base_1.BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
35
- this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/4.3.0' }) });
35
+ this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/4.4.0' }) });
36
36
  this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
37
37
  }
38
38
  /**
package/dist/esm/api.d.ts CHANGED
@@ -8072,7 +8072,7 @@ export interface Task {
8072
8072
  */
8073
8073
  'input'?: object;
8074
8074
  /**
8075
- * Output object with the fields produced by the Task execution.
8075
+ * Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
8076
8076
  * @type {object}
8077
8077
  * @memberof Task
8078
8078
  */
@@ -10089,7 +10089,7 @@ export interface WebhookEventPayloadResource {
10089
10089
  */
10090
10090
  'input'?: object;
10091
10091
  /**
10092
- * Output object with the fields produced by the Task execution.
10092
+ * Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
10093
10093
  * @type {object}
10094
10094
  * @memberof WebhookEventPayloadResource
10095
10095
  */
@@ -10125,6 +10125,8 @@ export declare const WebhookEventResourceType: {
10125
10125
  readonly WorkflowRun: "workflow_run";
10126
10126
  readonly WorkflowTask: "workflow_task";
10127
10127
  readonly WatchlistMonitor: "watchlist_monitor";
10128
+ readonly WorkflowTimelineFile: "workflow_timeline_file";
10129
+ readonly WorkflowRunEvidenceFolder: "workflow_run_evidence_folder";
10128
10130
  readonly UnknownDefaultOpenApi: "11184809";
10129
10131
  };
10130
10132
  export type WebhookEventResourceType = typeof WebhookEventResourceType[keyof typeof WebhookEventResourceType];
@@ -10151,6 +10153,7 @@ export declare const WebhookEventType: {
10151
10153
  readonly ReportCompleted: "report.completed";
10152
10154
  readonly WorkflowTimelineFileCreated: "workflow_timeline_file.created";
10153
10155
  readonly WorkflowSignedEvidenceFileCreated: "workflow_signed_evidence_file.created";
10156
+ readonly WorkflowRunEvidenceFolderCreated: "workflow_run_evidence_folder.created";
10154
10157
  readonly UnknownDefaultOpenApi: "11184809";
10155
10158
  };
10156
10159
  export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
package/dist/esm/api.js CHANGED
@@ -746,6 +746,8 @@ export const WebhookEventResourceType = {
746
746
  WorkflowRun: 'workflow_run',
747
747
  WorkflowTask: 'workflow_task',
748
748
  WatchlistMonitor: 'watchlist_monitor',
749
+ WorkflowTimelineFile: 'workflow_timeline_file',
750
+ WorkflowRunEvidenceFolder: 'workflow_run_evidence_folder',
749
751
  UnknownDefaultOpenApi: '11184809'
750
752
  };
751
753
  /**
@@ -771,6 +773,7 @@ export const WebhookEventType = {
771
773
  ReportCompleted: 'report.completed',
772
774
  WorkflowTimelineFileCreated: 'workflow_timeline_file.created',
773
775
  WorkflowSignedEvidenceFileCreated: 'workflow_signed_evidence_file.created',
776
+ WorkflowRunEvidenceFolderCreated: 'workflow_run_evidence_folder.created',
774
777
  UnknownDefaultOpenApi: '11184809'
775
778
  };
776
779
  export const WorkflowRunLinkLanguageEnum = {
@@ -29,7 +29,7 @@ export class Configuration {
29
29
  }
30
30
  this.apiKey = 'Token token=' + param.apiToken;
31
31
  this.basePath = param.basePath || BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
32
- this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/4.3.0' }) });
32
+ this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'onfido-node/4.4.0' }) });
33
33
  this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
34
34
  }
35
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onfido/api",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "Node.js library for the Onfido API",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {