@onfido/api 4.3.0 → 4.5.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];
@@ -10787,6 +10790,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10787
10790
  * @throws {RequiredError}
10788
10791
  */
10789
10792
  downloadDocumentVideo: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10793
+ /**
10794
+ * Retrieves the evidence folder for the designated Workflow Run
10795
+ * @summary Retrieve Workflow Run Evidence Folder
10796
+ * @param {string} workflowRunId Workflow Run ID
10797
+ * @param {*} [options] Override http request option.
10798
+ * @throws {RequiredError}
10799
+ */
10800
+ downloadEvidenceFolder: (workflowRunId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10790
10801
  /**
10791
10802
  * ID photos are downloaded using this endpoint.
10792
10803
  * @summary Download ID photo
@@ -11336,6 +11347,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11336
11347
  * @throws {RequiredError}
11337
11348
  */
11338
11349
  downloadDocumentVideo(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11350
+ /**
11351
+ * Retrieves the evidence folder for the designated Workflow Run
11352
+ * @summary Retrieve Workflow Run Evidence Folder
11353
+ * @param {string} workflowRunId Workflow Run ID
11354
+ * @param {*} [options] Override http request option.
11355
+ * @throws {RequiredError}
11356
+ */
11357
+ downloadEvidenceFolder(workflowRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11339
11358
  /**
11340
11359
  * ID photos are downloaded using this endpoint.
11341
11360
  * @summary Download ID photo
@@ -11885,6 +11904,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
11885
11904
  * @throws {RequiredError}
11886
11905
  */
11887
11906
  downloadDocumentVideo(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
11907
+ /**
11908
+ * Retrieves the evidence folder for the designated Workflow Run
11909
+ * @summary Retrieve Workflow Run Evidence Folder
11910
+ * @param {string} workflowRunId Workflow Run ID
11911
+ * @param {*} [options] Override http request option.
11912
+ * @throws {RequiredError}
11913
+ */
11914
+ downloadEvidenceFolder(workflowRunId: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
11888
11915
  /**
11889
11916
  * ID photos are downloaded using this endpoint.
11890
11917
  * @summary Download ID photo
@@ -12450,6 +12477,15 @@ export declare class DefaultApi extends BaseAPI {
12450
12477
  * @memberof DefaultApi
12451
12478
  */
12452
12479
  downloadDocumentVideo(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12480
+ /**
12481
+ * Retrieves the evidence folder for the designated Workflow Run
12482
+ * @summary Retrieve Workflow Run Evidence Folder
12483
+ * @param {string} workflowRunId Workflow Run ID
12484
+ * @param {*} [options] Override http request option.
12485
+ * @throws {RequiredError}
12486
+ * @memberof DefaultApi
12487
+ */
12488
+ downloadEvidenceFolder(workflowRunId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12453
12489
  /**
12454
12490
  * ID photos are downloaded using this endpoint.
12455
12491
  * @summary Download ID photo
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 = {
@@ -1257,6 +1260,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1257
1260
  options: localVarRequestOptions,
1258
1261
  };
1259
1262
  }),
1263
+ /**
1264
+ * Retrieves the evidence folder for the designated Workflow Run
1265
+ * @summary Retrieve Workflow Run Evidence Folder
1266
+ * @param {string} workflowRunId Workflow Run ID
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ */
1270
+ downloadEvidenceFolder: (workflowRunId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1271
+ // verify required parameter 'workflowRunId' is not null or undefined
1272
+ (0, common_1.assertParamExists)('downloadEvidenceFolder', 'workflowRunId', workflowRunId);
1273
+ const localVarPath = `/workflow_runs/{workflow_run_id}/evidence_folder`
1274
+ .replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)));
1275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1276
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1277
+ let baseOptions;
1278
+ if (configuration) {
1279
+ baseOptions = configuration.baseOptions;
1280
+ }
1281
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1282
+ const localVarHeaderParameter = {};
1283
+ const localVarQueryParameter = {};
1284
+ // authentication Token required
1285
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1286
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1288
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1289
+ return {
1290
+ url: (0, common_1.toPathString)(localVarUrlObj),
1291
+ options: localVarRequestOptions,
1292
+ };
1293
+ }),
1260
1294
  /**
1261
1295
  * ID photos are downloaded using this endpoint.
1262
1296
  * @summary Download ID photo
@@ -3206,6 +3240,22 @@ const DefaultApiFp = function (configuration) {
3206
3240
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3207
3241
  });
3208
3242
  },
3243
+ /**
3244
+ * Retrieves the evidence folder for the designated Workflow Run
3245
+ * @summary Retrieve Workflow Run Evidence Folder
3246
+ * @param {string} workflowRunId Workflow Run ID
3247
+ * @param {*} [options] Override http request option.
3248
+ * @throws {RequiredError}
3249
+ */
3250
+ downloadEvidenceFolder(workflowRunId, options) {
3251
+ var _a, _b, _c;
3252
+ return __awaiter(this, void 0, void 0, function* () {
3253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadEvidenceFolder(workflowRunId, options);
3254
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3255
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadEvidenceFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3256
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3257
+ });
3258
+ },
3209
3259
  /**
3210
3260
  * ID photos are downloaded using this endpoint.
3211
3261
  * @summary Download ID photo
@@ -4195,6 +4245,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4195
4245
  downloadDocumentVideo(documentId, options) {
4196
4246
  return localVarFp.downloadDocumentVideo(documentId, options).then((request) => request(axios, basePath));
4197
4247
  },
4248
+ /**
4249
+ * Retrieves the evidence folder for the designated Workflow Run
4250
+ * @summary Retrieve Workflow Run Evidence Folder
4251
+ * @param {string} workflowRunId Workflow Run ID
4252
+ * @param {*} [options] Override http request option.
4253
+ * @throws {RequiredError}
4254
+ */
4255
+ downloadEvidenceFolder(workflowRunId, options) {
4256
+ return localVarFp.downloadEvidenceFolder(workflowRunId, options).then((request) => request(axios, basePath));
4257
+ },
4198
4258
  /**
4199
4259
  * ID photos are downloaded using this endpoint.
4200
4260
  * @summary Download ID photo
@@ -4892,6 +4952,17 @@ class DefaultApi extends base_1.BaseAPI {
4892
4952
  downloadDocumentVideo(documentId, options) {
4893
4953
  return (0, exports.DefaultApiFp)(this.configuration).downloadDocumentVideo(documentId, options).then((request) => request(this.axios, this.basePath));
4894
4954
  }
4955
+ /**
4956
+ * Retrieves the evidence folder for the designated Workflow Run
4957
+ * @summary Retrieve Workflow Run Evidence Folder
4958
+ * @param {string} workflowRunId Workflow Run ID
4959
+ * @param {*} [options] Override http request option.
4960
+ * @throws {RequiredError}
4961
+ * @memberof DefaultApi
4962
+ */
4963
+ downloadEvidenceFolder(workflowRunId, options) {
4964
+ return (0, exports.DefaultApiFp)(this.configuration).downloadEvidenceFolder(workflowRunId, options).then((request) => request(this.axios, this.basePath));
4965
+ }
4895
4966
  /**
4896
4967
  * ID photos are downloaded using this endpoint.
4897
4968
  * @summary Download ID photo
@@ -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.5.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];
@@ -10787,6 +10790,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10787
10790
  * @throws {RequiredError}
10788
10791
  */
10789
10792
  downloadDocumentVideo: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10793
+ /**
10794
+ * Retrieves the evidence folder for the designated Workflow Run
10795
+ * @summary Retrieve Workflow Run Evidence Folder
10796
+ * @param {string} workflowRunId Workflow Run ID
10797
+ * @param {*} [options] Override http request option.
10798
+ * @throws {RequiredError}
10799
+ */
10800
+ downloadEvidenceFolder: (workflowRunId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10790
10801
  /**
10791
10802
  * ID photos are downloaded using this endpoint.
10792
10803
  * @summary Download ID photo
@@ -11336,6 +11347,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11336
11347
  * @throws {RequiredError}
11337
11348
  */
11338
11349
  downloadDocumentVideo(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11350
+ /**
11351
+ * Retrieves the evidence folder for the designated Workflow Run
11352
+ * @summary Retrieve Workflow Run Evidence Folder
11353
+ * @param {string} workflowRunId Workflow Run ID
11354
+ * @param {*} [options] Override http request option.
11355
+ * @throws {RequiredError}
11356
+ */
11357
+ downloadEvidenceFolder(workflowRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11339
11358
  /**
11340
11359
  * ID photos are downloaded using this endpoint.
11341
11360
  * @summary Download ID photo
@@ -11885,6 +11904,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
11885
11904
  * @throws {RequiredError}
11886
11905
  */
11887
11906
  downloadDocumentVideo(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
11907
+ /**
11908
+ * Retrieves the evidence folder for the designated Workflow Run
11909
+ * @summary Retrieve Workflow Run Evidence Folder
11910
+ * @param {string} workflowRunId Workflow Run ID
11911
+ * @param {*} [options] Override http request option.
11912
+ * @throws {RequiredError}
11913
+ */
11914
+ downloadEvidenceFolder(workflowRunId: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
11888
11915
  /**
11889
11916
  * ID photos are downloaded using this endpoint.
11890
11917
  * @summary Download ID photo
@@ -12450,6 +12477,15 @@ export declare class DefaultApi extends BaseAPI {
12450
12477
  * @memberof DefaultApi
12451
12478
  */
12452
12479
  downloadDocumentVideo(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12480
+ /**
12481
+ * Retrieves the evidence folder for the designated Workflow Run
12482
+ * @summary Retrieve Workflow Run Evidence Folder
12483
+ * @param {string} workflowRunId Workflow Run ID
12484
+ * @param {*} [options] Override http request option.
12485
+ * @throws {RequiredError}
12486
+ * @memberof DefaultApi
12487
+ */
12488
+ downloadEvidenceFolder(workflowRunId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12453
12489
  /**
12454
12490
  * ID photos are downloaded using this endpoint.
12455
12491
  * @summary Download ID photo
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 = {
@@ -1253,6 +1256,37 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1253
1256
  options: localVarRequestOptions,
1254
1257
  };
1255
1258
  }),
1259
+ /**
1260
+ * Retrieves the evidence folder for the designated Workflow Run
1261
+ * @summary Retrieve Workflow Run Evidence Folder
1262
+ * @param {string} workflowRunId Workflow Run ID
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ */
1266
+ downloadEvidenceFolder: (workflowRunId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1267
+ // verify required parameter 'workflowRunId' is not null or undefined
1268
+ assertParamExists('downloadEvidenceFolder', 'workflowRunId', workflowRunId);
1269
+ const localVarPath = `/workflow_runs/{workflow_run_id}/evidence_folder`
1270
+ .replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)));
1271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1273
+ let baseOptions;
1274
+ if (configuration) {
1275
+ baseOptions = configuration.baseOptions;
1276
+ }
1277
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1278
+ const localVarHeaderParameter = {};
1279
+ const localVarQueryParameter = {};
1280
+ // authentication Token required
1281
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1284
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1285
+ return {
1286
+ url: toPathString(localVarUrlObj),
1287
+ options: localVarRequestOptions,
1288
+ };
1289
+ }),
1256
1290
  /**
1257
1291
  * ID photos are downloaded using this endpoint.
1258
1292
  * @summary Download ID photo
@@ -3201,6 +3235,22 @@ export const DefaultApiFp = function (configuration) {
3201
3235
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3202
3236
  });
3203
3237
  },
3238
+ /**
3239
+ * Retrieves the evidence folder for the designated Workflow Run
3240
+ * @summary Retrieve Workflow Run Evidence Folder
3241
+ * @param {string} workflowRunId Workflow Run ID
3242
+ * @param {*} [options] Override http request option.
3243
+ * @throws {RequiredError}
3244
+ */
3245
+ downloadEvidenceFolder(workflowRunId, options) {
3246
+ var _a, _b, _c;
3247
+ return __awaiter(this, void 0, void 0, function* () {
3248
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadEvidenceFolder(workflowRunId, options);
3249
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3250
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.downloadEvidenceFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3251
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3252
+ });
3253
+ },
3204
3254
  /**
3205
3255
  * ID photos are downloaded using this endpoint.
3206
3256
  * @summary Download ID photo
@@ -4189,6 +4239,16 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
4189
4239
  downloadDocumentVideo(documentId, options) {
4190
4240
  return localVarFp.downloadDocumentVideo(documentId, options).then((request) => request(axios, basePath));
4191
4241
  },
4242
+ /**
4243
+ * Retrieves the evidence folder for the designated Workflow Run
4244
+ * @summary Retrieve Workflow Run Evidence Folder
4245
+ * @param {string} workflowRunId Workflow Run ID
4246
+ * @param {*} [options] Override http request option.
4247
+ * @throws {RequiredError}
4248
+ */
4249
+ downloadEvidenceFolder(workflowRunId, options) {
4250
+ return localVarFp.downloadEvidenceFolder(workflowRunId, options).then((request) => request(axios, basePath));
4251
+ },
4192
4252
  /**
4193
4253
  * ID photos are downloaded using this endpoint.
4194
4254
  * @summary Download ID photo
@@ -4885,6 +4945,17 @@ export class DefaultApi extends BaseAPI {
4885
4945
  downloadDocumentVideo(documentId, options) {
4886
4946
  return DefaultApiFp(this.configuration).downloadDocumentVideo(documentId, options).then((request) => request(this.axios, this.basePath));
4887
4947
  }
4948
+ /**
4949
+ * Retrieves the evidence folder for the designated Workflow Run
4950
+ * @summary Retrieve Workflow Run Evidence Folder
4951
+ * @param {string} workflowRunId Workflow Run ID
4952
+ * @param {*} [options] Override http request option.
4953
+ * @throws {RequiredError}
4954
+ * @memberof DefaultApi
4955
+ */
4956
+ downloadEvidenceFolder(workflowRunId, options) {
4957
+ return DefaultApiFp(this.configuration).downloadEvidenceFolder(workflowRunId, options).then((request) => request(this.axios, this.basePath));
4958
+ }
4888
4959
  /**
4889
4960
  * ID photos are downloaded using this endpoint.
4890
4961
  * @summary Download ID photo
@@ -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.5.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.5.0",
4
4
  "description": "Node.js library for the Onfido API",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {