onfido 6.1.0 → 6.3.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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +17 -1
  4. data/lib/onfido/api/default_api.rb +492 -79
  5. data/lib/onfido/api_client.rb +6 -2
  6. data/lib/onfido/configuration.rb +88 -0
  7. data/lib/onfido/models/biometric_token.rb +265 -0
  8. data/lib/onfido/models/biometric_token_data.rb +317 -0
  9. data/lib/onfido/models/biometric_token_response.rb +237 -0
  10. data/lib/onfido/models/biometric_token_updater.rb +262 -0
  11. data/lib/onfido/models/biometric_tokens_response.rb +239 -0
  12. data/lib/onfido/models/document_types.rb +3 -1
  13. data/lib/onfido/models/invalidated_biometric_token_response.rb +237 -0
  14. data/lib/onfido/models/invalidated_biometric_token_summary.rb +238 -0
  15. data/lib/onfido/models/invalidated_biometric_token_summary_deleted_items.rb +239 -0
  16. data/lib/onfido/models/invalidated_biometric_tokens_response.rb +237 -0
  17. data/lib/onfido/models/updated_biometric_token_response.rb +237 -0
  18. data/lib/onfido/models/watchlist_mesh_added_mentions.rb +247 -0
  19. data/lib/onfido/models/watchlist_mesh_alert_risk.rb +323 -0
  20. data/lib/onfido/models/watchlist_mesh_alert_risk1.rb +316 -0
  21. data/lib/onfido/models/watchlist_mesh_associate.rb +231 -0
  22. data/lib/onfido/models/watchlist_mesh_date_value.rb +231 -0
  23. data/lib/onfido/models/watchlist_mesh_field.rb +241 -0
  24. data/lib/onfido/models/watchlist_mesh_image.rb +231 -0
  25. data/lib/onfido/models/watchlist_mesh_lists.rb +309 -0
  26. data/lib/onfido/models/watchlist_mesh_media.rb +261 -0
  27. data/lib/onfido/models/watchlist_mesh_name.rb +231 -0
  28. data/lib/onfido/models/watchlist_mesh_pep.rb +369 -0
  29. data/lib/onfido/models/watchlist_mesh_person.rb +283 -0
  30. data/lib/onfido/models/watchlist_mesh_profile.rb +273 -0
  31. data/lib/onfido/models/watchlist_mesh_risk_decision.rb +43 -0
  32. data/lib/onfido/models/watchlist_mesh_risk_detail.rb +255 -0
  33. data/lib/onfido/models/watchlist_mesh_risk_indicators.rb +271 -0
  34. data/lib/onfido/models/watchlist_mesh_sanctions.rb +309 -0
  35. data/lib/onfido/models/webhook.rb +11 -1
  36. data/lib/onfido/models/webhook_builder.rb +11 -1
  37. data/lib/onfido/models/webhook_create.rb +11 -1
  38. data/lib/onfido/models/webhook_response.rb +11 -1
  39. data/lib/onfido/models/webhook_update.rb +11 -1
  40. data/lib/onfido/models/webhook_updater.rb +11 -1
  41. data/lib/onfido/version.rb +1 -1
  42. data/lib/onfido.rb +27 -0
  43. data/spec/integrations/biometric_token_spec.rb +122 -0
  44. data/spec/integrations/document_spec.rb +8 -1
  45. data/spec/integrations/media/nfc_data.json +11768 -0
  46. data/spec/integrations/watchlist_alert_risk_spec.rb +66 -0
  47. data/spec/shared_contexts/with_document.rb +0 -1
  48. data/spec/shared_contexts/with_onfido.rb +14 -2
  49. data/spec/spec_helper.rb +6 -7
  50. metadata +57 -24
@@ -63,7 +63,7 @@ module Onfido
63
63
  return_type = opts[:debug_return_type]
64
64
 
65
65
  # auth_names
66
- auth_names = opts[:debug_auth_names] || ['Token']
66
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
67
67
 
68
68
  new_options = opts.merge(
69
69
  :operation => :"DefaultApi.cancel_report",
@@ -143,7 +143,7 @@ module Onfido
143
143
  return_type = opts[:debug_return_type]
144
144
 
145
145
  # auth_names
146
- auth_names = opts[:debug_auth_names] || ['Token']
146
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
147
147
 
148
148
  new_options = opts.merge(
149
149
  :operation => :"DefaultApi.complete_task",
@@ -211,7 +211,7 @@ module Onfido
211
211
  return_type = opts[:debug_return_type] || 'Applicant'
212
212
 
213
213
  # auth_names
214
- auth_names = opts[:debug_auth_names] || ['Token']
214
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
215
215
 
216
216
  new_options = opts.merge(
217
217
  :operation => :"DefaultApi.create_applicant",
@@ -279,7 +279,7 @@ module Onfido
279
279
  return_type = opts[:debug_return_type] || 'Check'
280
280
 
281
281
  # auth_names
282
- auth_names = opts[:debug_auth_names] || ['Token']
282
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
283
283
 
284
284
  new_options = opts.merge(
285
285
  :operation => :"DefaultApi.create_check",
@@ -342,7 +342,7 @@ module Onfido
342
342
  return_type = opts[:debug_return_type] || 'TimelineFileReference'
343
343
 
344
344
  # auth_names
345
- auth_names = opts[:debug_auth_names] || ['Token']
345
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
346
346
 
347
347
  new_options = opts.merge(
348
348
  :operation => :"DefaultApi.create_timeline_file",
@@ -410,7 +410,7 @@ module Onfido
410
410
  return_type = opts[:debug_return_type] || 'WatchlistMonitor'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:debug_auth_names] || ['Token']
413
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
414
414
 
415
415
  new_options = opts.merge(
416
416
  :operation => :"DefaultApi.create_watchlist_monitor",
@@ -478,7 +478,7 @@ module Onfido
478
478
  return_type = opts[:debug_return_type] || 'Webhook'
479
479
 
480
480
  # auth_names
481
- auth_names = opts[:debug_auth_names] || ['Token']
481
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
482
482
 
483
483
  new_options = opts.merge(
484
484
  :operation => :"DefaultApi.create_webhook",
@@ -546,7 +546,7 @@ module Onfido
546
546
  return_type = opts[:debug_return_type] || 'WorkflowRun'
547
547
 
548
548
  # auth_names
549
- auth_names = opts[:debug_auth_names] || ['Token']
549
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
550
550
 
551
551
  new_options = opts.merge(
552
552
  :operation => :"DefaultApi.create_workflow_run",
@@ -609,7 +609,7 @@ module Onfido
609
609
  return_type = opts[:debug_return_type]
610
610
 
611
611
  # auth_names
612
- auth_names = opts[:debug_auth_names] || ['Token']
612
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
613
613
 
614
614
  new_options = opts.merge(
615
615
  :operation => :"DefaultApi.delete_applicant",
@@ -678,7 +678,7 @@ module Onfido
678
678
  return_type = opts[:debug_return_type]
679
679
 
680
680
  # auth_names
681
- auth_names = opts[:debug_auth_names] || ['Token']
681
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
682
682
 
683
683
  new_options = opts.merge(
684
684
  :operation => :"DefaultApi.delete_passkey",
@@ -741,7 +741,7 @@ module Onfido
741
741
  return_type = opts[:debug_return_type]
742
742
 
743
743
  # auth_names
744
- auth_names = opts[:debug_auth_names] || ['Token']
744
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
745
745
 
746
746
  new_options = opts.merge(
747
747
  :operation => :"DefaultApi.delete_passkeys",
@@ -804,7 +804,7 @@ module Onfido
804
804
  return_type = opts[:debug_return_type]
805
805
 
806
806
  # auth_names
807
- auth_names = opts[:debug_auth_names] || ['Token']
807
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
808
808
 
809
809
  new_options = opts.merge(
810
810
  :operation => :"DefaultApi.delete_watchlist_monitor",
@@ -867,7 +867,7 @@ module Onfido
867
867
  return_type = opts[:debug_return_type]
868
868
 
869
869
  # auth_names
870
- auth_names = opts[:debug_auth_names] || ['Token']
870
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
871
871
 
872
872
  new_options = opts.merge(
873
873
  :operation => :"DefaultApi.delete_webhook",
@@ -938,7 +938,7 @@ module Onfido
938
938
  return_type = opts[:debug_return_type] || 'File'
939
939
 
940
940
  # auth_names
941
- auth_names = opts[:debug_auth_names] || ['Token']
941
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
942
942
 
943
943
  new_options = opts.merge(
944
944
  :operation => :"DefaultApi.download_aes_document",
@@ -1001,7 +1001,7 @@ module Onfido
1001
1001
  return_type = opts[:debug_return_type] || 'File'
1002
1002
 
1003
1003
  # auth_names
1004
- auth_names = opts[:debug_auth_names] || ['Token']
1004
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1005
1005
 
1006
1006
  new_options = opts.merge(
1007
1007
  :operation => :"DefaultApi.download_check",
@@ -1064,7 +1064,7 @@ module Onfido
1064
1064
  return_type = opts[:debug_return_type] || 'File'
1065
1065
 
1066
1066
  # auth_names
1067
- auth_names = opts[:debug_auth_names] || ['Token']
1067
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1068
1068
 
1069
1069
  new_options = opts.merge(
1070
1070
  :operation => :"DefaultApi.download_document",
@@ -1127,7 +1127,7 @@ module Onfido
1127
1127
  return_type = opts[:debug_return_type] || 'File'
1128
1128
 
1129
1129
  # auth_names
1130
- auth_names = opts[:debug_auth_names] || ['Token']
1130
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1131
1131
 
1132
1132
  new_options = opts.merge(
1133
1133
  :operation => :"DefaultApi.download_document_video",
@@ -1190,7 +1190,7 @@ module Onfido
1190
1190
  return_type = opts[:debug_return_type] || 'File'
1191
1191
 
1192
1192
  # auth_names
1193
- auth_names = opts[:debug_auth_names] || ['Token']
1193
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1194
1194
 
1195
1195
  new_options = opts.merge(
1196
1196
  :operation => :"DefaultApi.download_evidence_folder",
@@ -1253,7 +1253,7 @@ module Onfido
1253
1253
  return_type = opts[:debug_return_type] || 'File'
1254
1254
 
1255
1255
  # auth_names
1256
- auth_names = opts[:debug_auth_names] || ['Token']
1256
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1257
1257
 
1258
1258
  new_options = opts.merge(
1259
1259
  :operation => :"DefaultApi.download_id_photo",
@@ -1316,7 +1316,7 @@ module Onfido
1316
1316
  return_type = opts[:debug_return_type] || 'File'
1317
1317
 
1318
1318
  # auth_names
1319
- auth_names = opts[:debug_auth_names] || ['Token']
1319
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1320
1320
 
1321
1321
  new_options = opts.merge(
1322
1322
  :operation => :"DefaultApi.download_live_photo",
@@ -1379,7 +1379,7 @@ module Onfido
1379
1379
  return_type = opts[:debug_return_type] || 'File'
1380
1380
 
1381
1381
  # auth_names
1382
- auth_names = opts[:debug_auth_names] || ['Token']
1382
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1383
1383
 
1384
1384
  new_options = opts.merge(
1385
1385
  :operation => :"DefaultApi.download_live_video",
@@ -1442,7 +1442,7 @@ module Onfido
1442
1442
  return_type = opts[:debug_return_type] || 'File'
1443
1443
 
1444
1444
  # auth_names
1445
- auth_names = opts[:debug_auth_names] || ['Token']
1445
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1446
1446
 
1447
1447
  new_options = opts.merge(
1448
1448
  :operation => :"DefaultApi.download_live_video_frame",
@@ -1505,7 +1505,7 @@ module Onfido
1505
1505
  return_type = opts[:debug_return_type] || 'File'
1506
1506
 
1507
1507
  # auth_names
1508
- auth_names = opts[:debug_auth_names] || ['Token']
1508
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1509
1509
 
1510
1510
  new_options = opts.merge(
1511
1511
  :operation => :"DefaultApi.download_motion_capture",
@@ -1568,7 +1568,7 @@ module Onfido
1568
1568
  return_type = opts[:debug_return_type] || 'File'
1569
1569
 
1570
1570
  # auth_names
1571
- auth_names = opts[:debug_auth_names] || ['Token']
1571
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1572
1572
 
1573
1573
  new_options = opts.merge(
1574
1574
  :operation => :"DefaultApi.download_motion_capture_frame",
@@ -1631,7 +1631,7 @@ module Onfido
1631
1631
  return_type = opts[:debug_return_type] || 'File'
1632
1632
 
1633
1633
  # auth_names
1634
- auth_names = opts[:debug_auth_names] || ['Token']
1634
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1635
1635
 
1636
1636
  new_options = opts.merge(
1637
1637
  :operation => :"DefaultApi.download_nfc_face",
@@ -1702,7 +1702,7 @@ module Onfido
1702
1702
  return_type = opts[:debug_return_type] || 'File'
1703
1703
 
1704
1704
  # auth_names
1705
- auth_names = opts[:debug_auth_names] || ['Token']
1705
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1706
1706
 
1707
1707
  new_options = opts.merge(
1708
1708
  :operation => :"DefaultApi.download_qes_document",
@@ -1773,7 +1773,7 @@ module Onfido
1773
1773
  return_type = opts[:debug_return_type] || 'File'
1774
1774
 
1775
1775
  # auth_names
1776
- auth_names = opts[:debug_auth_names] || ['Token']
1776
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1777
1777
 
1778
1778
  new_options = opts.merge(
1779
1779
  :operation => :"DefaultApi.download_ses_document",
@@ -1836,7 +1836,7 @@ module Onfido
1836
1836
  return_type = opts[:debug_return_type] || 'File'
1837
1837
 
1838
1838
  # auth_names
1839
- auth_names = opts[:debug_auth_names] || ['Token']
1839
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1840
1840
 
1841
1841
  new_options = opts.merge(
1842
1842
  :operation => :"DefaultApi.download_signed_evidence_file",
@@ -1899,7 +1899,7 @@ module Onfido
1899
1899
  return_type = opts[:debug_return_type] || 'File'
1900
1900
 
1901
1901
  # auth_names
1902
- auth_names = opts[:debug_auth_names] || ['Token']
1902
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1903
1903
 
1904
1904
  new_options = opts.merge(
1905
1905
  :operation => :"DefaultApi.download_signing_document",
@@ -1967,7 +1967,7 @@ module Onfido
1967
1967
  return_type = opts[:debug_return_type] || 'Extraction'
1968
1968
 
1969
1969
  # auth_names
1970
- auth_names = opts[:debug_auth_names] || ['Token']
1970
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
1971
1971
 
1972
1972
  new_options = opts.merge(
1973
1973
  :operation => :"DefaultApi.extract",
@@ -2031,7 +2031,7 @@ module Onfido
2031
2031
  return_type = opts[:debug_return_type] || 'AddressesList'
2032
2032
 
2033
2033
  # auth_names
2034
- auth_names = opts[:debug_auth_names] || ['Token']
2034
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2035
2035
 
2036
2036
  new_options = opts.merge(
2037
2037
  :operation => :"DefaultApi.find_addresses",
@@ -2094,7 +2094,7 @@ module Onfido
2094
2094
  return_type = opts[:debug_return_type] || 'Applicant'
2095
2095
 
2096
2096
  # auth_names
2097
- auth_names = opts[:debug_auth_names] || ['Token']
2097
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2098
2098
 
2099
2099
  new_options = opts.merge(
2100
2100
  :operation => :"DefaultApi.find_applicant",
@@ -2157,7 +2157,7 @@ module Onfido
2157
2157
  return_type = opts[:debug_return_type] || 'Array<ApplicantConsent>'
2158
2158
 
2159
2159
  # auth_names
2160
- auth_names = opts[:debug_auth_names] || ['Token']
2160
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2161
2161
 
2162
2162
  new_options = opts.merge(
2163
2163
  :operation => :"DefaultApi.find_applicant_consents",
@@ -2176,6 +2176,75 @@ module Onfido
2176
2176
  return data, status_code, headers
2177
2177
  end
2178
2178
 
2179
+ # Retrieve biometric token
2180
+ # Returns a biometric token's details.
2181
+ # @param user_id [String] Customer user ID that owns the biometric token.
2182
+ # @param token_uuid [String] Biometric token UUID.
2183
+ # @param [Hash] opts the optional parameters
2184
+ # @return [BiometricTokenResponse]
2185
+ def find_biometric_token(user_id, token_uuid, opts = {})
2186
+ data, _status_code, _headers = find_biometric_token_with_http_info(user_id, token_uuid, opts)
2187
+ data
2188
+ end
2189
+
2190
+ # Retrieve biometric token
2191
+ # Returns a biometric token&#39;s details.
2192
+ # @param user_id [String] Customer user ID that owns the biometric token.
2193
+ # @param token_uuid [String] Biometric token UUID.
2194
+ # @param [Hash] opts the optional parameters
2195
+ # @return [Array<(BiometricTokenResponse, Integer, Hash)>] BiometricTokenResponse data, response status code and response headers
2196
+ def find_biometric_token_with_http_info(user_id, token_uuid, opts = {})
2197
+ if @api_client.config.debugging
2198
+ @api_client.config.logger.debug 'Calling API: DefaultApi.find_biometric_token ...'
2199
+ end
2200
+ # verify the required parameter 'user_id' is set
2201
+ if @api_client.config.client_side_validation && user_id.nil?
2202
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.find_biometric_token"
2203
+ end
2204
+ # verify the required parameter 'token_uuid' is set
2205
+ if @api_client.config.client_side_validation && token_uuid.nil?
2206
+ fail ArgumentError, "Missing the required parameter 'token_uuid' when calling DefaultApi.find_biometric_token"
2207
+ end
2208
+ # resource path
2209
+ local_var_path = '/biometric_tokens/{user_id}/{token_uuid}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
2210
+
2211
+ # query parameters
2212
+ query_params = opts[:query_params] || {}
2213
+
2214
+ # header parameters
2215
+ header_params = opts[:header_params] || {}
2216
+ # HTTP header 'Accept' (if needed)
2217
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2218
+
2219
+ # form parameters
2220
+ form_params = opts[:form_params] || {}
2221
+
2222
+ # http body (model)
2223
+ post_body = opts[:debug_body]
2224
+
2225
+ # return_type
2226
+ return_type = opts[:debug_return_type] || 'BiometricTokenResponse'
2227
+
2228
+ # auth_names
2229
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2230
+
2231
+ new_options = opts.merge(
2232
+ :operation => :"DefaultApi.find_biometric_token",
2233
+ :header_params => header_params,
2234
+ :query_params => query_params,
2235
+ :form_params => form_params,
2236
+ :body => post_body,
2237
+ :auth_names => auth_names,
2238
+ :return_type => return_type
2239
+ )
2240
+
2241
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2242
+ if @api_client.config.debugging
2243
+ @api_client.config.logger.debug "API called: DefaultApi#find_biometric_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2244
+ end
2245
+ return data, status_code, headers
2246
+ end
2247
+
2179
2248
  # Retrieve a Check
2180
2249
  # Retrieves a single check. Returns a check object.
2181
2250
  # @param check_id [String]
@@ -2220,7 +2289,7 @@ module Onfido
2220
2289
  return_type = opts[:debug_return_type] || 'Check'
2221
2290
 
2222
2291
  # auth_names
2223
- auth_names = opts[:debug_auth_names] || ['Token']
2292
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2224
2293
 
2225
2294
  new_options = opts.merge(
2226
2295
  :operation => :"DefaultApi.find_check",
@@ -2283,7 +2352,7 @@ module Onfido
2283
2352
  return_type = opts[:debug_return_type] || 'Document'
2284
2353
 
2285
2354
  # auth_names
2286
- auth_names = opts[:debug_auth_names] || ['Token']
2355
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2287
2356
 
2288
2357
  new_options = opts.merge(
2289
2358
  :operation => :"DefaultApi.find_document",
@@ -2346,7 +2415,7 @@ module Onfido
2346
2415
  return_type = opts[:debug_return_type] || 'IdPhoto'
2347
2416
 
2348
2417
  # auth_names
2349
- auth_names = opts[:debug_auth_names] || ['Token']
2418
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2350
2419
 
2351
2420
  new_options = opts.merge(
2352
2421
  :operation => :"DefaultApi.find_id_photo",
@@ -2409,7 +2478,7 @@ module Onfido
2409
2478
  return_type = opts[:debug_return_type] || 'LivePhoto'
2410
2479
 
2411
2480
  # auth_names
2412
- auth_names = opts[:debug_auth_names] || ['Token']
2481
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2413
2482
 
2414
2483
  new_options = opts.merge(
2415
2484
  :operation => :"DefaultApi.find_live_photo",
@@ -2472,7 +2541,7 @@ module Onfido
2472
2541
  return_type = opts[:debug_return_type] || 'LiveVideo'
2473
2542
 
2474
2543
  # auth_names
2475
- auth_names = opts[:debug_auth_names] || ['Token']
2544
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2476
2545
 
2477
2546
  new_options = opts.merge(
2478
2547
  :operation => :"DefaultApi.find_live_video",
@@ -2535,7 +2604,7 @@ module Onfido
2535
2604
  return_type = opts[:debug_return_type] || 'MotionCapture'
2536
2605
 
2537
2606
  # auth_names
2538
- auth_names = opts[:debug_auth_names] || ['Token']
2607
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2539
2608
 
2540
2609
  new_options = opts.merge(
2541
2610
  :operation => :"DefaultApi.find_motion_capture",
@@ -2604,7 +2673,7 @@ module Onfido
2604
2673
  return_type = opts[:debug_return_type] || 'Passkey'
2605
2674
 
2606
2675
  # auth_names
2607
- auth_names = opts[:debug_auth_names] || ['Token']
2676
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2608
2677
 
2609
2678
  new_options = opts.merge(
2610
2679
  :operation => :"DefaultApi.find_passkey",
@@ -2667,7 +2736,7 @@ module Onfido
2667
2736
  return_type = opts[:debug_return_type] || 'Report'
2668
2737
 
2669
2738
  # auth_names
2670
- auth_names = opts[:debug_auth_names] || ['Token']
2739
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2671
2740
 
2672
2741
  new_options = opts.merge(
2673
2742
  :operation => :"DefaultApi.find_report",
@@ -2730,7 +2799,7 @@ module Onfido
2730
2799
  return_type = opts[:debug_return_type] || 'SigningDocument'
2731
2800
 
2732
2801
  # auth_names
2733
- auth_names = opts[:debug_auth_names] || ['Token']
2802
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2734
2803
 
2735
2804
  new_options = opts.merge(
2736
2805
  :operation => :"DefaultApi.find_signing_document",
@@ -2799,7 +2868,7 @@ module Onfido
2799
2868
  return_type = opts[:debug_return_type] || 'Task'
2800
2869
 
2801
2870
  # auth_names
2802
- auth_names = opts[:debug_auth_names] || ['Token']
2871
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2803
2872
 
2804
2873
  new_options = opts.merge(
2805
2874
  :operation => :"DefaultApi.find_task",
@@ -2868,7 +2937,7 @@ module Onfido
2868
2937
  return_type = opts[:debug_return_type] || 'File'
2869
2938
 
2870
2939
  # auth_names
2871
- auth_names = opts[:debug_auth_names] || ['Token']
2940
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2872
2941
 
2873
2942
  new_options = opts.merge(
2874
2943
  :operation => :"DefaultApi.find_timeline_file",
@@ -2931,7 +3000,7 @@ module Onfido
2931
3000
  return_type = opts[:debug_return_type] || 'WatchlistMonitor'
2932
3001
 
2933
3002
  # auth_names
2934
- auth_names = opts[:debug_auth_names] || ['Token']
3003
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2935
3004
 
2936
3005
  new_options = opts.merge(
2937
3006
  :operation => :"DefaultApi.find_watchlist_monitor",
@@ -2994,7 +3063,7 @@ module Onfido
2994
3063
  return_type = opts[:debug_return_type] || 'Webhook'
2995
3064
 
2996
3065
  # auth_names
2997
- auth_names = opts[:debug_auth_names] || ['Token']
3066
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
2998
3067
 
2999
3068
  new_options = opts.merge(
3000
3069
  :operation => :"DefaultApi.find_webhook",
@@ -3057,7 +3126,7 @@ module Onfido
3057
3126
  return_type = opts[:debug_return_type] || 'WorkflowRun'
3058
3127
 
3059
3128
  # auth_names
3060
- auth_names = opts[:debug_auth_names] || ['Token']
3129
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3061
3130
 
3062
3131
  new_options = opts.merge(
3063
3132
  :operation => :"DefaultApi.find_workflow_run",
@@ -3120,7 +3189,7 @@ module Onfido
3120
3189
  return_type = opts[:debug_return_type]
3121
3190
 
3122
3191
  # auth_names
3123
- auth_names = opts[:debug_auth_names] || ['Token']
3192
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3124
3193
 
3125
3194
  new_options = opts.merge(
3126
3195
  :operation => :"DefaultApi.force_report_creation_from_watchlist_monitor",
@@ -3188,7 +3257,7 @@ module Onfido
3188
3257
  return_type = opts[:debug_return_type] || 'SdkToken'
3189
3258
 
3190
3259
  # auth_names
3191
- auth_names = opts[:debug_auth_names] || ['Token']
3260
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3192
3261
 
3193
3262
  new_options = opts.merge(
3194
3263
  :operation => :"DefaultApi.generate_sdk_token",
@@ -3207,6 +3276,138 @@ module Onfido
3207
3276
  return data, status_code, headers
3208
3277
  end
3209
3278
 
3279
+ # Invalidate biometric token
3280
+ # Invalidates a biometric token.
3281
+ # @param user_id [String] Customer user ID that owns the biometric token.
3282
+ # @param token_uuid [String] Biometric token UUID.
3283
+ # @param [Hash] opts the optional parameters
3284
+ # @return [InvalidatedBiometricTokenResponse]
3285
+ def invalidate_biometric_token(user_id, token_uuid, opts = {})
3286
+ data, _status_code, _headers = invalidate_biometric_token_with_http_info(user_id, token_uuid, opts)
3287
+ data
3288
+ end
3289
+
3290
+ # Invalidate biometric token
3291
+ # Invalidates a biometric token.
3292
+ # @param user_id [String] Customer user ID that owns the biometric token.
3293
+ # @param token_uuid [String] Biometric token UUID.
3294
+ # @param [Hash] opts the optional parameters
3295
+ # @return [Array<(InvalidatedBiometricTokenResponse, Integer, Hash)>] InvalidatedBiometricTokenResponse data, response status code and response headers
3296
+ def invalidate_biometric_token_with_http_info(user_id, token_uuid, opts = {})
3297
+ if @api_client.config.debugging
3298
+ @api_client.config.logger.debug 'Calling API: DefaultApi.invalidate_biometric_token ...'
3299
+ end
3300
+ # verify the required parameter 'user_id' is set
3301
+ if @api_client.config.client_side_validation && user_id.nil?
3302
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.invalidate_biometric_token"
3303
+ end
3304
+ # verify the required parameter 'token_uuid' is set
3305
+ if @api_client.config.client_side_validation && token_uuid.nil?
3306
+ fail ArgumentError, "Missing the required parameter 'token_uuid' when calling DefaultApi.invalidate_biometric_token"
3307
+ end
3308
+ # resource path
3309
+ local_var_path = '/biometric_tokens/{user_id}/{token_uuid}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
3310
+
3311
+ # query parameters
3312
+ query_params = opts[:query_params] || {}
3313
+
3314
+ # header parameters
3315
+ header_params = opts[:header_params] || {}
3316
+ # HTTP header 'Accept' (if needed)
3317
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3318
+
3319
+ # form parameters
3320
+ form_params = opts[:form_params] || {}
3321
+
3322
+ # http body (model)
3323
+ post_body = opts[:debug_body]
3324
+
3325
+ # return_type
3326
+ return_type = opts[:debug_return_type] || 'InvalidatedBiometricTokenResponse'
3327
+
3328
+ # auth_names
3329
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3330
+
3331
+ new_options = opts.merge(
3332
+ :operation => :"DefaultApi.invalidate_biometric_token",
3333
+ :header_params => header_params,
3334
+ :query_params => query_params,
3335
+ :form_params => form_params,
3336
+ :body => post_body,
3337
+ :auth_names => auth_names,
3338
+ :return_type => return_type
3339
+ )
3340
+
3341
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3342
+ if @api_client.config.debugging
3343
+ @api_client.config.logger.debug "API called: DefaultApi#invalidate_biometric_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3344
+ end
3345
+ return data, status_code, headers
3346
+ end
3347
+
3348
+ # Invalidate biometric tokens
3349
+ # Invalidates every biometric token associated with the supplied customer user ID.
3350
+ # @param user_id [String] Customer user ID whose biometric tokens will be invalidated.
3351
+ # @param [Hash] opts the optional parameters
3352
+ # @return [InvalidatedBiometricTokensResponse]
3353
+ def invalidate_biometric_tokens(user_id, opts = {})
3354
+ data, _status_code, _headers = invalidate_biometric_tokens_with_http_info(user_id, opts)
3355
+ data
3356
+ end
3357
+
3358
+ # Invalidate biometric tokens
3359
+ # Invalidates every biometric token associated with the supplied customer user ID.
3360
+ # @param user_id [String] Customer user ID whose biometric tokens will be invalidated.
3361
+ # @param [Hash] opts the optional parameters
3362
+ # @return [Array<(InvalidatedBiometricTokensResponse, Integer, Hash)>] InvalidatedBiometricTokensResponse data, response status code and response headers
3363
+ def invalidate_biometric_tokens_with_http_info(user_id, opts = {})
3364
+ if @api_client.config.debugging
3365
+ @api_client.config.logger.debug 'Calling API: DefaultApi.invalidate_biometric_tokens ...'
3366
+ end
3367
+ # verify the required parameter 'user_id' is set
3368
+ if @api_client.config.client_side_validation && user_id.nil?
3369
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.invalidate_biometric_tokens"
3370
+ end
3371
+ # resource path
3372
+ local_var_path = '/biometric_tokens/{user_id}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
3373
+
3374
+ # query parameters
3375
+ query_params = opts[:query_params] || {}
3376
+
3377
+ # header parameters
3378
+ header_params = opts[:header_params] || {}
3379
+ # HTTP header 'Accept' (if needed)
3380
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3381
+
3382
+ # form parameters
3383
+ form_params = opts[:form_params] || {}
3384
+
3385
+ # http body (model)
3386
+ post_body = opts[:debug_body]
3387
+
3388
+ # return_type
3389
+ return_type = opts[:debug_return_type] || 'InvalidatedBiometricTokensResponse'
3390
+
3391
+ # auth_names
3392
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3393
+
3394
+ new_options = opts.merge(
3395
+ :operation => :"DefaultApi.invalidate_biometric_tokens",
3396
+ :header_params => header_params,
3397
+ :query_params => query_params,
3398
+ :form_params => form_params,
3399
+ :body => post_body,
3400
+ :auth_names => auth_names,
3401
+ :return_type => return_type
3402
+ )
3403
+
3404
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
3405
+ if @api_client.config.debugging
3406
+ @api_client.config.logger.debug "API called: DefaultApi#invalidate_biometric_tokens\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3407
+ end
3408
+ return data, status_code, headers
3409
+ end
3410
+
3210
3411
  # List Applicants
3211
3412
  # Lists all applicants you've created, sorted by creation date in descending order.
3212
3413
  # @param [Hash] opts the optional parameters
@@ -3254,7 +3455,7 @@ module Onfido
3254
3455
  return_type = opts[:debug_return_type] || 'ApplicantsList'
3255
3456
 
3256
3457
  # auth_names
3257
- auth_names = opts[:debug_auth_names] || ['Token']
3458
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3258
3459
 
3259
3460
  new_options = opts.merge(
3260
3461
  :operation => :"DefaultApi.list_applicants",
@@ -3273,6 +3474,69 @@ module Onfido
3273
3474
  return data, status_code, headers
3274
3475
  end
3275
3476
 
3477
+ # List biometric tokens
3478
+ # Returns the biometric tokens associated with the supplied customer user ID.
3479
+ # @param user_id [String] Customer user ID that owns the biometric tokens.
3480
+ # @param [Hash] opts the optional parameters
3481
+ # @return [BiometricTokensResponse]
3482
+ def list_biometric_tokens(user_id, opts = {})
3483
+ data, _status_code, _headers = list_biometric_tokens_with_http_info(user_id, opts)
3484
+ data
3485
+ end
3486
+
3487
+ # List biometric tokens
3488
+ # Returns the biometric tokens associated with the supplied customer user ID.
3489
+ # @param user_id [String] Customer user ID that owns the biometric tokens.
3490
+ # @param [Hash] opts the optional parameters
3491
+ # @return [Array<(BiometricTokensResponse, Integer, Hash)>] BiometricTokensResponse data, response status code and response headers
3492
+ def list_biometric_tokens_with_http_info(user_id, opts = {})
3493
+ if @api_client.config.debugging
3494
+ @api_client.config.logger.debug 'Calling API: DefaultApi.list_biometric_tokens ...'
3495
+ end
3496
+ # verify the required parameter 'user_id' is set
3497
+ if @api_client.config.client_side_validation && user_id.nil?
3498
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.list_biometric_tokens"
3499
+ end
3500
+ # resource path
3501
+ local_var_path = '/biometric_tokens/{user_id}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
3502
+
3503
+ # query parameters
3504
+ query_params = opts[:query_params] || {}
3505
+
3506
+ # header parameters
3507
+ header_params = opts[:header_params] || {}
3508
+ # HTTP header 'Accept' (if needed)
3509
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3510
+
3511
+ # form parameters
3512
+ form_params = opts[:form_params] || {}
3513
+
3514
+ # http body (model)
3515
+ post_body = opts[:debug_body]
3516
+
3517
+ # return_type
3518
+ return_type = opts[:debug_return_type] || 'BiometricTokensResponse'
3519
+
3520
+ # auth_names
3521
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3522
+
3523
+ new_options = opts.merge(
3524
+ :operation => :"DefaultApi.list_biometric_tokens",
3525
+ :header_params => header_params,
3526
+ :query_params => query_params,
3527
+ :form_params => form_params,
3528
+ :body => post_body,
3529
+ :auth_names => auth_names,
3530
+ :return_type => return_type
3531
+ )
3532
+
3533
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3534
+ if @api_client.config.debugging
3535
+ @api_client.config.logger.debug "API called: DefaultApi#list_biometric_tokens\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3536
+ end
3537
+ return data, status_code, headers
3538
+ end
3539
+
3276
3540
  # Retrieve Checks
3277
3541
  # Retrieves a single check. Returns a check object.
3278
3542
  # @param applicant_id [String]
@@ -3318,7 +3582,7 @@ module Onfido
3318
3582
  return_type = opts[:debug_return_type] || 'ChecksList'
3319
3583
 
3320
3584
  # auth_names
3321
- auth_names = opts[:debug_auth_names] || ['Token']
3585
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3322
3586
 
3323
3587
  new_options = opts.merge(
3324
3588
  :operation => :"DefaultApi.list_checks",
@@ -3382,7 +3646,7 @@ module Onfido
3382
3646
  return_type = opts[:debug_return_type] || 'DocumentsList'
3383
3647
 
3384
3648
  # auth_names
3385
- auth_names = opts[:debug_auth_names] || ['Token']
3649
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3386
3650
 
3387
3651
  new_options = opts.merge(
3388
3652
  :operation => :"DefaultApi.list_documents",
@@ -3446,7 +3710,7 @@ module Onfido
3446
3710
  return_type = opts[:debug_return_type] || 'IdPhotosList'
3447
3711
 
3448
3712
  # auth_names
3449
- auth_names = opts[:debug_auth_names] || ['Token']
3713
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3450
3714
 
3451
3715
  new_options = opts.merge(
3452
3716
  :operation => :"DefaultApi.list_id_photos",
@@ -3510,7 +3774,7 @@ module Onfido
3510
3774
  return_type = opts[:debug_return_type] || 'LivePhotosList'
3511
3775
 
3512
3776
  # auth_names
3513
- auth_names = opts[:debug_auth_names] || ['Token']
3777
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3514
3778
 
3515
3779
  new_options = opts.merge(
3516
3780
  :operation => :"DefaultApi.list_live_photos",
@@ -3574,7 +3838,7 @@ module Onfido
3574
3838
  return_type = opts[:debug_return_type] || 'LiveVideosList'
3575
3839
 
3576
3840
  # auth_names
3577
- auth_names = opts[:debug_auth_names] || ['Token']
3841
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3578
3842
 
3579
3843
  new_options = opts.merge(
3580
3844
  :operation => :"DefaultApi.list_live_videos",
@@ -3638,7 +3902,7 @@ module Onfido
3638
3902
  return_type = opts[:debug_return_type] || 'MotionCapturesList'
3639
3903
 
3640
3904
  # auth_names
3641
- auth_names = opts[:debug_auth_names] || ['Token']
3905
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3642
3906
 
3643
3907
  new_options = opts.merge(
3644
3908
  :operation => :"DefaultApi.list_motion_captures",
@@ -3701,7 +3965,7 @@ module Onfido
3701
3965
  return_type = opts[:debug_return_type] || 'PasskeysList'
3702
3966
 
3703
3967
  # auth_names
3704
- auth_names = opts[:debug_auth_names] || ['Token']
3968
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3705
3969
 
3706
3970
  new_options = opts.merge(
3707
3971
  :operation => :"DefaultApi.list_passkeys",
@@ -3764,7 +4028,7 @@ module Onfido
3764
4028
  return_type = opts[:debug_return_type] || 'RepeatAttemptsList'
3765
4029
 
3766
4030
  # auth_names
3767
- auth_names = opts[:debug_auth_names] || ['Token']
4031
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3768
4032
 
3769
4033
  new_options = opts.merge(
3770
4034
  :operation => :"DefaultApi.list_repeat_attempts",
@@ -3828,7 +4092,7 @@ module Onfido
3828
4092
  return_type = opts[:debug_return_type] || 'ReportsList'
3829
4093
 
3830
4094
  # auth_names
3831
- auth_names = opts[:debug_auth_names] || ['Token']
4095
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3832
4096
 
3833
4097
  new_options = opts.merge(
3834
4098
  :operation => :"DefaultApi.list_reports",
@@ -3892,7 +4156,7 @@ module Onfido
3892
4156
  return_type = opts[:debug_return_type] || 'SigningDocumentsList'
3893
4157
 
3894
4158
  # auth_names
3895
- auth_names = opts[:debug_auth_names] || ['Token']
4159
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3896
4160
 
3897
4161
  new_options = opts.merge(
3898
4162
  :operation => :"DefaultApi.list_signing_documents",
@@ -3955,7 +4219,7 @@ module Onfido
3955
4219
  return_type = opts[:debug_return_type] || 'Array<TaskItem>'
3956
4220
 
3957
4221
  # auth_names
3958
- auth_names = opts[:debug_auth_names] || ['Token']
4222
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
3959
4223
 
3960
4224
  new_options = opts.merge(
3961
4225
  :operation => :"DefaultApi.list_tasks",
@@ -3974,6 +4238,75 @@ module Onfido
3974
4238
  return data, status_code, headers
3975
4239
  end
3976
4240
 
4241
+ # Retrieve watchlist mesh alert risks
4242
+ # Retrieves the detailed risks associated with a watchlist mesh alert.
4243
+ # @param alert_id [String] The unique identifier of the alert whose risks you want to retrieve.
4244
+ # @param [Hash] opts the optional parameters
4245
+ # @option opts [Integer] :page The page of results to retrieve. (default to 1)
4246
+ # @option opts [Integer] :per_page The number of risks to return per page. (default to 25)
4247
+ # @return [Array<WatchlistMeshAlertRisk>]
4248
+ def list_watchlist_mesh_alert_risks(alert_id, opts = {})
4249
+ data, _status_code, _headers = list_watchlist_mesh_alert_risks_with_http_info(alert_id, opts)
4250
+ data
4251
+ end
4252
+
4253
+ # Retrieve watchlist mesh alert risks
4254
+ # Retrieves the detailed risks associated with a watchlist mesh alert.
4255
+ # @param alert_id [String] The unique identifier of the alert whose risks you want to retrieve.
4256
+ # @param [Hash] opts the optional parameters
4257
+ # @option opts [Integer] :page The page of results to retrieve. (default to 1)
4258
+ # @option opts [Integer] :per_page The number of risks to return per page. (default to 25)
4259
+ # @return [Array<(Array<WatchlistMeshAlertRisk>, Integer, Hash)>] Array<WatchlistMeshAlertRisk> data, response status code and response headers
4260
+ def list_watchlist_mesh_alert_risks_with_http_info(alert_id, opts = {})
4261
+ if @api_client.config.debugging
4262
+ @api_client.config.logger.debug 'Calling API: DefaultApi.list_watchlist_mesh_alert_risks ...'
4263
+ end
4264
+ # verify the required parameter 'alert_id' is set
4265
+ if @api_client.config.client_side_validation && alert_id.nil?
4266
+ fail ArgumentError, "Missing the required parameter 'alert_id' when calling DefaultApi.list_watchlist_mesh_alert_risks"
4267
+ end
4268
+ # resource path
4269
+ local_var_path = '/complyadvantage_watchlists/alerts/{alert_id}/risks'.sub('{' + 'alert_id' + '}', CGI.escape(alert_id.to_s))
4270
+
4271
+ # query parameters
4272
+ query_params = opts[:query_params] || {}
4273
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
4274
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
4275
+
4276
+ # header parameters
4277
+ header_params = opts[:header_params] || {}
4278
+ # HTTP header 'Accept' (if needed)
4279
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4280
+
4281
+ # form parameters
4282
+ form_params = opts[:form_params] || {}
4283
+
4284
+ # http body (model)
4285
+ post_body = opts[:debug_body]
4286
+
4287
+ # return_type
4288
+ return_type = opts[:debug_return_type] || 'Array<WatchlistMeshAlertRisk>'
4289
+
4290
+ # auth_names
4291
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4292
+
4293
+ new_options = opts.merge(
4294
+ :operation => :"DefaultApi.list_watchlist_mesh_alert_risks",
4295
+ :header_params => header_params,
4296
+ :query_params => query_params,
4297
+ :form_params => form_params,
4298
+ :body => post_body,
4299
+ :auth_names => auth_names,
4300
+ :return_type => return_type
4301
+ )
4302
+
4303
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
4304
+ if @api_client.config.debugging
4305
+ @api_client.config.logger.debug "API called: DefaultApi#list_watchlist_mesh_alert_risks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4306
+ end
4307
+ return data, status_code, headers
4308
+ end
4309
+
3977
4310
  # List matches (BETA)
3978
4311
  # List match IDs on this monitor, as well as their enabled/disabled status
3979
4312
  # @param monitor_id [String]
@@ -4018,7 +4351,7 @@ module Onfido
4018
4351
  return_type = opts[:debug_return_type] || 'WatchlistMonitorMatchesList'
4019
4352
 
4020
4353
  # auth_names
4021
- auth_names = opts[:debug_auth_names] || ['Token']
4354
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4022
4355
 
4023
4356
  new_options = opts.merge(
4024
4357
  :operation => :"DefaultApi.list_watchlist_monitor_matches",
@@ -4085,7 +4418,7 @@ module Onfido
4085
4418
  return_type = opts[:debug_return_type] || 'WatchlistMonitorsList'
4086
4419
 
4087
4420
  # auth_names
4088
- auth_names = opts[:debug_auth_names] || ['Token']
4421
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4089
4422
 
4090
4423
  new_options = opts.merge(
4091
4424
  :operation => :"DefaultApi.list_watchlist_monitors",
@@ -4142,7 +4475,7 @@ module Onfido
4142
4475
  return_type = opts[:debug_return_type] || 'WebhooksList'
4143
4476
 
4144
4477
  # auth_names
4145
- auth_names = opts[:debug_auth_names] || ['Token']
4478
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4146
4479
 
4147
4480
  new_options = opts.merge(
4148
4481
  :operation => :"DefaultApi.list_webhooks",
@@ -4224,7 +4557,7 @@ module Onfido
4224
4557
  return_type = opts[:debug_return_type] || 'Array<WorkflowRun>'
4225
4558
 
4226
4559
  # auth_names
4227
- auth_names = opts[:debug_auth_names] || ['Token']
4560
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4228
4561
 
4229
4562
  new_options = opts.merge(
4230
4563
  :operation => :"DefaultApi.list_workflow_runs",
@@ -4281,7 +4614,7 @@ module Onfido
4281
4614
  return_type = opts[:debug_return_type] || 'String'
4282
4615
 
4283
4616
  # auth_names
4284
- auth_names = opts[:debug_auth_names] || ['Token']
4617
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4285
4618
 
4286
4619
  new_options = opts.merge(
4287
4620
  :operation => :"DefaultApi.ping",
@@ -4349,7 +4682,7 @@ module Onfido
4349
4682
  return_type = opts[:debug_return_type] || 'ResultsFeedback'
4350
4683
 
4351
4684
  # auth_names
4352
- auth_names = opts[:debug_auth_names] || ['Token']
4685
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4353
4686
 
4354
4687
  new_options = opts.merge(
4355
4688
  :operation => :"DefaultApi.post_results_feedback",
@@ -4417,7 +4750,7 @@ module Onfido
4417
4750
  return_type = opts[:debug_return_type]
4418
4751
 
4419
4752
  # auth_names
4420
- auth_names = opts[:debug_auth_names] || ['Token']
4753
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4421
4754
 
4422
4755
  new_options = opts.merge(
4423
4756
  :operation => :"DefaultApi.resend_webhooks",
@@ -4480,7 +4813,7 @@ module Onfido
4480
4813
  return_type = opts[:debug_return_type]
4481
4814
 
4482
4815
  # auth_names
4483
- auth_names = opts[:debug_auth_names] || ['Token']
4816
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4484
4817
 
4485
4818
  new_options = opts.merge(
4486
4819
  :operation => :"DefaultApi.restore_applicant",
@@ -4543,7 +4876,7 @@ module Onfido
4543
4876
  return_type = opts[:debug_return_type]
4544
4877
 
4545
4878
  # auth_names
4546
- auth_names = opts[:debug_auth_names] || ['Token']
4879
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4547
4880
 
4548
4881
  new_options = opts.merge(
4549
4882
  :operation => :"DefaultApi.resume_check",
@@ -4606,7 +4939,7 @@ module Onfido
4606
4939
  return_type = opts[:debug_return_type]
4607
4940
 
4608
4941
  # auth_names
4609
- auth_names = opts[:debug_auth_names] || ['Token']
4942
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4610
4943
 
4611
4944
  new_options = opts.merge(
4612
4945
  :operation => :"DefaultApi.resume_report",
@@ -4680,7 +5013,7 @@ module Onfido
4680
5013
  return_type = opts[:debug_return_type] || 'Applicant'
4681
5014
 
4682
5015
  # auth_names
4683
- auth_names = opts[:debug_auth_names] || ['Token']
5016
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4684
5017
 
4685
5018
  new_options = opts.merge(
4686
5019
  :operation => :"DefaultApi.update_applicant",
@@ -4699,6 +5032,86 @@ module Onfido
4699
5032
  return data, status_code, headers
4700
5033
  end
4701
5034
 
5035
+ # Update biometric token
5036
+ # Updates a biometric token's status.
5037
+ # @param user_id [String] Customer user ID that owns the biometric token.
5038
+ # @param token_uuid [String] Biometric token UUID.
5039
+ # @param biometric_token_updater [BiometricTokenUpdater] Biometric token update payload.
5040
+ # @param [Hash] opts the optional parameters
5041
+ # @return [UpdatedBiometricTokenResponse]
5042
+ def update_biometric_token(user_id, token_uuid, biometric_token_updater, opts = {})
5043
+ data, _status_code, _headers = update_biometric_token_with_http_info(user_id, token_uuid, biometric_token_updater, opts)
5044
+ data
5045
+ end
5046
+
5047
+ # Update biometric token
5048
+ # Updates a biometric token&#39;s status.
5049
+ # @param user_id [String] Customer user ID that owns the biometric token.
5050
+ # @param token_uuid [String] Biometric token UUID.
5051
+ # @param biometric_token_updater [BiometricTokenUpdater] Biometric token update payload.
5052
+ # @param [Hash] opts the optional parameters
5053
+ # @return [Array<(UpdatedBiometricTokenResponse, Integer, Hash)>] UpdatedBiometricTokenResponse data, response status code and response headers
5054
+ def update_biometric_token_with_http_info(user_id, token_uuid, biometric_token_updater, opts = {})
5055
+ if @api_client.config.debugging
5056
+ @api_client.config.logger.debug 'Calling API: DefaultApi.update_biometric_token ...'
5057
+ end
5058
+ # verify the required parameter 'user_id' is set
5059
+ if @api_client.config.client_side_validation && user_id.nil?
5060
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling DefaultApi.update_biometric_token"
5061
+ end
5062
+ # verify the required parameter 'token_uuid' is set
5063
+ if @api_client.config.client_side_validation && token_uuid.nil?
5064
+ fail ArgumentError, "Missing the required parameter 'token_uuid' when calling DefaultApi.update_biometric_token"
5065
+ end
5066
+ # verify the required parameter 'biometric_token_updater' is set
5067
+ if @api_client.config.client_side_validation && biometric_token_updater.nil?
5068
+ fail ArgumentError, "Missing the required parameter 'biometric_token_updater' when calling DefaultApi.update_biometric_token"
5069
+ end
5070
+ # resource path
5071
+ local_var_path = '/biometric_tokens/{user_id}/{token_uuid}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'token_uuid' + '}', CGI.escape(token_uuid.to_s))
5072
+
5073
+ # query parameters
5074
+ query_params = opts[:query_params] || {}
5075
+
5076
+ # header parameters
5077
+ header_params = opts[:header_params] || {}
5078
+ # HTTP header 'Accept' (if needed)
5079
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
5080
+ # HTTP header 'Content-Type'
5081
+ content_type = @api_client.select_header_content_type(['application/json'])
5082
+ if !content_type.nil?
5083
+ header_params['Content-Type'] = content_type
5084
+ end
5085
+
5086
+ # form parameters
5087
+ form_params = opts[:form_params] || {}
5088
+
5089
+ # http body (model)
5090
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(biometric_token_updater)
5091
+
5092
+ # return_type
5093
+ return_type = opts[:debug_return_type] || 'UpdatedBiometricTokenResponse'
5094
+
5095
+ # auth_names
5096
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
5097
+
5098
+ new_options = opts.merge(
5099
+ :operation => :"DefaultApi.update_biometric_token",
5100
+ :header_params => header_params,
5101
+ :query_params => query_params,
5102
+ :form_params => form_params,
5103
+ :body => post_body,
5104
+ :auth_names => auth_names,
5105
+ :return_type => return_type
5106
+ )
5107
+
5108
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
5109
+ if @api_client.config.debugging
5110
+ @api_client.config.logger.debug "API called: DefaultApi#update_biometric_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5111
+ end
5112
+ return data, status_code, headers
5113
+ end
5114
+
4702
5115
  # Update passkey
4703
5116
  # Updates a passkey's state.
4704
5117
  # @param username [String] Username that owns the passkey.
@@ -4760,7 +5173,7 @@ module Onfido
4760
5173
  return_type = opts[:debug_return_type] || 'Passkey'
4761
5174
 
4762
5175
  # auth_names
4763
- auth_names = opts[:debug_auth_names] || ['Token']
5176
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4764
5177
 
4765
5178
  new_options = opts.merge(
4766
5179
  :operation => :"DefaultApi.update_passkey",
@@ -4834,7 +5247,7 @@ module Onfido
4834
5247
  return_type = opts[:debug_return_type] || 'WatchlistMonitorMatchesList'
4835
5248
 
4836
5249
  # auth_names
4837
- auth_names = opts[:debug_auth_names] || ['Token']
5250
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4838
5251
 
4839
5252
  new_options = opts.merge(
4840
5253
  :operation => :"DefaultApi.update_watchlist_monitor_match",
@@ -4908,7 +5321,7 @@ module Onfido
4908
5321
  return_type = opts[:debug_return_type] || 'Webhook'
4909
5322
 
4910
5323
  # auth_names
4911
- auth_names = opts[:debug_auth_names] || ['Token']
5324
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
4912
5325
 
4913
5326
  new_options = opts.merge(
4914
5327
  :operation => :"DefaultApi.update_webhook",
@@ -5010,7 +5423,7 @@ module Onfido
5010
5423
  return_type = opts[:debug_return_type] || 'Document'
5011
5424
 
5012
5425
  # auth_names
5013
- auth_names = opts[:debug_auth_names] || ['Token']
5426
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
5014
5427
 
5015
5428
  new_options = opts.merge(
5016
5429
  :operation => :"DefaultApi.upload_document",
@@ -5078,7 +5491,7 @@ module Onfido
5078
5491
  return_type = opts[:debug_return_type] || 'IdPhoto'
5079
5492
 
5080
5493
  # auth_names
5081
- auth_names = opts[:debug_auth_names] || ['Token']
5494
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
5082
5495
 
5083
5496
  new_options = opts.merge(
5084
5497
  :operation => :"DefaultApi.upload_id_photo",
@@ -5149,7 +5562,7 @@ module Onfido
5149
5562
  return_type = opts[:debug_return_type] || 'LivePhoto'
5150
5563
 
5151
5564
  # auth_names
5152
- auth_names = opts[:debug_auth_names] || ['Token']
5565
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
5153
5566
 
5154
5567
  new_options = opts.merge(
5155
5568
  :operation => :"DefaultApi.upload_live_photo",
@@ -5225,7 +5638,7 @@ module Onfido
5225
5638
  return_type = opts[:debug_return_type] || 'SigningDocument'
5226
5639
 
5227
5640
  # auth_names
5228
- auth_names = opts[:debug_auth_names] || ['Token']
5641
+ auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
5229
5642
 
5230
5643
  new_options = opts.merge(
5231
5644
  :operation => :"DefaultApi.upload_signing_document",