@onfido/api 3.2.0 → 3.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 +94 -6
- package/dist/api.js +82 -0
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +94 -6
- package/dist/esm/api.js +82 -0
- package/dist/esm/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1766,6 +1766,7 @@ export interface Document {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
export declare const DocumentFileTypeEnum: {
|
|
1768
1768
|
readonly Jpg: "jpg";
|
|
1769
|
+
readonly Jpeg: "jpeg";
|
|
1769
1770
|
readonly Png: "png";
|
|
1770
1771
|
readonly Pdf: "pdf";
|
|
1771
1772
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
@@ -2834,19 +2835,25 @@ export interface DocumentProperties {
|
|
|
2834
2835
|
* @type {string}
|
|
2835
2836
|
* @memberof DocumentProperties
|
|
2836
2837
|
*/
|
|
2837
|
-
'
|
|
2838
|
+
'middle_name'?: string;
|
|
2838
2839
|
/**
|
|
2839
2840
|
*
|
|
2840
2841
|
* @type {string}
|
|
2841
2842
|
* @memberof DocumentProperties
|
|
2842
2843
|
*/
|
|
2843
|
-
'
|
|
2844
|
+
'last_name'?: string;
|
|
2844
2845
|
/**
|
|
2845
2846
|
*
|
|
2846
2847
|
* @type {string}
|
|
2847
2848
|
* @memberof DocumentProperties
|
|
2848
2849
|
*/
|
|
2849
|
-
'
|
|
2850
|
+
'gender'?: string;
|
|
2851
|
+
/**
|
|
2852
|
+
*
|
|
2853
|
+
* @type {string}
|
|
2854
|
+
* @memberof DocumentProperties
|
|
2855
|
+
*/
|
|
2856
|
+
'issuing_country'?: string;
|
|
2850
2857
|
/**
|
|
2851
2858
|
*
|
|
2852
2859
|
* @type {string}
|
|
@@ -3691,6 +3698,7 @@ export interface DocumentShared {
|
|
|
3691
3698
|
}
|
|
3692
3699
|
export declare const DocumentSharedFileTypeEnum: {
|
|
3693
3700
|
readonly Jpg: "jpg";
|
|
3701
|
+
readonly Jpeg: "jpeg";
|
|
3694
3702
|
readonly Png: "png";
|
|
3695
3703
|
readonly Pdf: "pdf";
|
|
3696
3704
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
@@ -4075,19 +4083,25 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
|
|
|
4075
4083
|
* @type {string}
|
|
4076
4084
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4077
4085
|
*/
|
|
4078
|
-
'
|
|
4086
|
+
'middle_name'?: string;
|
|
4079
4087
|
/**
|
|
4080
4088
|
*
|
|
4081
4089
|
* @type {string}
|
|
4082
4090
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4083
4091
|
*/
|
|
4084
|
-
'
|
|
4092
|
+
'last_name'?: string;
|
|
4085
4093
|
/**
|
|
4086
4094
|
*
|
|
4087
4095
|
* @type {string}
|
|
4088
4096
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4089
4097
|
*/
|
|
4090
|
-
'
|
|
4098
|
+
'gender'?: string;
|
|
4099
|
+
/**
|
|
4100
|
+
*
|
|
4101
|
+
* @type {string}
|
|
4102
|
+
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4103
|
+
*/
|
|
4104
|
+
'issuing_country'?: string;
|
|
4091
4105
|
/**
|
|
4092
4106
|
*
|
|
4093
4107
|
* @type {string}
|
|
@@ -9498,6 +9512,12 @@ export interface WebhookEventPayloadObject {
|
|
|
9498
9512
|
* @memberof WebhookEventPayloadObject
|
|
9499
9513
|
*/
|
|
9500
9514
|
'status'?: string;
|
|
9515
|
+
/**
|
|
9516
|
+
* The date and time when the operation was started, if available.
|
|
9517
|
+
* @type {string}
|
|
9518
|
+
* @memberof WebhookEventPayloadObject
|
|
9519
|
+
*/
|
|
9520
|
+
'started_at_iso8601'?: string;
|
|
9501
9521
|
/**
|
|
9502
9522
|
* The date and time when the operation was completed, if available.
|
|
9503
9523
|
* @type {string}
|
|
@@ -9718,6 +9738,12 @@ export interface WorkflowRun {
|
|
|
9718
9738
|
* @memberof WorkflowRun
|
|
9719
9739
|
*/
|
|
9720
9740
|
'tags'?: Array<string> | null;
|
|
9741
|
+
/**
|
|
9742
|
+
* Customer-provided user identifier.
|
|
9743
|
+
* @type {string}
|
|
9744
|
+
* @memberof WorkflowRun
|
|
9745
|
+
*/
|
|
9746
|
+
'customer_user_id'?: string;
|
|
9721
9747
|
/**
|
|
9722
9748
|
*
|
|
9723
9749
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9778,6 +9804,12 @@ export interface WorkflowRun {
|
|
|
9778
9804
|
* @memberof WorkflowRun
|
|
9779
9805
|
*/
|
|
9780
9806
|
'error'?: WorkflowRunResponseError;
|
|
9807
|
+
/**
|
|
9808
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9809
|
+
* @type {string}
|
|
9810
|
+
* @memberof WorkflowRun
|
|
9811
|
+
*/
|
|
9812
|
+
'sdk_token'?: string | null;
|
|
9781
9813
|
}
|
|
9782
9814
|
export declare const WorkflowRunStatusEnum: {
|
|
9783
9815
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9814,6 +9846,12 @@ export interface WorkflowRunBuilder {
|
|
|
9814
9846
|
* @memberof WorkflowRunBuilder
|
|
9815
9847
|
*/
|
|
9816
9848
|
'tags'?: Array<string> | null;
|
|
9849
|
+
/**
|
|
9850
|
+
* Customer-provided user identifier.
|
|
9851
|
+
* @type {string}
|
|
9852
|
+
* @memberof WorkflowRunBuilder
|
|
9853
|
+
*/
|
|
9854
|
+
'customer_user_id'?: string;
|
|
9817
9855
|
/**
|
|
9818
9856
|
*
|
|
9819
9857
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9904,6 +9942,12 @@ export interface WorkflowRunResponse {
|
|
|
9904
9942
|
* @memberof WorkflowRunResponse
|
|
9905
9943
|
*/
|
|
9906
9944
|
'error'?: WorkflowRunResponseError;
|
|
9945
|
+
/**
|
|
9946
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9947
|
+
* @type {string}
|
|
9948
|
+
* @memberof WorkflowRunResponse
|
|
9949
|
+
*/
|
|
9950
|
+
'sdk_token'?: string | null;
|
|
9907
9951
|
}
|
|
9908
9952
|
export declare const WorkflowRunResponseStatusEnum: {
|
|
9909
9953
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9959,6 +10003,12 @@ export interface WorkflowRunShared {
|
|
|
9959
10003
|
* @memberof WorkflowRunShared
|
|
9960
10004
|
*/
|
|
9961
10005
|
'tags'?: Array<string> | null;
|
|
10006
|
+
/**
|
|
10007
|
+
* Customer-provided user identifier.
|
|
10008
|
+
* @type {string}
|
|
10009
|
+
* @memberof WorkflowRunShared
|
|
10010
|
+
*/
|
|
10011
|
+
'customer_user_id'?: string;
|
|
9962
10012
|
/**
|
|
9963
10013
|
*
|
|
9964
10014
|
* @type {WorkflowRunSharedLink}
|
|
@@ -10193,6 +10243,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10193
10243
|
* @throws {RequiredError}
|
|
10194
10244
|
*/
|
|
10195
10245
|
downloadMotionCaptureFrame: (motionCaptureId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10246
|
+
/**
|
|
10247
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
10248
|
+
* @summary Retrieves the signed document or application form
|
|
10249
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
10250
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
10251
|
+
* @param {*} [options] Override http request option.
|
|
10252
|
+
* @throws {RequiredError}
|
|
10253
|
+
*/
|
|
10254
|
+
downloadQesDocument: (workflowRunId: string, fileId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10196
10255
|
/**
|
|
10197
10256
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
10198
10257
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -10733,6 +10792,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
10733
10792
|
* @throws {RequiredError}
|
|
10734
10793
|
*/
|
|
10735
10794
|
downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
|
|
10795
|
+
/**
|
|
10796
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
10797
|
+
* @summary Retrieves the signed document or application form
|
|
10798
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
10799
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
10800
|
+
* @param {*} [options] Override http request option.
|
|
10801
|
+
* @throws {RequiredError}
|
|
10802
|
+
*/
|
|
10803
|
+
downloadQesDocument(workflowRunId: string, fileId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
|
|
10736
10804
|
/**
|
|
10737
10805
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
10738
10806
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -11273,6 +11341,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
11273
11341
|
* @throws {RequiredError}
|
|
11274
11342
|
*/
|
|
11275
11343
|
downloadMotionCaptureFrame(motionCaptureId: string, options?: any): AxiosPromise<FileTransfer>;
|
|
11344
|
+
/**
|
|
11345
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
11346
|
+
* @summary Retrieves the signed document or application form
|
|
11347
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
11348
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
11349
|
+
* @param {*} [options] Override http request option.
|
|
11350
|
+
* @throws {RequiredError}
|
|
11351
|
+
*/
|
|
11352
|
+
downloadQesDocument(workflowRunId: string, fileId: string, options?: any): AxiosPromise<FileTransfer>;
|
|
11276
11353
|
/**
|
|
11277
11354
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
11278
11355
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -11835,6 +11912,16 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
11835
11912
|
* @memberof DefaultApi
|
|
11836
11913
|
*/
|
|
11837
11914
|
downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
|
|
11915
|
+
/**
|
|
11916
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
11917
|
+
* @summary Retrieves the signed document or application form
|
|
11918
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
11919
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
11920
|
+
* @param {*} [options] Override http request option.
|
|
11921
|
+
* @throws {RequiredError}
|
|
11922
|
+
* @memberof DefaultApi
|
|
11923
|
+
*/
|
|
11924
|
+
downloadQesDocument(workflowRunId: string, fileId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
|
|
11838
11925
|
/**
|
|
11839
11926
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
11840
11927
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -12266,6 +12353,7 @@ export type ListWorkflowRunsSortEnum = typeof ListWorkflowRunsSortEnum[keyof typ
|
|
|
12266
12353
|
*/
|
|
12267
12354
|
export declare const UploadDocumentFileTypeEnum: {
|
|
12268
12355
|
readonly Jpg: "jpg";
|
|
12356
|
+
readonly Jpeg: "jpeg";
|
|
12269
12357
|
readonly Png: "png";
|
|
12270
12358
|
readonly Pdf: "pdf";
|
|
12271
12359
|
readonly UnknownDefaultOpenApi: "11184809";
|
package/dist/api.js
CHANGED
|
@@ -373,6 +373,7 @@ exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = {
|
|
|
373
373
|
};
|
|
374
374
|
exports.DocumentFileTypeEnum = {
|
|
375
375
|
Jpg: 'jpg',
|
|
376
|
+
Jpeg: 'jpeg',
|
|
376
377
|
Png: 'png',
|
|
377
378
|
Pdf: 'pdf',
|
|
378
379
|
UnknownDefaultOpenApi: '11184809'
|
|
@@ -408,6 +409,7 @@ exports.DocumentPropertiesSecurityTierEnum = {
|
|
|
408
409
|
};
|
|
409
410
|
exports.DocumentSharedFileTypeEnum = {
|
|
410
411
|
Jpg: 'jpg',
|
|
412
|
+
Jpeg: 'jpeg',
|
|
411
413
|
Png: 'png',
|
|
412
414
|
Pdf: 'pdf',
|
|
413
415
|
UnknownDefaultOpenApi: '11184809'
|
|
@@ -1352,6 +1354,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1352
1354
|
options: localVarRequestOptions,
|
|
1353
1355
|
};
|
|
1354
1356
|
}),
|
|
1357
|
+
/**
|
|
1358
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
1359
|
+
* @summary Retrieves the signed document or application form
|
|
1360
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
1361
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
1362
|
+
* @param {*} [options] Override http request option.
|
|
1363
|
+
* @throws {RequiredError}
|
|
1364
|
+
*/
|
|
1365
|
+
downloadQesDocument: (workflowRunId, fileId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1366
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1367
|
+
(0, common_1.assertParamExists)('downloadQesDocument', 'workflowRunId', workflowRunId);
|
|
1368
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1369
|
+
(0, common_1.assertParamExists)('downloadQesDocument', 'fileId', fileId);
|
|
1370
|
+
const localVarPath = `/qualified_electronic_signature/documents`;
|
|
1371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1372
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1373
|
+
let baseOptions;
|
|
1374
|
+
if (configuration) {
|
|
1375
|
+
baseOptions = configuration.baseOptions;
|
|
1376
|
+
}
|
|
1377
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1378
|
+
const localVarHeaderParameter = {};
|
|
1379
|
+
const localVarQueryParameter = {};
|
|
1380
|
+
// authentication Token required
|
|
1381
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1382
|
+
if (workflowRunId !== undefined) {
|
|
1383
|
+
localVarQueryParameter['workflow_run_id'] = workflowRunId;
|
|
1384
|
+
}
|
|
1385
|
+
if (fileId !== undefined) {
|
|
1386
|
+
localVarQueryParameter['file_id'] = fileId;
|
|
1387
|
+
}
|
|
1388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1391
|
+
return {
|
|
1392
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1393
|
+
options: localVarRequestOptions,
|
|
1394
|
+
};
|
|
1395
|
+
}),
|
|
1355
1396
|
/**
|
|
1356
1397
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
1357
1398
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -3172,6 +3213,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
3172
3213
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3173
3214
|
});
|
|
3174
3215
|
},
|
|
3216
|
+
/**
|
|
3217
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
3218
|
+
* @summary Retrieves the signed document or application form
|
|
3219
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
3220
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
3221
|
+
* @param {*} [options] Override http request option.
|
|
3222
|
+
* @throws {RequiredError}
|
|
3223
|
+
*/
|
|
3224
|
+
downloadQesDocument(workflowRunId, fileId, options) {
|
|
3225
|
+
var _a, _b, _c;
|
|
3226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3227
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadQesDocument(workflowRunId, fileId, options);
|
|
3228
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3229
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadQesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3230
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3231
|
+
});
|
|
3232
|
+
},
|
|
3175
3233
|
/**
|
|
3176
3234
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
3177
3235
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -4108,6 +4166,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4108
4166
|
downloadMotionCaptureFrame(motionCaptureId, options) {
|
|
4109
4167
|
return localVarFp.downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(axios, basePath));
|
|
4110
4168
|
},
|
|
4169
|
+
/**
|
|
4170
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
4171
|
+
* @summary Retrieves the signed document or application form
|
|
4172
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
4173
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
4174
|
+
* @param {*} [options] Override http request option.
|
|
4175
|
+
* @throws {RequiredError}
|
|
4176
|
+
*/
|
|
4177
|
+
downloadQesDocument(workflowRunId, fileId, options) {
|
|
4178
|
+
return localVarFp.downloadQesDocument(workflowRunId, fileId, options).then((request) => request(axios, basePath));
|
|
4179
|
+
},
|
|
4111
4180
|
/**
|
|
4112
4181
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
4113
4182
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -4800,6 +4869,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4800
4869
|
downloadMotionCaptureFrame(motionCaptureId, options) {
|
|
4801
4870
|
return (0, exports.DefaultApiFp)(this.configuration).downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(this.axios, this.basePath));
|
|
4802
4871
|
}
|
|
4872
|
+
/**
|
|
4873
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
4874
|
+
* @summary Retrieves the signed document or application form
|
|
4875
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
4876
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
4877
|
+
* @param {*} [options] Override http request option.
|
|
4878
|
+
* @throws {RequiredError}
|
|
4879
|
+
* @memberof DefaultApi
|
|
4880
|
+
*/
|
|
4881
|
+
downloadQesDocument(workflowRunId, fileId, options) {
|
|
4882
|
+
return (0, exports.DefaultApiFp)(this.configuration).downloadQesDocument(workflowRunId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
4883
|
+
}
|
|
4803
4884
|
/**
|
|
4804
4885
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
4805
4886
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -5319,6 +5400,7 @@ exports.ListWorkflowRunsSortEnum = {
|
|
|
5319
5400
|
*/
|
|
5320
5401
|
exports.UploadDocumentFileTypeEnum = {
|
|
5321
5402
|
Jpg: 'jpg',
|
|
5403
|
+
Jpeg: 'jpeg',
|
|
5322
5404
|
Png: 'png',
|
|
5323
5405
|
Pdf: 'pdf',
|
|
5324
5406
|
UnknownDefaultOpenApi: '11184809'
|
package/dist/configuration.js
CHANGED
|
@@ -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/3.
|
|
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/3.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
|
@@ -1766,6 +1766,7 @@ export interface Document {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
export declare const DocumentFileTypeEnum: {
|
|
1768
1768
|
readonly Jpg: "jpg";
|
|
1769
|
+
readonly Jpeg: "jpeg";
|
|
1769
1770
|
readonly Png: "png";
|
|
1770
1771
|
readonly Pdf: "pdf";
|
|
1771
1772
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
@@ -2834,19 +2835,25 @@ export interface DocumentProperties {
|
|
|
2834
2835
|
* @type {string}
|
|
2835
2836
|
* @memberof DocumentProperties
|
|
2836
2837
|
*/
|
|
2837
|
-
'
|
|
2838
|
+
'middle_name'?: string;
|
|
2838
2839
|
/**
|
|
2839
2840
|
*
|
|
2840
2841
|
* @type {string}
|
|
2841
2842
|
* @memberof DocumentProperties
|
|
2842
2843
|
*/
|
|
2843
|
-
'
|
|
2844
|
+
'last_name'?: string;
|
|
2844
2845
|
/**
|
|
2845
2846
|
*
|
|
2846
2847
|
* @type {string}
|
|
2847
2848
|
* @memberof DocumentProperties
|
|
2848
2849
|
*/
|
|
2849
|
-
'
|
|
2850
|
+
'gender'?: string;
|
|
2851
|
+
/**
|
|
2852
|
+
*
|
|
2853
|
+
* @type {string}
|
|
2854
|
+
* @memberof DocumentProperties
|
|
2855
|
+
*/
|
|
2856
|
+
'issuing_country'?: string;
|
|
2850
2857
|
/**
|
|
2851
2858
|
*
|
|
2852
2859
|
* @type {string}
|
|
@@ -3691,6 +3698,7 @@ export interface DocumentShared {
|
|
|
3691
3698
|
}
|
|
3692
3699
|
export declare const DocumentSharedFileTypeEnum: {
|
|
3693
3700
|
readonly Jpg: "jpg";
|
|
3701
|
+
readonly Jpeg: "jpeg";
|
|
3694
3702
|
readonly Png: "png";
|
|
3695
3703
|
readonly Pdf: "pdf";
|
|
3696
3704
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
@@ -4075,19 +4083,25 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
|
|
|
4075
4083
|
* @type {string}
|
|
4076
4084
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4077
4085
|
*/
|
|
4078
|
-
'
|
|
4086
|
+
'middle_name'?: string;
|
|
4079
4087
|
/**
|
|
4080
4088
|
*
|
|
4081
4089
|
* @type {string}
|
|
4082
4090
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4083
4091
|
*/
|
|
4084
|
-
'
|
|
4092
|
+
'last_name'?: string;
|
|
4085
4093
|
/**
|
|
4086
4094
|
*
|
|
4087
4095
|
* @type {string}
|
|
4088
4096
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4089
4097
|
*/
|
|
4090
|
-
'
|
|
4098
|
+
'gender'?: string;
|
|
4099
|
+
/**
|
|
4100
|
+
*
|
|
4101
|
+
* @type {string}
|
|
4102
|
+
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4103
|
+
*/
|
|
4104
|
+
'issuing_country'?: string;
|
|
4091
4105
|
/**
|
|
4092
4106
|
*
|
|
4093
4107
|
* @type {string}
|
|
@@ -9498,6 +9512,12 @@ export interface WebhookEventPayloadObject {
|
|
|
9498
9512
|
* @memberof WebhookEventPayloadObject
|
|
9499
9513
|
*/
|
|
9500
9514
|
'status'?: string;
|
|
9515
|
+
/**
|
|
9516
|
+
* The date and time when the operation was started, if available.
|
|
9517
|
+
* @type {string}
|
|
9518
|
+
* @memberof WebhookEventPayloadObject
|
|
9519
|
+
*/
|
|
9520
|
+
'started_at_iso8601'?: string;
|
|
9501
9521
|
/**
|
|
9502
9522
|
* The date and time when the operation was completed, if available.
|
|
9503
9523
|
* @type {string}
|
|
@@ -9718,6 +9738,12 @@ export interface WorkflowRun {
|
|
|
9718
9738
|
* @memberof WorkflowRun
|
|
9719
9739
|
*/
|
|
9720
9740
|
'tags'?: Array<string> | null;
|
|
9741
|
+
/**
|
|
9742
|
+
* Customer-provided user identifier.
|
|
9743
|
+
* @type {string}
|
|
9744
|
+
* @memberof WorkflowRun
|
|
9745
|
+
*/
|
|
9746
|
+
'customer_user_id'?: string;
|
|
9721
9747
|
/**
|
|
9722
9748
|
*
|
|
9723
9749
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9778,6 +9804,12 @@ export interface WorkflowRun {
|
|
|
9778
9804
|
* @memberof WorkflowRun
|
|
9779
9805
|
*/
|
|
9780
9806
|
'error'?: WorkflowRunResponseError;
|
|
9807
|
+
/**
|
|
9808
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9809
|
+
* @type {string}
|
|
9810
|
+
* @memberof WorkflowRun
|
|
9811
|
+
*/
|
|
9812
|
+
'sdk_token'?: string | null;
|
|
9781
9813
|
}
|
|
9782
9814
|
export declare const WorkflowRunStatusEnum: {
|
|
9783
9815
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9814,6 +9846,12 @@ export interface WorkflowRunBuilder {
|
|
|
9814
9846
|
* @memberof WorkflowRunBuilder
|
|
9815
9847
|
*/
|
|
9816
9848
|
'tags'?: Array<string> | null;
|
|
9849
|
+
/**
|
|
9850
|
+
* Customer-provided user identifier.
|
|
9851
|
+
* @type {string}
|
|
9852
|
+
* @memberof WorkflowRunBuilder
|
|
9853
|
+
*/
|
|
9854
|
+
'customer_user_id'?: string;
|
|
9817
9855
|
/**
|
|
9818
9856
|
*
|
|
9819
9857
|
* @type {WorkflowRunSharedLink}
|
|
@@ -9904,6 +9942,12 @@ export interface WorkflowRunResponse {
|
|
|
9904
9942
|
* @memberof WorkflowRunResponse
|
|
9905
9943
|
*/
|
|
9906
9944
|
'error'?: WorkflowRunResponseError;
|
|
9945
|
+
/**
|
|
9946
|
+
* Client token to use when loading this workflow run in the Onfido SDK.
|
|
9947
|
+
* @type {string}
|
|
9948
|
+
* @memberof WorkflowRunResponse
|
|
9949
|
+
*/
|
|
9950
|
+
'sdk_token'?: string | null;
|
|
9907
9951
|
}
|
|
9908
9952
|
export declare const WorkflowRunResponseStatusEnum: {
|
|
9909
9953
|
readonly AwaitingInput: "awaiting_input";
|
|
@@ -9959,6 +10003,12 @@ export interface WorkflowRunShared {
|
|
|
9959
10003
|
* @memberof WorkflowRunShared
|
|
9960
10004
|
*/
|
|
9961
10005
|
'tags'?: Array<string> | null;
|
|
10006
|
+
/**
|
|
10007
|
+
* Customer-provided user identifier.
|
|
10008
|
+
* @type {string}
|
|
10009
|
+
* @memberof WorkflowRunShared
|
|
10010
|
+
*/
|
|
10011
|
+
'customer_user_id'?: string;
|
|
9962
10012
|
/**
|
|
9963
10013
|
*
|
|
9964
10014
|
* @type {WorkflowRunSharedLink}
|
|
@@ -10193,6 +10243,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
10193
10243
|
* @throws {RequiredError}
|
|
10194
10244
|
*/
|
|
10195
10245
|
downloadMotionCaptureFrame: (motionCaptureId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10246
|
+
/**
|
|
10247
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
10248
|
+
* @summary Retrieves the signed document or application form
|
|
10249
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
10250
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
10251
|
+
* @param {*} [options] Override http request option.
|
|
10252
|
+
* @throws {RequiredError}
|
|
10253
|
+
*/
|
|
10254
|
+
downloadQesDocument: (workflowRunId: string, fileId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10196
10255
|
/**
|
|
10197
10256
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
10198
10257
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -10733,6 +10792,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
10733
10792
|
* @throws {RequiredError}
|
|
10734
10793
|
*/
|
|
10735
10794
|
downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
|
|
10795
|
+
/**
|
|
10796
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
10797
|
+
* @summary Retrieves the signed document or application form
|
|
10798
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
10799
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
10800
|
+
* @param {*} [options] Override http request option.
|
|
10801
|
+
* @throws {RequiredError}
|
|
10802
|
+
*/
|
|
10803
|
+
downloadQesDocument(workflowRunId: string, fileId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileTransfer>>;
|
|
10736
10804
|
/**
|
|
10737
10805
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
10738
10806
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -11273,6 +11341,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
11273
11341
|
* @throws {RequiredError}
|
|
11274
11342
|
*/
|
|
11275
11343
|
downloadMotionCaptureFrame(motionCaptureId: string, options?: any): AxiosPromise<FileTransfer>;
|
|
11344
|
+
/**
|
|
11345
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
11346
|
+
* @summary Retrieves the signed document or application form
|
|
11347
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
11348
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
11349
|
+
* @param {*} [options] Override http request option.
|
|
11350
|
+
* @throws {RequiredError}
|
|
11351
|
+
*/
|
|
11352
|
+
downloadQesDocument(workflowRunId: string, fileId: string, options?: any): AxiosPromise<FileTransfer>;
|
|
11276
11353
|
/**
|
|
11277
11354
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
11278
11355
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -11835,6 +11912,16 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
11835
11912
|
* @memberof DefaultApi
|
|
11836
11913
|
*/
|
|
11837
11914
|
downloadMotionCaptureFrame(motionCaptureId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
|
|
11915
|
+
/**
|
|
11916
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
11917
|
+
* @summary Retrieves the signed document or application form
|
|
11918
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
11919
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
11920
|
+
* @param {*} [options] Override http request option.
|
|
11921
|
+
* @throws {RequiredError}
|
|
11922
|
+
* @memberof DefaultApi
|
|
11923
|
+
*/
|
|
11924
|
+
downloadQesDocument(workflowRunId: string, fileId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileTransfer, any>>;
|
|
11838
11925
|
/**
|
|
11839
11926
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
11840
11927
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -12266,6 +12353,7 @@ export type ListWorkflowRunsSortEnum = typeof ListWorkflowRunsSortEnum[keyof typ
|
|
|
12266
12353
|
*/
|
|
12267
12354
|
export declare const UploadDocumentFileTypeEnum: {
|
|
12268
12355
|
readonly Jpg: "jpg";
|
|
12356
|
+
readonly Jpeg: "jpeg";
|
|
12269
12357
|
readonly Png: "png";
|
|
12270
12358
|
readonly Pdf: "pdf";
|
|
12271
12359
|
readonly UnknownDefaultOpenApi: "11184809";
|
package/dist/esm/api.js
CHANGED
|
@@ -369,6 +369,7 @@ export const DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = {
|
|
|
369
369
|
};
|
|
370
370
|
export const DocumentFileTypeEnum = {
|
|
371
371
|
Jpg: 'jpg',
|
|
372
|
+
Jpeg: 'jpeg',
|
|
372
373
|
Png: 'png',
|
|
373
374
|
Pdf: 'pdf',
|
|
374
375
|
UnknownDefaultOpenApi: '11184809'
|
|
@@ -404,6 +405,7 @@ export const DocumentPropertiesSecurityTierEnum = {
|
|
|
404
405
|
};
|
|
405
406
|
export const DocumentSharedFileTypeEnum = {
|
|
406
407
|
Jpg: 'jpg',
|
|
408
|
+
Jpeg: 'jpeg',
|
|
407
409
|
Png: 'png',
|
|
408
410
|
Pdf: 'pdf',
|
|
409
411
|
UnknownDefaultOpenApi: '11184809'
|
|
@@ -1348,6 +1350,45 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1348
1350
|
options: localVarRequestOptions,
|
|
1349
1351
|
};
|
|
1350
1352
|
}),
|
|
1353
|
+
/**
|
|
1354
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
1355
|
+
* @summary Retrieves the signed document or application form
|
|
1356
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
1357
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
1358
|
+
* @param {*} [options] Override http request option.
|
|
1359
|
+
* @throws {RequiredError}
|
|
1360
|
+
*/
|
|
1361
|
+
downloadQesDocument: (workflowRunId, fileId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1362
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1363
|
+
assertParamExists('downloadQesDocument', 'workflowRunId', workflowRunId);
|
|
1364
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
1365
|
+
assertParamExists('downloadQesDocument', 'fileId', fileId);
|
|
1366
|
+
const localVarPath = `/qualified_electronic_signature/documents`;
|
|
1367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1369
|
+
let baseOptions;
|
|
1370
|
+
if (configuration) {
|
|
1371
|
+
baseOptions = configuration.baseOptions;
|
|
1372
|
+
}
|
|
1373
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1374
|
+
const localVarHeaderParameter = {};
|
|
1375
|
+
const localVarQueryParameter = {};
|
|
1376
|
+
// authentication Token required
|
|
1377
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1378
|
+
if (workflowRunId !== undefined) {
|
|
1379
|
+
localVarQueryParameter['workflow_run_id'] = workflowRunId;
|
|
1380
|
+
}
|
|
1381
|
+
if (fileId !== undefined) {
|
|
1382
|
+
localVarQueryParameter['file_id'] = fileId;
|
|
1383
|
+
}
|
|
1384
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1386
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1387
|
+
return {
|
|
1388
|
+
url: toPathString(localVarUrlObj),
|
|
1389
|
+
options: localVarRequestOptions,
|
|
1390
|
+
};
|
|
1391
|
+
}),
|
|
1351
1392
|
/**
|
|
1352
1393
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
1353
1394
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -3167,6 +3208,23 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3167
3208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3168
3209
|
});
|
|
3169
3210
|
},
|
|
3211
|
+
/**
|
|
3212
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
3213
|
+
* @summary Retrieves the signed document or application form
|
|
3214
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
3215
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
3216
|
+
* @param {*} [options] Override http request option.
|
|
3217
|
+
* @throws {RequiredError}
|
|
3218
|
+
*/
|
|
3219
|
+
downloadQesDocument(workflowRunId, fileId, options) {
|
|
3220
|
+
var _a, _b, _c;
|
|
3221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadQesDocument(workflowRunId, fileId, options);
|
|
3223
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3224
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.downloadQesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3225
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3226
|
+
});
|
|
3227
|
+
},
|
|
3170
3228
|
/**
|
|
3171
3229
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
3172
3230
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -4102,6 +4160,17 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4102
4160
|
downloadMotionCaptureFrame(motionCaptureId, options) {
|
|
4103
4161
|
return localVarFp.downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(axios, basePath));
|
|
4104
4162
|
},
|
|
4163
|
+
/**
|
|
4164
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
4165
|
+
* @summary Retrieves the signed document or application form
|
|
4166
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
4167
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
4168
|
+
* @param {*} [options] Override http request option.
|
|
4169
|
+
* @throws {RequiredError}
|
|
4170
|
+
*/
|
|
4171
|
+
downloadQesDocument(workflowRunId, fileId, options) {
|
|
4172
|
+
return localVarFp.downloadQesDocument(workflowRunId, fileId, options).then((request) => request(axios, basePath));
|
|
4173
|
+
},
|
|
4105
4174
|
/**
|
|
4106
4175
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
4107
4176
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -4793,6 +4862,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
4793
4862
|
downloadMotionCaptureFrame(motionCaptureId, options) {
|
|
4794
4863
|
return DefaultApiFp(this.configuration).downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(this.axios, this.basePath));
|
|
4795
4864
|
}
|
|
4865
|
+
/**
|
|
4866
|
+
* Retrieves the signed document or application form depending on the file_id provided.
|
|
4867
|
+
* @summary Retrieves the signed document or application form
|
|
4868
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
4869
|
+
* @param {string} fileId The unique identifier of the file which you want to retrieve.
|
|
4870
|
+
* @param {*} [options] Override http request option.
|
|
4871
|
+
* @throws {RequiredError}
|
|
4872
|
+
* @memberof DefaultApi
|
|
4873
|
+
*/
|
|
4874
|
+
downloadQesDocument(workflowRunId, fileId, options) {
|
|
4875
|
+
return DefaultApiFp(this.configuration).downloadQesDocument(workflowRunId, fileId, options).then((request) => request(this.axios, this.basePath));
|
|
4876
|
+
}
|
|
4796
4877
|
/**
|
|
4797
4878
|
* Retrieves the signed evidence file for the designated Workflow Run
|
|
4798
4879
|
* @summary Retrieve Workflow Run Evidence Summary File
|
|
@@ -5311,6 +5392,7 @@ export const ListWorkflowRunsSortEnum = {
|
|
|
5311
5392
|
*/
|
|
5312
5393
|
export const UploadDocumentFileTypeEnum = {
|
|
5313
5394
|
Jpg: 'jpg',
|
|
5395
|
+
Jpeg: 'jpeg',
|
|
5314
5396
|
Png: 'png',
|
|
5315
5397
|
Pdf: 'pdf',
|
|
5316
5398
|
UnknownDefaultOpenApi: '11184809'
|
|
@@ -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/3.
|
|
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/3.4.0' }) });
|
|
33
33
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
34
34
|
}
|
|
35
35
|
/**
|