@onfido/api 5.4.0 → 5.5.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
  *
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.5.0" }) });
36
36
  this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
37
37
  }
38
38
  /**