@onfido/api 5.2.0 → 5.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
@@ -4442,6 +4442,12 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
4442
4442
  * @memberof DocumentWithDriverVerificationReportAllOfProperties
4443
4443
  */
4444
4444
  'raw_vehicle_classes'?: string;
4445
+ /**
4446
+ * True if the user is not qualified to drive a manual transmission
4447
+ * @type {boolean}
4448
+ * @memberof DocumentWithDriverVerificationReportAllOfProperties
4449
+ */
4450
+ 'manual_transmission_restriction'?: boolean;
4445
4451
  /**
4446
4452
  * Detailed classes/categories information
4447
4453
  * @type {Array<DocumentWithDriverVerificationReportAllOfPropertiesAllOfVehicleClassDetailsInner>}
@@ -10951,6 +10957,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10951
10957
  * @throws {RequiredError}
10952
10958
  */
10953
10959
  deleteWebhook: (webhookId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10960
+ /**
10961
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
10962
+ * @summary Retrieves the signed document or signing transaction receipt
10963
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
10964
+ * @param {string} id The unique identifier of the file which you want to retrieve.
10965
+ * @param {*} [options] Override http request option.
10966
+ * @throws {RequiredError}
10967
+ */
10968
+ downloadAesDocument: (workflowRunId: string, id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10954
10969
  /**
10955
10970
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
10956
10971
  * @summary Download check
@@ -11525,6 +11540,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11525
11540
  * @throws {RequiredError}
11526
11541
  */
11527
11542
  deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
11543
+ /**
11544
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
11545
+ * @summary Retrieves the signed document or signing transaction receipt
11546
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
11547
+ * @param {string} id The unique identifier of the file which you want to retrieve.
11548
+ * @param {*} [options] Override http request option.
11549
+ * @throws {RequiredError}
11550
+ */
11551
+ downloadAesDocument(workflowRunId: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11528
11552
  /**
11529
11553
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
11530
11554
  * @summary Download check
@@ -12099,6 +12123,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
12099
12123
  * @throws {RequiredError}
12100
12124
  */
12101
12125
  deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
12126
+ /**
12127
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
12128
+ * @summary Retrieves the signed document or signing transaction receipt
12129
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
12130
+ * @param {string} id The unique identifier of the file which you want to retrieve.
12131
+ * @param {*} [options] Override http request option.
12132
+ * @throws {RequiredError}
12133
+ */
12134
+ downloadAesDocument(workflowRunId: string, id: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
12102
12135
  /**
12103
12136
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
12104
12137
  * @summary Download check
@@ -12686,6 +12719,16 @@ export declare class DefaultApi extends BaseAPI {
12686
12719
  * @memberof DefaultApi
12687
12720
  */
12688
12721
  deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
12722
+ /**
12723
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
12724
+ * @summary Retrieves the signed document or signing transaction receipt
12725
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
12726
+ * @param {string} id The unique identifier of the file which you want to retrieve.
12727
+ * @param {*} [options] Override http request option.
12728
+ * @throws {RequiredError}
12729
+ * @memberof DefaultApi
12730
+ */
12731
+ downloadAesDocument(workflowRunId: string, id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12689
12732
  /**
12690
12733
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
12691
12734
  * @summary Download check
package/dist/api.js CHANGED
@@ -1158,6 +1158,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1158
1158
  options: localVarRequestOptions,
1159
1159
  };
1160
1160
  }),
1161
+ /**
1162
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
1163
+ * @summary Retrieves the signed document or signing transaction receipt
1164
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
1165
+ * @param {string} id The unique identifier of the file which you want to retrieve.
1166
+ * @param {*} [options] Override http request option.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ downloadAesDocument: (workflowRunId, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1170
+ // verify required parameter 'workflowRunId' is not null or undefined
1171
+ (0, common_1.assertParamExists)('downloadAesDocument', 'workflowRunId', workflowRunId);
1172
+ // verify required parameter 'id' is not null or undefined
1173
+ (0, common_1.assertParamExists)('downloadAesDocument', 'id', id);
1174
+ const localVarPath = `/advanced_electronic_signature/documents`;
1175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1176
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1177
+ let baseOptions;
1178
+ if (configuration) {
1179
+ baseOptions = configuration.baseOptions;
1180
+ }
1181
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1182
+ const localVarHeaderParameter = {};
1183
+ const localVarQueryParameter = {};
1184
+ // authentication Token required
1185
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1186
+ if (workflowRunId !== undefined) {
1187
+ localVarQueryParameter['workflow_run_id'] = workflowRunId;
1188
+ }
1189
+ if (id !== undefined) {
1190
+ localVarQueryParameter['id'] = id;
1191
+ }
1192
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1194
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1195
+ return {
1196
+ url: (0, common_1.toPathString)(localVarUrlObj),
1197
+ options: localVarRequestOptions,
1198
+ };
1199
+ }),
1161
1200
  /**
1162
1201
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
1163
1202
  * @summary Download check
@@ -3249,6 +3288,23 @@ const DefaultApiFp = function (configuration) {
3249
3288
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3250
3289
  });
3251
3290
  },
3291
+ /**
3292
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
3293
+ * @summary Retrieves the signed document or signing transaction receipt
3294
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
3295
+ * @param {string} id The unique identifier of the file which you want to retrieve.
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ */
3299
+ downloadAesDocument(workflowRunId, id, options) {
3300
+ var _a, _b, _c;
3301
+ return __awaiter(this, void 0, void 0, function* () {
3302
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadAesDocument(workflowRunId, id, options);
3303
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3304
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadAesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3305
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3306
+ });
3307
+ },
3252
3308
  /**
3253
3309
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
3254
3310
  * @summary Download check
@@ -4305,6 +4361,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4305
4361
  deleteWebhook(webhookId, options) {
4306
4362
  return localVarFp.deleteWebhook(webhookId, options).then((request) => request(axios, basePath));
4307
4363
  },
4364
+ /**
4365
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
4366
+ * @summary Retrieves the signed document or signing transaction receipt
4367
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
4368
+ * @param {string} id The unique identifier of the file which you want to retrieve.
4369
+ * @param {*} [options] Override http request option.
4370
+ * @throws {RequiredError}
4371
+ */
4372
+ downloadAesDocument(workflowRunId, id, options) {
4373
+ return localVarFp.downloadAesDocument(workflowRunId, id, options).then((request) => request(axios, basePath));
4374
+ },
4308
4375
  /**
4309
4376
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
4310
4377
  * @summary Download check
@@ -5030,6 +5097,18 @@ class DefaultApi extends base_1.BaseAPI {
5030
5097
  deleteWebhook(webhookId, options) {
5031
5098
  return (0, exports.DefaultApiFp)(this.configuration).deleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
5032
5099
  }
5100
+ /**
5101
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
5102
+ * @summary Retrieves the signed document or signing transaction receipt
5103
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
5104
+ * @param {string} id The unique identifier of the file which you want to retrieve.
5105
+ * @param {*} [options] Override http request option.
5106
+ * @throws {RequiredError}
5107
+ * @memberof DefaultApi
5108
+ */
5109
+ downloadAesDocument(workflowRunId, id, options) {
5110
+ return (0, exports.DefaultApiFp)(this.configuration).downloadAesDocument(workflowRunId, id, options).then((request) => request(this.axios, this.basePath));
5111
+ }
5033
5112
  /**
5034
5113
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
5035
5114
  * @summary Download check
@@ -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/5.2.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/5.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
@@ -4442,6 +4442,12 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
4442
4442
  * @memberof DocumentWithDriverVerificationReportAllOfProperties
4443
4443
  */
4444
4444
  'raw_vehicle_classes'?: string;
4445
+ /**
4446
+ * True if the user is not qualified to drive a manual transmission
4447
+ * @type {boolean}
4448
+ * @memberof DocumentWithDriverVerificationReportAllOfProperties
4449
+ */
4450
+ 'manual_transmission_restriction'?: boolean;
4445
4451
  /**
4446
4452
  * Detailed classes/categories information
4447
4453
  * @type {Array<DocumentWithDriverVerificationReportAllOfPropertiesAllOfVehicleClassDetailsInner>}
@@ -10951,6 +10957,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
10951
10957
  * @throws {RequiredError}
10952
10958
  */
10953
10959
  deleteWebhook: (webhookId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10960
+ /**
10961
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
10962
+ * @summary Retrieves the signed document or signing transaction receipt
10963
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
10964
+ * @param {string} id The unique identifier of the file which you want to retrieve.
10965
+ * @param {*} [options] Override http request option.
10966
+ * @throws {RequiredError}
10967
+ */
10968
+ downloadAesDocument: (workflowRunId: string, id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10954
10969
  /**
10955
10970
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
10956
10971
  * @summary Download check
@@ -11525,6 +11540,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
11525
11540
  * @throws {RequiredError}
11526
11541
  */
11527
11542
  deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
11543
+ /**
11544
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
11545
+ * @summary Retrieves the signed document or signing transaction receipt
11546
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
11547
+ * @param {string} id The unique identifier of the file which you want to retrieve.
11548
+ * @param {*} [options] Override http request option.
11549
+ * @throws {RequiredError}
11550
+ */
11551
+ downloadAesDocument(workflowRunId: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
11528
11552
  /**
11529
11553
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
11530
11554
  * @summary Download check
@@ -12099,6 +12123,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
12099
12123
  * @throws {RequiredError}
12100
12124
  */
12101
12125
  deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
12126
+ /**
12127
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
12128
+ * @summary Retrieves the signed document or signing transaction receipt
12129
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
12130
+ * @param {string} id The unique identifier of the file which you want to retrieve.
12131
+ * @param {*} [options] Override http request option.
12132
+ * @throws {RequiredError}
12133
+ */
12134
+ downloadAesDocument(workflowRunId: string, id: string, options?: RawAxiosRequestConfig): AxiosPromise<FileTransfer>;
12102
12135
  /**
12103
12136
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
12104
12137
  * @summary Download check
@@ -12686,6 +12719,16 @@ export declare class DefaultApi extends BaseAPI {
12686
12719
  * @memberof DefaultApi
12687
12720
  */
12688
12721
  deleteWebhook(webhookId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
12722
+ /**
12723
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
12724
+ * @summary Retrieves the signed document or signing transaction receipt
12725
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
12726
+ * @param {string} id The unique identifier of the file which you want to retrieve.
12727
+ * @param {*} [options] Override http request option.
12728
+ * @throws {RequiredError}
12729
+ * @memberof DefaultApi
12730
+ */
12731
+ downloadAesDocument(workflowRunId: string, id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
12689
12732
  /**
12690
12733
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
12691
12734
  * @summary Download check
package/dist/esm/api.js CHANGED
@@ -1154,6 +1154,45 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1154
1154
  options: localVarRequestOptions,
1155
1155
  };
1156
1156
  }),
1157
+ /**
1158
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
1159
+ * @summary Retrieves the signed document or signing transaction receipt
1160
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
1161
+ * @param {string} id The unique identifier of the file which you want to retrieve.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ */
1165
+ downloadAesDocument: (workflowRunId, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1166
+ // verify required parameter 'workflowRunId' is not null or undefined
1167
+ assertParamExists('downloadAesDocument', 'workflowRunId', workflowRunId);
1168
+ // verify required parameter 'id' is not null or undefined
1169
+ assertParamExists('downloadAesDocument', 'id', id);
1170
+ const localVarPath = `/advanced_electronic_signature/documents`;
1171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1173
+ let baseOptions;
1174
+ if (configuration) {
1175
+ baseOptions = configuration.baseOptions;
1176
+ }
1177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1178
+ const localVarHeaderParameter = {};
1179
+ const localVarQueryParameter = {};
1180
+ // authentication Token required
1181
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1182
+ if (workflowRunId !== undefined) {
1183
+ localVarQueryParameter['workflow_run_id'] = workflowRunId;
1184
+ }
1185
+ if (id !== undefined) {
1186
+ localVarQueryParameter['id'] = id;
1187
+ }
1188
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1189
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1190
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1191
+ return {
1192
+ url: toPathString(localVarUrlObj),
1193
+ options: localVarRequestOptions,
1194
+ };
1195
+ }),
1157
1196
  /**
1158
1197
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
1159
1198
  * @summary Download check
@@ -3244,6 +3283,23 @@ export const DefaultApiFp = function (configuration) {
3244
3283
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3245
3284
  });
3246
3285
  },
3286
+ /**
3287
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
3288
+ * @summary Retrieves the signed document or signing transaction receipt
3289
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
3290
+ * @param {string} id The unique identifier of the file which you want to retrieve.
3291
+ * @param {*} [options] Override http request option.
3292
+ * @throws {RequiredError}
3293
+ */
3294
+ downloadAesDocument(workflowRunId, id, options) {
3295
+ var _a, _b, _c;
3296
+ return __awaiter(this, void 0, void 0, function* () {
3297
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadAesDocument(workflowRunId, id, options);
3298
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3299
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.downloadAesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3300
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3301
+ });
3302
+ },
3247
3303
  /**
3248
3304
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
3249
3305
  * @summary Download check
@@ -4299,6 +4355,17 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
4299
4355
  deleteWebhook(webhookId, options) {
4300
4356
  return localVarFp.deleteWebhook(webhookId, options).then((request) => request(axios, basePath));
4301
4357
  },
4358
+ /**
4359
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
4360
+ * @summary Retrieves the signed document or signing transaction receipt
4361
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
4362
+ * @param {string} id The unique identifier of the file which you want to retrieve.
4363
+ * @param {*} [options] Override http request option.
4364
+ * @throws {RequiredError}
4365
+ */
4366
+ downloadAesDocument(workflowRunId, id, options) {
4367
+ return localVarFp.downloadAesDocument(workflowRunId, id, options).then((request) => request(axios, basePath));
4368
+ },
4302
4369
  /**
4303
4370
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
4304
4371
  * @summary Download check
@@ -5023,6 +5090,18 @@ export class DefaultApi extends BaseAPI {
5023
5090
  deleteWebhook(webhookId, options) {
5024
5091
  return DefaultApiFp(this.configuration).deleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
5025
5092
  }
5093
+ /**
5094
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
5095
+ * @summary Retrieves the signed document or signing transaction receipt
5096
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
5097
+ * @param {string} id The unique identifier of the file which you want to retrieve.
5098
+ * @param {*} [options] Override http request option.
5099
+ * @throws {RequiredError}
5100
+ * @memberof DefaultApi
5101
+ */
5102
+ downloadAesDocument(workflowRunId, id, options) {
5103
+ return DefaultApiFp(this.configuration).downloadAesDocument(workflowRunId, id, options).then((request) => request(this.axios, this.basePath));
5104
+ }
5026
5105
  /**
5027
5106
  * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
5028
5107
  * @summary Download check
@@ -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/5.2.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/5.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": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "Node.js library for the Onfido API",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {