didit-sdk 2.29.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: b48affb51dd53c8b0b35edc6019e58ebd1243d7c0fc630dee7a9b66d7250df78
4
- data.tar.gz: 130bd65e7b485f7187804543e6c5ac418b2cf3d00f9191606bdf628851e046fd
3
+ metadata.gz: c9b9fe57b1e954e24e8b10a4655cb91a88826f91b8e3fd01f5771a85a7ea9539
4
+ data.tar.gz: 7b8b02bb528aa50f60d67def59093d7dccabc9e4efda60bce30cdb02d2364cdc
5
5
  SHA512:
6
- metadata.gz: 519955db14df472e57099f2b04154c796a5c2633b1d50bcf8213130ee30ef4c0cfdb41257e3de825924029979c998a4de667358c1abeb79960a87150d7c15594
7
- data.tar.gz: eddde8a041a4f4a672f6100e72c9fe34e32e6f842dc081fe98e31dd96416f988be8c04fcb463d6c1a1d51452514999286e2657b328c0cbe7f8657be331a00700
6
+ metadata.gz: abb3032b80f9b03a907fba8b4a75bc339c11dd5883a976f6a287f52b3bd22aaaa5397c292a482be06364bcb0760f6a8c084f66aa5f233e15c5bc976fb0ffb297
7
+ data.tar.gz: c8dee5b0542a74af89f14ac8d2c07dbca2b47640e94501c9afabd2ad195610eac62538bd1fafcc49d68b3be362b1c17c48fc9d5d42f023a703a174129ab7d5cc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
10
+ ## [2.30.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.29.0...v2.30.0) (2026-11-22)
11
+
12
+
13
+ ### Features
14
+
15
+ * **spec:** sync API spec 2026-11-22 ([25908ef](https://github.com/didit-protocol/sdk-ruby/commit/25908ef35bcfd60bbaf2beaf7b9679d923bfdb81))
16
+
3
17
  ## [2.29.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.28.0...v2.29.0) (2026-11-22)
4
18
 
5
19
 
@@ -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