didit-sdk 2.30.0 → 2.31.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: 2879af83ff330c43bf51c0d2a6b9cd17ad6963efc5d0be99b7c147613c26b5ed
4
- data.tar.gz: b627a005c08687783f35d4f5ed6b5db194dca7b8b4ccb63e01dd42951ae4944c
3
+ metadata.gz: c9b9fe57b1e954e24e8b10a4655cb91a88826f91b8e3fd01f5771a85a7ea9539
4
+ data.tar.gz: 7b8b02bb528aa50f60d67def59093d7dccabc9e4efda60bce30cdb02d2364cdc
5
5
  SHA512:
6
- metadata.gz: c812ee201a3fa242a1fbb954dfdaa08159df873cf64cf11180193753b6ae4947a9005998c1451f9b1ad2cbc0721ddbec5c119a814935f469a4b08acb5f4a14c0
7
- data.tar.gz: 2bd3ac9272f0b22430edabc564c3316054ab3c740fdb07649ae6a79bc7e589e81c3b14f2db8638c573c36a13896495f368c5dc307fa04ec9cd308240fc0a6aed
6
+ metadata.gz: abb3032b80f9b03a907fba8b4a75bc339c11dd5883a976f6a287f52b3bd22aaaa5397c292a482be06364bcb0760f6a8c084f66aa5f233e15c5bc976fb0ffb297
7
+ data.tar.gz: c8dee5b0542a74af89f14ac8d2c07dbca2b47640e94501c9afabd2ad195610eac62538bd1fafcc49d68b3be362b1c17c48fc9d5d42f023a703a174129ab7d5cc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.31.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.30.0...v2.31.0) (2026-11-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * **spec:** sync API spec 2026-11-22 ([326263f](https://github.com/didit-protocol/sdk-ruby/commit/326263fc429c237e2424cb0d417fdb0b223c8cf5))
9
+
3
10
  ## [2.30.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.29.0...v2.30.0) (2026-11-22)
4
11
 
5
12
 
@@ -109,9 +109,10 @@ module Didit
109
109
  # Preview a sign-in email
110
110
  #
111
111
  # Returns one email as it renders, with sample codes and links. An invitation preview uses a sample organization
112
- # for a grant or named key. A console session can see a customer organization's name. The address of a console
113
- # member is left out for a grant or a key, which have no mailbox. An email Authentication does not send answers
114
- # `{"error": "email_not_sent_by_authentication"}`.
112
+ # for a grant or named key, or the `organization` and `role` you pass. `agentoff` is the email a person receives
113
+ # when your team ends an agent's access with a notification; `agent` names the agent. A console session can see
114
+ # a customer organization's name. The address of a console member is left out for a grant or a key, which have
115
+ # no mailbox. An email Authentication does not send answers `{"error": "email_not_sent_by_authentication"}`.
115
116
  #
116
117
  # +GET /organizations/{organization_id}/applications/{application_id}/authentication/emails/{key}/+
117
118
  #
@@ -119,13 +120,33 @@ module Didit
119
120
  # @param application_id [String] UUID of the application: live or sandbox. A named key configures its own
120
121
  # application only.
121
122
  # @param key [String] The email: `code`, `magic`, `reset`, `device`, `invite`, `org`, `agent` or `agentoff`.
123
+ # @param organization [String] For `org` only: the organization the invitation is for, so the preview shows it
124
+ # as it will be sent. At most 200 characters, the longest organization name an application holds. Without it, a
125
+ # sample organization (a console session sees the application's first customer organization).
126
+ # @param role [String] For `org` only: the role the invitation grants.
127
+ # @param agent [String] For `agentoff` only: the name of the agent whose access ends. At most 200 characters,
128
+ # the longest agent name an application registers. Without it, the agent of the application's latest agent
129
+ # client in a console session, or a sample name.
122
130
  # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
123
131
  # @return [Didit::Types::SetupEmail]
124
- def get_email(organization_id, application_id, key, request_options: nil)
132
+ def get_email(
133
+ organization_id,
134
+ application_id,
135
+ key,
136
+ organization: OMIT,
137
+ role: OMIT,
138
+ agent: OMIT,
139
+ request_options: nil
140
+ )
125
141
  @client.request(
126
142
  :get,
127
143
  "/organizations/{organization_id}/applications/{application_id}/authentication/emails/{key}/",
128
144
  path_params: { "organization_id" => organization_id, "application_id" => application_id, "key" => key },
145
+ query: {
146
+ "organization" => organization,
147
+ "role" => role,
148
+ "agent" => agent
149
+ },
129
150
  api: :account,
130
151
  response: Types::SetupEmail,
131
152
  request_options: request_options
@@ -239,19 +239,20 @@ module Didit
239
239
 
240
240
  # Delete a bank connection
241
241
  #
242
- # Deletes the connection's bank data and stops access at the bank. The connection's accounts, balances,
243
- # transactions, sync history, consent records and ownership results are deleted. Deletion is irreversible.
242
+ # Deletes the connection's bank data and stops access at the bank. Deletion is immediate and irreversible: when
243
+ # the call returns, the connection's accounts, balances, transactions, sync history, consent records and
244
+ # ownership results are deleted, and its data operations (refresh, sync runs, accounts, balances, transactions
245
+ # and the change feed) answer `409 connection_not_active`.
244
246
  #
245
- # It starts at once: the response is `202` with `erasure.status` `pending`, and from that moment the
246
- # connection's data operations (refresh, sync runs, accounts, balances, transactions and the change feed) answer
247
- # `409 connection_not_active`. The connection then reads with `erasure.status` `erased`, or `failed` if deletion
248
- # could not be confirmed within 24 hours; a failed deletion is retried until it completes. A deleted connection
249
- # reads as a minimal record: its id, `status: deleted`, the reason, its dates and its `erasure` status, and it
250
- # holds no accounts, balances, transactions, consent or sync data.
247
+ # A deleted connection reads as a minimal record: its id, `status: deleted`, the reason, its dates and its
248
+ # `erasure` record (`requested_at`, `erased_at` and `status`, the confirmation of the deletion: `pending` while
249
+ # it is being confirmed, including the end of access at the bank, `erased` once confirmed, `failed` if the
250
+ # confirmation has not arrived yet and is repeated automatically, with nothing needed from you). It holds no
251
+ # accounts, balances, transactions, consent or sync data. `bank.connection.deleted` confirms the deletion.
251
252
  #
252
253
  # Not affected: your other connections, the charges already made (they are not refunded), and any data you
253
- # already downloaded, which is your own copy. Repeating the call returns the current state. To stop access
254
- # without deleting, use `revoke_connection`.
254
+ # already downloaded, which is your own copy. Repeating the call is safe. To stop access without deleting, use
255
+ # `revoke_connection`.
255
256
  #
256
257
  # Needs an API key with the Bank data permission (`bank-data`): write for this operation, which changes
257
258
  # something. A key with full access does not include it: grant it explicitly when you create the key, or the
@@ -3,6 +3,15 @@
3
3
 
4
4
  module Didit
5
5
  module Types
6
+ # Known values of an open enum: the API may send others.
7
+ module AuthenticationSetupGetEmailParamsRole
8
+ MEMBER = "member"
9
+ BILLING = "billing"
10
+ ADMIN = "admin"
11
+
12
+ VALUES = [MEMBER, BILLING, ADMIN].freeze
13
+ end
14
+
6
15
  # `didit_test` uses Didit's own sandbox app, and is refused on a live application with `sandbox_only`. Omitted:
7
16
  # `own` when you send `credentials`, the stored source otherwise, and `didit_test` for a sandbox application's
8
17
  # social method that was never configured.
@@ -515,9 +515,9 @@ module Didit
515
515
  VALUES = [LIVE, SANDBOX].freeze
516
516
  end
517
517
 
518
- # `pending` while deletion runs, `erased` when no stored copy and no access at the bank remain, `failed` when it
519
- # could not be confirmed within 24 hours. A failed deletion keeps the connection's data closed, is retried, and
520
- # Didit is alerted.
518
+ # The confirmation of the deletion. `pending`: the deletion is being confirmed, including the end of access at the
519
+ # bank. `erased`: confirmed, with `erased_at`. `failed`: the confirmation has not arrived yet and is repeated
520
+ # automatically; nothing is needed from you. The data is deleted and not readable in any of the three.
521
521
  module BankConnectionErasureStatus
522
522
  PENDING = "pending"
523
523
  ERASED = "erased"
@@ -8554,8 +8554,8 @@ module Didit
8554
8554
  field :ended_by, "ended_by", :string
8555
8555
  end
8556
8556
 
8557
- # Accepted deletion. The connection's bank data is being deleted and its data operations answer `409
8558
- # connection_not_active`; reading the connection returns a minimal record with this `erasure` status.
8557
+ # The record of a deletion. The connection's bank data is deleted and its data operations answer `409
8558
+ # connection_not_active`; reading the connection returns a minimal record with this `erasure` record.
8559
8559
  class BankConnectionDeletion < Didit::Model
8560
8560
  field :id, "id", :string
8561
8561
  field :erasure, "erasure", "BankConnectionErasure"
@@ -8565,7 +8565,8 @@ module Didit
8565
8565
  field :reference, "reference", :string
8566
8566
  end
8567
8567
 
8568
- # Progress of a deletion you asked for.
8568
+ # The record of a deletion you asked for. The deletion itself is immediate: the connection's data is deleted and
8569
+ # unreadable when the call returns. `status` is the confirmation of it.
8569
8570
  class BankConnectionErasure < Didit::Model
8570
8571
  field :status, "status", :string
8571
8572
  field :requested_at, "requested_at", :datetime
data/lib/didit/types.rb CHANGED
@@ -148,6 +148,7 @@ module Didit
148
148
  autoload :AsyncReportListCounts, "didit/types/components"
149
149
  autoload :AsyncReportReportType, "didit/types/components"
150
150
  autoload :AsyncReportStatus, "didit/types/components"
151
+ autoload :AuthenticationSetupGetEmailParamsRole, "didit/types/authentication_setup"
151
152
  autoload :AuthenticationSetupSetMethodParamsCredentialSource, "didit/types/authentication_setup"
152
153
  autoload :AuthenticationSetupUpdateConfigurationParamsSignupPolicy, "didit/types/authentication_setup"
153
154
  autoload :AuthenticationSetupUpdateOnboardingParamsSignInUi, "didit/types/authentication_setup"
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.30.0" # x-release-please-version
4
+ VERSION = "2.31.0" # x-release-please-version
5
5
  end
@@ -7,7 +7,7 @@ module Didit
7
7
  def get_branding: (String organization_id, String application_id, ?language: String, ?request_options: Didit::request_options?) -> Didit::Types::SetupBranding
8
8
  def get_configuration: (String organization_id, String application_id, ?request_options: Didit::request_options?) -> Didit::Types::SetupConfiguration
9
9
  def get_domain: (String organization_id, String application_id, ?request_options: Didit::request_options?) -> Didit::Types::SetupDomain
10
- def get_email: (String organization_id, String application_id, String key, ?request_options: Didit::request_options?) -> Didit::Types::SetupEmail
10
+ def get_email: (String organization_id, String application_id, String key, ?organization: String, ?role: String, ?agent: String, ?request_options: Didit::request_options?) -> Didit::Types::SetupEmail
11
11
  def get_emails: (String organization_id, String application_id, ?language: String, ?request_options: Didit::request_options?) -> Didit::Types::SetupEmails
12
12
  def get_native_apps: (String organization_id, String application_id, ?request_options: Didit::request_options?) -> Didit::Types::SetupNativeApps
13
13
  def get_onboarding: (String organization_id, String application_id, ?request_options: Didit::request_options?) -> Didit::Types::SetupOnboarding
@@ -2,6 +2,14 @@
2
2
 
3
3
  module Didit
4
4
  module Types
5
+ module AuthenticationSetupGetEmailParamsRole
6
+ MEMBER: String
7
+ BILLING: String
8
+ ADMIN: String
9
+
10
+ VALUES: Array[String]
11
+ end
12
+
5
13
  module AuthenticationSetupSetMethodParamsCredentialSource
6
14
  OWN: String
7
15
  DIDIT_TEST: 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.30.0
4
+ version: 2.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit