knockapi 1.21.0 → 1.23.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: f84eb716141c76105b2acb3a28285745d095515554458a21179ebd249a4d718b
4
- data.tar.gz: 4eecf79648fb8d92f89a70bd9898a1baf42f050194074e488fda86b17c7a17b2
3
+ metadata.gz: f327b4c59df9547e39351f7902f1d5070dd70aacaded1e76567f0d165cb4621b
4
+ data.tar.gz: 86f40371eed16605ee5f6f5d75377878b4cdd1b9044dead68e51029c21351a2c
5
5
  SHA512:
6
- metadata.gz: 709a46b6b32a02e00757e34b88bf9a856648a651764d0efcb70025c71b89ce4dcd23db575fd761733c00f370aa2e92bd6cd1b7bd1792e8fd2a779f5b9ed9d71e
7
- data.tar.gz: 5de4b46c82ce8adb49182334b3048ad403fb5d96576d2e942c84d6f9b82ade253b4c69d8f8188f1ab5383965afbf1e9eef4a35dc34d0998c11bc164a3591e95f
6
+ metadata.gz: 015af7f97e13c3bb153c1ee0ae8b5098613a4baefb049900898b2ca374d9e5baef490b1352510f27a721e00c178e1b5d17615921457f9a272832fecf8e499055
7
+ data.tar.gz: e66ac3696e8bafe9ea9f6504d4baf87afa28c7a8a669d6522e23cf70d79e46ac85037d4641a9a09c02a2f6990fb3cf36064be525ef5bf44adb5beebb0d63e487
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.23.0 (2025-12-09)
4
+
5
+ Full Changelog: [v1.22.0...v1.23.0](https://github.com/knocklabs/knock-ruby/compare/v1.22.0...v1.23.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b5c0d7e](https://github.com/knocklabs/knock-ruby/commit/b5c0d7ec0cb27656a4100a96bbcaac88e98a901b))
10
+
11
+ ## 1.22.0 (2025-12-04)
12
+
13
+ Full Changelog: [v1.21.0...v1.22.0](https://github.com/knocklabs/knock-ruby/compare/v1.21.0...v1.22.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([28047a5](https://github.com/knocklabs/knock-ruby/commit/28047a59ac407ca2ecff51cfa13fc4a5c1d27019))
18
+
3
19
  ## 1.21.0 (2025-11-20)
4
20
 
5
21
  Full Changelog: [v1.20.0...v1.21.0](https://github.com/knocklabs/knock-ruby/compare/v1.20.0...v1.21.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "knockapi", "~> 1.21.0"
20
+ gem "knockapi", "~> 1.23.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -252,7 +252,24 @@ module Knockapi
252
252
  # @return [Symbol, Knockapi::Models::Message::Source::Type, nil]
253
253
  optional :type, enum: -> { Knockapi::Message::Source::Type }
254
254
 
255
- # @!method initialize(_typename:, categories:, key:, version_id:, step_ref: nil, type: nil)
255
+ # @!attribute workflow_recipient_run_id
256
+ # The unique identifier for the workflow recipient run that generated this
257
+ # message. Only present for workflow/broadcast messages.
258
+ #
259
+ # @return [String, nil]
260
+ optional :workflow_recipient_run_id, String, nil?: true
261
+
262
+ # @!attribute workflow_run_id
263
+ # The unique identifier for the workflow run that generated this message. Only
264
+ # present for workflow/broadcast messages.
265
+ #
266
+ # @return [String, nil]
267
+ optional :workflow_run_id, String, nil?: true
268
+
269
+ # @!method initialize(_typename:, categories:, key:, version_id:, step_ref: nil, type: nil, workflow_recipient_run_id: nil, workflow_run_id: nil)
270
+ # Some parameter documentations has been truncated, see
271
+ # {Knockapi::Models::Message::Source} for more details.
272
+ #
256
273
  # The workflow or guide that triggered the message.
257
274
  #
258
275
  # @param _typename [String]
@@ -266,6 +283,10 @@ module Knockapi
266
283
  # @param step_ref [String, nil] The step reference for the step in the workflow that generated the message.
267
284
  #
268
285
  # @param type [Symbol, Knockapi::Models::Message::Source::Type] Whether this message was generated from a workflow, broadcast, or guide.
286
+ #
287
+ # @param workflow_recipient_run_id [String, nil] The unique identifier for the workflow recipient run that generated this message
288
+ #
289
+ # @param workflow_run_id [String, nil] The unique identifier for the workflow run that generated this message. Only pre
269
290
 
270
291
  # Whether this message was generated from a workflow, broadcast, or guide.
271
292
  #
@@ -4,8 +4,8 @@ module Knockapi
4
4
  module Resources
5
5
  class Tenants
6
6
  class Bulk
7
- # Delete up to 100 tenants at a time in a single operation. This operation cannot
8
- # be undone.
7
+ # Delete up to 1,000 tenants at a time in a single operation. This operation
8
+ # cannot be undone.
9
9
  #
10
10
  # @overload delete(tenant_ids:, request_options: {})
11
11
  #
@@ -27,7 +27,7 @@ module Knockapi
27
27
  )
28
28
  end
29
29
 
30
- # Set or update up to 100 tenants in a single operation.
30
+ # Set or update up to 1,000 tenants in a single operation.
31
31
  #
32
32
  # @overload set(tenants:, request_options: {})
33
33
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knockapi
4
- VERSION = "1.21.0"
4
+ VERSION = "1.23.0"
5
5
  end
@@ -316,6 +316,16 @@ module Knockapi
316
316
  sig { params(type: Knockapi::Message::Source::Type::OrSymbol).void }
317
317
  attr_writer :type
318
318
 
319
+ # The unique identifier for the workflow recipient run that generated this
320
+ # message. Only present for workflow/broadcast messages.
321
+ sig { returns(T.nilable(String)) }
322
+ attr_accessor :workflow_recipient_run_id
323
+
324
+ # The unique identifier for the workflow run that generated this message. Only
325
+ # present for workflow/broadcast messages.
326
+ sig { returns(T.nilable(String)) }
327
+ attr_accessor :workflow_run_id
328
+
319
329
  # The workflow or guide that triggered the message.
320
330
  sig do
321
331
  params(
@@ -324,7 +334,9 @@ module Knockapi
324
334
  key: String,
325
335
  version_id: String,
326
336
  step_ref: T.nilable(String),
327
- type: Knockapi::Message::Source::Type::OrSymbol
337
+ type: Knockapi::Message::Source::Type::OrSymbol,
338
+ workflow_recipient_run_id: T.nilable(String),
339
+ workflow_run_id: T.nilable(String)
328
340
  ).returns(T.attached_class)
329
341
  end
330
342
  def self.new(
@@ -338,7 +350,13 @@ module Knockapi
338
350
  # The step reference for the step in the workflow that generated the message.
339
351
  step_ref: nil,
340
352
  # Whether this message was generated from a workflow, broadcast, or guide.
341
- type: nil
353
+ type: nil,
354
+ # The unique identifier for the workflow recipient run that generated this
355
+ # message. Only present for workflow/broadcast messages.
356
+ workflow_recipient_run_id: nil,
357
+ # The unique identifier for the workflow run that generated this message. Only
358
+ # present for workflow/broadcast messages.
359
+ workflow_run_id: nil
342
360
  )
343
361
  end
344
362
 
@@ -350,7 +368,9 @@ module Knockapi
350
368
  key: String,
351
369
  version_id: String,
352
370
  step_ref: T.nilable(String),
353
- type: Knockapi::Message::Source::Type::TaggedSymbol
371
+ type: Knockapi::Message::Source::Type::TaggedSymbol,
372
+ workflow_recipient_run_id: T.nilable(String),
373
+ workflow_run_id: T.nilable(String)
354
374
  }
355
375
  )
356
376
  end
@@ -4,8 +4,8 @@ module Knockapi
4
4
  module Resources
5
5
  class Tenants
6
6
  class Bulk
7
- # Delete up to 100 tenants at a time in a single operation. This operation cannot
8
- # be undone.
7
+ # Delete up to 1,000 tenants at a time in a single operation. This operation
8
+ # cannot be undone.
9
9
  sig do
10
10
  params(
11
11
  tenant_ids: T::Array[String],
@@ -19,7 +19,7 @@ module Knockapi
19
19
  )
20
20
  end
21
21
 
22
- # Set or update up to 100 tenants in a single operation.
22
+ # Set or update up to 1,000 tenants in a single operation.
23
23
  sig do
24
24
  params(
25
25
  tenants: T::Array[T.any(String, Knockapi::TenantRequest::OrHash)],
@@ -149,7 +149,9 @@ module Knockapi
149
149
  key: String,
150
150
  version_id: String,
151
151
  step_ref: String?,
152
- type: Knockapi::Models::Message::Source::type_
152
+ type: Knockapi::Models::Message::Source::type_,
153
+ workflow_recipient_run_id: String?,
154
+ workflow_run_id: String?
153
155
  }
154
156
 
155
157
  class Source < Knockapi::Internal::Type::BaseModel
@@ -169,13 +171,19 @@ module Knockapi
169
171
  Knockapi::Models::Message::Source::type_
170
172
  ) -> Knockapi::Models::Message::Source::type_
171
173
 
174
+ attr_accessor workflow_recipient_run_id: String?
175
+
176
+ attr_accessor workflow_run_id: String?
177
+
172
178
  def initialize: (
173
179
  _typename: String,
174
180
  categories: ::Array[String],
175
181
  key: String,
176
182
  version_id: String,
177
183
  ?step_ref: String?,
178
- ?type: Knockapi::Models::Message::Source::type_
184
+ ?type: Knockapi::Models::Message::Source::type_,
185
+ ?workflow_recipient_run_id: String?,
186
+ ?workflow_run_id: String?
179
187
  ) -> void
180
188
 
181
189
  def to_hash: -> {
@@ -184,7 +192,9 @@ module Knockapi
184
192
  key: String,
185
193
  version_id: String,
186
194
  step_ref: String?,
187
- type: Knockapi::Models::Message::Source::type_
195
+ type: Knockapi::Models::Message::Source::type_,
196
+ workflow_recipient_run_id: String?,
197
+ workflow_run_id: String?
188
198
  }
189
199
 
190
200
  type type_ = :broadcast | :workflow | :guide
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knockapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Knock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-20 00:00:00.000000000 Z
11
+ date: 2025-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool