@onfido/api 4.4.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
@@ -10790,6 +10790,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10790
10790
  * @throws {RequiredError}
10791
10791
  */
10792
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>;
10793
10801
  /**
10794
10802
  * ID photos are downloaded using this endpoint.
10795
10803
  * @summary Download ID photo
@@ -11339,6 +11347,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11339
11347
  * @throws {RequiredError}
11340
11348
  */
11341
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>>;
11342
11358
  /**
11343
11359
  * ID photos are downloaded using this endpoint.
11344
11360
  * @summary Download ID photo
@@ -11888,6 +11904,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
11888
11904
  * @throws {RequiredError}
11889
11905
  */
11890
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>;
11891
11915
  /**
11892
11916
  * ID photos are downloaded using this endpoint.
11893
11917
  * @summary Download ID photo
@@ -12453,6 +12477,15 @@ export declare class DefaultApi extends BaseAPI {
12453
12477
  * @memberof DefaultApi
12454
12478
  */
12455
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>>;
12456
12489
  /**
12457
12490
  * ID photos are downloaded using this endpoint.
12458
12491
  * @summary Download ID photo
package/dist/api.js CHANGED
@@ -1260,6 +1260,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1260
1260
  options: localVarRequestOptions,
1261
1261
  };
1262
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
+ }),
1263
1294
  /**
1264
1295
  * ID photos are downloaded using this endpoint.
1265
1296
  * @summary Download ID photo
@@ -3209,6 +3240,22 @@ const DefaultApiFp = function (configuration) {
3209
3240
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3210
3241
  });
3211
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
+ },
3212
3259
  /**
3213
3260
  * ID photos are downloaded using this endpoint.
3214
3261
  * @summary Download ID photo
@@ -4198,6 +4245,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4198
4245
  downloadDocumentVideo(documentId, options) {
4199
4246
  return localVarFp.downloadDocumentVideo(documentId, options).then((request) => request(axios, basePath));
4200
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
+ },
4201
4258
  /**
4202
4259
  * ID photos are downloaded using this endpoint.
4203
4260
  * @summary Download ID photo
@@ -4895,6 +4952,17 @@ class DefaultApi extends base_1.BaseAPI {
4895
4952
  downloadDocumentVideo(documentId, options) {
4896
4953
  return (0, exports.DefaultApiFp)(this.configuration).downloadDocumentVideo(documentId, options).then((request) => request(this.axios, this.basePath));
4897
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
+ }
4898
4966
  /**
4899
4967
  * ID photos are downloaded using this endpoint.
4900
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.4.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
@@ -10790,6 +10790,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10790
10790
  * @throws {RequiredError}
10791
10791
  */
10792
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>;
10793
10801
  /**
10794
10802
  * ID photos are downloaded using this endpoint.
10795
10803
  * @summary Download ID photo
@@ -11339,6 +11347,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11339
11347
  * @throws {RequiredError}
11340
11348
  */
11341
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>>;
11342
11358
  /**
11343
11359
  * ID photos are downloaded using this endpoint.
11344
11360
  * @summary Download ID photo
@@ -11888,6 +11904,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
11888
11904
  * @throws {RequiredError}
11889
11905
  */
11890
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>;
11891
11915
  /**
11892
11916
  * ID photos are downloaded using this endpoint.
11893
11917
  * @summary Download ID photo
@@ -12453,6 +12477,15 @@ export declare class DefaultApi extends BaseAPI {
12453
12477
  * @memberof DefaultApi
12454
12478
  */
12455
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>>;
12456
12489
  /**
12457
12490
  * ID photos are downloaded using this endpoint.
12458
12491
  * @summary Download ID photo
package/dist/esm/api.js CHANGED
@@ -1256,6 +1256,37 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1256
1256
  options: localVarRequestOptions,
1257
1257
  };
1258
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
+ }),
1259
1290
  /**
1260
1291
  * ID photos are downloaded using this endpoint.
1261
1292
  * @summary Download ID photo
@@ -3204,6 +3235,22 @@ export const DefaultApiFp = function (configuration) {
3204
3235
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3205
3236
  });
3206
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
+ },
3207
3254
  /**
3208
3255
  * ID photos are downloaded using this endpoint.
3209
3256
  * @summary Download ID photo
@@ -4192,6 +4239,16 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
4192
4239
  downloadDocumentVideo(documentId, options) {
4193
4240
  return localVarFp.downloadDocumentVideo(documentId, options).then((request) => request(axios, basePath));
4194
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
+ },
4195
4252
  /**
4196
4253
  * ID photos are downloaded using this endpoint.
4197
4254
  * @summary Download ID photo
@@ -4888,6 +4945,17 @@ export class DefaultApi extends BaseAPI {
4888
4945
  downloadDocumentVideo(documentId, options) {
4889
4946
  return DefaultApiFp(this.configuration).downloadDocumentVideo(documentId, options).then((request) => request(this.axios, this.basePath));
4890
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
+ }
4891
4959
  /**
4892
4960
  * ID photos are downloaded using this endpoint.
4893
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.4.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.4.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": {