didit-sdk 2.1.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75e7989e163c261e1874b2364284742fb3055b87e3cb7a04b9b44b17a4cad721
4
- data.tar.gz: 45ab740c6754aa34b26b52a582a0e0f5c0ae91ac7d042a28df512385980a9339
3
+ metadata.gz: a1178d902a09b4b616fa12bb0f26a856300cf314eeb020ae0fb3a1fe017079f7
4
+ data.tar.gz: 4fea877f4b531eb6c5e33e313b92996875b2169050f853dd719b67e12cd70521
5
5
  SHA512:
6
- metadata.gz: 83d4c5f5da7a60ee9967a13dd81a2995f2ff11aa8a872d6fb9c9b47f863cd6f9dbff5d1d07e81f1b75a91eeb327e63390e3fb987ba145af7c7ff52997cc28e1b
7
- data.tar.gz: ba47419cad5abce47ef1139c7f77b38db529f49f6126c60142ebdd087c73fd65d4e99af35d14a4f87a1a366946f61243ff7cada0e4bc8923398d8891a44964c2
6
+ metadata.gz: 6a2e5cb3caba98ff8fc2f9980f27a40a307bc9b0f87db280247f4ba0e1804614e91301777be1006c2f0429bcf29661d41f989ec2db252fad1ea5ae66ab0b15a5
7
+ data.tar.gz: e6b965cea8063123e4a0f403c211137f4d0d3b5e625a5ad5edd60c7543806c1cc15e2aded6cdf11b3d662bece5b34bfcd4edfccb87f213f727279312fc40f177
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.2.0...v2.3.0) (2026-11-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **spec:** sync API spec 2026-11-09 ([d585311](https://github.com/didit-protocol/sdk-ruby/commit/d58531172dd529b501fdd2071f4b764dec2ca7b7))
9
+
10
+ ## [2.2.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.2...v2.2.0) (2026-11-09)
11
+
12
+
13
+ ### Features
14
+
15
+ * **spec:** sync API spec 2026-11-09 ([588db3d](https://github.com/didit-protocol/sdk-ruby/commit/588db3d2b4ed0e1ef0e141d1b52ec20fa7feb28b))
16
+
3
17
  ## [2.1.2](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.1...v2.1.2) (2026-11-07)
4
18
 
5
19
 
data/README.md CHANGED
@@ -261,7 +261,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md): generated versus hand-written code, `bun
261
261
 
262
262
  ## Versioning
263
263
 
264
- [Semantic versioning](https://semver.org). The SDK stays on 0.x until its first public release; while on 0.x, a breaking change bumps the minor version. Releases are cut by release-please and the changelog is generated.
264
+ [Semantic versioning](https://semver.org), with one rule for API changes (DESIGN section 13):
265
+
266
+ - A change that mirrors the Didit API ships in a minor version, even when it can break typed code: a type change, a field that can now be null, or a removed field, operation or enum value. The API already behaves that way for every caller, so an older SDK version is not safer. The release notes list these changes under "API changes that can break typed code"; read that section before you upgrade, because a `~> 2.1` requirement installs new minor versions.
267
+ - A major version is only for a change to the SDK's own design: renaming or removing a method or resource the API still has, changing client configuration, errors, retries, pagination or webhook verification, or dropping a Ruby version.
268
+ - A method whose operation was removed upstream stays one more minor version, marked deprecated.
269
+ - A change limited to the API documentation releases nothing on its own; it ships with the next release.
270
+
271
+ The gem moved to 2.0.0 on 2026-11-05 under an earlier rule and continues from there. Releases are cut by release-please and the changelog is generated.
265
272
 
266
273
  ## Links
267
274
 
@@ -105,7 +105,9 @@ module Didit
105
105
  # Verify Email and Issue Credentials
106
106
  #
107
107
  # Step 2 of onboarding. Exchanges the 6-char code for a verified account, a default org+app, and a JWT pair.
108
- # Persist the returned `api_key`.
108
+ # Persist the returned `api_key`. An account that already has an authenticator app or a passkey gets the same
109
+ # second-factor step as the login instead: `2fa_required: true` and a `temp_token`, with no tokens and no
110
+ # application keys.
109
111
  #
110
112
  # +POST /programmatic/verify-email/+
111
113
  #
@@ -193,8 +193,8 @@ module Didit
193
193
  # @param phone [String] Phone number for phone-verification services.
194
194
  # @param landline [String] Landline number for phone-verification services.
195
195
  # @param email [String] Email address for identity-verification services.
196
- # @param country_of_residence [String] ISO 3166-1 alpha-2 country of residence. Used by global
197
- # identity-enrichment services (e.g. `glb_identity_enrichment`) to focus the lookup.
196
+ # @param country_of_residence [String] ISO 3166-1 alpha-2 country of residence. It was used only by the retired
197
+ # global identity-enrichment service (`glb_identity_enrichment`), which Didit no longer offers.
198
198
  # @param partial_match_action [String] What a `partial_match` does to `database_validation.status`. Defaults to
199
199
  # `NO_ACTION` (status stays `Approved`, with a warning).
200
200
  # @param no_match_action [String] What a `no_match` does to `database_validation.status`. Defaults to `DECLINE`.
@@ -116,6 +116,10 @@ module Didit
116
116
  field :expires_in, "expires_in", :integer
117
117
  field :organization, "organization", "OrganizationSummary"
118
118
  field :application, "application", "ApplicationCredentialsSummary"
119
+ field :v_2fa_required, "2fa_required", :boolean
120
+ field :temp_token, "temp_token", :string
121
+ field :has_authenticator, "has_authenticator", :boolean
122
+ field :has_passkeys, "has_passkeys", :boolean
119
123
  end
120
124
  end
121
125
  end
@@ -9906,6 +9906,7 @@ module Didit
9906
9906
  class SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulation < Didit::Model
9907
9907
  field :detected, "detected", :boolean
9908
9908
  field :analyzed, "analyzed", :boolean
9909
+ field :analysis_incomplete, "analysis_incomplete", :boolean
9909
9910
  field :signals, "signals", [:array, :string]
9910
9911
  field :manipulated_regions, "manipulated_regions", [:array, "SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulationManipulatedRegions"]
9911
9912
  end
@@ -11007,6 +11008,7 @@ module Didit
11007
11008
  class SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulation < Didit::Model
11008
11009
  field :detected, "detected", :boolean
11009
11010
  field :analyzed, "analyzed", :boolean
11011
+ field :analysis_incomplete, "analysis_incomplete", :boolean
11010
11012
  field :signals, "signals", [:array, :string]
11011
11013
  field :manipulated_regions, "manipulated_regions", [:array, "SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulationManipulatedRegions"]
11012
11014
  end
data/lib/didit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Didit
4
- VERSION = "2.1.2" # x-release-please-version
4
+ VERSION = "2.3.0" # x-release-please-version
5
5
  end
@@ -99,6 +99,10 @@ module Didit
99
99
  def expires_in: () -> Integer?
100
100
  def organization: () -> Didit::Types::OrganizationSummary?
101
101
  def application: () -> Didit::Types::ApplicationCredentialsSummary?
102
+ def v_2fa_required: () -> bool?
103
+ def temp_token: () -> String?
104
+ def has_authenticator: () -> bool?
105
+ def has_passkeys: () -> bool?
102
106
  end
103
107
  end
104
108
  end
@@ -8676,6 +8676,7 @@ module Didit
8676
8676
  class SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulation < Didit::Model
8677
8677
  def detected: () -> bool?
8678
8678
  def analyzed: () -> bool?
8679
+ def analysis_incomplete: () -> bool?
8679
8680
  def signals: () -> Array[String]?
8680
8681
  def manipulated_regions: () -> Array[Didit::Types::SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulationManipulatedRegions]?
8681
8682
  end
@@ -9689,6 +9690,7 @@ module Didit
9689
9690
  class SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulation < Didit::Model
9690
9691
  def detected: () -> bool?
9691
9692
  def analyzed: () -> bool?
9693
+ def analysis_incomplete: () -> bool?
9692
9694
  def signals: () -> Array[String]?
9693
9695
  def manipulated_regions: () -> Array[Didit::Types::SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulationManipulatedRegions]?
9694
9696
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: didit-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit