didit-sdk 1.0.1 → 2.1.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 +33 -0
- data/lib/didit/resources/account.rb +20 -5
- data/lib/didit/resources/address_validation.rb +2 -2
- data/lib/didit/resources/analytics.rb +29 -0
- data/lib/didit/resources/bank.rb +15 -6
- data/lib/didit/resources/billing.rb +2 -2
- data/lib/didit/resources/database_validation.rb +65 -0
- data/lib/didit/resources/email.rb +22 -2
- data/lib/didit/resources/id_verification.rb +14 -13
- data/lib/didit/resources/id_wallets.rb +84 -0
- data/lib/didit/resources/ip.rb +2 -2
- data/lib/didit/resources/kyb.rb +14 -7
- data/lib/didit/resources/phone.rb +28 -2
- data/lib/didit/resources/pricing.rb +4 -2
- data/lib/didit/resources/sessions.rb +463 -33
- data/lib/didit/resources/transactions.rb +16 -6
- data/lib/didit/resources/travel_rule.rb +96 -0
- data/lib/didit/resources/users.rb +25 -6
- data/lib/didit/resources/wallet_screening.rb +5 -6
- data/lib/didit/resources/webhooks.rb +8 -1
- data/lib/didit/types/account_components.rb +17 -1
- data/lib/didit/types/aml.rb +19 -0
- data/lib/didit/types/components.rb +919 -30
- data/lib/didit/types/email.rb +28 -0
- data/lib/didit/types/kyb.rb +135 -5
- data/lib/didit/types/phone.rb +38 -0
- data/lib/didit/types/sessions.rb +476 -5
- data/lib/didit/types/travel_rule.rb +7 -0
- data/lib/didit/types/wallet_screening.rb +13 -6
- data/lib/didit/types.rb +128 -0
- data/lib/didit/version.rb +1 -1
- data/sig/didit/resources/account.rbs +2 -2
- data/sig/didit/resources/analytics.rbs +1 -0
- data/sig/didit/resources/bank.rbs +1 -1
- data/sig/didit/resources/database_validation.rbs +1 -1
- data/sig/didit/resources/email.rbs +1 -1
- data/sig/didit/resources/id_wallets.rbs +2 -0
- data/sig/didit/resources/phone.rbs +1 -1
- data/sig/didit/resources/sessions.rbs +14 -5
- data/sig/didit/resources/transactions.rbs +1 -1
- data/sig/didit/resources/travel_rule.rbs +5 -0
- data/sig/didit/resources/users.rbs +1 -1
- data/sig/didit/resources/wallet_screening.rbs +1 -1
- data/sig/didit/resources/webhooks.rbs +1 -1
- data/sig/didit/types/account.rbs +2 -2
- data/sig/didit/types/account_components.rbs +10 -0
- data/sig/didit/types/aml.rbs +18 -0
- data/sig/didit/types/bank.rbs +1 -1
- data/sig/didit/types/components.rbs +787 -4
- data/sig/didit/types/database_validation.rbs +1 -1
- data/sig/didit/types/email.rbs +22 -1
- data/sig/didit/types/id_wallets.rbs +4 -0
- data/sig/didit/types/kyb.rbs +115 -5
- data/sig/didit/types/phone.rbs +29 -1
- data/sig/didit/types/sessions.rbs +462 -2
- data/sig/didit/types/travel_rule.rbs +9 -0
- data/sig/didit/types/users.rbs +1 -1
- data/sig/didit/types/wallet_screening.rbs +5 -1
- data/sig/didit/types/webhooks.rbs +1 -1
- metadata +1 -1
|
@@ -27,8 +27,8 @@ module Didit
|
|
|
27
27
|
# **Authentication.** Send your application's API key in `x-api-key`. Missing or invalid credentials return
|
|
28
28
|
# `403` - this API never returns `401`.
|
|
29
29
|
#
|
|
30
|
-
# **Rate limit.** Shared write budget of 300 requests per minute per API key across
|
|
31
|
-
#
|
|
30
|
+
# **Rate limit.** Shared write budget of 300 requests per minute per API key across POST/PATCH/DELETE endpoints
|
|
31
|
+
# (transaction creates and event ingestion have a separate budget of 600).
|
|
32
32
|
#
|
|
33
33
|
# **Social footprint.** Set `enable_social` to `true` to add a `phone_social` block: the online platforms this
|
|
34
34
|
# number is registered on, with per-category counts and any profile details available. `profiles_registered: 0`
|
|
@@ -143,6 +143,22 @@ module Didit
|
|
|
143
143
|
# @param voip_number_action [String] What to do when the carrier lookup reports a virtual line type - `voip`,
|
|
144
144
|
# `isp`, or `vpn` (`phone.is_virtual`). `DECLINE` flips the final `status` to `Declined`; `NO_ACTION` records
|
|
145
145
|
# the risk in `phone.warnings`.
|
|
146
|
+
# @param enable_enrichment [Boolean] When `true`, also run phone intelligence on the number: a risk score, the
|
|
147
|
+
# line type, whether it was recently ported and a trust index. Billed as one `phone_intelligence_api` unit per
|
|
148
|
+
# request ($0.05 at list price) in addition to this endpoint's own price. The request returns `403` when your
|
|
149
|
+
# balance cannot cover it.
|
|
150
|
+
# @param phone_intelligence_score_action [String] Action when the phone intelligence risk score is above the
|
|
151
|
+
# threshold. `DECLINE` flips the final `status` to `Declined`; `NO_ACTION` records the signal without declining.
|
|
152
|
+
# Only takes effect when `enable_enrichment` is `true`.
|
|
153
|
+
# @param phone_type_risk_action [String] Action when the number is a high-risk line type. `DECLINE` flips the
|
|
154
|
+
# final `status` to `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when
|
|
155
|
+
# `enable_enrichment` is `true`.
|
|
156
|
+
# @param recent_port_action [String] Action when the number was ported to another carrier recently. `DECLINE`
|
|
157
|
+
# flips the final `status` to `Declined`; `NO_ACTION` records the signal without declining. Only takes effect
|
|
158
|
+
# when `enable_enrichment` is `true`.
|
|
159
|
+
# @param low_phone_trust_action [String] Action when the phone intelligence trust index is at or below the
|
|
160
|
+
# threshold. `DECLINE` flips the final `status` to `Declined`; `NO_ACTION` records the signal without declining.
|
|
161
|
+
# Only takes effect when `enable_enrichment` is `true`.
|
|
146
162
|
# @param enable_social [Boolean] When true, also look up the social footprint of the number - the messaging,
|
|
147
163
|
# social, e-commerce and professional platforms it is registered on. Billed as one `phone_social` unit per
|
|
148
164
|
# request in addition to this endpoint's own price.
|
|
@@ -157,6 +173,11 @@ module Didit
|
|
|
157
173
|
duplicated_phone_number_action: OMIT,
|
|
158
174
|
disposable_number_action: OMIT,
|
|
159
175
|
voip_number_action: OMIT,
|
|
176
|
+
enable_enrichment: OMIT,
|
|
177
|
+
phone_intelligence_score_action: OMIT,
|
|
178
|
+
phone_type_risk_action: OMIT,
|
|
179
|
+
recent_port_action: OMIT,
|
|
180
|
+
low_phone_trust_action: OMIT,
|
|
160
181
|
enable_social: OMIT,
|
|
161
182
|
phone_no_social_presence_action: OMIT,
|
|
162
183
|
request_options: nil
|
|
@@ -170,6 +191,11 @@ module Didit
|
|
|
170
191
|
"duplicated_phone_number_action" => duplicated_phone_number_action,
|
|
171
192
|
"disposable_number_action" => disposable_number_action,
|
|
172
193
|
"voip_number_action" => voip_number_action,
|
|
194
|
+
"enable_enrichment" => enable_enrichment,
|
|
195
|
+
"phone_intelligence_score_action" => phone_intelligence_score_action,
|
|
196
|
+
"phone_type_risk_action" => phone_type_risk_action,
|
|
197
|
+
"recent_port_action" => recent_port_action,
|
|
198
|
+
"low_phone_trust_action" => low_phone_trust_action,
|
|
173
199
|
"enable_social" => enable_social,
|
|
174
200
|
"phone_no_social_presence_action" => phone_no_social_presence_action
|
|
175
201
|
},
|
|
@@ -8,8 +8,10 @@ module Didit
|
|
|
8
8
|
# Get bank verification prices (public, unauthenticated)
|
|
9
9
|
#
|
|
10
10
|
# Returns the list price of each Bank Verification method in every country: bank sign-in with its balance and
|
|
11
|
-
# transactions add-ons, and the account check.
|
|
12
|
-
#
|
|
11
|
+
# transactions add-ons, and the account check. Bank Verification is not enabled in production yet, so a bank
|
|
12
|
+
# step is refused on production workflows until it is; treat these prices as a list price, not as an offer you
|
|
13
|
+
# can buy today. Use it to quote a bank step before you build a workflow, or to show bank prices in your own
|
|
14
|
+
# product.
|
|
13
15
|
#
|
|
14
16
|
# Public: send no auth header. The response contains no organization data and is the same for every caller. It
|
|
15
17
|
# is cached publicly for one hour and carries an `ETag`, so send `If-None-Match` to get a `304 Not Modified`
|