didit-sdk 1.0.0 → 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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +0 -2
  4. data/lib/didit/resources/address_validation.rb +2 -2
  5. data/lib/didit/resources/analytics.rb +29 -0
  6. data/lib/didit/resources/bank.rb +15 -6
  7. data/lib/didit/resources/database_validation.rb +65 -0
  8. data/lib/didit/resources/email.rb +22 -2
  9. data/lib/didit/resources/id_verification.rb +14 -13
  10. data/lib/didit/resources/id_wallets.rb +84 -0
  11. data/lib/didit/resources/ip.rb +2 -2
  12. data/lib/didit/resources/kyb.rb +14 -7
  13. data/lib/didit/resources/phone.rb +28 -2
  14. data/lib/didit/resources/pricing.rb +4 -2
  15. data/lib/didit/resources/sessions.rb +463 -33
  16. data/lib/didit/resources/transactions.rb +7 -2
  17. data/lib/didit/resources/travel_rule.rb +96 -0
  18. data/lib/didit/resources/users.rb +25 -6
  19. data/lib/didit/resources/wallet_screening.rb +5 -6
  20. data/lib/didit/resources/webhooks.rb +8 -1
  21. data/lib/didit/types/aml.rb +19 -0
  22. data/lib/didit/types/components.rb +908 -28
  23. data/lib/didit/types/email.rb +28 -0
  24. data/lib/didit/types/kyb.rb +80 -5
  25. data/lib/didit/types/phone.rb +38 -0
  26. data/lib/didit/types/sessions.rb +476 -5
  27. data/lib/didit/types/travel_rule.rb +7 -0
  28. data/lib/didit/types/wallet_screening.rb +13 -6
  29. data/lib/didit/types.rb +121 -0
  30. data/lib/didit/version.rb +1 -1
  31. data/sig/didit/resources/analytics.rbs +1 -0
  32. data/sig/didit/resources/bank.rbs +1 -1
  33. data/sig/didit/resources/database_validation.rbs +1 -1
  34. data/sig/didit/resources/email.rbs +1 -1
  35. data/sig/didit/resources/id_wallets.rbs +2 -0
  36. data/sig/didit/resources/phone.rbs +1 -1
  37. data/sig/didit/resources/sessions.rbs +14 -5
  38. data/sig/didit/resources/transactions.rbs +1 -1
  39. data/sig/didit/resources/travel_rule.rbs +5 -0
  40. data/sig/didit/resources/users.rbs +1 -1
  41. data/sig/didit/resources/wallet_screening.rbs +1 -1
  42. data/sig/didit/resources/webhooks.rbs +1 -1
  43. data/sig/didit/types/aml.rbs +18 -0
  44. data/sig/didit/types/bank.rbs +1 -1
  45. data/sig/didit/types/components.rbs +780 -4
  46. data/sig/didit/types/database_validation.rbs +1 -1
  47. data/sig/didit/types/email.rbs +22 -1
  48. data/sig/didit/types/id_wallets.rbs +4 -0
  49. data/sig/didit/types/kyb.rbs +75 -5
  50. data/sig/didit/types/phone.rbs +29 -1
  51. data/sig/didit/types/sessions.rbs +462 -2
  52. data/sig/didit/types/travel_rule.rbs +9 -0
  53. data/sig/didit/types/users.rbs +1 -1
  54. data/sig/didit/types/wallet_screening.rbs +5 -1
  55. data/sig/didit/types/webhooks.rbs +1 -1
  56. metadata +1 -1
@@ -83,8 +83,9 @@ module Didit
83
83
  SIP = "SIP"
84
84
  SIE = "SIE"
85
85
  INSOLVENCY = "Insolvency"
86
+ OTHER_LISTS = "Other Lists"
86
87
 
87
- VALUES = [PEP, PEP_LEVEL_1, PEP_LEVEL_2, PEP_LEVEL_3, PEP_LEVEL_4, SANCTIONS, ADVERSE_MEDIA, WARNINGS_AND_REGULATORY_ENFORCEMENT, FITNESS_AND_PROBITY, SIP, SIE, INSOLVENCY].freeze
88
+ VALUES = [PEP, PEP_LEVEL_1, PEP_LEVEL_2, PEP_LEVEL_3, PEP_LEVEL_4, SANCTIONS, ADVERSE_MEDIA, WARNINGS_AND_REGULATORY_ENFORCEMENT, FITNESS_AND_PROBITY, SIP, SIE, INSOLVENCY, OTHER_LISTS].freeze
88
89
  end
89
90
 
90
91
  # Review status for this hit. Can be 'Unreviewed', 'Confirmed Match', 'False Positive', or 'Inconclusive'.
@@ -183,8 +184,10 @@ module Didit
183
184
  KYB_REGISTRY = "KYB_REGISTRY"
184
185
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
185
186
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
187
+ GEOLOCATION = "GEOLOCATION"
188
+ SIGNATURE = "SIGNATURE"
186
189
 
187
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
190
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
188
191
  end
189
192
 
190
193
  # `verified`: the address was confirmed down to the building (or the flat or PO box). `partially_verified`: it was
@@ -1019,6 +1022,21 @@ module Didit
1019
1022
  VALUES = [FIN].freeze
1020
1023
  end
1021
1024
 
1025
+ # * `USA` - USA
1026
+ # * `GBR` - GBR
1027
+ # * `BRA` - BRA
1028
+ # * `SGP` - SGP
1029
+ # * `TWN` - TWN
1030
+ module DigitalIdWalletApiGoogleWalletWalletVerificationStartCountryEnum
1031
+ USA = "USA"
1032
+ GBR = "GBR"
1033
+ BRA = "BRA"
1034
+ SGP = "SGP"
1035
+ TWN = "TWN"
1036
+
1037
+ VALUES = [USA, GBR, BRA, SGP, TWN].freeze
1038
+ end
1039
+
1022
1040
  # * `BRA` - BRA
1023
1041
  module DigitalIdWalletApiGovbrWalletVerificationStartCountryEnum
1024
1042
  BRA = "BRA"
@@ -1042,11 +1060,13 @@ module Didit
1042
1060
 
1043
1061
  # * `redirect` - redirect
1044
1062
  # * `in_app` - in_app
1063
+ # * `digital_credentials` - digital_credentials
1045
1064
  module DigitalIdWalletApiInteractionEnum
1046
1065
  REDIRECT = "redirect"
1047
1066
  IN_APP = "in_app"
1067
+ DIGITAL_CREDENTIALS = "digital_credentials"
1048
1068
 
1049
- VALUES = [REDIRECT, IN_APP].freeze
1069
+ VALUES = [REDIRECT, IN_APP, DIGITAL_CREDENTIALS].freeze
1050
1070
  end
1051
1071
 
1052
1072
  # * `BEL` - BEL
@@ -1105,11 +1125,13 @@ module Didit
1105
1125
 
1106
1126
  # * `redirect` - redirect
1107
1127
  # * `confirm_in_app` - confirm_in_app
1128
+ # * `request_digital_credential` - request_digital_credential
1108
1129
  module DigitalIdWalletApiWalletNextActionTypeEnum
1109
1130
  REDIRECT = "redirect"
1110
1131
  CONFIRM_IN_APP = "confirm_in_app"
1132
+ REQUEST_DIGITAL_CREDENTIAL = "request_digital_credential"
1111
1133
 
1112
- VALUES = [REDIRECT, CONFIRM_IN_APP].freeze
1134
+ VALUES = [REDIRECT, CONFIRM_IN_APP, REQUEST_DIGITAL_CREDENTIAL].freeze
1113
1135
  end
1114
1136
 
1115
1137
  # * `pending` - Pending
@@ -1127,6 +1149,14 @@ module Didit
1127
1149
  VALUES = [PENDING, VERIFIED, CANCELLED, TIMEOUT, FAILED].freeze
1128
1150
  end
1129
1151
 
1152
+ # Whether the signal raised the risk or added trust.
1153
+ module EmailIntelligenceReasonCodesDirection
1154
+ RISK = "risk"
1155
+ TRUST = "trust"
1156
+
1157
+ VALUES = [RISK, TRUST].freeze
1158
+ end
1159
+
1130
1160
  # Decision for this email address. Mirrors the top-level `status`.
1131
1161
  module EmailRiskResponseEmailStatus
1132
1162
  APPROVED = "Approved"
@@ -1428,6 +1458,280 @@ module Didit
1428
1458
  VALUES = [EMAIL, PHONE, NATIONAL_ID, TAX_NUMBER, PASSPORT_NUMBER, DRIVING_LICENCE_NUMBER, RESIDENCE_PERMIT_NUMBER, VOTER_ID, EXTERNAL_ID].freeze
1429
1459
  end
1430
1460
 
1461
+ # Confidence level the platform attaches to `accuracy_m`: `p95` (browsers), `p68` (Android) or `unspecified`
1462
+ # (iOS).
1463
+ module GeolocationAttemptAccuracyConfidence
1464
+ P95 = "p95"
1465
+ P68 = "p68"
1466
+ UNSPECIFIED = "unspecified"
1467
+
1468
+ VALUES = [P95, P68, UNSPECIFIED].freeze
1469
+ end
1470
+
1471
+ # Which position the area result was judged from: the `device` fix, or the connection's `ip` location.
1472
+ module GeolocationAttemptGeofenceBasis
1473
+ DEVICE = "device"
1474
+ IP = "ip"
1475
+
1476
+ VALUES = [DEVICE, IP].freeze
1477
+ end
1478
+
1479
+ # Where the position sits relative to the rules. `undetermined` means the accuracy circle straddles the border or
1480
+ # the position resolved to no country; it is not evidence of being outside.
1481
+ module GeolocationAttemptGeofenceResult
1482
+ INSIDE = "inside"
1483
+ OUTSIDE = "outside"
1484
+ UNDETERMINED = "undetermined"
1485
+
1486
+ VALUES = [INSIDE, OUTSIDE, UNDETERMINED].freeze
1487
+ end
1488
+
1489
+ # Whether device attestation backs the fix. `unsupported` is what browsers report, because the web has no
1490
+ # attestation mechanism; it is not a failure.
1491
+ module GeolocationAttemptIntegrity
1492
+ ATTESTED = "attested"
1493
+ NOT_ATTESTED = "not_attested"
1494
+ FAILED = "failed"
1495
+ UNSUPPORTED = "unsupported"
1496
+ NOT_DETERMINED = "not_determined"
1497
+
1498
+ VALUES = [ATTESTED, NOT_ATTESTED, FAILED, UNSUPPORTED, NOT_DETERMINED].freeze
1499
+ end
1500
+
1501
+ # What happened on this attempt.
1502
+ module GeolocationAttemptOutcome
1503
+ VERIFIED = "verified"
1504
+ LOW_ACCURACY = "low_accuracy"
1505
+ ACCURACY_UNDETERMINED = "accuracy_undetermined"
1506
+ STALE = "stale"
1507
+ APPROXIMATE = "approximate"
1508
+ DENIED = "denied"
1509
+ RESTRICTED = "restricted"
1510
+ UNAVAILABLE = "unavailable"
1511
+ TIMEOUT = "timeout"
1512
+ MOCK_DETECTED = "mock_detected"
1513
+ OUTSIDE_GEOFENCE = "outside_geofence"
1514
+ IN_BLOCKED_AREA = "in_blocked_area"
1515
+ ANONYMIZER_DETECTED = "anonymizer_detected"
1516
+ SKIPPED = "skipped"
1517
+ REPLAY_REJECTED = "replay_rejected"
1518
+ UNSUPPORTED_CLIENT = "unsupported_client"
1519
+
1520
+ VALUES = [VERIFIED, LOW_ACCURACY, ACCURACY_UNDETERMINED, STALE, APPROXIMATE, DENIED, RESTRICTED, UNAVAILABLE, TIMEOUT, MOCK_DETECTED, OUTSIDE_GEOFENCE, IN_BLOCKED_AREA, ANONYMIZER_DETECTED, SKIPPED, REPLAY_REJECTED, UNSUPPORTED_CLIENT].freeze
1521
+ end
1522
+
1523
+ # What the operating system or browser granted. `not_requested` means the step uses the connection's IP location
1524
+ # only, so the person is never asked for a permission.
1525
+ module GeolocationAttemptPermission
1526
+ GRANTED_PRECISE = "granted_precise"
1527
+ GRANTED_APPROXIMATE = "granted_approximate"
1528
+ DENIED = "denied"
1529
+ RESTRICTED = "restricted"
1530
+ UNAVAILABLE = "unavailable"
1531
+ TIMEOUT = "timeout"
1532
+ DISMISSED = "dismissed"
1533
+ NOT_REQUESTED = "not_requested"
1534
+
1535
+ VALUES = [GRANTED_PRECISE, GRANTED_APPROXIMATE, DENIED, RESTRICTED, UNAVAILABLE, TIMEOUT, DISMISSED, NOT_REQUESTED].freeze
1536
+ end
1537
+
1538
+ # The client that produced the fix.
1539
+ module GeolocationAttemptPlatform
1540
+ WEB = "web"
1541
+ IOS = "ios"
1542
+ ANDROID = "android"
1543
+ REACT_NATIVE = "react_native"
1544
+ FLUTTER = "flutter"
1545
+
1546
+ VALUES = [WEB, IOS, ANDROID, REACT_NATIVE, FLUTTER].freeze
1547
+ end
1548
+
1549
+ # Where the step takes the position from, as configured: the device checked against the IP location, the device
1550
+ # only, or the IP location only.
1551
+ module GeolocationAttemptPositionSource
1552
+ DEVICE_AND_IP = "device_and_ip"
1553
+ DEVICE_ONLY = "device_only"
1554
+ IP_ONLY = "ip_only"
1555
+
1556
+ VALUES = [DEVICE_AND_IP, DEVICE_ONLY, IP_ONLY].freeze
1557
+ end
1558
+
1559
+ # Where the fix came from, when the platform says. `ip` means the position is the connection's IP location.
1560
+ module GeolocationAttemptSource
1561
+ GPS = "gps"
1562
+ FUSED = "fused"
1563
+ NETWORK = "network"
1564
+ WIFI = "wifi"
1565
+ CELL = "cell"
1566
+ BROWSER = "browser"
1567
+ UNKNOWN = "unknown"
1568
+ IP = "ip"
1569
+
1570
+ VALUES = [GPS, FUSED, NETWORK, WIFI, CELL, BROWSER, UNKNOWN, IP].freeze
1571
+ end
1572
+
1573
+ # Feature-level status of this Location verification step, resolved from its warnings. Independent of the session
1574
+ # `status`.
1575
+ module GeolocationAttemptStatus
1576
+ NOT_FINISHED = "Not Finished"
1577
+ APPROVED = "Approved"
1578
+ DECLINED = "Declined"
1579
+ IN_REVIEW = "In Review"
1580
+ RESUB_REQUESTED = "Resub Requested"
1581
+
1582
+ VALUES = [NOT_FINISHED, APPROVED, DECLINED, IN_REVIEW, RESUB_REQUESTED].freeze
1583
+ end
1584
+
1585
+ # Confidence level the platform attaches to `accuracy_m`: `p95` (browsers), `p68` (Android) or `unspecified`
1586
+ # (iOS).
1587
+ module GeolocationCheckAccuracyConfidence
1588
+ P95 = "p95"
1589
+ P68 = "p68"
1590
+ UNSPECIFIED = "unspecified"
1591
+
1592
+ VALUES = [P95, P68, UNSPECIFIED].freeze
1593
+ end
1594
+
1595
+ # Which position the area result was judged from: the `device` fix, or the connection's `ip` location.
1596
+ module GeolocationCheckGeofenceBasis
1597
+ DEVICE = "device"
1598
+ IP = "ip"
1599
+
1600
+ VALUES = [DEVICE, IP].freeze
1601
+ end
1602
+
1603
+ # Where the position sits relative to the rules. `undetermined` means the accuracy circle straddles the border or
1604
+ # the position resolved to no country; it is not evidence of being outside.
1605
+ module GeolocationCheckGeofenceResult
1606
+ INSIDE = "inside"
1607
+ OUTSIDE = "outside"
1608
+ UNDETERMINED = "undetermined"
1609
+
1610
+ VALUES = [INSIDE, OUTSIDE, UNDETERMINED].freeze
1611
+ end
1612
+
1613
+ # Whether device attestation backs the fix. `unsupported` is what browsers report, because the web has no
1614
+ # attestation mechanism; it is not a failure.
1615
+ module GeolocationCheckIntegrity
1616
+ ATTESTED = "attested"
1617
+ NOT_ATTESTED = "not_attested"
1618
+ FAILED = "failed"
1619
+ UNSUPPORTED = "unsupported"
1620
+ NOT_DETERMINED = "not_determined"
1621
+
1622
+ VALUES = [ATTESTED, NOT_ATTESTED, FAILED, UNSUPPORTED, NOT_DETERMINED].freeze
1623
+ end
1624
+
1625
+ # What happened on this attempt.
1626
+ module GeolocationCheckOutcome
1627
+ VERIFIED = "verified"
1628
+ LOW_ACCURACY = "low_accuracy"
1629
+ ACCURACY_UNDETERMINED = "accuracy_undetermined"
1630
+ STALE = "stale"
1631
+ APPROXIMATE = "approximate"
1632
+ DENIED = "denied"
1633
+ RESTRICTED = "restricted"
1634
+ UNAVAILABLE = "unavailable"
1635
+ TIMEOUT = "timeout"
1636
+ MOCK_DETECTED = "mock_detected"
1637
+ OUTSIDE_GEOFENCE = "outside_geofence"
1638
+ IN_BLOCKED_AREA = "in_blocked_area"
1639
+ ANONYMIZER_DETECTED = "anonymizer_detected"
1640
+ SKIPPED = "skipped"
1641
+ REPLAY_REJECTED = "replay_rejected"
1642
+ UNSUPPORTED_CLIENT = "unsupported_client"
1643
+
1644
+ VALUES = [VERIFIED, LOW_ACCURACY, ACCURACY_UNDETERMINED, STALE, APPROXIMATE, DENIED, RESTRICTED, UNAVAILABLE, TIMEOUT, MOCK_DETECTED, OUTSIDE_GEOFENCE, IN_BLOCKED_AREA, ANONYMIZER_DETECTED, SKIPPED, REPLAY_REJECTED, UNSUPPORTED_CLIENT].freeze
1645
+ end
1646
+
1647
+ # What the operating system or browser granted. `not_requested` means the step uses the connection's IP location
1648
+ # only, so the person is never asked for a permission.
1649
+ module GeolocationCheckPermission
1650
+ GRANTED_PRECISE = "granted_precise"
1651
+ GRANTED_APPROXIMATE = "granted_approximate"
1652
+ DENIED = "denied"
1653
+ RESTRICTED = "restricted"
1654
+ UNAVAILABLE = "unavailable"
1655
+ TIMEOUT = "timeout"
1656
+ DISMISSED = "dismissed"
1657
+ NOT_REQUESTED = "not_requested"
1658
+
1659
+ VALUES = [GRANTED_PRECISE, GRANTED_APPROXIMATE, DENIED, RESTRICTED, UNAVAILABLE, TIMEOUT, DISMISSED, NOT_REQUESTED].freeze
1660
+ end
1661
+
1662
+ # The client that produced the fix.
1663
+ module GeolocationCheckPlatform
1664
+ WEB = "web"
1665
+ IOS = "ios"
1666
+ ANDROID = "android"
1667
+ REACT_NATIVE = "react_native"
1668
+ FLUTTER = "flutter"
1669
+
1670
+ VALUES = [WEB, IOS, ANDROID, REACT_NATIVE, FLUTTER].freeze
1671
+ end
1672
+
1673
+ # Where the step takes the position from, as configured: the device checked against the IP location, the device
1674
+ # only, or the IP location only.
1675
+ module GeolocationCheckPositionSource
1676
+ DEVICE_AND_IP = "device_and_ip"
1677
+ DEVICE_ONLY = "device_only"
1678
+ IP_ONLY = "ip_only"
1679
+
1680
+ VALUES = [DEVICE_AND_IP, DEVICE_ONLY, IP_ONLY].freeze
1681
+ end
1682
+
1683
+ # Where the fix came from, when the platform says. `ip` means the position is the connection's IP location.
1684
+ module GeolocationCheckSource
1685
+ GPS = "gps"
1686
+ FUSED = "fused"
1687
+ NETWORK = "network"
1688
+ WIFI = "wifi"
1689
+ CELL = "cell"
1690
+ BROWSER = "browser"
1691
+ UNKNOWN = "unknown"
1692
+ IP = "ip"
1693
+
1694
+ VALUES = [GPS, FUSED, NETWORK, WIFI, CELL, BROWSER, UNKNOWN, IP].freeze
1695
+ end
1696
+
1697
+ # Feature-level status of this Location verification step, resolved from its warnings. Independent of the session
1698
+ # `status`.
1699
+ module GeolocationCheckStatus
1700
+ NOT_FINISHED = "Not Finished"
1701
+ APPROVED = "Approved"
1702
+ DECLINED = "Declined"
1703
+ IN_REVIEW = "In Review"
1704
+ RESUB_REQUESTED = "Resub Requested"
1705
+
1706
+ VALUES = [NOT_FINISHED, APPROVED, DECLINED, IN_REVIEW, RESUB_REQUESTED].freeze
1707
+ end
1708
+
1709
+ # The feature that generated this warning. The value identifies the feature block the warning belongs to. Each
1710
+ # module's warnings array typically uses the value matching its module (e.g. `PHONE` inside
1711
+ # `phone_verifications[].warnings`), but the enum above is authoritative across all feature warnings on the
1712
+ # decision payload.
1713
+ module GeolocationCheckWarningsFeature
1714
+ ID_VERIFICATION = "ID_VERIFICATION"
1715
+ NFC = "NFC"
1716
+ LIVENESS = "LIVENESS"
1717
+ FACEMATCH = "FACEMATCH"
1718
+ PROOF_OF_ADDRESS = "PROOF_OF_ADDRESS"
1719
+ PHONE = "PHONE"
1720
+ EMAIL = "EMAIL"
1721
+ AML = "AML"
1722
+ LOCATION = "LOCATION"
1723
+ DATABASE_VALIDATION = "DATABASE_VALIDATION"
1724
+ QUESTIONNAIRE = "QUESTIONNAIRE"
1725
+ DOCUMENT_AI = "DOCUMENT_AI"
1726
+ KYB_REGISTRY = "KYB_REGISTRY"
1727
+ KYB_DOCUMENTS = "KYB_DOCUMENTS"
1728
+ KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
1729
+ GEOLOCATION = "GEOLOCATION"
1730
+ SIGNATURE = "SIGNATURE"
1731
+
1732
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
1733
+ end
1734
+
1431
1735
  # `In Review` when the resolved country conflicts with `claimed_country`, or when the address is associated with
1432
1736
  # VPN, Tor, or data-center infrastructure. Otherwise `Approved`.
1433
1737
  module IPRiskResponseIpStatus
@@ -1782,6 +2086,31 @@ module Didit
1782
2086
  VALUES = [KYC, KYB, ADAPTIVE_AGE_VERIFICATION, BIOMETRIC_AUTHENTICATION, ADDRESS_VERIFICATION, QUESTIONNAIRE_VERIFICATION, EMAIL_VERIFICATION, PHONE_VERIFICATION].freeze
1783
2087
  end
1784
2088
 
2089
+ # Whether the owner is a natural person or a company.
2090
+ module KYBOwnershipStructureOwnerEntityType
2091
+ PERSON = "person"
2092
+ COMPANY = "company"
2093
+
2094
+ VALUES = [PERSON, COMPANY].freeze
2095
+ end
2096
+
2097
+ # Why a requested ownership tier was not delivered, in the same codes as `ownership.unavailable_reason`.
2098
+ # `no_owners_on_record` (the registry answered and names no owner) and `ownership_section_unavailable` (the
2099
+ # registry did not return the ownership section) are different findings.
2100
+ module KYBRegistryDataOwnershipError
2101
+ NO_OWNERS_ON_RECORD = "no_owners_on_record"
2102
+ NO_NATURAL_PERSON_OWNER = "no_natural_person_owner"
2103
+ OWNERSHIP_SECTION_UNAVAILABLE = "ownership_section_unavailable"
2104
+ COMPANY_NOT_FOUND = "company_not_found"
2105
+ AMBIGUOUS_COMPANY_MATCH = "ambiguous_company_match"
2106
+ MISSING_REGISTRATION_NUMBER = "missing_registration_number"
2107
+ ENTITY_TYPE_NOT_COVERED = "entity_type_not_covered"
2108
+ PROVIDER_UNAVAILABLE = "provider_unavailable"
2109
+ OTHER = "other"
2110
+
2111
+ VALUES = [NO_OWNERS_ON_RECORD, NO_NATURAL_PERSON_OWNER, OWNERSHIP_SECTION_UNAVAILABLE, COMPANY_NOT_FOUND, AMBIGUOUS_COMPANY_MATCH, MISSING_REGISTRATION_NUMBER, ENTITY_TYPE_NOT_COVERED, PROVIDER_UNAVAILABLE, OTHER].freeze
2112
+ end
2113
+
1785
2114
  # `delivered` when the registry published ownership; `not_held` when the ownership registry answered and does not
1786
2115
  # list the company at all (see `unavailable_reason`); `unavailable` when it did not serve the ownership data for
1787
2116
  # any other reason (see `unavailable_reason`); `pending` while the registry is still fetching it; `not_requested`
@@ -1838,6 +2167,13 @@ module Didit
1838
2167
  VALUES = [PENDING, RESOLVED].freeze
1839
2168
  end
1840
2169
 
2170
+ # Always `official`.
2171
+ module KYBRegistrySourceSourceType
2172
+ OFFICIAL = "official"
2173
+
2174
+ VALUES = [OFFICIAL].freeze
2175
+ end
2176
+
1841
2177
  # Event category.
1842
2178
  module MonitoringEventCreateRequestEventCategory
1843
2179
  AUTH = "auth"
@@ -2192,6 +2528,14 @@ module Didit
2192
2528
  VALUES = [PENDING, PROCESSING, COMPLETED, FAILED].freeze
2193
2529
  end
2194
2530
 
2531
+ # Whether the signal raised the risk or added trust.
2532
+ module PhoneIntelligenceReasonCodesDirection
2533
+ RISK = "risk"
2534
+ TRUST = "trust"
2535
+
2536
+ VALUES = [RISK, TRUST].freeze
2537
+ end
2538
+
2195
2539
  # Decision for this phone number. Mirrors the top-level `status`.
2196
2540
  module PhoneRiskResponsePhoneStatus
2197
2541
  APPROVED = "Approved"
@@ -2572,8 +2916,19 @@ module Didit
2572
2916
  KYB_REGISTRY = "KYB_REGISTRY"
2573
2917
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
2574
2918
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
2919
+ GEOLOCATION = "GEOLOCATION"
2920
+ SIGNATURE = "SIGNATURE"
2921
+
2922
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
2923
+ end
2924
+
2925
+ # Who set the status. `null` while the session is not decided.
2926
+ module SessionDecisionDecisionTraceDecidedBy
2927
+ MANUAL = "manual"
2928
+ AUTOMATIC = "automatic"
2929
+ INVESTIGATOR = "investigator"
2575
2930
 
2576
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
2931
+ VALUES = [MANUAL, AUTOMATIC, INVESTIGATOR].freeze
2577
2932
  end
2578
2933
 
2579
2934
  # Expected value type of the extracted field.
@@ -2680,8 +3035,10 @@ module Didit
2680
3035
  KYB_REGISTRY = "KYB_REGISTRY"
2681
3036
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
2682
3037
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3038
+ GEOLOCATION = "GEOLOCATION"
3039
+ SIGNATURE = "SIGNATURE"
2683
3040
 
2684
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3041
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
2685
3042
  end
2686
3043
 
2687
3044
  # Whether the session was created by a live application (`live`) or a sandbox application (`sandbox`). Sandbox
@@ -2746,8 +3103,10 @@ module Didit
2746
3103
  KYB_REGISTRY = "KYB_REGISTRY"
2747
3104
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
2748
3105
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3106
+ GEOLOCATION = "GEOLOCATION"
3107
+ SIGNATURE = "SIGNATURE"
2749
3108
 
2750
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3109
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
2751
3110
  end
2752
3111
 
2753
3112
  # Assurance tier derived from `verification_method`: `documentary` for a document that was captured and checked,
@@ -2919,8 +3278,10 @@ module Didit
2919
3278
  KYB_REGISTRY = "KYB_REGISTRY"
2920
3279
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
2921
3280
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3281
+ GEOLOCATION = "GEOLOCATION"
3282
+ SIGNATURE = "SIGNATURE"
2922
3283
 
2923
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3284
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
2924
3285
  end
2925
3286
 
2926
3287
  # Evidence class of the match: `deterministic` (exact stored or hardware-rooted identifier that cannot collide
@@ -2994,8 +3355,10 @@ module Didit
2994
3355
  KYB_REGISTRY = "KYB_REGISTRY"
2995
3356
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
2996
3357
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3358
+ GEOLOCATION = "GEOLOCATION"
3359
+ SIGNATURE = "SIGNATURE"
2997
3360
 
2998
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3361
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
2999
3362
  end
3000
3363
 
3001
3364
  # Status of the AML screening run for this beneficial owner. `null` when no AML screening was run.
@@ -3297,8 +3660,10 @@ module Didit
3297
3660
  KYB_REGISTRY = "KYB_REGISTRY"
3298
3661
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
3299
3662
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3663
+ GEOLOCATION = "GEOLOCATION"
3664
+ SIGNATURE = "SIGNATURE"
3300
3665
 
3301
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3666
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
3302
3667
  end
3303
3668
 
3304
3669
  # Why NFC chip verification did not run, populated whenever the workflow includes an NFC step. `null` while NFC is
@@ -3439,8 +3804,10 @@ module Didit
3439
3804
  KYB_REGISTRY = "KYB_REGISTRY"
3440
3805
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
3441
3806
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3807
+ GEOLOCATION = "GEOLOCATION"
3808
+ SIGNATURE = "SIGNATURE"
3442
3809
 
3443
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3810
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
3444
3811
  end
3445
3812
 
3446
3813
  # Where this match came from. `session` means another verification session in your application matched on this
@@ -3485,8 +3852,10 @@ module Didit
3485
3852
  KYB_REGISTRY = "KYB_REGISTRY"
3486
3853
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
3487
3854
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3855
+ GEOLOCATION = "GEOLOCATION"
3856
+ SIGNATURE = "SIGNATURE"
3488
3857
 
3489
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3858
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
3490
3859
  end
3491
3860
 
3492
3861
  # Feature-level status of this Proof of Address step. Independent of the top-level session `status` - a session
@@ -3521,8 +3890,10 @@ module Didit
3521
3890
  KYB_REGISTRY = "KYB_REGISTRY"
3522
3891
  KYB_DOCUMENTS = "KYB_DOCUMENTS"
3523
3892
  KYB_KEY_PEOPLE = "KYB_KEY_PEOPLE"
3893
+ GEOLOCATION = "GEOLOCATION"
3894
+ SIGNATURE = "SIGNATURE"
3524
3895
 
3525
- VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE].freeze
3896
+ VALUES = [ID_VERIFICATION, NFC, LIVENESS, FACEMATCH, PROOF_OF_ADDRESS, PHONE, EMAIL, AML, LOCATION, DATABASE_VALIDATION, QUESTIONNAIRE, DOCUMENT_AI, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, GEOLOCATION, SIGNATURE].freeze
3526
3897
  end
3527
3898
 
3528
3899
  # Known values of an open enum: the API may send others.
@@ -3689,6 +4060,18 @@ module Didit
3689
4060
  VALUES = [OCR, OCR_BACK, NFC, AML, FACE, LIVENESS, FACE_MATCH, IP_ANALYSIS, AGE_ESTIMATION, PROOF_OF_ADDRESS, PHONE_VERIFICATION, EMAIL_VERIFICATION, FACE_SEARCH, DATABASE_VALIDATION, QUESTIONNAIRE, KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE, DOCUMENT_AI, GEOLOCATION].freeze
3690
4061
  end
3691
4062
 
4063
+ # `PENDING` and `PROCESSING` while the ZIP is prepared, `READY` once it can be downloaded, `FAILED` when it could
4064
+ # not be prepared (request a new export), `EXPIRED` once the ZIP was deleted.
4065
+ module SessionFilesExportStatus
4066
+ PENDING = "PENDING"
4067
+ PROCESSING = "PROCESSING"
4068
+ READY = "READY"
4069
+ FAILED = "FAILED"
4070
+ EXPIRED = "EXPIRED"
4071
+
4072
+ VALUES = [PENDING, PROCESSING, READY, FAILED, EXPIRED].freeze
4073
+ end
4074
+
3692
4075
  # Known values of an open enum: the API may send others.
3693
4076
  module SessionImportJobImportType
3694
4077
  USER_VERIFICATION = "user_verification"
@@ -3855,7 +4238,7 @@ module Didit
3855
4238
  VALUES = [TYPED, DRAWN].freeze
3856
4239
  end
3857
4240
 
3858
- # Known values of an open enum: the API may send others.
4241
+ # `null` for a Simple signature, which has no code.
3859
4242
  module SignatureResultConfirmationChannel
3860
4243
  EMAIL = "email"
3861
4244
  SMS = "sms"
@@ -3905,19 +4288,21 @@ module Didit
3905
4288
  VALUES = [SIGNED, DECLINED, NOT_SIGNED, NOT_REACHED].freeze
3906
4289
  end
3907
4290
 
3908
- # Known values of an open enum: the API may send others.
4291
+ # `pdf` for a Simple signature, `pades` for Advanced (AES).
3909
4292
  module SignatureResultFormat
4293
+ PDF = "pdf"
3910
4294
  PADES = "pades"
3911
4295
 
3912
- VALUES = [PADES].freeze
4296
+ VALUES = [PDF, PADES].freeze
3913
4297
  end
3914
4298
 
3915
- # `aes`. `qes` (Qualified Electronic Signature, QES) is coming soon.
4299
+ # `simple` (default) or `aes`. `qes` (Qualified Electronic Signature, QES) is an add-on that is not available yet.
3916
4300
  module SignatureResultLevel
4301
+ SIMPLE = "simple"
3917
4302
  AES = "aes"
3918
4303
  QES = "qes"
3919
4304
 
3920
- VALUES = [AES, QES].freeze
4305
+ VALUES = [SIMPLE, AES, QES].freeze
3921
4306
  end
3922
4307
 
3923
4308
  # Known values of an open enum: the API may send others.
@@ -5755,6 +6140,7 @@ module Didit
5755
6140
  TRANSACTION_STATUS_UPDATED = "transaction.status.updated"
5756
6141
  TRAVEL_RULE_STATUS_UPDATED = "travel_rule.status.updated"
5757
6142
  WORKFLOW_COMPLIANCE_CHANGED = "workflow.compliance_changed"
6143
+ TRANSACTION_RULE_SUGGESTIONS_CREATED = "transaction_rule_suggestions.created"
5758
6144
  AUTH_SIGNUP = "auth.signup"
5759
6145
  AUTH_LOGIN = "auth.login"
5760
6146
  AUTH_LOGIN_FAILED = "auth.login_failed"
@@ -5776,7 +6162,7 @@ module Didit
5776
6162
  INVESTIGATOR_QA_FAILED = "investigator.qa.failed"
5777
6163
  INVESTIGATOR_EXTERNAL_REPORT_READY = "investigator.external.report.ready"
5778
6164
 
5779
- VALUES = [STATUS_UPDATED, DATA_UPDATED, USER_STATUS_UPDATED, USER_DATA_UPDATED, BUSINESS_STATUS_UPDATED, BUSINESS_DATA_UPDATED, ACTIVITY_CREATED, TRANSACTION_CREATED, TRANSACTION_STATUS_UPDATED, TRAVEL_RULE_STATUS_UPDATED, WORKFLOW_COMPLIANCE_CHANGED, AUTH_SIGNUP, AUTH_LOGIN, AUTH_LOGIN_FAILED, AUTH_PASSWORD_RESET_REQUESTED, AUTH_PASSWORD_RESET_COMPLETED, AUTH_MFA_CHANGED, AUTH_NEW_DEVICE, AUTH_ACCOUNT_LOCKED, INVESTIGATOR_REPORT_READY, INVESTIGATOR_DECISION_AUTOMATED, INVESTIGATOR_DECISION_OVERRIDDEN, INVESTIGATOR_DECISION_CONTESTED, INVESTIGATOR_QUESTION_RAISED, INVESTIGATOR_AUTOMATION_PAUSED, INVESTIGATOR_RFI_ANSWERED, INVESTIGATOR_RFI_OVERDUE, INVESTIGATOR_DRIFT_DETECTED, INVESTIGATOR_SLA_BREACHED, INVESTIGATOR_QA_FAILED, INVESTIGATOR_EXTERNAL_REPORT_READY].freeze
6165
+ VALUES = [STATUS_UPDATED, DATA_UPDATED, USER_STATUS_UPDATED, USER_DATA_UPDATED, BUSINESS_STATUS_UPDATED, BUSINESS_DATA_UPDATED, ACTIVITY_CREATED, TRANSACTION_CREATED, TRANSACTION_STATUS_UPDATED, TRAVEL_RULE_STATUS_UPDATED, WORKFLOW_COMPLIANCE_CHANGED, TRANSACTION_RULE_SUGGESTIONS_CREATED, AUTH_SIGNUP, AUTH_LOGIN, AUTH_LOGIN_FAILED, AUTH_PASSWORD_RESET_REQUESTED, AUTH_PASSWORD_RESET_COMPLETED, AUTH_MFA_CHANGED, AUTH_NEW_DEVICE, AUTH_ACCOUNT_LOCKED, INVESTIGATOR_REPORT_READY, INVESTIGATOR_DECISION_AUTOMATED, INVESTIGATOR_DECISION_OVERRIDDEN, INVESTIGATOR_DECISION_CONTESTED, INVESTIGATOR_QUESTION_RAISED, INVESTIGATOR_AUTOMATION_PAUSED, INVESTIGATOR_RFI_ANSWERED, INVESTIGATOR_RFI_OVERDUE, INVESTIGATOR_DRIFT_DETECTED, INVESTIGATOR_SLA_BREACHED, INVESTIGATOR_QA_FAILED, INVESTIGATOR_EXTERNAL_REPORT_READY].freeze
5780
6166
  end
5781
6167
 
5782
6168
  # Draft versions are editable; published versions are immutable and used for new sessions.
@@ -6157,6 +6543,7 @@ module Didit
6157
6543
  # One completed ongoing-monitoring re-screen of an AML check.
6158
6544
  class AMLScreeningRun < Didit::Model
6159
6545
  field :uuid, "uuid", :string
6546
+ field :run_id, "run_id", :string
6160
6547
  field :completed_at, "completed_at", :datetime
6161
6548
  field :started_at, "started_at", :datetime
6162
6549
  field :outcome, "outcome", :string
@@ -6165,6 +6552,8 @@ module Didit
6165
6552
  field :status, "status", :string
6166
6553
  field :score, "score", :float
6167
6554
  field :total_hits, "total_hits", :integer
6555
+ field :new_hits, "new_hits", :integer
6556
+ field :entities_screened, "entities_screened", :integer
6168
6557
  field :dataset_freshness, "dataset_freshness", "AMLDatasetFreshness"
6169
6558
  end
6170
6559
 
@@ -6352,6 +6741,27 @@ module Didit
6352
6741
  field :abandoned, "abandoned", :integer
6353
6742
  end
6354
6743
 
6744
+ # Today's verifications by local hour against the same weekday last week.
6745
+ class ApplicationAnalyticsToday < Didit::Model
6746
+ field :time_zone, "time_zone", :string
6747
+ field :date, "date", :date
6748
+ field :current_hour, "current_hour", :integer
6749
+ field :previous_date, "previous_date", :date
6750
+ field :hours, "hours", [:array, :integer]
6751
+ field :previous_hours, "previous_hours", [:array, :integer]
6752
+ field :total, "total", :integer
6753
+ field :previous_total_so_far, "previous_total_so_far", :integer
6754
+ field :outcomes, "outcomes", "ApplicationAnalyticsTodayOutcomes"
6755
+ end
6756
+
6757
+ # Of today's verifications, how many are approved, waiting in review and declined now. The rest are not finished
6758
+ # yet.
6759
+ class ApplicationAnalyticsTodayOutcomes < Didit::Model
6760
+ field :approved, "approved", :integer
6761
+ field :in_review, "in_review", :integer
6762
+ field :declined, "declined", :integer
6763
+ end
6764
+
6355
6765
  class ApplicationAnalyticsVerificationTimePoint < Didit::Model
6356
6766
  field :date, "date", :string
6357
6767
  field :overall_avg, "overall_avg", :float
@@ -6617,6 +7027,12 @@ module Didit
6617
7027
  field :requested_scopes, "requested_scopes", [:array, :string]
6618
7028
  end
6619
7029
 
7030
+ # When the live biometric data of this session is deleted.
7031
+ class BiometricRetention < Didit::Model
7032
+ field :jurisdictions, "jurisdictions", [:array, :string]
7033
+ field :deletes_at, "deletes_at", :datetime
7034
+ end
7035
+
6620
7036
  # One blocklisted face, identity document, phone number or email address of a verification session. Fields that do
6621
7037
  # not apply to the item's `type` are `null`.
6622
7038
  class BlocklistedItem < Didit::Model
@@ -7357,6 +7773,11 @@ module Didit
7357
7773
  field :wallets, "wallets", [:array, "DigitalIdWalletApiWalletCatalogEntry"]
7358
7774
  end
7359
7775
 
7776
+ class DigitalIdWalletApiWalletDigitalCredentialsRequest < Didit::Model
7777
+ field :protocol, "protocol", :string
7778
+ field :request, "request", :any
7779
+ end
7780
+
7360
7781
  class DigitalIdWalletApiWalletIdentity < Didit::Model
7361
7782
  field :full_name, "full_name", :string
7362
7783
  field :first_name, "first_name", :string
@@ -7369,6 +7790,7 @@ module Didit
7369
7790
  class DigitalIdWalletApiWalletNextAction < Didit::Model
7370
7791
  field :type, "type", :string
7371
7792
  field :url, "url", :string
7793
+ field :digital_credentials, "digital_credentials", "DigitalIdWalletApiWalletDigitalCredentialsRequest"
7372
7794
  field :verification_code, "verification_code", :string
7373
7795
  field :poll_interval_seconds, "poll_interval_seconds", :integer
7374
7796
  end
@@ -7427,7 +7849,15 @@ module Didit
7427
7849
  field :is_free_domain, "is_free_domain", :boolean
7428
7850
  field :is_breached, "is_breached", :boolean
7429
7851
  field :no_of_breaches, "no_of_breaches", :float
7430
- field :reason_codes, "reason_codes", [:array, :string]
7852
+ field :reason_codes, "reason_codes", [:array, "EmailIntelligenceReasonCodes"]
7853
+ end
7854
+
7855
+ class EmailIntelligenceReasonCodes < Didit::Model
7856
+ field :code, "code", :string
7857
+ field :value, "value", :any
7858
+ field :direction, "direction", :string
7859
+ field :message, "message", :string
7860
+ field :impact_level, "impact_level", :string
7431
7861
  end
7432
7862
 
7433
7863
  # Another session of your application that used the same email address with a different `vendor_data`.
@@ -7530,6 +7960,7 @@ module Didit
7530
7960
  field :lifecycle, "lifecycle", [:array, "EmailVerificationCheckResponseEmailLifecycle"]
7531
7961
  field :matches, "matches", [:array, "EmailVerificationCheckResponseEmailMatches"]
7532
7962
  field :email_social, "email_social", "EmailSocialFootprint"
7963
+ field :email_intelligence, "email_intelligence", "EmailIntelligence"
7533
7964
  end
7534
7965
 
7535
7966
  class EmailVerificationCheckResponseEmailBreaches < Didit::Model
@@ -7700,6 +8131,141 @@ module Didit
7700
8131
  field :evidence_indexes, "evidence_indexes", [:array, :integer]
7701
8132
  end
7702
8133
 
8134
+ # One attempt of a Location verification step: the same keys as `geolocation_checks[]` except `warnings`, plus
8135
+ # when Didit received it.
8136
+ class GeolocationAttempt < Didit::Model
8137
+ field :node_id, "node_id", :string
8138
+ field :status, "status", :string
8139
+ field :outcome, "outcome", :string
8140
+ field :permission, "permission", :string
8141
+ field :latitude, "latitude", :float
8142
+ field :longitude, "longitude", :float
8143
+ field :accuracy_m, "accuracy_m", :float
8144
+ field :accuracy_confidence, "accuracy_confidence", :string
8145
+ field :measured_at, "measured_at", :datetime
8146
+ field :age_seconds, "age_seconds", :integer
8147
+ field :source, "source", :string
8148
+ field :platform, "platform", :string
8149
+ field :sdk_version, "sdk_version", :string
8150
+ field :is_mock, "is_mock", :boolean
8151
+ field :produced_by_accessory, "produced_by_accessory", :boolean
8152
+ field :integrity, "integrity", :string
8153
+ field :country_code, "country_code", :string
8154
+ field :region_code, "region_code", :string
8155
+ field :city, "city", :string
8156
+ field :geofence, "geofence", "GeolocationAttemptGeofence"
8157
+ field :inside_geofence, "inside_geofence", :boolean
8158
+ field :geofence_basis, "geofence_basis", :string
8159
+ field :inside_areas, "inside_areas", [:array, :string]
8160
+ field :blocked_areas, "blocked_areas", [:array, :string]
8161
+ field :position_source, "position_source", :string
8162
+ field :anonymizers, "anonymizers", "GeolocationAttemptAnonymizers"
8163
+ field :ip_distance_km, "ip_distance_km", :float
8164
+ field :ip_distance_uncertainty_km, "ip_distance_uncertainty_km", :float
8165
+ field :ip_consistent, "ip_consistent", :boolean
8166
+ field :document_distance_km, "document_distance_km", :float
8167
+ field :travel_excused, "travel_excused", :boolean
8168
+ field :consecutive_mismatches, "consecutive_mismatches", :integer
8169
+ field :attempts, "attempts", :integer
8170
+ field :consent, "consent", "GeolocationAttemptConsent"
8171
+ field :received_at, "received_at", :datetime
8172
+ field :created_at, "created_at", :datetime
8173
+ end
8174
+
8175
+ # What the connection and device look like, each `true`, `false` or `null` when the source cannot tell.
8176
+ class GeolocationAttemptAnonymizers < Didit::Model
8177
+ field :vpn, "vpn", :boolean
8178
+ field :proxy, "proxy", :boolean
8179
+ field :tor, "tor", :boolean
8180
+ field :spoofing, "spoofing", :boolean
8181
+ field :emulator, "emulator", :boolean
8182
+ end
8183
+
8184
+ # The consent the person gave before the system prompt, recorded with the wording version and language they saw.
8185
+ class GeolocationAttemptConsent < Didit::Model
8186
+ field :accepted_at, "accepted_at", :datetime
8187
+ field :version, "version", :string
8188
+ field :locale, "locale", :string
8189
+ end
8190
+
8191
+ # Result of the country and area rules of the step.
8192
+ class GeolocationAttemptGeofence < Didit::Model
8193
+ field :enabled, "enabled", :boolean
8194
+ field :result, "result", :string
8195
+ end
8196
+
8197
+ # One Location verification result, the accepted attempt of one workflow node. Measurement, uncertainty and
8198
+ # authenticity are separate keys, so a precise unattested fix reads differently from an imprecise attested one.
8199
+ class GeolocationCheck < Didit::Model
8200
+ field :node_id, "node_id", :string
8201
+ field :status, "status", :string
8202
+ field :outcome, "outcome", :string
8203
+ field :permission, "permission", :string
8204
+ field :latitude, "latitude", :float
8205
+ field :longitude, "longitude", :float
8206
+ field :accuracy_m, "accuracy_m", :float
8207
+ field :accuracy_confidence, "accuracy_confidence", :string
8208
+ field :measured_at, "measured_at", :datetime
8209
+ field :age_seconds, "age_seconds", :integer
8210
+ field :source, "source", :string
8211
+ field :platform, "platform", :string
8212
+ field :sdk_version, "sdk_version", :string
8213
+ field :is_mock, "is_mock", :boolean
8214
+ field :produced_by_accessory, "produced_by_accessory", :boolean
8215
+ field :integrity, "integrity", :string
8216
+ field :country_code, "country_code", :string
8217
+ field :region_code, "region_code", :string
8218
+ field :city, "city", :string
8219
+ field :geofence, "geofence", "GeolocationCheckGeofence"
8220
+ field :inside_geofence, "inside_geofence", :boolean
8221
+ field :geofence_basis, "geofence_basis", :string
8222
+ field :inside_areas, "inside_areas", [:array, :string]
8223
+ field :blocked_areas, "blocked_areas", [:array, :string]
8224
+ field :position_source, "position_source", :string
8225
+ field :anonymizers, "anonymizers", "GeolocationCheckAnonymizers"
8226
+ field :ip_distance_km, "ip_distance_km", :float
8227
+ field :ip_distance_uncertainty_km, "ip_distance_uncertainty_km", :float
8228
+ field :ip_consistent, "ip_consistent", :boolean
8229
+ field :document_distance_km, "document_distance_km", :float
8230
+ field :travel_excused, "travel_excused", :boolean
8231
+ field :consecutive_mismatches, "consecutive_mismatches", :integer
8232
+ field :attempts, "attempts", :integer
8233
+ field :consent, "consent", "GeolocationCheckConsent"
8234
+ field :warnings, "warnings", [:array, "GeolocationCheckWarnings"]
8235
+ end
8236
+
8237
+ # What the connection and device look like, each `true`, `false` or `null` when the source cannot tell.
8238
+ class GeolocationCheckAnonymizers < Didit::Model
8239
+ field :vpn, "vpn", :boolean
8240
+ field :proxy, "proxy", :boolean
8241
+ field :tor, "tor", :boolean
8242
+ field :spoofing, "spoofing", :boolean
8243
+ field :emulator, "emulator", :boolean
8244
+ end
8245
+
8246
+ # The consent the person gave before the system prompt, recorded with the wording version and language they saw.
8247
+ class GeolocationCheckConsent < Didit::Model
8248
+ field :accepted_at, "accepted_at", :datetime
8249
+ field :version, "version", :string
8250
+ field :locale, "locale", :string
8251
+ end
8252
+
8253
+ # Result of the country and area rules of the step.
8254
+ class GeolocationCheckGeofence < Didit::Model
8255
+ field :enabled, "enabled", :boolean
8256
+ field :result, "result", :string
8257
+ end
8258
+
8259
+ class GeolocationCheckWarnings < Didit::Model
8260
+ field :feature, "feature", :string
8261
+ field :risk, "risk", :string
8262
+ field :additional_data, "additional_data", :any
8263
+ field :log_type, "log_type", :string
8264
+ field :short_description, "short_description", :string
8265
+ field :long_description, "long_description", :string
8266
+ field :node_id, "node_id", :string
8267
+ end
8268
+
7703
8269
  class IPRiskResponse < Didit::Model
7704
8270
  field :request_id, "request_id", :string
7705
8271
  field :status, "status", :string
@@ -7967,6 +8533,37 @@ module Didit
7967
8533
  field :status, "status", :string
7968
8534
  end
7969
8535
 
8536
+ # The cap table the registry proved, as it stood when the ownership tier was delivered: direct `shareholders` and
8537
+ # `beneficial_owners`. Null when the registry proved no ownership. It never carries the registry source's own
8538
+ # rows; read `company.beneficial_owners` and `company.ownership` for the current record.
8539
+ class KYBOwnershipStructure < Didit::Model
8540
+ field :shareholders, "shareholders", [:array, "KYBOwnershipStructureOwner"]
8541
+ field :beneficial_owners, "beneficial_owners", [:array, "KYBOwnershipStructureOwner"]
8542
+ end
8543
+
8544
+ # One owner of the ownership snapshot: the same registry identity and stake as `company.beneficial_owners[]`, and
8545
+ # its canonical `shareholding`.
8546
+ class KYBOwnershipStructureOwner < Didit::Model
8547
+ field :name, "name", :string
8548
+ field :first_name, "first_name", :string
8549
+ field :last_name, "last_name", :string
8550
+ field :date_of_birth, "date_of_birth", :string
8551
+ field :country_of_birth, "country_of_birth", :string
8552
+ field :company_name, "company_name", :string
8553
+ field :registration_number, "registration_number", :string
8554
+ field :entity_type, "entity_type", :string
8555
+ field :nationality, "nationality", :string
8556
+ field :designation, "designation", :string
8557
+ field :roles, "roles", [:array, :string]
8558
+ field :ownership_min_shares, "ownership_min_shares", :string
8559
+ field :ownership_max_shares, "ownership_max_shares", :string
8560
+ field :voting_min_shares, "voting_min_shares", :string
8561
+ field :voting_max_shares, "voting_max_shares", :string
8562
+ field :appointment_date, "appointment_date", :string
8563
+ field :is_active, "is_active", :boolean
8564
+ field :shareholding, "shareholding", "KYBRegistryShareholding"
8565
+ end
8566
+
7970
8567
  # An address the registry states, in the same shape for every country and registry source. Every key is always
7971
8568
  # present; a part the registry does not publish is null.
7972
8569
  class KYBRegistryAddress < Didit::Model
@@ -7980,6 +8577,55 @@ module Didit
7980
8577
  field :description, "description", :string
7981
8578
  end
7982
8579
 
8580
+ # Didit's normalized registry detail for the company: the ownership outcome (`ownership_error`, `section_errors`,
8581
+ # `ubo_resolution`, `lite_enrichment`), the corrections made with update-data, and registry facts that have no
8582
+ # field of their own. It never carries the registry source's own record. Every key is optional and present only
8583
+ # when the company has a value for it; new keys may be added. Read the canonical fields (`addresses`,
8584
+ # `industries`, `ownership`, `beneficial_owners[].shareholding`) for anything they cover.
8585
+ class KYBRegistryData < Didit::Model
8586
+ field :company_name, "company_name", :string
8587
+ field :registration_number, "registration_number", :string
8588
+ field :country_code, "country_code", :string
8589
+ field :region, "region", :string
8590
+ field :incorporation_date, "incorporation_date", :string
8591
+ field :registration_date, "registration_date", :string
8592
+ field :dissolution_date, "dissolution_date", :string
8593
+ field :tax_number, "tax_number", :string
8594
+ field :vat_number, "vat_number", :string
8595
+ field :legal_address, "legal_address", :string
8596
+ field :registered_address, "registered_address", :string
8597
+ field :company_type, "company_type", :string
8598
+ field :registry_status, "registry_status", :string
8599
+ field :verification_status, "verification_status", :string
8600
+ field :alternative_names, "alternative_names", :string
8601
+ field :nature_of_business, "nature_of_business", :string
8602
+ field :registered_capital, "registered_capital", :string
8603
+ field :registered_capital_amount, "registered_capital_amount", :string
8604
+ field :registered_capital_currency, "registered_capital_currency", :string
8605
+ field :website, "website", :string
8606
+ field :email, "email", :string
8607
+ field :phone, "phone", :string
8608
+ field :legal_entity_identifier, "legal_entity_identifier", :string
8609
+ field :location_of_registration, "location_of_registration", :string
8610
+ field :control_scheme, "control_scheme", :string
8611
+ field :ownership_error, "ownership_error", :string
8612
+ field :section_errors, "section_errors", [:map, "KYBRegistrySectionError"]
8613
+ field :ubo_resolution, "ubo_resolution", "KYBRegistryUboResolution"
8614
+ field :lite_enrichment, "lite_enrichment", "KYBRegistryLiteEnrichment"
8615
+ field :registry_metadata, "registry_metadata", [:map, [:union, [:string, :float, :boolean]]]
8616
+ field :registry_sources, "registry_sources", [:array, "KYBRegistrySource"]
8617
+ field :previous_names, "previous_names", [:array, :string]
8618
+ field :parent_companies, "parent_companies", [:array, :string]
8619
+ field :documents_available, "documents_available", :integer
8620
+ end
8621
+
8622
+ # A company of the corporate group, by its registry identity.
8623
+ class KYBRegistryGroupCompany < Didit::Model
8624
+ field :name, "name", :string
8625
+ field :country_code, "country_code", :string
8626
+ field :registration_number, "registration_number", :string
8627
+ end
8628
+
7983
8629
  # An activity the registry classifies the company under, in the same shape for every country and registry source.
7984
8630
  class KYBRegistryIndustry < Didit::Model
7985
8631
  field :code, "code", :string
@@ -7988,6 +8634,12 @@ module Didit
7988
8634
  field :is_primary, "is_primary", :boolean
7989
8635
  end
7990
8636
 
8637
+ # Blank Lite profile fields another of the country's registry sources filled. The source is not named.
8638
+ class KYBRegistryLiteEnrichment < Didit::Model
8639
+ field :fields, "fields", [:array, :string]
8640
+ field :people_added, "people_added", :integer
8641
+ end
8642
+
7991
8643
  # The outcome of the ownership (Shareholders / UBO) tier, in the same shape for every country and registry source.
7992
8644
  class KYBRegistryOwnership < Didit::Model
7993
8645
  field :status, "status", :string
@@ -8027,6 +8679,11 @@ module Didit
8027
8679
  field :per_page, "per_page", :integer
8028
8680
  end
8029
8681
 
8682
+ # A section the registry did not return.
8683
+ class KYBRegistrySectionError < Didit::Model
8684
+ field :status_code, "status_code", :integer
8685
+ end
8686
+
8030
8687
  # What an owner holds, in the same shape for every country and registry source. Null when the registry states no
8031
8688
  # holding. A band (for example a UK PSC's 25-50%) is not a stake: `percentage` is null and the band stays in
8032
8689
  # `ownership_min_shares` / `ownership_max_shares`.
@@ -8039,6 +8696,25 @@ module Didit
8039
8696
  field :percentage, "percentage", :float
8040
8697
  end
8041
8698
 
8699
+ # An official register the record was read from. Only official government registers, regulators and the official
8700
+ # identifier system are named; any other source is left out.
8701
+ class KYBRegistrySource < Didit::Model
8702
+ field :name, "name", :string
8703
+ field :source_type, "source_type", :string
8704
+ end
8705
+
8706
+ # How the UBO tier walked the ownership chain above the company.
8707
+ class KYBRegistryUboResolution < Didit::Model
8708
+ field :parent_chain, "parent_chain", [:array, "KYBRegistryGroupCompany"]
8709
+ field :subsidiaries, "subsidiaries", [:array, "KYBRegistryGroupCompany"]
8710
+ field :unresolved, "unresolved", [:array, "KYBRegistryUboResolutionUnresolved"]
8711
+ end
8712
+
8713
+ class KYBRegistryUboResolutionUnresolved < Didit::Model
8714
+ field :reason, "reason", :string
8715
+ field :section, "section", :string
8716
+ end
8717
+
8042
8718
  # One stored monitoring event as returned by the list and subject-timeline endpoints. Restricted evidence
8043
8719
  # (payload, device context, rule evidence) is only returned by `GET /v3/events/{event_uuid}/`.
8044
8720
  class MonitoringEvent < Didit::Model
@@ -8564,7 +9240,15 @@ module Didit
8564
9240
  field :is_ported, "is_ported", :boolean
8565
9241
  field :is_recently_ported, "is_recently_ported", :boolean
8566
9242
  field :carrier_type, "carrier_type", :string
8567
- field :reason_codes, "reason_codes", [:array, :string]
9243
+ field :reason_codes, "reason_codes", [:array, "PhoneIntelligenceReasonCodes"]
9244
+ end
9245
+
9246
+ class PhoneIntelligenceReasonCodes < Didit::Model
9247
+ field :code, "code", :string
9248
+ field :value, "value", :any
9249
+ field :direction, "direction", :string
9250
+ field :message, "message", :string
9251
+ field :impact_level, "impact_level", :string
8568
9252
  end
8569
9253
 
8570
9254
  # Another session of your application that used the same phone number with a different `vendor_data`.
@@ -8670,6 +9354,7 @@ module Didit
8670
9354
  field :lifecycle, "lifecycle", [:array, "PhoneVerificationCheckResponsePhoneLifecycle"]
8671
9355
  field :matches, "matches", [:array, "PhoneVerificationCheckResponsePhoneMatches"]
8672
9356
  field :phone_social, "phone_social", "PhoneSocialFootprint"
9357
+ field :phone_intelligence, "phone_intelligence", "PhoneIntelligence"
8673
9358
  end
8674
9359
 
8675
9360
  # Current network serving the number, from the carrier lookup run at finalization.
@@ -8919,9 +9604,13 @@ module Didit
8919
9604
  field :session_id, "session_id", :string
8920
9605
  field :session_kind, "session_kind", :string
8921
9606
  field :shared_from_session, "shared_from_session", :string
9607
+ field :shared_from_session_number, "shared_from_session_number", :integer
8922
9608
  field :session_number, "session_number", :integer
8923
9609
  field :session_url, "session_url", :string
8924
9610
  field :status, "status", :string
9611
+ field :status_override, "status_override", "SessionDecisionStatusOverride"
9612
+ field :decision_trace, "decision_trace", "SessionDecisionDecisionTrace"
9613
+ field :linked_records, "linked_records", "SessionDecisionLinkedRecords"
8925
9614
  field :workflow_id, "workflow_id", :string
8926
9615
  field :features, "features", [:array, :string]
8927
9616
  field :vendor_data, "vendor_data", :string
@@ -8943,17 +9632,34 @@ module Didit
8943
9632
  field :signatures, "signatures", [:array, "SignatureResult"]
8944
9633
  field :aml_screenings, "aml_screenings", [:array, "AMLScreening"]
8945
9634
  field :ip_analyses, "ip_analyses", [:array, "SessionDecisionIpAnalyses"]
9635
+ field :geolocation_checks, "geolocation_checks", [:array, "GeolocationCheck"]
9636
+ field :geolocation_attempts, "geolocation_attempts", [:array, "GeolocationAttempt"]
8946
9637
  field :database_validations, "database_validations", [:array, "SessionDecisionDatabaseValidations"]
9638
+ field :database_validation_not_performed_reason, "database_validation_not_performed_reason", "SessionDecisionDatabaseValidationNotPerformedReason"
8947
9639
  field :reviews, "reviews", [:array, "SessionDecisionReviews"]
9640
+ field :assignee, "assignee", "SessionDecisionAssignee"
9641
+ field :waiting_since, "waiting_since", :datetime
9642
+ field :sla_due_at, "sla_due_at", :datetime
8948
9643
  field :created_at, "created_at", :datetime
8949
9644
  field :expires_at, "expires_at", :datetime
8950
9645
  field :registry_checks, "registry_checks", [:array, "SessionDecisionRegistryChecks"]
8951
9646
  field :key_people_checks, "key_people_checks", [:array, "SessionDecisionKeyPeopleChecks"]
8952
9647
  field :document_verifications, "document_verifications", [:array, "SessionDecisionDocumentVerifications"]
8953
9648
  field :environment, "environment", :string
9649
+ field :sandbox_scenario, "sandbox_scenario", :string
8954
9650
  field :resubmissions, "resubmissions", [:array, "SessionDecisionResubmissions"]
8955
9651
  field :biometric_consent, "biometric_consent", "SessionDecisionBiometricConsent"
8956
9652
  field :investigator, "investigator", "InvestigatorBlock"
9653
+ field :biometric_retention, "biometric_retention", "BiometricRetention"
9654
+ field :fraud_check, "fraud_check", :any
9655
+ field :full_session_video, "full_session_video", :string
9656
+ field :full_session_video_recorded_at, "full_session_video_recorded_at", :datetime
9657
+ end
9658
+
9659
+ # The Console reviewer the session is assigned to, or `null` when nobody holds it.
9660
+ class SessionDecisionAssignee < Didit::Model
9661
+ field :email, "email", :string
9662
+ field :assigned_at, "assigned_at", :datetime
8957
9663
  end
8958
9664
 
8959
9665
  # Whether the session required explicit biometric consent before a face capture, why, and the evidence of the
@@ -9001,6 +9707,14 @@ module Didit
9001
9707
  field :phone, "phone", :string
9002
9708
  end
9003
9709
 
9710
+ # Why a configured database validation produced no result, as `{code, message}` plus context fields. Present only
9711
+ # when `database_validations` is `null` for a workflow that has the step, so you can tell "the registry agreed"
9712
+ # from "nothing ran". `null` otherwise.
9713
+ class SessionDecisionDatabaseValidationNotPerformedReason < Didit::Model
9714
+ field :code, "code", :string
9715
+ field :message, "message", :string
9716
+ end
9717
+
9004
9718
  class SessionDecisionDatabaseValidations < Didit::Model
9005
9719
  field :node_id, "node_id", :string
9006
9720
  field :issuing_state, "issuing_state", :string
@@ -9058,6 +9772,34 @@ module Didit
9058
9772
  field :node_id, "node_id", :string
9059
9773
  end
9060
9774
 
9775
+ # How the status was reached: who set it and which warnings did.
9776
+ class SessionDecisionDecisionTrace < Didit::Model
9777
+ field :status, "status", :string
9778
+ field :decided_by, "decided_by", :string
9779
+ field :decided_at, "decided_at", :datetime
9780
+ field :automatic_status, "automatic_status", :string
9781
+ field :terminal_node_id, "terminal_node_id", :string
9782
+ field :actor, "actor", "SessionDecisionDecisionTraceActor"
9783
+ field :warning_counts, "warning_counts", [:map, :integer]
9784
+ field :status_warnings, "status_warnings", [:array, "SessionDecisionDecisionTraceStatusWarnings"]
9785
+ end
9786
+
9787
+ # The reviewer behind a manual decision.
9788
+ class SessionDecisionDecisionTraceActor < Didit::Model
9789
+ field :user, "user", :string
9790
+ field :actor_type, "actor_type", :string
9791
+ end
9792
+
9793
+ class SessionDecisionDecisionTraceStatusWarnings < Didit::Model
9794
+ field :risk, "risk", :string
9795
+ field :feature, "feature", :string
9796
+ field :node_id, "node_id", :string
9797
+ field :log_type, "log_type", :string
9798
+ field :check_status, "check_status", :string
9799
+ field :source, "source", :string
9800
+ field :short_description, "short_description", :string
9801
+ end
9802
+
9061
9803
  # Document AI results grouped by workflow node.
9062
9804
  class SessionDecisionDocumentAiDocuments < Didit::Model
9063
9805
  field :status, "status", :string
@@ -9183,6 +9925,8 @@ module Didit
9183
9925
  field :warnings, "warnings", [:array, "SessionDecisionEmailVerificationsWarnings"]
9184
9926
  field :lifecycle, "lifecycle", [:array, "SessionDecisionEmailVerificationsLifecycle"]
9185
9927
  field :matches, "matches", [:array, "SessionDecisionEmailVerificationsMatches"]
9928
+ field :email_intelligence, "email_intelligence", "EmailIntelligence"
9929
+ field :email_social, "email_social", "EmailSocialFootprint"
9186
9930
  end
9187
9931
 
9188
9932
  class SessionDecisionEmailVerificationsBreaches < Didit::Model
@@ -9265,6 +10009,34 @@ module Didit
9265
10009
  field :source_image, "source_image", :string
9266
10010
  field :target_image, "target_image", :string
9267
10011
  field :warnings, "warnings", [:array, "SessionDecisionFaceMatchesWarnings"]
10012
+ field :face_coverage, "face_coverage", "SessionDecisionFaceMatchesFaceCoverage"
10013
+ end
10014
+
10015
+ # Whether the eyes, mouth and face are covered in the captured image. Returned by `GET
10016
+ # /v3/session/{sessionId}/decision/` only; it is not part of webhook payloads. `null` when no coverage reading
10017
+ # exists.
10018
+ class SessionDecisionFaceMatchesFaceCoverage < Didit::Model
10019
+ field :eyes, "eyes", "SessionDecisionFaceMatchesFaceCoverageEyes"
10020
+ field :mouth, "mouth", "SessionDecisionFaceMatchesFaceCoverageMouth"
10021
+ field :face, "face", "SessionDecisionFaceMatchesFaceCoverageFace"
10022
+ end
10023
+
10024
+ class SessionDecisionFaceMatchesFaceCoverageEyes < Didit::Model
10025
+ field :covered, "covered", :boolean
10026
+ field :calibrated, "calibrated", :boolean
10027
+ field :visibility_score, "visibility_score", :float
10028
+ end
10029
+
10030
+ class SessionDecisionFaceMatchesFaceCoverageFace < Didit::Model
10031
+ field :covered, "covered", :boolean
10032
+ field :calibrated, "calibrated", :boolean
10033
+ field :visibility_score, "visibility_score", :float
10034
+ end
10035
+
10036
+ class SessionDecisionFaceMatchesFaceCoverageMouth < Didit::Model
10037
+ field :covered, "covered", :boolean
10038
+ field :calibrated, "calibrated", :boolean
10039
+ field :visibility_score, "visibility_score", :float
9268
10040
  end
9269
10041
 
9270
10042
  class SessionDecisionFaceMatchesWarnings < Didit::Model
@@ -9330,6 +10102,9 @@ module Didit
9330
10102
  field :matches, "matches", [:array, "SessionDecisionIdVerificationsMatches"]
9331
10103
  field :document_liveness, "document_liveness", "SessionDecisionIdVerificationsDocumentLiveness"
9332
10104
  field :address_validation, "address_validation", "AddressValidationResult"
10105
+ field :region, "region", :string
10106
+ field :extracted_data, "extracted_data", :any
10107
+ field :barcodes, "barcodes", [:array, :any]
9333
10108
  end
9334
10109
 
9335
10110
  # Quality metrics for the back document image. Same structure as front_image_quality_score.
@@ -9638,6 +10413,14 @@ module Didit
9638
10413
  field :poa_document, "poa_document", "SessionDecisionIpAnalysesPoaDocument"
9639
10414
  field :warnings, "warnings", [:array, "SessionDecisionIpAnalysesWarnings"]
9640
10415
  field :matches, "matches", [:array, "SessionDecisionIpAnalysesMatches"]
10416
+ field :browser_version, "browser_version", :string
10417
+ field :os_version, "os_version", :string
10418
+ field :user_agent, "user_agent", :string
10419
+ field :accept_language, "accept_language", :string
10420
+ field :session_identifier, "session_identifier", :string
10421
+ field :session_age_ms, "session_age_ms", :integer
10422
+ field :coords_accuracy, "coords_accuracy", :float
10423
+ field :raw_device_data, "raw_device_data", :any
9641
10424
  end
9642
10425
 
9643
10426
  # Location extracted from the ID document address plus distances (km) to the IP geolocation and the POA document
@@ -9905,6 +10688,47 @@ module Didit
9905
10688
  field :pending, "pending", :integer
9906
10689
  end
9907
10690
 
10691
+ # A summary of other records linked to the session. `null` when there is nothing to show, and for workflows that
10692
+ # declare an age assurance standard.
10693
+ class SessionDecisionLinkedRecords < Didit::Model
10694
+ field :same_face, "same_face", "SessionDecisionLinkedRecordsSameFace"
10695
+ field :earlier_verifications, "earlier_verifications", "SessionDecisionLinkedRecordsEarlierVerifications"
10696
+ field :networks, "networks", "SessionDecisionLinkedRecordsNetworks"
10697
+ end
10698
+
10699
+ class SessionDecisionLinkedRecordsEarlierVerifications < Didit::Model
10700
+ field :count, "count", :integer
10701
+ field :vendor_user_id, "vendor_user_id", :string
10702
+ end
10703
+
10704
+ class SessionDecisionLinkedRecordsNetworks < Didit::Model
10705
+ field :count, "count", :integer
10706
+ field :open, "open", :integer
10707
+ field :dismissed, "dismissed", :integer
10708
+ field :items, "items", [:array, "SessionDecisionLinkedRecordsNetworksItems"]
10709
+ end
10710
+
10711
+ class SessionDecisionLinkedRecordsNetworksItems < Didit::Model
10712
+ field :network_id, "network_id", :string
10713
+ field :display_number, "display_number", :integer
10714
+ field :name, "name", :string
10715
+ field :status, "status", :string
10716
+ field :risk_score, "risk_score", :float
10717
+ end
10718
+
10719
+ # Other people whose face matched one of this session's face searches.
10720
+ class SessionDecisionLinkedRecordsSameFace < Didit::Model
10721
+ field :count, "count", :integer
10722
+ field :best_match, "best_match", "SessionDecisionLinkedRecordsSameFaceBestMatch"
10723
+ end
10724
+
10725
+ class SessionDecisionLinkedRecordsSameFaceBestMatch < Didit::Model
10726
+ field :session_id, "session_id", :string
10727
+ field :session_number, "session_number", :integer
10728
+ field :vendor_user_id, "vendor_user_id", :string
10729
+ field :similarity_percentage, "similarity_percentage", :float
10730
+ end
10731
+
9908
10732
  # One liveness report - the full report for a single liveness pass.
9909
10733
  class SessionDecisionLivenessChecks < Didit::Model
9910
10734
  field :node_id, "node_id", :string
@@ -10071,6 +10895,8 @@ module Didit
10071
10895
  field :lifecycle, "lifecycle", [:array, "SessionDecisionPhoneVerificationsLifecycle"]
10072
10896
  field :warnings, "warnings", [:array, "SessionDecisionPhoneVerificationsWarnings"]
10073
10897
  field :matches, "matches", [:array, "SessionDecisionPhoneVerificationsMatches"]
10898
+ field :phone_intelligence, "phone_intelligence", "PhoneIntelligence"
10899
+ field :phone_social, "phone_social", "PhoneSocialFootprint"
10074
10900
  end
10075
10901
 
10076
10902
  class SessionDecisionPhoneVerificationsCarrier < Didit::Model
@@ -10282,7 +11108,7 @@ module Didit
10282
11108
  field :node_id, "node_id", :string
10283
11109
  field :data_resolved, "data_resolved", :boolean
10284
11110
  field :company, "company", "SessionDecisionRegistryChecksCompany"
10285
- field :ownership_structure, "ownership_structure", :any
11111
+ field :ownership_structure, "ownership_structure", "KYBOwnershipStructure"
10286
11112
  field :warnings, "warnings", [:array, :any]
10287
11113
  end
10288
11114
 
@@ -10328,7 +11154,7 @@ module Didit
10328
11154
  field :addresses, "addresses", [:array, "KYBRegistryAddress"]
10329
11155
  field :industries, "industries", [:array, "KYBRegistryIndustry"]
10330
11156
  field :accounts, "accounts", :any
10331
- field :registry_data, "registry_data", :any
11157
+ field :registry_data, "registry_data", "KYBRegistryData"
10332
11158
  field :user_provided_data, "user_provided_data", :any
10333
11159
  field :confirmed_by_user_at, "confirmed_by_user_at", :datetime
10334
11160
  field :last_console_edit_at, "last_console_edit_at", :datetime
@@ -10337,6 +11163,7 @@ module Didit
10337
11163
  field :registry_tier, "registry_tier", :string
10338
11164
  field :registry_tier_delivered, "registry_tier_delivered", :string
10339
11165
  field :registry_ownership_status, "registry_ownership_status", :string
11166
+ field :registry_monitoring, "registry_monitoring", "SessionDecisionRegistryChecksCompanyRegistryMonitoring"
10340
11167
  end
10341
11168
 
10342
11169
  class SessionDecisionRegistryChecksCompanyBeneficialOwners < Didit::Model
@@ -10384,6 +11211,20 @@ module Didit
10384
11211
  field :date_of_birth_month, "date_of_birth_month", :integer
10385
11212
  end
10386
11213
 
11214
+ # The latest registry monitor for the company, or `null` when none exists.
11215
+ class SessionDecisionRegistryChecksCompanyRegistryMonitoring < Didit::Model
11216
+ field :uuid, "uuid", :string
11217
+ field :status, "status", :string
11218
+ field :unavailable_reason, "unavailable_reason", :string
11219
+ field :enrolled_at, "enrolled_at", :datetime
11220
+ field :cancelled_at, "cancelled_at", :datetime
11221
+ field :last_bill_date, "last_bill_date", :date
11222
+ field :next_bill_date, "next_bill_date", :date
11223
+ field :last_event_at, "last_event_at", :datetime
11224
+ field :events_count, "events_count", :integer
11225
+ field :watched_fields, "watched_fields", :any
11226
+ end
11227
+
10387
11228
  class SessionDecisionResubmissions < Didit::Model
10388
11229
  field :number, "number", :integer
10389
11230
  field :created_at, "created_at", :datetime
@@ -10413,6 +11254,13 @@ module Didit
10413
11254
  field :created_at, "created_at", :datetime
10414
11255
  end
10415
11256
 
11257
+ # Present when a reviewer set `status` by hand. `null` when the status is the automatic one. Use it to tell a
11258
+ # manual approval from an automatic one.
11259
+ class SessionDecisionStatusOverride < Didit::Model
11260
+ field :overridden_at, "overridden_at", :datetime
11261
+ field :automatic_status, "automatic_status", :string
11262
+ end
11263
+
10416
11264
  # A bulk session deletion running in the background: progress and counts per outcome, never which sessions it
10417
11265
  # deleted.
10418
11266
  class SessionDeletionJob < Didit::Model
@@ -10453,6 +11301,20 @@ module Didit
10453
11301
  field :sent_at, "sent_at", :integer
10454
11302
  end
10455
11303
 
11304
+ # One ZIP with every file of a session, in original quality.
11305
+ class SessionFilesExport < Didit::Model
11306
+ field :export_id, "export_id", :string
11307
+ field :session_id, "session_id", :string
11308
+ field :status, "status", :string
11309
+ field :file_count, "file_count", :integer
11310
+ field :size_bytes, "size_bytes", :integer
11311
+ field :download_url, "download_url", :string
11312
+ field :expires_at, "expires_at", :datetime
11313
+ field :error, "error", :string
11314
+ field :created_at, "created_at", :datetime
11315
+ field :completed_at, "completed_at", :datetime
11316
+ end
11317
+
10456
11318
  class SessionImportError < Didit::Model
10457
11319
  field :uuid, "uuid", :string
10458
11320
  field :row_number, "row_number", :integer
@@ -10537,7 +11399,7 @@ module Didit
10537
11399
  field :value_unavailable_reason, "value_unavailable_reason", :string
10538
11400
  end
10539
11401
 
10540
- # One signer's result for one Electronic Signature step. See the [Electronic Signature
11402
+ # One signer's result for one E-signature step. See the [E-signature
10541
11403
  # report](/core-technology/electronic-signature/report-electronic-signature).
10542
11404
  class SignatureResult < Didit::Model
10543
11405
  field :id, "id", :string
@@ -10577,7 +11439,7 @@ module Didit
10577
11439
  field :adopted_at, "adopted_at", :datetime
10578
11440
  end
10579
11441
 
10580
- # The certificate the documents were signed with. `null` until signed.
11442
+ # The certificate the documents were signed with. `null` until signed, and always `null` for a Simple signature.
10581
11443
  class SignatureResultCertificate < Didit::Model
10582
11444
  field :issuer, "issuer", :string
10583
11445
  field :issued_to, "issued_to", :string
@@ -10624,6 +11486,7 @@ module Didit
10624
11486
  field :converter, "converter", :string
10625
11487
  end
10626
11488
 
11489
+ # The verified identity the signature relies on. Empty for a Simple signature with no verified identity.
10627
11490
  class SignatureResultIdentityUsed < Didit::Model
10628
11491
  field :session_id, "session_id", :string
10629
11492
  field :kyc_id, "kyc_id", :string
@@ -10640,7 +11503,8 @@ module Didit
10640
11503
  field :identity_session_id, "identity_session_id", :string
10641
11504
  end
10642
11505
 
10643
- # The trusted timestamp in the signature. `null` until signed.
11506
+ # The RFC 3161 timestamp in the signature, issued by Didit. `null` until signed, and always `null` for a Simple
11507
+ # signature.
10644
11508
  class SignatureResultTimestamp < Didit::Model
10645
11509
  field :time, "time", :datetime
10646
11510
  field :qualified, "qualified", :boolean
@@ -10669,7 +11533,7 @@ module Didit
10669
11533
  field :timestamp, "timestamp", "SignatureResultValidationDocumentsTimestamp"
10670
11534
  end
10671
11535
 
10672
- # The certificate the documents were signed with. `null` until signed.
11536
+ # The certificate the documents were signed with. `null` until signed, and always `null` for a Simple signature.
10673
11537
  class SignatureResultValidationDocumentsCertificate < Didit::Model
10674
11538
  field :issuer, "issuer", :string
10675
11539
  field :issued_to, "issued_to", :string
@@ -10678,7 +11542,8 @@ module Didit
10678
11542
  field :valid_until, "valid_until", :datetime
10679
11543
  end
10680
11544
 
10681
- # The trusted timestamp in the signature. `null` until signed.
11545
+ # The RFC 3161 timestamp in the signature, issued by Didit. `null` until signed, and always `null` for a Simple
11546
+ # signature.
10682
11547
  class SignatureResultValidationDocumentsTimestamp < Didit::Model
10683
11548
  field :time, "time", :datetime
10684
11549
  field :qualified, "qualified", :boolean
@@ -11334,6 +12199,11 @@ module Didit
11334
12199
  field :travel_rule, "travel_rule", "TravelRuleTransferDetail"
11335
12200
  end
11336
12201
 
12202
+ class TravelRuleManualMatchResponse < Didit::Model
12203
+ field :deposit, "deposit", "TravelRuleTransferRow"
12204
+ field :message, "message", "TravelRuleTransferRow"
12205
+ end
12206
+
11337
12207
  # How strictly each field of the counterparty's data is compared with what you hold, per entity type. A field you
11338
12208
  # leave out keeps its default. `NONE` skips the comparison, `STRICT` needs exactly the same words, `CONTAINS`
11339
12209
  # accepts one value whose words all appear in the other, `DEFAULT` is the standard subset match, and `FUZZY`
@@ -12086,6 +12956,7 @@ module Didit
12086
12956
  field :available_events, "available_events", [:array, "WebhookConfigAvailableEvents"]
12087
12957
  field :allowed_return_hosts, "allowed_return_hosts", [:array, :string]
12088
12958
  field :endpoints, "endpoints", [:array, "WebhookConfigDestination"]
12959
+ field :allowed_domains, "allowed_domains", [:array, :string]
12089
12960
  end
12090
12961
 
12091
12962
  class WebhookConfigAvailableEvents < Didit::Model
@@ -12163,12 +13034,21 @@ module Didit
12163
13034
  field :kyb_role_settings, "kyb_role_settings", [:array, :any]
12164
13035
  field :created_at, "created_at", :datetime
12165
13036
  field :updated_at, "updated_at", :datetime
13037
+ field :signature_availability, "signature_availability", "WorkflowDetailSignatureAvailability"
12166
13038
  field :is_bank_verification_enabled, "is_bank_verification_enabled", :boolean
12167
13039
  field :bank_verification_config, "bank_verification_config", :any
12168
13040
  field :is_geolocation_enabled, "is_geolocation_enabled", :boolean
12169
13041
  field :geolocation_config, "geolocation_config", :any
12170
13042
  end
12171
13043
 
13044
+ # Which E-signature levels can sign right now. Check it before you set `signature_level`. Returned on `kyc`, `kyb`
13045
+ # and graph workflows.
13046
+ class WorkflowDetailSignatureAvailability < Didit::Model
13047
+ field :simple, "simple", :boolean
13048
+ field :aes, "aes", :boolean
13049
+ field :qes, "qes", :boolean
13050
+ end
13051
+
12172
13052
  # One workflow version in the list view.
12173
13053
  class WorkflowListItem < Didit::Model
12174
13054
  field :uuid, "uuid", :string