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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33fdddb9562e1140c7c16bf631d5798829cb81ee6f06298f7192fe25207fa5d4
4
- data.tar.gz: 18cfe6479b1ef8c5b35aa08a51e4a62d991a0f6e1b9ef2762ca2ad3dca212fce
3
+ metadata.gz: e12865830296f564d8b260c71944db655a54ea3e936d49e884604c1dac5f5004
4
+ data.tar.gz: 7924185844e0d402651d07fb9dfb05cb82564d1aa73dfc511629ca64cc41f36f
5
5
  SHA512:
6
- metadata.gz: f60b7622ee0edd7db2c5c6c192b8b7adb01e7988b759b933fc43a51c5b7c34da2da86efd052c20eca075da5f1540903ef2b7ffc01e0b4c0f08144dd8c2c3b415
7
- data.tar.gz: 47e2026d2a54c77c06ae23e99351873bcadac011ba797d023433de805119dc1048d6788510b2a757b258ba6eca2a1c05ac12b495c4d3c8dcceb8a1738e546a7b
6
+ metadata.gz: 874496bd9bab433e899eef7f4d688853c67fc907ac1fbee6059788a905a6b0090d84ab07b990fe24c77e498f1f0a590899aa5f6638ecf4945c0d0ec93fef4e3f
7
+ data.tar.gz: 613aa1333a9c2314a9adf1d30e112e94280d04f45e13d5339a4de2bbde351d2971d3816e8b6a5c38c572d376906af2e0386ea34614b774e9c92746213d0aa3dd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## v6.2.0 21st May 2026
4
+
5
+ - Release based on Onfido OpenAPI spec version [v6.1.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v6.1.0):
6
+ - Add Oauth2ClientCredentials support
7
+ - Fix ruby oauth token exchange url
8
+
9
+ ## v6.1.0 6th May 2026
10
+
11
+ - Release based on Onfido OpenAPI spec version [v6.0.1](https://github.com/onfido/onfido-openapi-spec/releases/tag/v6.0.1):
12
+ - BIO-8421] Document two new number_of_ip_reuse_reports fields
13
+ - Fix flaky timeline file spec
14
+
3
15
  ## v6.0.0 19th February 2026
4
16
 
5
17
  - Release based on Onfido OpenAPI spec version [v6.0.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v6.0.0):
data/README.md CHANGED
@@ -14,7 +14,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d
14
14
  ### Installation
15
15
 
16
16
  ```ruby
17
- gem 'onfido', '~> 6.1.0'
17
+ gem 'onfido', '~> 6.3.0'
18
18
  ```
19
19
 
20
20
  Configure with your API token, region and optional timeout (default value is 30):
@@ -31,6 +31,22 @@ end
31
31
  onfido_api = Onfido::DefaultApi.new
32
32
  ```
33
33
 
34
+ You can also authenticate using OAuth2 client credentials instead of an API token:
35
+
36
+ ```ruby
37
+ require 'onfido'
38
+
39
+ Onfido.configure do |config|
40
+ config.set_oauth_credentials(ENV["ONFIDO_OAUTH_CLIENT_ID"], ENV["ONFIDO_OAUTH_CLIENT_SECRET"])
41
+ config.region = config.region[:EU]
42
+ config.timeout = 30
43
+ end
44
+
45
+ onfido_api = Onfido::DefaultApi.new
46
+ ```
47
+
48
+ The client will automatically exchange credentials for an access token and refresh it when it expires.
49
+
34
50
  All resources share the same interface when making API calls. Use `.create` to create a resource, `.find` to find one, and `.all` to fetch all resources.
35
51
 
36
52
  ### Making a call to the API