knockapi 1.21.0 → 1.22.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: '0874267848eeb99b21173d6b7115415dd08b573b1939f271f2b0e672e8c93394'
4
+ data.tar.gz: 5f112a3e47ef2b1b237f3359a61bd9e7e6caa6e079f37531d08c87df26979a01
5
5
  SHA512:
6
- metadata.gz: 709a46b6b32a02e00757e34b88bf9a856648a651764d0efcb70025c71b89ce4dcd23db575fd761733c00f370aa2e92bd6cd1b7bd1792e8fd2a779f5b9ed9d71e
7
- data.tar.gz: 5de4b46c82ce8adb49182334b3048ad403fb5d96576d2e942c84d6f9b82ade253b4c69d8f8188f1ab5383965afbf1e9eef4a35dc34d0998c11bc164a3591e95f
6
+ metadata.gz: aa578c36d4937f35de975638eac48ab6d0d96c25d019cb152115dcb62f32b0ecf08d90d5a57082a83f9930a7a6291754caa0ad57c9b3554001e1415b1efb0cbb
7
+ data.tar.gz: 130e34f48bb8264cfdd25b05473ff4b4cef74a02dc4f7a52f75994128aac908a747f74c162bd6109c39e41d7f3c002723886993439d4dfe639a2669503b60ce9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.22.0 (2025-12-04)
4
+
5
+ Full Changelog: [v1.21.0...v1.22.0](https://github.com/knocklabs/knock-ruby/compare/v1.21.0...v1.22.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([28047a5](https://github.com/knocklabs/knock-ruby/commit/28047a59ac407ca2ecff51cfa13fc4a5c1d27019))
10
+
3
11
  ## 1.21.0 (2025-11-20)
4
12
 
5
13
  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.22.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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knockapi
4
- VERSION = "1.21.0"
4
+ VERSION = "1.22.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
@@ -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.22.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-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool