@onfido/api 5.5.0 → 5.6.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
@@ -4771,9 +4771,29 @@ export interface ExtractionDocumentClassification {
4771
4771
  'version'?: string;
4772
4772
  }
4773
4773
  export declare const ExtractionDocumentClassificationSubtypeEnum: {
4774
+ readonly Spe: "SPE";
4775
+ readonly Ali: "ali";
4776
+ readonly Alien: "alien";
4777
+ readonly Com: "com";
4778
+ readonly Commercial: "commercial";
4779
+ readonly Dom: "dom";
4780
+ readonly Domestic: "domestic";
4774
4781
  readonly Full: "full";
4775
4782
  readonly NotFull: "not_full";
4783
+ readonly FullDrivingLicence: "full driving licence";
4784
+ readonly HeavyVehicle: "heavy_vehicle";
4785
+ readonly Learner: "learner";
4786
+ readonly MinorU21OrU18: "minor (u21 or u18)";
4787
+ readonly Mot: "mot";
4788
+ readonly Mul: "mul";
4776
4789
  readonly Provisional: "provisional";
4790
+ readonly ProvisionalDrivingLicence: "provisional driving licence";
4791
+ readonly Ser: "ser";
4792
+ readonly Spe2: "spe";
4793
+ readonly Special: "special";
4794
+ readonly Standard: "standard";
4795
+ readonly Tem: "tem";
4796
+ readonly U21: "u21";
4777
4797
  readonly UnknownDefaultOpenApi: "11184809";
4778
4798
  };
4779
4799
  export type ExtractionDocumentClassificationSubtypeEnum = typeof ExtractionDocumentClassificationSubtypeEnum[keyof typeof ExtractionDocumentClassificationSubtypeEnum];
@@ -7679,6 +7699,13 @@ export declare const ProofOfAddressPropertiesDocumentTypeEnum: {
7679
7699
  readonly PensionPropertyStatementLetter: "pension_property_statement_letter";
7680
7700
  readonly IdentityDocumentWithAddress: "identity_document_with_address";
7681
7701
  readonly ExchangeHouseStatement: "exchange_house_statement";
7702
+ readonly AccommodationTenancyCertificate: "accommodation_tenancy_certificate";
7703
+ readonly AddressCertificate: "address_certificate";
7704
+ readonly ElectricityBill: "electricity_bill";
7705
+ readonly GasBill: "gas_bill";
7706
+ readonly InternetBill: "internet_bill";
7707
+ readonly PhoneBill: "phone_bill";
7708
+ readonly WaterBill: "water_bill";
7682
7709
  readonly UnknownDefaultOpenApi: "11184809";
7683
7710
  };
7684
7711
  export type ProofOfAddressPropertiesDocumentTypeEnum = typeof ProofOfAddressPropertiesDocumentTypeEnum[keyof typeof ProofOfAddressPropertiesDocumentTypeEnum];
@@ -10332,6 +10359,12 @@ export interface WebhookEventPayloadResource {
10332
10359
  * @memberof WebhookEventPayloadResource
10333
10360
  */
10334
10361
  'customer_user_id'?: string;
10362
+ /**
10363
+ * Pre-signed URL to download the timeline file for the Workflow Run.
10364
+ * @type {string}
10365
+ * @memberof WebhookEventPayloadResource
10366
+ */
10367
+ 'timeline_file_download_url'?: string;
10335
10368
  }
10336
10369
  /**
10337
10370
  *
package/dist/api.js CHANGED
@@ -515,9 +515,29 @@ exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = {
515
515
  UnknownDefaultOpenApi: '11184809'
516
516
  };
517
517
  exports.ExtractionDocumentClassificationSubtypeEnum = {
518
+ Spe: 'SPE',
519
+ Ali: 'ali',
520
+ Alien: 'alien',
521
+ Com: 'com',
522
+ Commercial: 'commercial',
523
+ Dom: 'dom',
524
+ Domestic: 'domestic',
518
525
  Full: 'full',
519
526
  NotFull: 'not_full',
527
+ FullDrivingLicence: 'full driving licence',
528
+ HeavyVehicle: 'heavy_vehicle',
529
+ Learner: 'learner',
530
+ MinorU21OrU18: 'minor (u21 or u18)',
531
+ Mot: 'mot',
532
+ Mul: 'mul',
520
533
  Provisional: 'provisional',
534
+ ProvisionalDrivingLicence: 'provisional driving licence',
535
+ Ser: 'ser',
536
+ Spe2: 'spe',
537
+ Special: 'special',
538
+ Standard: 'standard',
539
+ Tem: 'tem',
540
+ U21: 'u21',
521
541
  UnknownDefaultOpenApi: '11184809'
522
542
  };
523
543
  exports.ExtractionExtractedDataGenderEnum = {
@@ -550,6 +570,13 @@ exports.ProofOfAddressPropertiesDocumentTypeEnum = {
550
570
  PensionPropertyStatementLetter: 'pension_property_statement_letter',
551
571
  IdentityDocumentWithAddress: 'identity_document_with_address',
552
572
  ExchangeHouseStatement: 'exchange_house_statement',
573
+ AccommodationTenancyCertificate: 'accommodation_tenancy_certificate',
574
+ AddressCertificate: 'address_certificate',
575
+ ElectricityBill: 'electricity_bill',
576
+ GasBill: 'gas_bill',
577
+ InternetBill: 'internet_bill',
578
+ PhoneBill: 'phone_bill',
579
+ WaterBill: 'water_bill',
553
580
  UnknownDefaultOpenApi: '11184809'
554
581
  };
555
582
  exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = {
@@ -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.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.6.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
@@ -4771,9 +4771,29 @@ export interface ExtractionDocumentClassification {
4771
4771
  'version'?: string;
4772
4772
  }
4773
4773
  export declare const ExtractionDocumentClassificationSubtypeEnum: {
4774
+ readonly Spe: "SPE";
4775
+ readonly Ali: "ali";
4776
+ readonly Alien: "alien";
4777
+ readonly Com: "com";
4778
+ readonly Commercial: "commercial";
4779
+ readonly Dom: "dom";
4780
+ readonly Domestic: "domestic";
4774
4781
  readonly Full: "full";
4775
4782
  readonly NotFull: "not_full";
4783
+ readonly FullDrivingLicence: "full driving licence";
4784
+ readonly HeavyVehicle: "heavy_vehicle";
4785
+ readonly Learner: "learner";
4786
+ readonly MinorU21OrU18: "minor (u21 or u18)";
4787
+ readonly Mot: "mot";
4788
+ readonly Mul: "mul";
4776
4789
  readonly Provisional: "provisional";
4790
+ readonly ProvisionalDrivingLicence: "provisional driving licence";
4791
+ readonly Ser: "ser";
4792
+ readonly Spe2: "spe";
4793
+ readonly Special: "special";
4794
+ readonly Standard: "standard";
4795
+ readonly Tem: "tem";
4796
+ readonly U21: "u21";
4777
4797
  readonly UnknownDefaultOpenApi: "11184809";
4778
4798
  };
4779
4799
  export type ExtractionDocumentClassificationSubtypeEnum = typeof ExtractionDocumentClassificationSubtypeEnum[keyof typeof ExtractionDocumentClassificationSubtypeEnum];
@@ -7679,6 +7699,13 @@ export declare const ProofOfAddressPropertiesDocumentTypeEnum: {
7679
7699
  readonly PensionPropertyStatementLetter: "pension_property_statement_letter";
7680
7700
  readonly IdentityDocumentWithAddress: "identity_document_with_address";
7681
7701
  readonly ExchangeHouseStatement: "exchange_house_statement";
7702
+ readonly AccommodationTenancyCertificate: "accommodation_tenancy_certificate";
7703
+ readonly AddressCertificate: "address_certificate";
7704
+ readonly ElectricityBill: "electricity_bill";
7705
+ readonly GasBill: "gas_bill";
7706
+ readonly InternetBill: "internet_bill";
7707
+ readonly PhoneBill: "phone_bill";
7708
+ readonly WaterBill: "water_bill";
7682
7709
  readonly UnknownDefaultOpenApi: "11184809";
7683
7710
  };
7684
7711
  export type ProofOfAddressPropertiesDocumentTypeEnum = typeof ProofOfAddressPropertiesDocumentTypeEnum[keyof typeof ProofOfAddressPropertiesDocumentTypeEnum];
@@ -10332,6 +10359,12 @@ export interface WebhookEventPayloadResource {
10332
10359
  * @memberof WebhookEventPayloadResource
10333
10360
  */
10334
10361
  'customer_user_id'?: string;
10362
+ /**
10363
+ * Pre-signed URL to download the timeline file for the Workflow Run.
10364
+ * @type {string}
10365
+ * @memberof WebhookEventPayloadResource
10366
+ */
10367
+ 'timeline_file_download_url'?: string;
10335
10368
  }
10336
10369
  /**
10337
10370
  *
package/dist/esm/api.js CHANGED
@@ -511,9 +511,29 @@ export const DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum
511
511
  UnknownDefaultOpenApi: '11184809'
512
512
  };
513
513
  export const ExtractionDocumentClassificationSubtypeEnum = {
514
+ Spe: 'SPE',
515
+ Ali: 'ali',
516
+ Alien: 'alien',
517
+ Com: 'com',
518
+ Commercial: 'commercial',
519
+ Dom: 'dom',
520
+ Domestic: 'domestic',
514
521
  Full: 'full',
515
522
  NotFull: 'not_full',
523
+ FullDrivingLicence: 'full driving licence',
524
+ HeavyVehicle: 'heavy_vehicle',
525
+ Learner: 'learner',
526
+ MinorU21OrU18: 'minor (u21 or u18)',
527
+ Mot: 'mot',
528
+ Mul: 'mul',
516
529
  Provisional: 'provisional',
530
+ ProvisionalDrivingLicence: 'provisional driving licence',
531
+ Ser: 'ser',
532
+ Spe2: 'spe',
533
+ Special: 'special',
534
+ Standard: 'standard',
535
+ Tem: 'tem',
536
+ U21: 'u21',
517
537
  UnknownDefaultOpenApi: '11184809'
518
538
  };
519
539
  export const ExtractionExtractedDataGenderEnum = {
@@ -546,6 +566,13 @@ export const ProofOfAddressPropertiesDocumentTypeEnum = {
546
566
  PensionPropertyStatementLetter: 'pension_property_statement_letter',
547
567
  IdentityDocumentWithAddress: 'identity_document_with_address',
548
568
  ExchangeHouseStatement: 'exchange_house_statement',
569
+ AccommodationTenancyCertificate: 'accommodation_tenancy_certificate',
570
+ AddressCertificate: 'address_certificate',
571
+ ElectricityBill: 'electricity_bill',
572
+ GasBill: 'gas_bill',
573
+ InternetBill: 'internet_bill',
574
+ PhoneBill: 'phone_bill',
575
+ WaterBill: 'water_bill',
549
576
  UnknownDefaultOpenApi: '11184809'
550
577
  };
551
578
  export const RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = {
@@ -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.5.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.6.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.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "Node.js library for the Onfido API",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {