@onfido/api 3.4.0 → 3.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/README.md CHANGED
@@ -132,15 +132,15 @@ onfido
132
132
 
133
133
  ### File download
134
134
 
135
- File downloads, for example `onfido.downloadDocument(documentId, {responseType: 'arraybuffer'})`, will return an instance of a specific object for this endpoint.
135
+ File downloads, for example `onfido.downloadDocument(documentId)`, will return an instance of a `FileTransfer` object.
136
136
 
137
- These objects will have a content type, e.g. `image/png`.
137
+ This object will have a content type, e.g. `image/png`.
138
138
 
139
139
  ```js
140
140
  download.headers["content-type"];
141
141
  ```
142
142
 
143
- Call `slice()` to get a `Blob` of the download:
143
+ Call `slice()` to get a `Buffer` of the download:
144
144
 
145
145
  ```js
146
146
  const blob = download.data.slice();
@@ -148,16 +148,18 @@ const blob = download.data.slice();
148
148
 
149
149
  ### File upload
150
150
 
151
- For some common types of streams, like instances of `fs.ReadStream`, you can provide the stream directly:
151
+ File upload should make use of the provided `FileTransfer` class, e.g.:
152
152
 
153
153
  ```js
154
154
  onfido.uploadDocument(
155
155
  "passport",
156
156
  "<APPLICANT_ID>",
157
- fs.createReadStream("path/to/passport.png")
157
+ new FileTransfer(Buffer.from(document.buffer), document.filename)
158
158
  );
159
159
  ```
160
160
 
161
+ `FileTransfer` object can also be created from an existing file, e.g. `new FileTransfer("path/to/passport.png")`.
162
+
161
163
  ### Webhook event verification
162
164
 
163
165
  Webhook events payload needs to be verified before it can be accessed. Library allows to easily decode the payload and verify its signature before returning it as an object for user convenience:
package/dist/api.d.ts CHANGED
@@ -8798,10 +8798,276 @@ export interface WatchlistEnhancedBreakdown {
8798
8798
  export interface WatchlistEnhancedProperties {
8799
8799
  /**
8800
8800
  * Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.
8801
- * @type {Array<string>}
8801
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInner>}
8802
8802
  * @memberof WatchlistEnhancedProperties
8803
8803
  */
8804
- 'records'?: Array<string>;
8804
+ 'records'?: Array<WatchlistEnhancedPropertiesRecordsInner>;
8805
+ }
8806
+ /**
8807
+ *
8808
+ * @export
8809
+ * @interface WatchlistEnhancedPropertiesRecordsInner
8810
+ */
8811
+ export interface WatchlistEnhancedPropertiesRecordsInner {
8812
+ /**
8813
+ * All addresses on file.
8814
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>}
8815
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8816
+ */
8817
+ 'address'?: Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>;
8818
+ /**
8819
+ * Any names that the person is also known as.
8820
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>}
8821
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8822
+ */
8823
+ 'alias'?: Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>;
8824
+ /**
8825
+ * Any linked persons, for example family relatives or business partners.
8826
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>}
8827
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8828
+ */
8829
+ 'associate'?: Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>;
8830
+ /**
8831
+ * Information about the person, for example hair color or nationality.
8832
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>}
8833
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8834
+ */
8835
+ 'attribute'?: Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>;
8836
+ /**
8837
+ * All the date of births on file.
8838
+ * @type {Array<string>}
8839
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8840
+ */
8841
+ 'date_of_birth'?: Array<string>;
8842
+ /**
8843
+ * Information about events that have occurred to the person, for example deportation or arrest.
8844
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>}
8845
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8846
+ */
8847
+ 'event'?: Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>;
8848
+ /**
8849
+ * The name on file
8850
+ * @type {string}
8851
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8852
+ */
8853
+ 'full_name'?: string;
8854
+ /**
8855
+ * The role, country and date of each position.
8856
+ * @type {Array<string>}
8857
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8858
+ */
8859
+ 'position'?: Array<string>;
8860
+ /**
8861
+ * Details about where the information was obtained.
8862
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>}
8863
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8864
+ */
8865
+ 'source'?: Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>;
8866
+ }
8867
+ /**
8868
+ *
8869
+ * @export
8870
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAddressInner
8871
+ */
8872
+ export interface WatchlistEnhancedPropertiesRecordsInnerAddressInner {
8873
+ /**
8874
+ *
8875
+ * @type {string}
8876
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8877
+ */
8878
+ 'address_line1'?: string;
8879
+ /**
8880
+ *
8881
+ * @type {CountryCodes}
8882
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8883
+ */
8884
+ 'country'?: CountryCodes;
8885
+ /**
8886
+ *
8887
+ * @type {string}
8888
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8889
+ */
8890
+ 'postal_code'?: string;
8891
+ /**
8892
+ *
8893
+ * @type {string}
8894
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8895
+ */
8896
+ 'state_province'?: string;
8897
+ /**
8898
+ *
8899
+ * @type {string}
8900
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8901
+ */
8902
+ 'town'?: string;
8903
+ /**
8904
+ *
8905
+ * @type {string}
8906
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8907
+ */
8908
+ 'locator_type'?: string;
8909
+ }
8910
+ /**
8911
+ *
8912
+ * @export
8913
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAliasInner
8914
+ */
8915
+ export interface WatchlistEnhancedPropertiesRecordsInnerAliasInner {
8916
+ /**
8917
+ *
8918
+ * @type {string}
8919
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
8920
+ */
8921
+ 'alias_name'?: string;
8922
+ /**
8923
+ *
8924
+ * @type {string}
8925
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
8926
+ */
8927
+ 'alias_type'?: string;
8928
+ }
8929
+ /**
8930
+ *
8931
+ * @export
8932
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8933
+ */
8934
+ export interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner {
8935
+ /**
8936
+ *
8937
+ * @type {string}
8938
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8939
+ */
8940
+ 'entity_name'?: string;
8941
+ /**
8942
+ *
8943
+ * @type {string}
8944
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8945
+ */
8946
+ 'relationship_direction'?: string;
8947
+ /**
8948
+ *
8949
+ * @type {string}
8950
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8951
+ */
8952
+ 'relationship_type'?: string;
8953
+ }
8954
+ /**
8955
+ *
8956
+ * @export
8957
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner
8958
+ */
8959
+ export interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner {
8960
+ /**
8961
+ *
8962
+ * @type {string}
8963
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
8964
+ */
8965
+ 'attribute_type'?: string;
8966
+ /**
8967
+ *
8968
+ * @type {string}
8969
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
8970
+ */
8971
+ 'attribute_value'?: string;
8972
+ }
8973
+ /**
8974
+ *
8975
+ * @export
8976
+ * @interface WatchlistEnhancedPropertiesRecordsInnerEventInner
8977
+ */
8978
+ export interface WatchlistEnhancedPropertiesRecordsInnerEventInner {
8979
+ /**
8980
+ *
8981
+ * @type {string}
8982
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
8983
+ */
8984
+ 'category'?: string;
8985
+ /**
8986
+ *
8987
+ * @type {string}
8988
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
8989
+ */
8990
+ 'event_date'?: string;
8991
+ /**
8992
+ *
8993
+ * @type {string}
8994
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
8995
+ */
8996
+ 'event_description'?: string;
8997
+ /**
8998
+ *
8999
+ * @type {WatchlistEnhancedPropertiesRecordsInnerEventInnerSource}
9000
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
9001
+ */
9002
+ 'source'?: WatchlistEnhancedPropertiesRecordsInnerEventInnerSource;
9003
+ /**
9004
+ *
9005
+ * @type {string}
9006
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
9007
+ */
9008
+ 'sub_category'?: string;
9009
+ }
9010
+ /**
9011
+ *
9012
+ * @export
9013
+ * @interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9014
+ */
9015
+ export interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource {
9016
+ /**
9017
+ *
9018
+ * @type {string}
9019
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9020
+ */
9021
+ 'source_date'?: string;
9022
+ /**
9023
+ *
9024
+ * @type {string}
9025
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9026
+ */
9027
+ 'source_format'?: string;
9028
+ /**
9029
+ *
9030
+ * @type {string}
9031
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9032
+ */
9033
+ 'source_name'?: string;
9034
+ /**
9035
+ *
9036
+ * @type {string}
9037
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9038
+ */
9039
+ 'source_url'?: string;
9040
+ }
9041
+ /**
9042
+ *
9043
+ * @export
9044
+ * @interface WatchlistEnhancedPropertiesRecordsInnerSourceInner
9045
+ */
9046
+ export interface WatchlistEnhancedPropertiesRecordsInnerSourceInner {
9047
+ /**
9048
+ *
9049
+ * @type {string}
9050
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9051
+ */
9052
+ 'source_headline'?: string;
9053
+ /**
9054
+ *
9055
+ * @type {string}
9056
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9057
+ */
9058
+ 'source_name'?: string;
9059
+ /**
9060
+ *
9061
+ * @type {string}
9062
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9063
+ */
9064
+ 'source_url'?: string;
9065
+ /**
9066
+ *
9067
+ * @type {string}
9068
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9069
+ */
9070
+ 'source_format'?: string;
8805
9071
  }
8806
9072
  /**
8807
9073
  *
package/dist/api.js CHANGED
@@ -2789,7 +2789,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2789
2789
  localVarFormParams.append('validate_image_quality', String(validateImageQuality));
2790
2790
  }
2791
2791
  if (location !== undefined) {
2792
- localVarFormParams.append('location', new Blob([JSON.stringify(location)], { type: "application/json", }));
2792
+ localVarFormParams.append('location', JSON.stringify(location));
2793
2793
  }
2794
2794
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
2795
2795
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -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/3.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/3.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
@@ -8798,10 +8798,276 @@ export interface WatchlistEnhancedBreakdown {
8798
8798
  export interface WatchlistEnhancedProperties {
8799
8799
  /**
8800
8800
  * Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.
8801
- * @type {Array<string>}
8801
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInner>}
8802
8802
  * @memberof WatchlistEnhancedProperties
8803
8803
  */
8804
- 'records'?: Array<string>;
8804
+ 'records'?: Array<WatchlistEnhancedPropertiesRecordsInner>;
8805
+ }
8806
+ /**
8807
+ *
8808
+ * @export
8809
+ * @interface WatchlistEnhancedPropertiesRecordsInner
8810
+ */
8811
+ export interface WatchlistEnhancedPropertiesRecordsInner {
8812
+ /**
8813
+ * All addresses on file.
8814
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>}
8815
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8816
+ */
8817
+ 'address'?: Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>;
8818
+ /**
8819
+ * Any names that the person is also known as.
8820
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>}
8821
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8822
+ */
8823
+ 'alias'?: Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>;
8824
+ /**
8825
+ * Any linked persons, for example family relatives or business partners.
8826
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>}
8827
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8828
+ */
8829
+ 'associate'?: Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>;
8830
+ /**
8831
+ * Information about the person, for example hair color or nationality.
8832
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>}
8833
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8834
+ */
8835
+ 'attribute'?: Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>;
8836
+ /**
8837
+ * All the date of births on file.
8838
+ * @type {Array<string>}
8839
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8840
+ */
8841
+ 'date_of_birth'?: Array<string>;
8842
+ /**
8843
+ * Information about events that have occurred to the person, for example deportation or arrest.
8844
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>}
8845
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8846
+ */
8847
+ 'event'?: Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>;
8848
+ /**
8849
+ * The name on file
8850
+ * @type {string}
8851
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8852
+ */
8853
+ 'full_name'?: string;
8854
+ /**
8855
+ * The role, country and date of each position.
8856
+ * @type {Array<string>}
8857
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8858
+ */
8859
+ 'position'?: Array<string>;
8860
+ /**
8861
+ * Details about where the information was obtained.
8862
+ * @type {Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>}
8863
+ * @memberof WatchlistEnhancedPropertiesRecordsInner
8864
+ */
8865
+ 'source'?: Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>;
8866
+ }
8867
+ /**
8868
+ *
8869
+ * @export
8870
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAddressInner
8871
+ */
8872
+ export interface WatchlistEnhancedPropertiesRecordsInnerAddressInner {
8873
+ /**
8874
+ *
8875
+ * @type {string}
8876
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8877
+ */
8878
+ 'address_line1'?: string;
8879
+ /**
8880
+ *
8881
+ * @type {CountryCodes}
8882
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8883
+ */
8884
+ 'country'?: CountryCodes;
8885
+ /**
8886
+ *
8887
+ * @type {string}
8888
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8889
+ */
8890
+ 'postal_code'?: string;
8891
+ /**
8892
+ *
8893
+ * @type {string}
8894
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8895
+ */
8896
+ 'state_province'?: string;
8897
+ /**
8898
+ *
8899
+ * @type {string}
8900
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8901
+ */
8902
+ 'town'?: string;
8903
+ /**
8904
+ *
8905
+ * @type {string}
8906
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
8907
+ */
8908
+ 'locator_type'?: string;
8909
+ }
8910
+ /**
8911
+ *
8912
+ * @export
8913
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAliasInner
8914
+ */
8915
+ export interface WatchlistEnhancedPropertiesRecordsInnerAliasInner {
8916
+ /**
8917
+ *
8918
+ * @type {string}
8919
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
8920
+ */
8921
+ 'alias_name'?: string;
8922
+ /**
8923
+ *
8924
+ * @type {string}
8925
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
8926
+ */
8927
+ 'alias_type'?: string;
8928
+ }
8929
+ /**
8930
+ *
8931
+ * @export
8932
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8933
+ */
8934
+ export interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner {
8935
+ /**
8936
+ *
8937
+ * @type {string}
8938
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8939
+ */
8940
+ 'entity_name'?: string;
8941
+ /**
8942
+ *
8943
+ * @type {string}
8944
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8945
+ */
8946
+ 'relationship_direction'?: string;
8947
+ /**
8948
+ *
8949
+ * @type {string}
8950
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
8951
+ */
8952
+ 'relationship_type'?: string;
8953
+ }
8954
+ /**
8955
+ *
8956
+ * @export
8957
+ * @interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner
8958
+ */
8959
+ export interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner {
8960
+ /**
8961
+ *
8962
+ * @type {string}
8963
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
8964
+ */
8965
+ 'attribute_type'?: string;
8966
+ /**
8967
+ *
8968
+ * @type {string}
8969
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
8970
+ */
8971
+ 'attribute_value'?: string;
8972
+ }
8973
+ /**
8974
+ *
8975
+ * @export
8976
+ * @interface WatchlistEnhancedPropertiesRecordsInnerEventInner
8977
+ */
8978
+ export interface WatchlistEnhancedPropertiesRecordsInnerEventInner {
8979
+ /**
8980
+ *
8981
+ * @type {string}
8982
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
8983
+ */
8984
+ 'category'?: string;
8985
+ /**
8986
+ *
8987
+ * @type {string}
8988
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
8989
+ */
8990
+ 'event_date'?: string;
8991
+ /**
8992
+ *
8993
+ * @type {string}
8994
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
8995
+ */
8996
+ 'event_description'?: string;
8997
+ /**
8998
+ *
8999
+ * @type {WatchlistEnhancedPropertiesRecordsInnerEventInnerSource}
9000
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
9001
+ */
9002
+ 'source'?: WatchlistEnhancedPropertiesRecordsInnerEventInnerSource;
9003
+ /**
9004
+ *
9005
+ * @type {string}
9006
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
9007
+ */
9008
+ 'sub_category'?: string;
9009
+ }
9010
+ /**
9011
+ *
9012
+ * @export
9013
+ * @interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9014
+ */
9015
+ export interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource {
9016
+ /**
9017
+ *
9018
+ * @type {string}
9019
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9020
+ */
9021
+ 'source_date'?: string;
9022
+ /**
9023
+ *
9024
+ * @type {string}
9025
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9026
+ */
9027
+ 'source_format'?: string;
9028
+ /**
9029
+ *
9030
+ * @type {string}
9031
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9032
+ */
9033
+ 'source_name'?: string;
9034
+ /**
9035
+ *
9036
+ * @type {string}
9037
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
9038
+ */
9039
+ 'source_url'?: string;
9040
+ }
9041
+ /**
9042
+ *
9043
+ * @export
9044
+ * @interface WatchlistEnhancedPropertiesRecordsInnerSourceInner
9045
+ */
9046
+ export interface WatchlistEnhancedPropertiesRecordsInnerSourceInner {
9047
+ /**
9048
+ *
9049
+ * @type {string}
9050
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9051
+ */
9052
+ 'source_headline'?: string;
9053
+ /**
9054
+ *
9055
+ * @type {string}
9056
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9057
+ */
9058
+ 'source_name'?: string;
9059
+ /**
9060
+ *
9061
+ * @type {string}
9062
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9063
+ */
9064
+ 'source_url'?: string;
9065
+ /**
9066
+ *
9067
+ * @type {string}
9068
+ * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
9069
+ */
9070
+ 'source_format'?: string;
8805
9071
  }
8806
9072
  /**
8807
9073
  *
package/dist/esm/api.js CHANGED
@@ -2785,7 +2785,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
2785
2785
  localVarFormParams.append('validate_image_quality', String(validateImageQuality));
2786
2786
  }
2787
2787
  if (location !== undefined) {
2788
- localVarFormParams.append('location', new Blob([JSON.stringify(location)], { type: "application/json", }));
2788
+ localVarFormParams.append('location', JSON.stringify(location));
2789
2789
  }
2790
2790
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
2791
2791
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -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/3.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/3.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": "3.4.0",
3
+ "version": "3.6.0",
4
4
  "description": "Node.js library for the Onfido API",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "axios": "^1.6.1"
48
+ "axios": "^1.7.4"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@faker-js/faker": "^8.4.1",