@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/esm/api.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Onfido API v3.6
5
- * The Onfido API (v3.6)
4
+ * Onfido Public API v3.6
5
+ * The Onfido Public API (v3.6)
6
6
  *
7
7
  * The version of the OpenAPI document: v3.6
8
8
  *
@@ -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 = {
@@ -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/esm/base.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Onfido API v3.6
5
- * The Onfido API (v3.6)
4
+ * Onfido Public API v3.6
5
+ * The Onfido Public API (v3.6)
6
6
  *
7
7
  * The version of the OpenAPI document: v3.6
8
8
  *
@@ -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>;
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Onfido API v3.6
5
- * The Onfido API (v3.6)
4
+ * Onfido Public API v3.6
5
+ * The Onfido Public API (v3.6)
6
6
  *
7
7
  * The version of the OpenAPI document: v3.6
8
8
  *
@@ -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
  *
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Onfido API v3.6
5
- * The Onfido API (v3.6)
4
+ * Onfido Public API v3.6
5
+ * The Onfido Public API (v3.6)
6
6
  *
7
7
  * The version of the OpenAPI document: v3.6
8
8
  *
@@ -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.4.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
  /**
@@ -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/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Onfido API v3.6
5
- * The Onfido API (v3.6)
4
+ * Onfido Public API v3.6
5
+ * The Onfido Public API (v3.6)
6
6
  *
7
7
  * The version of the OpenAPI document: v3.6
8
8
  *
package/dist/index.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/index.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onfido/api",
3
- "version": "5.4.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": {