@onfido/api 4.5.0 → 5.0.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.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunStatus = exports.WorkflowRunLinkLanguageEnum = exports.WebhookEventType = exports.WebhookEventResourceType = exports.WebhookEventObjectStatus = exports.WatchlistMonitorSharedReportNameEnum = exports.WatchlistMonitorBuilderReportNameEnum = exports.WatchlistMonitorReportNameEnum = exports.UsDrivingLicenceSharedGenderEnum = exports.UsDrivingLicenceSharedEyeColorCodeEnum = exports.UsDrivingLicenceSharedDocumentCategoryEnum = exports.UsDrivingLicenceBuilderGenderEnum = exports.UsDrivingLicenceBuilderEyeColorCodeEnum = exports.UsDrivingLicenceBuilderDocumentCategoryEnum = exports.ResultsFeedbackExpectedResultEnum = exports.ReportSubResult = exports.ReportStatus = exports.ReportResult = exports.ReportName = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentSharedFileTypeEnum = exports.DocumentPropertiesSecurityTierEnum = exports.DocumentPropertiesHasIssuanceConfirmationEnum = exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentSideEnum = exports.DocumentFileTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.CheckStatus = exports.CheckResponseResultEnum = exports.CheckResultEnum = exports.ApplicantConsentName = void 0;
26
- exports.UploadDocumentSideEnum = exports.UploadDocumentFileTypeEnum = exports.ListWorkflowRunsSortEnum = exports.DefaultApi = void 0;
25
+ exports.ListWorkflowRunsSortEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunStatus = exports.WorkflowRunLinkLanguageEnum = exports.WebhookEventType = exports.WebhookEventResourceType = exports.WebhookEventObjectStatus = exports.WatchlistMonitorSharedReportNameEnum = exports.WatchlistMonitorBuilderReportNameEnum = exports.WatchlistMonitorReportNameEnum = exports.UsDrivingLicenceSharedGenderEnum = exports.UsDrivingLicenceSharedEyeColorCodeEnum = exports.UsDrivingLicenceSharedDocumentCategoryEnum = exports.UsDrivingLicenceBuilderGenderEnum = exports.UsDrivingLicenceBuilderEyeColorCodeEnum = exports.UsDrivingLicenceBuilderDocumentCategoryEnum = exports.ResultsFeedbackExpectedResultEnum = exports.ReportSubResult = exports.ReportStatus = exports.ReportResult = exports.ReportName = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentPropertiesSecurityTierEnum = exports.DocumentPropertiesHasIssuanceConfirmationEnum = exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentSideEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.CheckStatus = exports.CheckResponseResultEnum = exports.CheckResultEnum = exports.ApplicantConsentName = void 0;
26
+ exports.UploadDocumentSideEnum = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // URLSearchParams not necessarily used
29
29
  // @ts-ignore
@@ -372,13 +372,6 @@ exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = {
372
372
  UnknownMethod: 'unknown_method',
373
373
  UnknownDefaultOpenApi: '11184809'
374
374
  };
375
- exports.DocumentFileTypeEnum = {
376
- Jpg: 'jpg',
377
- Jpeg: 'jpeg',
378
- Png: 'png',
379
- Pdf: 'pdf',
380
- UnknownDefaultOpenApi: '11184809'
381
- };
382
375
  exports.DocumentSideEnum = {
383
376
  Front: 'front',
384
377
  Back: 'back',
@@ -408,13 +401,6 @@ exports.DocumentPropertiesSecurityTierEnum = {
408
401
  UnspecifiedSecurityTier: 'unspecified_security_tier',
409
402
  UnknownDefaultOpenApi: '11184809'
410
403
  };
411
- exports.DocumentSharedFileTypeEnum = {
412
- Jpg: 'jpg',
413
- Jpeg: 'jpeg',
414
- Png: 'png',
415
- Pdf: 'pdf',
416
- UnknownDefaultOpenApi: '11184809'
417
- };
418
404
  exports.DocumentSharedSideEnum = {
419
405
  Front: 'front',
420
406
  Back: 'back',
@@ -544,6 +530,7 @@ exports.IdNumberTypeEnum = {
544
530
  SocialInsurance: 'social_insurance',
545
531
  TaxId: 'tax_id',
546
532
  IdentityCard: 'identity_card',
533
+ DrivingLicense: 'driving_license',
547
534
  DrivingLicence: 'driving_licence',
548
535
  ShareCode: 'share_code',
549
536
  VoterId: 'voter_id',
@@ -776,7 +763,6 @@ exports.WebhookEventType = {
776
763
  ReportAwaitingApproval: 'report.awaiting_approval',
777
764
  ReportCompleted: 'report.completed',
778
765
  WorkflowTimelineFileCreated: 'workflow_timeline_file.created',
779
- WorkflowSignedEvidenceFileCreated: 'workflow_signed_evidence_file.created',
780
766
  WorkflowRunEvidenceFolderCreated: 'workflow_run_evidence_folder.created',
781
767
  UnknownDefaultOpenApi: '11184809'
782
768
  };
@@ -1477,6 +1463,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1477
1463
  options: localVarRequestOptions,
1478
1464
  };
1479
1465
  }),
1466
+ /**
1467
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
1468
+ * @summary Download NFC face
1469
+ * @param {string} documentId
1470
+ * @param {*} [options] Override http request option.
1471
+ * @throws {RequiredError}
1472
+ */
1473
+ downloadNfcFace: (documentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1474
+ // verify required parameter 'documentId' is not null or undefined
1475
+ (0, common_1.assertParamExists)('downloadNfcFace', 'documentId', documentId);
1476
+ const localVarPath = `/documents/{document_id}/nfc_face`
1477
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
1478
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1479
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1480
+ let baseOptions;
1481
+ if (configuration) {
1482
+ baseOptions = configuration.baseOptions;
1483
+ }
1484
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1485
+ const localVarHeaderParameter = {};
1486
+ const localVarQueryParameter = {};
1487
+ // authentication Token required
1488
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1489
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1491
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1492
+ return {
1493
+ url: (0, common_1.toPathString)(localVarUrlObj),
1494
+ options: localVarRequestOptions,
1495
+ };
1496
+ }),
1480
1497
  /**
1481
1498
  * Retrieves the signed document or application form depending on the file_id provided.
1482
1499
  * @summary Retrieves the signed document or application form
@@ -2521,10 +2538,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2521
2538
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
2522
2539
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
2523
2540
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
2541
+ * @param {string} [applicantId] the applicant\'s id.
2524
2542
  * @param {*} [options] Override http request option.
2525
2543
  * @throws {RequiredError}
2526
2544
  */
2527
- listWorkflowRuns: (page, status, createdAtGt, createdAtLt, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
2545
+ listWorkflowRuns: (page, status, createdAtGt, createdAtLt, sort, applicantId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2528
2546
  const localVarPath = `/workflow_runs`;
2529
2547
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2530
2548
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2556,6 +2574,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2556
2574
  if (sort !== undefined) {
2557
2575
  localVarQueryParameter['sort'] = sort;
2558
2576
  }
2577
+ if (applicantId !== undefined) {
2578
+ localVarQueryParameter['applicant_id'] = applicantId;
2579
+ }
2559
2580
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2560
2581
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2561
2582
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2862,7 +2883,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2862
2883
  * @param {DocumentTypes} type The type of document
2863
2884
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
2864
2885
  * @param {FileTransfer} file The file to be uploaded.
2865
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
2886
+ * @param {string} [fileType] The file type of the uploaded file
2866
2887
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
2867
2888
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
2868
2889
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -3352,6 +3373,22 @@ const DefaultApiFp = function (configuration) {
3352
3373
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3353
3374
  });
3354
3375
  },
3376
+ /**
3377
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
3378
+ * @summary Download NFC face
3379
+ * @param {string} documentId
3380
+ * @param {*} [options] Override http request option.
3381
+ * @throws {RequiredError}
3382
+ */
3383
+ downloadNfcFace(documentId, options) {
3384
+ var _a, _b, _c;
3385
+ return __awaiter(this, void 0, void 0, function* () {
3386
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadNfcFace(documentId, options);
3387
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3388
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadNfcFace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3389
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3390
+ });
3391
+ },
3355
3392
  /**
3356
3393
  * Retrieves the signed document or application form depending on the file_id provided.
3357
3394
  * @summary Retrieves the signed document or application form
@@ -3877,13 +3914,14 @@ const DefaultApiFp = function (configuration) {
3877
3914
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
3878
3915
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
3879
3916
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
3917
+ * @param {string} [applicantId] the applicant\'s id.
3880
3918
  * @param {*} [options] Override http request option.
3881
3919
  * @throws {RequiredError}
3882
3920
  */
3883
- listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options) {
3921
+ listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options) {
3884
3922
  var _a, _b, _c;
3885
3923
  return __awaiter(this, void 0, void 0, function* () {
3886
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options);
3924
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options);
3887
3925
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3888
3926
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.listWorkflowRuns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3889
3927
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4041,7 +4079,7 @@ const DefaultApiFp = function (configuration) {
4041
4079
  * @param {DocumentTypes} type The type of document
4042
4080
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
4043
4081
  * @param {FileTransfer} file The file to be uploaded.
4044
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
4082
+ * @param {string} [fileType] The file type of the uploaded file
4045
4083
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
4046
4084
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
4047
4085
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -4315,6 +4353,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4315
4353
  downloadMotionCaptureFrame(motionCaptureId, options) {
4316
4354
  return localVarFp.downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(axios, basePath));
4317
4355
  },
4356
+ /**
4357
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
4358
+ * @summary Download NFC face
4359
+ * @param {string} documentId
4360
+ * @param {*} [options] Override http request option.
4361
+ * @throws {RequiredError}
4362
+ */
4363
+ downloadNfcFace(documentId, options) {
4364
+ return localVarFp.downloadNfcFace(documentId, options).then((request) => request(axios, basePath));
4365
+ },
4318
4366
  /**
4319
4367
  * Retrieves the signed document or application form depending on the file_id provided.
4320
4368
  * @summary Retrieves the signed document or application form
@@ -4648,11 +4696,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4648
4696
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
4649
4697
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
4650
4698
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
4699
+ * @param {string} [applicantId] the applicant\'s id.
4651
4700
  * @param {*} [options] Override http request option.
4652
4701
  * @throws {RequiredError}
4653
4702
  */
4654
- listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options) {
4655
- return localVarFp.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options).then((request) => request(axios, basePath));
4703
+ listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options) {
4704
+ return localVarFp.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options).then((request) => request(axios, basePath));
4656
4705
  },
4657
4706
  /**
4658
4707
  * Run a health check on the Onfido API
@@ -4752,7 +4801,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4752
4801
  * @param {DocumentTypes} type The type of document
4753
4802
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
4754
4803
  * @param {FileTransfer} file The file to be uploaded.
4755
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
4804
+ * @param {string} [fileType] The file type of the uploaded file
4756
4805
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
4757
4806
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
4758
4807
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -5029,6 +5078,17 @@ class DefaultApi extends base_1.BaseAPI {
5029
5078
  downloadMotionCaptureFrame(motionCaptureId, options) {
5030
5079
  return (0, exports.DefaultApiFp)(this.configuration).downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(this.axios, this.basePath));
5031
5080
  }
5081
+ /**
5082
+ * Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
5083
+ * @summary Download NFC face
5084
+ * @param {string} documentId
5085
+ * @param {*} [options] Override http request option.
5086
+ * @throws {RequiredError}
5087
+ * @memberof DefaultApi
5088
+ */
5089
+ downloadNfcFace(documentId, options) {
5090
+ return (0, exports.DefaultApiFp)(this.configuration).downloadNfcFace(documentId, options).then((request) => request(this.axios, this.basePath));
5091
+ }
5032
5092
  /**
5033
5093
  * Retrieves the signed document or application form depending on the file_id provided.
5034
5094
  * @summary Retrieves the signed document or application form
@@ -5394,12 +5454,13 @@ class DefaultApi extends base_1.BaseAPI {
5394
5454
  * @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
5395
5455
  * @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
5396
5456
  * @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
5457
+ * @param {string} [applicantId] the applicant\'s id.
5397
5458
  * @param {*} [options] Override http request option.
5398
5459
  * @throws {RequiredError}
5399
5460
  * @memberof DefaultApi
5400
5461
  */
5401
- listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options) {
5402
- return (0, exports.DefaultApiFp)(this.configuration).listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options).then((request) => request(this.axios, this.basePath));
5462
+ listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options) {
5463
+ return (0, exports.DefaultApiFp)(this.configuration).listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options).then((request) => request(this.axios, this.basePath));
5403
5464
  }
5404
5465
  /**
5405
5466
  * Run a health check on the Onfido API
@@ -5508,7 +5569,7 @@ class DefaultApi extends base_1.BaseAPI {
5508
5569
  * @param {DocumentTypes} type The type of document
5509
5570
  * @param {string} applicantId The ID of the applicant whose document is being uploaded.
5510
5571
  * @param {FileTransfer} file The file to be uploaded.
5511
- * @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
5572
+ * @param {string} [fileType] The file type of the uploaded file
5512
5573
  * @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
5513
5574
  * @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
5514
5575
  * @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
@@ -5555,16 +5616,6 @@ exports.ListWorkflowRunsSortEnum = {
5555
5616
  Asc: 'asc',
5556
5617
  UnknownDefaultOpenApi: '11184809'
5557
5618
  };
5558
- /**
5559
- * @export
5560
- */
5561
- exports.UploadDocumentFileTypeEnum = {
5562
- Jpg: 'jpg',
5563
- Jpeg: 'jpeg',
5564
- Png: 'png',
5565
- Pdf: 'pdf',
5566
- UnknownDefaultOpenApi: '11184809'
5567
- };
5568
5619
  /**
5569
5620
  * @export
5570
5621
  */
@@ -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.5.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.0.0" }) });
36
36
  this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
37
37
  }
38
38
  /**