didit-sdk 1.0.1 → 2.0.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 +26 -0
- 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/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 +7 -2
- 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/aml.rb +19 -0
- data/lib/didit/types/components.rb +908 -28
- data/lib/didit/types/email.rb +28 -0
- data/lib/didit/types/kyb.rb +80 -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 +121 -0
- data/lib/didit/version.rb +1 -1
- 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/aml.rbs +18 -0
- data/sig/didit/types/bank.rbs +1 -1
- data/sig/didit/types/components.rbs +780 -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 +75 -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
data/lib/didit/types/email.rb
CHANGED
|
@@ -31,6 +31,16 @@ module Didit
|
|
|
31
31
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
# Action when the email intelligence risk score is above the threshold. `DECLINE` flips the final `status` to
|
|
35
|
+
# `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is
|
|
36
|
+
# `true`.
|
|
37
|
+
module EmailCheckCodeParamsEmailIntelligenceScoreAction
|
|
38
|
+
NO_ACTION = "NO_ACTION"
|
|
39
|
+
DECLINE = "DECLINE"
|
|
40
|
+
|
|
41
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
42
|
+
end
|
|
43
|
+
|
|
34
44
|
# Action when the social footprint check finds the address registered on none of the platforms it covers. Only
|
|
35
45
|
# NO_ACTION and DECLINE are accepted on this endpoint; REVIEW is available on the workflow configuration key of
|
|
36
46
|
# the same name.
|
|
@@ -41,6 +51,24 @@ module Didit
|
|
|
41
51
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
42
52
|
end
|
|
43
53
|
|
|
54
|
+
# Action when the address appears in many known data breaches. `DECLINE` flips the final `status` to `Declined`;
|
|
55
|
+
# `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
56
|
+
module EmailCheckCodeParamsFrequentEmailBreachAction
|
|
57
|
+
NO_ACTION = "NO_ACTION"
|
|
58
|
+
DECLINE = "DECLINE"
|
|
59
|
+
|
|
60
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Action when the address appears in a recent known data breach. `DECLINE` flips the final `status` to `Declined`;
|
|
64
|
+
# `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
65
|
+
module EmailCheckCodeParamsRecentEmailBreachAction
|
|
66
|
+
NO_ACTION = "NO_ACTION"
|
|
67
|
+
DECLINE = "DECLINE"
|
|
68
|
+
|
|
69
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
70
|
+
end
|
|
71
|
+
|
|
44
72
|
# Language of the OTP email template. Defaults to `en`. Unsupported values return `400` listing all supported
|
|
45
73
|
# locales.
|
|
46
74
|
module EmailSendCodeParamsOptionsLocale
|
data/lib/didit/types/kyb.rb
CHANGED
|
@@ -902,7 +902,7 @@ module Didit
|
|
|
902
902
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
903
903
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
904
904
|
field :accounts, "accounts", :any
|
|
905
|
-
field :registry_data, "registry_data",
|
|
905
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
906
906
|
field :user_provided_data, "user_provided_data", :any
|
|
907
907
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
908
908
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -911,6 +911,7 @@ module Didit
|
|
|
911
911
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
912
912
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
913
913
|
field :registry_tier, "registry_tier", :string
|
|
914
|
+
field :registry_monitoring, "registry_monitoring", "KybListShareholdersResponse202KybRegistryRegistryMonitoring"
|
|
914
915
|
end
|
|
915
916
|
|
|
916
917
|
class KybListShareholdersResponse202KybRegistryBeneficialOwners < Didit::Model
|
|
@@ -958,6 +959,20 @@ module Didit
|
|
|
958
959
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
959
960
|
end
|
|
960
961
|
|
|
962
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
963
|
+
class KybListShareholdersResponse202KybRegistryRegistryMonitoring < Didit::Model
|
|
964
|
+
field :uuid, "uuid", :string
|
|
965
|
+
field :status, "status", :string
|
|
966
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
967
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
968
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
969
|
+
field :last_bill_date, "last_bill_date", :date
|
|
970
|
+
field :next_bill_date, "next_bill_date", :date
|
|
971
|
+
field :last_event_at, "last_event_at", :datetime
|
|
972
|
+
field :events_count, "events_count", :integer
|
|
973
|
+
field :watched_fields, "watched_fields", :any
|
|
974
|
+
end
|
|
975
|
+
|
|
961
976
|
# Full registry company profile.
|
|
962
977
|
class KybListShareholdersResponseKybRegistry < Didit::Model
|
|
963
978
|
field :uuid, "uuid", :string
|
|
@@ -1000,7 +1015,7 @@ module Didit
|
|
|
1000
1015
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1001
1016
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1002
1017
|
field :accounts, "accounts", :any
|
|
1003
|
-
field :registry_data, "registry_data",
|
|
1018
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1004
1019
|
field :user_provided_data, "user_provided_data", :any
|
|
1005
1020
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1006
1021
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1009,6 +1024,7 @@ module Didit
|
|
|
1009
1024
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1010
1025
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1011
1026
|
field :registry_tier, "registry_tier", :string
|
|
1027
|
+
field :registry_monitoring, "registry_monitoring", "KybListShareholdersResponseKybRegistryRegistryMonitoring"
|
|
1012
1028
|
end
|
|
1013
1029
|
|
|
1014
1030
|
class KybListShareholdersResponseKybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1056,6 +1072,20 @@ module Didit
|
|
|
1056
1072
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1057
1073
|
end
|
|
1058
1074
|
|
|
1075
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1076
|
+
class KybListShareholdersResponseKybRegistryRegistryMonitoring < Didit::Model
|
|
1077
|
+
field :uuid, "uuid", :string
|
|
1078
|
+
field :status, "status", :string
|
|
1079
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1080
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1081
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1082
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1083
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1084
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1085
|
+
field :events_count, "events_count", :integer
|
|
1086
|
+
field :watched_fields, "watched_fields", :any
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1059
1089
|
class KybListUbosResponse < Didit::Model
|
|
1060
1090
|
field :request_id, "request_id", :string
|
|
1061
1091
|
field :registry_tier_requested, "registry_tier_requested", :string
|
|
@@ -1118,7 +1148,7 @@ module Didit
|
|
|
1118
1148
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1119
1149
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1120
1150
|
field :accounts, "accounts", :any
|
|
1121
|
-
field :registry_data, "registry_data",
|
|
1151
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1122
1152
|
field :user_provided_data, "user_provided_data", :any
|
|
1123
1153
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1124
1154
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1127,6 +1157,7 @@ module Didit
|
|
|
1127
1157
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1128
1158
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1129
1159
|
field :registry_tier, "registry_tier", :string
|
|
1160
|
+
field :registry_monitoring, "registry_monitoring", "KybListUbosResponse202KybRegistryRegistryMonitoring"
|
|
1130
1161
|
end
|
|
1131
1162
|
|
|
1132
1163
|
class KybListUbosResponse202KybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1174,6 +1205,20 @@ module Didit
|
|
|
1174
1205
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1175
1206
|
end
|
|
1176
1207
|
|
|
1208
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1209
|
+
class KybListUbosResponse202KybRegistryRegistryMonitoring < Didit::Model
|
|
1210
|
+
field :uuid, "uuid", :string
|
|
1211
|
+
field :status, "status", :string
|
|
1212
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1213
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1214
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1215
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1216
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1217
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1218
|
+
field :events_count, "events_count", :integer
|
|
1219
|
+
field :watched_fields, "watched_fields", :any
|
|
1220
|
+
end
|
|
1221
|
+
|
|
1177
1222
|
# Full registry company profile.
|
|
1178
1223
|
class KybListUbosResponseKybRegistry < Didit::Model
|
|
1179
1224
|
field :uuid, "uuid", :string
|
|
@@ -1216,7 +1261,7 @@ module Didit
|
|
|
1216
1261
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1217
1262
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1218
1263
|
field :accounts, "accounts", :any
|
|
1219
|
-
field :registry_data, "registry_data",
|
|
1264
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1220
1265
|
field :user_provided_data, "user_provided_data", :any
|
|
1221
1266
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1222
1267
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1225,6 +1270,7 @@ module Didit
|
|
|
1225
1270
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1226
1271
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1227
1272
|
field :registry_tier, "registry_tier", :string
|
|
1273
|
+
field :registry_monitoring, "registry_monitoring", "KybListUbosResponseKybRegistryRegistryMonitoring"
|
|
1228
1274
|
end
|
|
1229
1275
|
|
|
1230
1276
|
class KybListUbosResponseKybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1272,6 +1318,20 @@ module Didit
|
|
|
1272
1318
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1273
1319
|
end
|
|
1274
1320
|
|
|
1321
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1322
|
+
class KybListUbosResponseKybRegistryRegistryMonitoring < Didit::Model
|
|
1323
|
+
field :uuid, "uuid", :string
|
|
1324
|
+
field :status, "status", :string
|
|
1325
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1326
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1327
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1328
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1329
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1330
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1331
|
+
field :events_count, "events_count", :integer
|
|
1332
|
+
field :watched_fields, "watched_fields", :any
|
|
1333
|
+
end
|
|
1334
|
+
|
|
1275
1335
|
class KybSearchResponse < Didit::Model
|
|
1276
1336
|
field :request_id, "request_id", :string
|
|
1277
1337
|
field :kyb_registry, "kyb_registry", "KYBRegistrySearchResults"
|
|
@@ -1332,7 +1392,7 @@ module Didit
|
|
|
1332
1392
|
field :addresses, "addresses", [:array, "KYBRegistryAddress"]
|
|
1333
1393
|
field :industries, "industries", [:array, "KYBRegistryIndustry"]
|
|
1334
1394
|
field :accounts, "accounts", :any
|
|
1335
|
-
field :registry_data, "registry_data",
|
|
1395
|
+
field :registry_data, "registry_data", "KYBRegistryData"
|
|
1336
1396
|
field :user_provided_data, "user_provided_data", :any
|
|
1337
1397
|
field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
|
|
1338
1398
|
field :last_console_edit_at, "last_console_edit_at", :datetime
|
|
@@ -1341,6 +1401,7 @@ module Didit
|
|
|
1341
1401
|
field :registry_ownership_status, "registry_ownership_status", :string
|
|
1342
1402
|
field :ownership, "ownership", "KYBRegistryOwnership"
|
|
1343
1403
|
field :registry_tier, "registry_tier", :string
|
|
1404
|
+
field :registry_monitoring, "registry_monitoring", "KybSelectResponseKybRegistryRegistryMonitoring"
|
|
1344
1405
|
end
|
|
1345
1406
|
|
|
1346
1407
|
class KybSelectResponseKybRegistryBeneficialOwners < Didit::Model
|
|
@@ -1387,5 +1448,19 @@ module Didit
|
|
|
1387
1448
|
field :date_of_birth_year, "date_of_birth_year", :integer
|
|
1388
1449
|
field :date_of_birth_month, "date_of_birth_month", :integer
|
|
1389
1450
|
end
|
|
1451
|
+
|
|
1452
|
+
# The latest registry monitor for the company, or `null` when none exists.
|
|
1453
|
+
class KybSelectResponseKybRegistryRegistryMonitoring < Didit::Model
|
|
1454
|
+
field :uuid, "uuid", :string
|
|
1455
|
+
field :status, "status", :string
|
|
1456
|
+
field :unavailable_reason, "unavailable_reason", :string
|
|
1457
|
+
field :enrolled_at, "enrolled_at", :datetime
|
|
1458
|
+
field :cancelled_at, "cancelled_at", :datetime
|
|
1459
|
+
field :last_bill_date, "last_bill_date", :date
|
|
1460
|
+
field :next_bill_date, "next_bill_date", :date
|
|
1461
|
+
field :last_event_at, "last_event_at", :datetime
|
|
1462
|
+
field :events_count, "events_count", :integer
|
|
1463
|
+
field :watched_fields, "watched_fields", :any
|
|
1464
|
+
end
|
|
1390
1465
|
end
|
|
1391
1466
|
end
|
data/lib/didit/types/phone.rb
CHANGED
|
@@ -22,6 +22,26 @@ module Didit
|
|
|
22
22
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
# Action when the phone intelligence trust index is at or below the threshold. `DECLINE` flips the final `status`
|
|
26
|
+
# to `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is
|
|
27
|
+
# `true`.
|
|
28
|
+
module PhoneCheckCodeParamsLowPhoneTrustAction
|
|
29
|
+
NO_ACTION = "NO_ACTION"
|
|
30
|
+
DECLINE = "DECLINE"
|
|
31
|
+
|
|
32
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Action when the phone intelligence risk score is above the threshold. `DECLINE` flips the final `status` to
|
|
36
|
+
# `Declined`; `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is
|
|
37
|
+
# `true`.
|
|
38
|
+
module PhoneCheckCodeParamsPhoneIntelligenceScoreAction
|
|
39
|
+
NO_ACTION = "NO_ACTION"
|
|
40
|
+
DECLINE = "DECLINE"
|
|
41
|
+
|
|
42
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
43
|
+
end
|
|
44
|
+
|
|
25
45
|
# Action when the social footprint check finds the number registered on none of the platforms it covers. Only
|
|
26
46
|
# NO_ACTION and DECLINE are accepted on this endpoint; REVIEW is available on the workflow configuration key of
|
|
27
47
|
# the same name.
|
|
@@ -32,6 +52,24 @@ module Didit
|
|
|
32
52
|
VALUES = [NO_ACTION, DECLINE].freeze
|
|
33
53
|
end
|
|
34
54
|
|
|
55
|
+
# Action when the number is a high-risk line type. `DECLINE` flips the final `status` to `Declined`; `NO_ACTION`
|
|
56
|
+
# records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
57
|
+
module PhoneCheckCodeParamsPhoneTypeRiskAction
|
|
58
|
+
NO_ACTION = "NO_ACTION"
|
|
59
|
+
DECLINE = "DECLINE"
|
|
60
|
+
|
|
61
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Action when the number was ported to another carrier recently. `DECLINE` flips the final `status` to `Declined`;
|
|
65
|
+
# `NO_ACTION` records the signal without declining. Only takes effect when `enable_enrichment` is `true`.
|
|
66
|
+
module PhoneCheckCodeParamsRecentPortAction
|
|
67
|
+
NO_ACTION = "NO_ACTION"
|
|
68
|
+
DECLINE = "DECLINE"
|
|
69
|
+
|
|
70
|
+
VALUES = [NO_ACTION, DECLINE].freeze
|
|
71
|
+
end
|
|
72
|
+
|
|
35
73
|
# What to do when the carrier lookup reports a virtual line type - `voip`, `isp`, or `vpn` (`phone.is_virtual`).
|
|
36
74
|
# `DECLINE` flips the final `status` to `Declined`; `NO_ACTION` records the risk in `phone.warnings`.
|
|
37
75
|
module PhoneCheckCodeParamsVoipNumberAction
|