didit-sdk 2.0.0 → 2.1.1

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: 4f456e6d9dae5c6bb1258bd56b8359818c0ed75f8ea803cdca04e372647a8d11
4
- data.tar.gz: 8d84c88d4872ef9f8aa65f30052a56c74d91e73ef1f01e51c7d5fb9840ad65e5
3
+ metadata.gz: 55381fda18ead3533b11ea0645f1ab3b3c352f3ff74da601839b4c7be36c54f3
4
+ data.tar.gz: 630352560dfd78761e832592a92529d94c2c22799f3fc13151e35c224c4831ab
5
5
  SHA512:
6
- metadata.gz: ba9f922bfd7028e4ec6c212f28a40e2b5e70c298d502b0db6a2d2b2c262a645fb91eff39014e684498f472be218dc02f648be2fd526163e5edd1c8dce5dab105
7
- data.tar.gz: 6561f989fff74b23837a595cee9b91747b19701ee94f1ddee01b2cde3ba7f358dc1ae1f2eff1cec2d870347c64816f036de5637e511252122c9ccecfab3bd133
6
+ metadata.gz: 23b22adf0334c272e73b1a5c99d5f5b25ef585fdef2aa7abe6bdb054ff36b9ddc03b97cb357e2af5c894d75d84e6811c2cbec7e329814f0e16aacccb7824f1e2
7
+ data.tar.gz: e57e6d87a953d3122e8ce4b31bff610112bdb7cb05316663c71b6fc5c16ed6a31a8fec22ec0b5a4c49c8aced109d355e1427ffc57f07b162ef33de9b1b80f51d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.1](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.0...v2.1.1) (2026-11-06)
4
+
5
+
6
+ ### API Spec Updates
7
+
8
+ * **spec:** sync API spec 2026-11-06 ([f8f754d](https://github.com/didit-protocol/sdk-ruby/commit/f8f754de2ebf64b106e4d4936243e2f72d39f0f1))
9
+ * **spec:** sync API spec 2026-11-06 ([92a13b6](https://github.com/didit-protocol/sdk-ruby/commit/92a13b6bce036a7100e46cc51d3c6fa95d9ca729))
10
+
11
+ ## [2.1.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.0.0...v2.1.0) (2026-11-05)
12
+
13
+
14
+ ### Features
15
+
16
+ * **spec:** sync API spec 2026-11-05 (application data location) ([97b7d9c](https://github.com/didit-protocol/sdk-ruby/commit/97b7d9c8568a18f0712050e0f75d1353c78f9ce9))
17
+
3
18
  ## [2.0.0](https://github.com/didit-protocol/sdk-ruby/compare/v1.0.1...v2.0.0) (2026-11-05)
4
19
 
5
20
 
@@ -133,8 +133,9 @@ module Didit
133
133
  class Applications < Didit::Resource
134
134
  # Create Application
135
135
  #
136
- # Create an application inside an organization. The response includes `api_key`; persist it now (recoverable
137
- # via GET). Requires owner/admin JWT.
136
+ # Create an application inside an organization, in the data location you choose (`data_location`, the European
137
+ # Union by default; it can't be changed afterwards). The response includes `api_key`; persist it now
138
+ # (recoverable via GET). Requires owner/admin JWT.
138
139
  #
139
140
  # +POST /organizations/me/{org_id}/applications/+
140
141
  #
@@ -145,6 +146,10 @@ module Didit
145
146
  # @param terms_url [String] Terms of service URL shown in the verification flow.
146
147
  # @param privacy_url [String] Privacy policy URL shown in the verification flow.
147
148
  # @param description [String] Internal description for the application (not shown to end users).
149
+ # @param data_location [String] Where the application's verification data is stored and processed, chosen when
150
+ # the application is created. `eu` is the European Union (Ireland), the default. `au` (Australia, Sydney) and
151
+ # `mx` (Mexico) are coming soon: a request that names them answers 400 `This data location is not available
152
+ # yet.` An organization's Sandbox application is always in the European Union.
148
153
  # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
149
154
  # @return [Didit::Types::Application]
150
155
  def create(
@@ -155,6 +160,7 @@ module Didit
155
160
  terms_url: OMIT,
156
161
  privacy_url: OMIT,
157
162
  description: OMIT,
163
+ data_location: OMIT,
158
164
  request_options: nil
159
165
  )
160
166
  @client.request(
@@ -167,7 +173,8 @@ module Didit
167
173
  "redirect_uris" => redirect_uris,
168
174
  "terms_url" => terms_url,
169
175
  "privacy_url" => privacy_url,
170
- "description" => description
176
+ "description" => description,
177
+ "data_location" => data_location
171
178
  },
172
179
  auth: :account_token,
173
180
  api: :account,
@@ -231,7 +238,9 @@ module Didit
231
238
  # Update Application
232
239
  #
233
240
  # Update application metadata (name, URLs, redirect URIs). `api_key` and `client_id` are never rotated.
234
- # `products` is read-only: a `products` key in the body is ignored. Requires owner/admin JWT.
241
+ # `products` is read-only: a `products` key in the body is ignored. `data_location` can't be changed after the
242
+ # application is created, except once on the live application created with your organization, while it is
243
+ # unused (see the request body). Requires owner/admin JWT.
235
244
  #
236
245
  # +PATCH /organizations/me/{org_id}/applications/{app_id}/+
237
246
  #
@@ -243,6 +252,10 @@ module Didit
243
252
  # @param terms_url [String] Terms of service URL shown in the verification flow.
244
253
  # @param privacy_url [String] Privacy policy URL shown in the verification flow.
245
254
  # @param description [String] Internal description for the application.
255
+ # @param data_location [String] Where the application's verification data is stored and processed, chosen when
256
+ # the application is created. `eu` is the European Union (Ireland), the default. `au` (Australia, Sydney) and
257
+ # `mx` (Mexico) are coming soon: a request that names them answers 400 `This data location is not available
258
+ # yet.` An organization's Sandbox application is always in the European Union.
246
259
  # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
247
260
  # @return [Didit::Types::Application]
248
261
  def update(
@@ -254,6 +267,7 @@ module Didit
254
267
  terms_url: OMIT,
255
268
  privacy_url: OMIT,
256
269
  description: OMIT,
270
+ data_location: OMIT,
257
271
  request_options: nil
258
272
  )
259
273
  @client.request(
@@ -266,7 +280,8 @@ module Didit
266
280
  "redirect_uris" => redirect_uris,
267
281
  "terms_url" => terms_url,
268
282
  "privacy_url" => privacy_url,
269
- "description" => description
283
+ "description" => description,
284
+ "data_location" => data_location
270
285
  },
271
286
  auth: :account_token,
272
287
  api: :account,
@@ -25,13 +25,13 @@ module Didit
25
25
 
26
26
  # Top up credits
27
27
  #
28
- # Add credits via a hosted Stripe Checkout session (**\$50 to \$10,000** per top-up). Top-ups are available on
28
+ # Add credits via a hosted Stripe Checkout session (**\$50 to \$20,000** per top-up). Top-ups are available on
29
29
  # the Free, Growth and Scale plans, added at face value with no discount or bonus, and last 12 months;
30
30
  # Enterprise annual contracts cannot top up. Redirect the customer to the returned `checkout_session_url`.
31
31
  #
32
32
  # +POST /v3/billing/top-up/+
33
33
  #
34
- # @param amount_in_dollars [Numeric] Amount to charge, in USD. **Must be from 50 to 10,000.** The balance
34
+ # @param amount_in_dollars [Numeric] Amount to charge, in USD. **Must be from 50 to 20,000.** The balance
35
35
  # receives the same amount, with no discount or bonus. Tax is added automatically at checkout based on the
36
36
  # customer's billing address.
37
37
  # @param success_url [String] URL the hosted checkout redirects the customer to after a successful payment.
@@ -19,9 +19,11 @@ module Didit
19
19
  # holder name, and address are extracted with LLM-based extraction. The address is parsed and geocoded into
20
20
  # `poa_parsed_address`. PDF/EXIF forensics screen for tampering - modification after digital signing, known PDF
21
21
  # editors, overlay-text manipulation, suspicious re-exports - surfacing `SUSPECTED_DOCUMENT_MANIPULATION` or
22
- # `DOCUMENT_METADATA_MISMATCH`. Document age is validated against `poa_document_age_months`, and the language
23
- # against `poa_languages_allowed`. If you pass `expected_address`, `expected_country`, or
24
- # `expected_first_name`/`expected_last_name`, the extracted values are cross-checked and mismatches are flagged.
22
+ # `DOCUMENT_METADATA_MISMATCH`. A text field that was blanked and re-typed in another font, where the file
23
+ # itself holds no proof of whether its content changed, surfaces `POA_DOCUMENT_UNPROVEN_TEXT_REPLACEMENT`.
24
+ # Document age is validated against `poa_document_age_months`, and the language against `poa_languages_allowed`.
25
+ # If you pass `expected_address`, `expected_country`, or `expected_first_name`/`expected_last_name`, the
26
+ # extracted values are cross-checked and mismatches are flagged.
25
27
  #
26
28
  # **Decision logic.** `status` is `Approved` unless at least one warning resolves to a decline. Hard failures
27
29
  # always decline: `MISSING_ADDRESS_INFORMATION`, `POA_DOCUMENT_EXPIRED`, `INVALID_DOCUMENT_TYPE`,
@@ -94,7 +96,9 @@ module Didit
94
96
  # `DOCUMENT_METADATA_MISMATCH` is produced by this endpoint.
95
97
  # @param poa_document_authenticity_action [String] What to do when document manipulation is suspected
96
98
  # (`SUSPECTED_DOCUMENT_MANIPULATION`) - e.g. the PDF was modified after digital signing, processed by a known
97
- # PDF editor, shows overlay-text manipulation, or has inconsistent EXIF dates.
99
+ # PDF editor, shows overlay-text manipulation, or has inconsistent EXIF dates. Also governs
100
+ # `POA_DOCUMENT_UNPROVEN_TEXT_REPLACEMENT` (a re-typed text field the file cannot prove changed or unchanged):
101
+ # `DECLINE` declines it too, `NO_ACTION` ke...
98
102
  # @param poa_unsupported_language_action [String] What to do when the document language is outside
99
103
  # `poa_languages_allowed` (`UNSUPPORTED_DOCUMENT_LANGUAGE`).
100
104
  # @param poa_address_mismatch_action [String] What to do when the extracted details disagree with the
@@ -456,7 +456,8 @@ module Didit
456
456
  # Create a CUSTOM transaction-monitoring rule. Titles are unique per application (duplicate -> 400). A
457
457
  # `change_status` action targeting `AWAITING_USER` must carry `workflow_id`. Rules created in ACTIVE mode
458
458
  # apply to new transactions immediately - the recommended workflow is create in TEST mode, backtest, then
459
- # switch mode to ACTIVE.
459
+ # switch mode to ACTIVE. To change a library rule, create it as a copy: send the library rule's definition
460
+ # with `metadata.based_on` (its library key) and `metadata.based_on_rule_uuid`.
460
461
  #
461
462
  # +POST /v3/transactions/rules/+
462
463
  #
@@ -685,9 +686,13 @@ module Didit
685
686
  # Update rule
686
687
  #
687
688
  # Partially update a rule. Custom rules accept every configuration field. Library (PRESET) rules accept only
688
- # `mode` - use it to activate, disable, or switch a preset to TEST; any other field returns 400. An installed
689
- # copy of a withheld library rule is switched off: setting its `mode` to anything but `DISABLED` answers 400
690
- # ("This library rule cannot run yet: its conditions read data the rules engine cannot evaluate.").
689
+ # `mode` - use it to activate, disable, or switch a preset to TEST; any other field returns 400, because Didit
690
+ # maintains library rules and applies their updates automatically. To change a library rule's conditions,
691
+ # create a custom copy with `POST /v3/transactions/rules/` using the library rule's definition and
692
+ # `metadata.based_on` (the library key) and `metadata.based_on_rule_uuid`, then switch the library rule off
693
+ # with `mode: DISABLED` so a transaction does not alert twice. An installed copy of a withheld library rule is
694
+ # switched off: setting its `mode` to anything but `DISABLED` answers 400 ("This library rule cannot run yet:
695
+ # its conditions read data the rules engine cannot evaluate.").
691
696
  #
692
697
  # +PATCH /v3/transactions/rules/{rule_uuid}/+
693
698
  #
@@ -3,6 +3,18 @@
3
3
 
4
4
  module Didit
5
5
  module Types
6
+ # Where the application's verification data is stored and processed, chosen when the application is created. `eu`
7
+ # is the European Union (Ireland), the default. `au` (Australia, Sydney) and `mx` (Mexico) are coming soon: a
8
+ # request that names them answers 400 `This data location is not available yet.` An organization's Sandbox
9
+ # application is always in the European Union.
10
+ module ApplicationDataLocation
11
+ EU = "eu"
12
+ AU = "au"
13
+ MX = "mx"
14
+
15
+ VALUES = [EU, AU, MX].freeze
16
+ end
17
+
6
18
  # `identity` (Identity verification), `transactions` (Transaction monitoring) or `authentication`
7
19
  # (Authentication).
8
20
  module ApplicationProductProduct
@@ -23,7 +35,9 @@ module Didit
23
35
  VALUES = [ENABLED, EARLY_ACCESS, DISABLED].freeze
24
36
  end
25
37
 
26
- # Full application record. `uuid`, `client_id`, and `api_key` never change after creation.
38
+ # Full application record. `uuid`, `client_id`, and `api_key` never change after creation. `data_location` doesn't
39
+ # either, except once on the live application created with your organization, before it is used (see the update
40
+ # request).
27
41
  class Application < Didit::Model
28
42
  field :uuid, "uuid", :string
29
43
  field :name, "name", :string
@@ -35,6 +49,7 @@ module Didit
35
49
  field :privacy_url, "privacy_url", :string
36
50
  field :description, "description", :string
37
51
  field :created_at, "created_at", :datetime
52
+ field :data_location, "data_location", :string
38
53
  field :products, "products", [:array, "ApplicationProduct"]
39
54
  end
40
55
 
@@ -45,6 +60,7 @@ module Didit
45
60
  field :name, "name", :string
46
61
  field :client_id, "client_id", :string
47
62
  field :api_key, "api_key", :string
63
+ field :data_location, "data_location", :string
48
64
  end
49
65
 
50
66
  # One product of an application and its state. Read-only: the application endpoints return it and ignore it in a
@@ -3172,6 +3172,14 @@ module Didit
3172
3172
  VALUES = [SESSION, IMPORTED, LIST_ENTRY, RETAINED_TEMPLATE].freeze
3173
3173
  end
3174
3174
 
3175
+ # The configured action that was taken: `fallback_to_document` or `decline`.
3176
+ module SessionDecisionIdVerificationsFallbackFromAction
3177
+ FALLBACK_TO_DOCUMENT = "fallback_to_document"
3178
+ DECLINE = "decline"
3179
+
3180
+ VALUES = [FALLBACK_TO_DOCUMENT, DECLINE].freeze
3181
+ end
3182
+
3175
3183
  # The method that failed.
3176
3184
  module SessionDecisionIdVerificationsFallbackFromMethod
3177
3185
  ID_LOOKUP = "id_lookup"
@@ -10208,8 +10216,9 @@ module Didit
10208
10216
  field :place_of_birth_latin, "place_of_birth_latin", :string
10209
10217
  end
10210
10218
 
10211
- # Why a non-document method ended the ID step. Set on the declined report when a lookup or a wallet sign-in failed
10212
- # and the country's fallback switch was `decline`. `null` otherwise.
10219
+ # Why a non-document method did not end the ID step. Set when a lookup or a wallet sign-in failed: on the document
10220
+ # verification the user continued with when the country's fallback switch was `fallback_to_document` (`action` is
10221
+ # `fallback_to_document`), or on the declined report when it was `decline`. `null` otherwise.
10213
10222
  class SessionDecisionIdVerificationsFallbackFrom < Didit::Model
10214
10223
  field :method_, "method", :string
10215
10224
  field :reason, "reason", :string
@@ -147,6 +147,17 @@ module Didit
147
147
  VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
148
148
  end
149
149
 
150
+ # Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
151
+ # `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
152
+ # for a company that did not come from a registry and while a selection is still `pending`.
153
+ module KybListShareholdersResponse202KybRegistryVerificationStatus
154
+ VERIFIED = "verified"
155
+ FAILED = "failed"
156
+ UNKNOWN = "unknown"
157
+
158
+ VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
159
+ end
160
+
150
161
  # The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
151
162
  # data, or the registry has no ownership record for this company.
152
163
  module KybListShareholdersResponse202RegistryTierDelivered
@@ -310,6 +321,17 @@ module Didit
310
321
  VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
311
322
  end
312
323
 
324
+ # Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
325
+ # `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
326
+ # for a company that did not come from a registry and while a selection is still `pending`.
327
+ module KybListShareholdersResponseKybRegistryVerificationStatus
328
+ VERIFIED = "verified"
329
+ FAILED = "failed"
330
+ UNKNOWN = "unknown"
331
+
332
+ VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
333
+ end
334
+
313
335
  # The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
314
336
  # data, or the registry has no ownership record for this company.
315
337
  module KybListShareholdersResponseRegistryTierDelivered
@@ -473,6 +495,17 @@ module Didit
473
495
  VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
474
496
  end
475
497
 
498
+ # Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
499
+ # `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
500
+ # for a company that did not come from a registry and while a selection is still `pending`.
501
+ module KybListUbosResponse202KybRegistryVerificationStatus
502
+ VERIFIED = "verified"
503
+ FAILED = "failed"
504
+ UNKNOWN = "unknown"
505
+
506
+ VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
507
+ end
508
+
476
509
  # The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
477
510
  # data, when the registry has no ownership record for this company, or when the resolved report of a `ubo` request
478
511
  # names no natural person as a beneficial owner.
@@ -637,6 +670,17 @@ module Didit
637
670
  VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
638
671
  end
639
672
 
673
+ # Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
674
+ # `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
675
+ # for a company that did not come from a registry and while a selection is still `pending`.
676
+ module KybListUbosResponseKybRegistryVerificationStatus
677
+ VERIFIED = "verified"
678
+ FAILED = "failed"
679
+ UNKNOWN = "unknown"
680
+
681
+ VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
682
+ end
683
+
640
684
  # The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
641
685
  # data, when the registry has no ownership record for this company, or when the resolved report of a `ubo` request
642
686
  # names no natural person as a beneficial owner.
@@ -821,6 +865,17 @@ module Didit
821
865
  VALUES = [VALID, INVALID, FORMAT_VALID, INVALID_FORMAT, COULD_NOT_VALIDATE, NOT_APPLICABLE].freeze
822
866
  end
823
867
 
868
+ # Cross-jurisdiction verification status: `verified` when the registry status establishes standing (`active`),
869
+ # `failed` when it says the company is no longer standing (for example `dissolved`), otherwise `unknown`. `null`
870
+ # for a company that did not come from a registry and while a selection is still `pending`.
871
+ module KybSelectResponseKybRegistryVerificationStatus
872
+ VERIFIED = "verified"
873
+ FAILED = "failed"
874
+ UNKNOWN = "unknown"
875
+
876
+ VALUES = [VERIFIED, FAILED, UNKNOWN].freeze
877
+ end
878
+
824
879
  # The tier actually delivered and billed. Lower than requested when the country's registries hold no ownership
825
880
  # data, or the registry has no ownership record for this company.
826
881
  module KybSelectResponseRegistryTierDelivered
@@ -14,7 +14,8 @@ module Didit
14
14
 
15
15
  # What to do when document manipulation is suspected (`SUSPECTED_DOCUMENT_MANIPULATION`) - e.g. the PDF was
16
16
  # modified after digital signing, processed by a known PDF editor, shows overlay-text manipulation, or has
17
- # inconsistent EXIF dates.
17
+ # inconsistent EXIF dates. Also governs `POA_DOCUMENT_UNPROVEN_TEXT_REPLACEMENT` (a re-typed text field the file
18
+ # cannot prove changed or unchanged): `DECLINE` declines it too, `NO_ACTION` keeps it as a warning.
18
19
  module ProofOfAddressVerifyParamsPoaDocumentAuthenticityAction
19
20
  DECLINE = "DECLINE"
20
21
  NO_ACTION = "NO_ACTION"
data/lib/didit/types.rb CHANGED
@@ -129,6 +129,7 @@ module Didit
129
129
  autoload :ApplicationAnalyticsWorkflowFunnelValue, "didit/types/components"
130
130
  autoload :ApplicationAnalyticsWorkflowFunnelValueStepsValue, "didit/types/components"
131
131
  autoload :ApplicationCredentialsSummary, "didit/types/account_components"
132
+ autoload :ApplicationDataLocation, "didit/types/account_components"
132
133
  autoload :ApplicationProduct, "didit/types/account_components"
133
134
  autoload :ApplicationProductProduct, "didit/types/account_components"
134
135
  autoload :ApplicationProductStatus, "didit/types/account_components"
@@ -671,6 +672,7 @@ module Didit
671
672
  autoload :KybListShareholdersResponse202KybRegistryStatus, "didit/types/kyb"
672
673
  autoload :KybListShareholdersResponse202KybRegistryVatValidationSource, "didit/types/kyb"
673
674
  autoload :KybListShareholdersResponse202KybRegistryVatValidationStatus, "didit/types/kyb"
675
+ autoload :KybListShareholdersResponse202KybRegistryVerificationStatus, "didit/types/kyb"
674
676
  autoload :KybListShareholdersResponse202RegistryTierDelivered, "didit/types/kyb"
675
677
  autoload :KybListShareholdersResponse202RegistryTierRequested, "didit/types/kyb"
676
678
  autoload :KybListShareholdersResponseKybRegistry, "didit/types/kyb"
@@ -688,6 +690,7 @@ module Didit
688
690
  autoload :KybListShareholdersResponseKybRegistryStatus, "didit/types/kyb"
689
691
  autoload :KybListShareholdersResponseKybRegistryVatValidationSource, "didit/types/kyb"
690
692
  autoload :KybListShareholdersResponseKybRegistryVatValidationStatus, "didit/types/kyb"
693
+ autoload :KybListShareholdersResponseKybRegistryVerificationStatus, "didit/types/kyb"
691
694
  autoload :KybListShareholdersResponseRegistryTierDelivered, "didit/types/kyb"
692
695
  autoload :KybListShareholdersResponseRegistryTierRequested, "didit/types/kyb"
693
696
  autoload :KybListUbosResponse, "didit/types/kyb"
@@ -707,6 +710,7 @@ module Didit
707
710
  autoload :KybListUbosResponse202KybRegistryStatus, "didit/types/kyb"
708
711
  autoload :KybListUbosResponse202KybRegistryVatValidationSource, "didit/types/kyb"
709
712
  autoload :KybListUbosResponse202KybRegistryVatValidationStatus, "didit/types/kyb"
713
+ autoload :KybListUbosResponse202KybRegistryVerificationStatus, "didit/types/kyb"
710
714
  autoload :KybListUbosResponse202RegistryTierDelivered, "didit/types/kyb"
711
715
  autoload :KybListUbosResponse202RegistryTierRequested, "didit/types/kyb"
712
716
  autoload :KybListUbosResponseKybRegistry, "didit/types/kyb"
@@ -724,6 +728,7 @@ module Didit
724
728
  autoload :KybListUbosResponseKybRegistryStatus, "didit/types/kyb"
725
729
  autoload :KybListUbosResponseKybRegistryVatValidationSource, "didit/types/kyb"
726
730
  autoload :KybListUbosResponseKybRegistryVatValidationStatus, "didit/types/kyb"
731
+ autoload :KybListUbosResponseKybRegistryVerificationStatus, "didit/types/kyb"
727
732
  autoload :KybListUbosResponseRegistryTierDelivered, "didit/types/kyb"
728
733
  autoload :KybListUbosResponseRegistryTierRequested, "didit/types/kyb"
729
734
  autoload :KybSearchParamsSearchType, "didit/types/kyb"
@@ -745,6 +750,7 @@ module Didit
745
750
  autoload :KybSelectResponseKybRegistryStatus, "didit/types/kyb"
746
751
  autoload :KybSelectResponseKybRegistryVatValidationSource, "didit/types/kyb"
747
752
  autoload :KybSelectResponseKybRegistryVatValidationStatus, "didit/types/kyb"
753
+ autoload :KybSelectResponseKybRegistryVerificationStatus, "didit/types/kyb"
748
754
  autoload :KybSelectResponseRegistryTierDelivered, "didit/types/kyb"
749
755
  autoload :KybSelectResponseRegistryTierRequested, "didit/types/kyb"
750
756
  autoload :ListsCreateParamsEntryType, "didit/types/lists"
@@ -1055,6 +1061,7 @@ module Didit
1055
1061
  autoload :SessionDecisionIdVerificationsDocumentSelfieFaceMatchesUserDetails, "didit/types/components"
1056
1062
  autoload :SessionDecisionIdVerificationsExtraFields, "didit/types/components"
1057
1063
  autoload :SessionDecisionIdVerificationsFallbackFrom, "didit/types/components"
1064
+ autoload :SessionDecisionIdVerificationsFallbackFromAction, "didit/types/components"
1058
1065
  autoload :SessionDecisionIdVerificationsFallbackFromMethod, "didit/types/components"
1059
1066
  autoload :SessionDecisionIdVerificationsFrontImageQualityScore, "didit/types/components"
1060
1067
  autoload :SessionDecisionIdVerificationsFrontImageQualityScoreBrightnessIssue, "didit/types/components"
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.0.0" # x-release-please-version
4
+ VERSION = "2.1.1" # x-release-please-version
5
5
  end
@@ -10,10 +10,10 @@ module Didit
10
10
  def resend_otp: (email: String, password: String, ?request_options: Didit::request_options?) -> Didit::Types::AccountResendOtpResponse
11
11
  def verify_email: (email: String, code: String, ?request_options: Didit::request_options?) -> Didit::Types::VerifyEmailResponse
12
12
  class Applications < Didit::Resource
13
- def create: (String org_id, ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String, ?request_options: Didit::request_options?) -> Didit::Types::Application
13
+ def create: (String org_id, ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String, ?data_location: String, ?request_options: Didit::request_options?) -> Didit::Types::Application
14
14
  def list: (String org_id, ?limit: Integer, ?offset: Integer, ?request_options: Didit::request_options?) -> Didit::Page[Didit::Types::Application]
15
15
  def retrieve: (String org_id, String app_id, ?request_options: Didit::request_options?) -> Didit::Types::Application
16
- def update: (String org_id, String app_id, ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String, ?request_options: Didit::request_options?) -> Didit::Types::Application
16
+ def update: (String org_id, String app_id, ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String, ?data_location: String, ?request_options: Didit::request_options?) -> Didit::Types::Application
17
17
  end
18
18
  class Organizations < Didit::Resource
19
19
  def list: (?limit: Integer, ?offset: Integer, ?request_options: Didit::request_options?) -> Didit::Page[Didit::Types::Organization]
@@ -7,9 +7,9 @@ module Didit
7
7
  def email: () -> String
8
8
  end
9
9
 
10
- type account_applications_create_params = { ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String }
10
+ type account_applications_create_params = { ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String, ?data_location: String }
11
11
 
12
- type account_applications_update_params = { ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String }
12
+ type account_applications_update_params = { ?name: String, ?website_url: String, ?redirect_uris: Array[String], ?terms_url: String, ?privacy_url: String, ?description: String, ?data_location: String }
13
13
 
14
14
  type account_login_params = { email: String, password: String }
15
15
 
@@ -2,6 +2,14 @@
2
2
 
3
3
  module Didit
4
4
  module Types
5
+ module ApplicationDataLocation
6
+ EU: String
7
+ AU: String
8
+ MX: String
9
+
10
+ VALUES: Array[String]
11
+ end
12
+
5
13
  module ApplicationProductProduct
6
14
  IDENTITY: String
7
15
  TRANSACTIONS: String
@@ -29,6 +37,7 @@ module Didit
29
37
  def privacy_url: () -> String?
30
38
  def description: () -> String?
31
39
  def created_at: () -> Time?
40
+ def data_location: () -> String?
32
41
  def products: () -> Array[Didit::Types::ApplicationProduct]?
33
42
  end
34
43
 
@@ -37,6 +46,7 @@ module Didit
37
46
  def name: () -> String?
38
47
  def client_id: () -> String?
39
48
  def api_key: () -> String?
49
+ def data_location: () -> String?
40
50
  end
41
51
 
42
52
  class ApplicationProduct < Didit::Model
@@ -2638,6 +2638,13 @@ module Didit
2638
2638
  VALUES: Array[String]
2639
2639
  end
2640
2640
 
2641
+ module SessionDecisionIdVerificationsFallbackFromAction
2642
+ FALLBACK_TO_DOCUMENT: String
2643
+ DECLINE: String
2644
+
2645
+ VALUES: Array[String]
2646
+ end
2647
+
2641
2648
  module SessionDecisionIdVerificationsFallbackFromMethod
2642
2649
  ID_LOOKUP: String
2643
2650
  WALLET: String
@@ -123,6 +123,14 @@ module Didit
123
123
  VALUES: Array[String]
124
124
  end
125
125
 
126
+ module KybListShareholdersResponse202KybRegistryVerificationStatus
127
+ VERIFIED: String
128
+ FAILED: String
129
+ UNKNOWN: String
130
+
131
+ VALUES: Array[String]
132
+ end
133
+
126
134
  module KybListShareholdersResponse202RegistryTierDelivered
127
135
  BASIC: String
128
136
  SHAREHOLDERS: String
@@ -260,6 +268,14 @@ module Didit
260
268
  VALUES: Array[String]
261
269
  end
262
270
 
271
+ module KybListShareholdersResponseKybRegistryVerificationStatus
272
+ VERIFIED: String
273
+ FAILED: String
274
+ UNKNOWN: String
275
+
276
+ VALUES: Array[String]
277
+ end
278
+
263
279
  module KybListShareholdersResponseRegistryTierDelivered
264
280
  BASIC: String
265
281
  SHAREHOLDERS: String
@@ -397,6 +413,14 @@ module Didit
397
413
  VALUES: Array[String]
398
414
  end
399
415
 
416
+ module KybListUbosResponse202KybRegistryVerificationStatus
417
+ VERIFIED: String
418
+ FAILED: String
419
+ UNKNOWN: String
420
+
421
+ VALUES: Array[String]
422
+ end
423
+
400
424
  module KybListUbosResponse202RegistryTierDelivered
401
425
  BASIC: String
402
426
  SHAREHOLDERS: String
@@ -534,6 +558,14 @@ module Didit
534
558
  VALUES: Array[String]
535
559
  end
536
560
 
561
+ module KybListUbosResponseKybRegistryVerificationStatus
562
+ VERIFIED: String
563
+ FAILED: String
564
+ UNKNOWN: String
565
+
566
+ VALUES: Array[String]
567
+ end
568
+
537
569
  module KybListUbosResponseRegistryTierDelivered
538
570
  BASIC: String
539
571
  SHAREHOLDERS: String
@@ -684,6 +716,14 @@ module Didit
684
716
  VALUES: Array[String]
685
717
  end
686
718
 
719
+ module KybSelectResponseKybRegistryVerificationStatus
720
+ VERIFIED: String
721
+ FAILED: String
722
+ UNKNOWN: String
723
+
724
+ VALUES: Array[String]
725
+ end
726
+
687
727
  module KybSelectResponseRegistryTierDelivered
688
728
  BASIC: String
689
729
  SHAREHOLDERS: String
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.0.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit