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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +17 -1
- data/lib/onfido/api/default_api.rb +492 -79
- data/lib/onfido/api_client.rb +6 -2
- data/lib/onfido/configuration.rb +88 -0
- data/lib/onfido/models/biometric_token.rb +265 -0
- data/lib/onfido/models/biometric_token_data.rb +317 -0
- data/lib/onfido/models/biometric_token_response.rb +237 -0
- data/lib/onfido/models/biometric_token_updater.rb +262 -0
- data/lib/onfido/models/biometric_tokens_response.rb +239 -0
- data/lib/onfido/models/document_types.rb +3 -1
- data/lib/onfido/models/invalidated_biometric_token_response.rb +237 -0
- data/lib/onfido/models/invalidated_biometric_token_summary.rb +238 -0
- data/lib/onfido/models/invalidated_biometric_token_summary_deleted_items.rb +239 -0
- data/lib/onfido/models/invalidated_biometric_tokens_response.rb +237 -0
- data/lib/onfido/models/updated_biometric_token_response.rb +237 -0
- data/lib/onfido/models/watchlist_mesh_added_mentions.rb +247 -0
- data/lib/onfido/models/watchlist_mesh_alert_risk.rb +323 -0
- data/lib/onfido/models/watchlist_mesh_alert_risk1.rb +316 -0
- data/lib/onfido/models/watchlist_mesh_associate.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_date_value.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_field.rb +241 -0
- data/lib/onfido/models/watchlist_mesh_image.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_lists.rb +309 -0
- data/lib/onfido/models/watchlist_mesh_media.rb +261 -0
- data/lib/onfido/models/watchlist_mesh_name.rb +231 -0
- data/lib/onfido/models/watchlist_mesh_pep.rb +369 -0
- data/lib/onfido/models/watchlist_mesh_person.rb +283 -0
- data/lib/onfido/models/watchlist_mesh_profile.rb +273 -0
- data/lib/onfido/models/watchlist_mesh_risk_decision.rb +43 -0
- data/lib/onfido/models/watchlist_mesh_risk_detail.rb +255 -0
- data/lib/onfido/models/watchlist_mesh_risk_indicators.rb +271 -0
- data/lib/onfido/models/watchlist_mesh_sanctions.rb +309 -0
- data/lib/onfido/models/webhook.rb +11 -1
- data/lib/onfido/models/webhook_builder.rb +11 -1
- data/lib/onfido/models/webhook_create.rb +11 -1
- data/lib/onfido/models/webhook_response.rb +11 -1
- data/lib/onfido/models/webhook_update.rb +11 -1
- data/lib/onfido/models/webhook_updater.rb +11 -1
- data/lib/onfido/version.rb +1 -1
- data/lib/onfido.rb +27 -0
- data/spec/integrations/biometric_token_spec.rb +122 -0
- data/spec/integrations/document_spec.rb +8 -1
- data/spec/integrations/media/nfc_data.json +11768 -0
- data/spec/integrations/watchlist_alert_risk_spec.rb +66 -0
- data/spec/shared_contexts/with_document.rb +0 -1
- data/spec/shared_contexts/with_onfido.rb +14 -2
- data/spec/spec_helper.rb +6 -7
- metadata +57 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e12865830296f564d8b260c71944db655a54ea3e936d49e884604c1dac5f5004
|
|
4
|
+
data.tar.gz: 7924185844e0d402651d07fb9dfb05cb82564d1aa73dfc511629ca64cc41f36f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|