@onfido/api 5.4.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.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Onfido API v3.6
6
- * The Onfido API (v3.6)
5
+ * Onfido Public API v3.6
6
+ * The Onfido Public API (v3.6)
7
7
  *
8
8
  * The version of the OpenAPI document: v3.6
9
9
  *
@@ -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 = {
package/dist/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Onfido API v3.6
3
- * The Onfido API (v3.6)
2
+ * Onfido Public API v3.6
3
+ * The Onfido Public API (v3.6)
4
4
  *
5
5
  * The version of the OpenAPI document: v3.6
6
6
  *
package/dist/base.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Onfido API v3.6
6
- * The Onfido API (v3.6)
5
+ * Onfido Public API v3.6
6
+ * The Onfido Public API (v3.6)
7
7
  *
8
8
  * The version of the OpenAPI document: v3.6
9
9
  *
package/dist/common.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Onfido API v3.6
3
- * The Onfido API (v3.6)
2
+ * Onfido Public API v3.6
3
+ * The Onfido Public API (v3.6)
4
4
  *
5
5
  * The version of the OpenAPI document: v3.6
6
6
  *
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Onfido API v3.6
6
- * The Onfido API (v3.6)
5
+ * Onfido Public API v3.6
6
+ * The Onfido Public API (v3.6)
7
7
  *
8
8
  * The version of the OpenAPI document: v3.6
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Onfido API v3.6
3
- * The Onfido API (v3.6)
2
+ * Onfido Public API v3.6
3
+ * The Onfido Public API (v3.6)
4
4
  *
5
5
  * The version of the OpenAPI document: v3.6
6
6
  *
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Onfido API v3.6
6
- * The Onfido API (v3.6)
5
+ * Onfido Public API v3.6
6
+ * The Onfido Public API (v3.6)
7
7
  *
8
8
  * The version of the OpenAPI document: v3.6
9
9
  *
@@ -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.4.0" }) });
35
+ this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "onfido-node/5.6.0" }) });
36
36
  this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
37
37
  }
38
38
  /**