knockapi 1.42.0 → 1.43.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: afb0347a9022e3737e27a4cda9592a99130fe4e1cf701621d5fd23a96b319893
4
- data.tar.gz: da410e0b30cc88ec3c43f541e0799e4e76e75c9e7539f10e2cf5b0f4fe7616fa
3
+ metadata.gz: e007375ac8e8c2b288f7606d5c046a1cfec0d4dfec30821096fc9e3efca07177
4
+ data.tar.gz: 7c3d64e0447482098348e1c2625fcc1588b7723ee7b07001f9aa42dc58a316d2
5
5
  SHA512:
6
- metadata.gz: 67f738c898c02679260b948b981d7907cdcf10a419e320485ed5a217b649387086cc6e9603bcb736b14a2389f727d9ad8689328a7d993cde1761448adb5378da
7
- data.tar.gz: 1e78c6da32be0c18670b0e6f61d1e21f02d51903e670c07df8a3627a7f51086e54167310b232371e91d06d09d3a0e0f7262de08ec56bdf99b5a827a28afcad9f
6
+ metadata.gz: aa165c50a85d40c45bb1a730a2284ff0974f68216f2385c2f063eeb9a778edb5e82968ca7d83f54dd015f527042b78b2690f1ab330dbfdf04b704e74fc93afdf
7
+ data.tar.gz: b7306040d31ad026f10990e569d08f0fc6ead31d2124b331d043cc1abf8ca9f8ca977e0e406edcb77e0a1b7b4b0aac3bf4f7d1cb0a2d3b8ecd0b6fa86b1eac3a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.43.0](https://github.com/knocklabs/knock-ruby/compare/v1.42.0...v1.43.0) (2026-10-19)
4
+
5
+
6
+ ### Features
7
+
8
+ * List users can now be sorted with the new order parameter (v0.1.1781) ([8c9a7f1](https://github.com/knocklabs/knock-ruby/commit/8c9a7f13bcfd0ddc39c5f99aeb08b3dc68eb297b))
9
+ * update api spec to v0.1.1757 ([cfb7fdc](https://github.com/knocklabs/knock-ruby/commit/cfb7fdc332b33ec609b7c6f98617c7403afb73dd))
10
+ * update api spec to v0.1.1759 ([0df4223](https://github.com/knocklabs/knock-ruby/commit/0df422360adf6690fab64ff6e8da2cdefaa28d8f))
11
+ * update api spec to v0.1.1760 ([608426f](https://github.com/knocklabs/knock-ruby/commit/608426f5ce331a9e45b324978d8e2df35afa2e3c))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * Messages now report branch path, and listUsers no longer accepts the order parameter (v0.1.1782) ([43415ec](https://github.com/knocklabs/knock-ruby/commit/43415ec87750332bc1d4226eec27191ef75b8ec6))
17
+
3
18
  ## [1.42.0](https://github.com/knocklabs/knock-ruby/compare/v1.41.0...v1.42.0) (2026-09-17)
4
19
 
5
20
 
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.42.0"
20
+ gem "knockapi", "~> 1.43.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -250,6 +250,16 @@ module Knockapi
250
250
  # @return [String]
251
251
  required :version_id, String
252
252
 
253
+ # @!attribute branch_path
254
+ # The branch ancestry of the step that generated the message, outermost first.
255
+ # Each segment is the branching step and the branch taken. Omitted when the step
256
+ # is not nested under a branch.
257
+ #
258
+ # @return [Array<Knockapi::Models::Message::Source::BranchPath>, nil]
259
+ optional :branch_path,
260
+ -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Message::Source::BranchPath] },
261
+ nil?: true
262
+
253
263
  # @!attribute step_ref
254
264
  # The step reference for the step in the workflow that generated the message.
255
265
  #
@@ -276,7 +286,7 @@ module Knockapi
276
286
  # @return [String, nil]
277
287
  optional :workflow_run_id, String, nil?: true
278
288
 
279
- # @!method initialize(_typename:, categories:, key:, version_id:, step_ref: nil, type: nil, workflow_recipient_run_id: nil, workflow_run_id: nil)
289
+ # @!method initialize(_typename:, categories:, key:, version_id:, branch_path: nil, step_ref: nil, type: nil, workflow_recipient_run_id: nil, workflow_run_id: nil)
280
290
  # Some parameter documentations has been truncated, see
281
291
  # {Knockapi::Models::Message::Source} for more details.
282
292
  #
@@ -290,6 +300,8 @@ module Knockapi
290
300
  #
291
301
  # @param version_id [String] The ID of the version of the workflow or guide that triggered the message.
292
302
  #
303
+ # @param branch_path [Array<Knockapi::Models::Message::Source::BranchPath>, nil] The branch ancestry of the step that generated the message, outermost first. Eac
304
+ #
293
305
  # @param step_ref [String, nil] The step reference for the step in the workflow that generated the message.
294
306
  #
295
307
  # @param type [Symbol, Knockapi::Models::Message::Source::Type] Whether this message was generated from a workflow, broadcast, or guide.
@@ -298,6 +310,33 @@ module Knockapi
298
310
  #
299
311
  # @param workflow_run_id [String, nil] The unique identifier for the workflow run that generated this message. Only pre
300
312
 
313
+ class BranchPath < Knockapi::Internal::Type::BaseModel
314
+ # @!attribute branch_id
315
+ # The ID of the branch taken.
316
+ #
317
+ # @return [String]
318
+ required :branch_id, String
319
+
320
+ # @!attribute step_ref
321
+ # The reference of the branching step.
322
+ #
323
+ # @return [String]
324
+ required :step_ref, String
325
+
326
+ # @!attribute step_type
327
+ # The type of the branching step.
328
+ #
329
+ # @return [String]
330
+ required :step_type, String
331
+
332
+ # @!method initialize(branch_id:, step_ref:, step_type:)
333
+ # @param branch_id [String] The ID of the branch taken.
334
+ #
335
+ # @param step_ref [String] The reference of the branching step.
336
+ #
337
+ # @param step_type [String] The type of the branching step.
338
+ end
339
+
301
340
  # Whether this message was generated from a workflow, broadcast, or guide.
302
341
  #
303
342
  # @see Knockapi::Models::Message::Source#type
@@ -29,7 +29,7 @@ module Knockapi
29
29
  # {Knockapi::Models::UserUpdateParams} for more details.
30
30
  #
31
31
  # Create or update a user with the provided identification data. When you identify
32
- # an existing user, the system merges the properties you specific with what is
32
+ # an existing user, the system merges the properties you specify with what is
33
33
  # currently set on the user, updating only the fields included in your requests.
34
34
  #
35
35
  # @overload update(user_id, avatar: nil, channel_data: nil, created_at: nil, email: nil, locale: nil, name: nil, phone_number: nil, preferences: nil, timezone: nil, request_options: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knockapi
4
- VERSION = "1.42.0"
4
+ VERSION = "1.43.0"
5
5
  end
@@ -324,6 +324,14 @@ module Knockapi
324
324
  sig { returns(String) }
325
325
  attr_accessor :version_id
326
326
 
327
+ # The branch ancestry of the step that generated the message, outermost first.
328
+ # Each segment is the branching step and the branch taken. Omitted when the step
329
+ # is not nested under a branch.
330
+ sig do
331
+ returns(T.nilable(T::Array[Knockapi::Message::Source::BranchPath]))
332
+ end
333
+ attr_accessor :branch_path
334
+
327
335
  # The step reference for the step in the workflow that generated the message.
328
336
  sig { returns(T.nilable(String)) }
329
337
  attr_accessor :step_ref
@@ -354,6 +362,10 @@ module Knockapi
354
362
  categories: T::Array[String],
355
363
  key: String,
356
364
  version_id: String,
365
+ branch_path:
366
+ T.nilable(
367
+ T::Array[Knockapi::Message::Source::BranchPath::OrHash]
368
+ ),
357
369
  step_ref: T.nilable(String),
358
370
  type: Knockapi::Message::Source::Type::OrSymbol,
359
371
  workflow_recipient_run_id: T.nilable(String),
@@ -368,6 +380,10 @@ module Knockapi
368
380
  key:,
369
381
  # The ID of the version of the workflow or guide that triggered the message.
370
382
  version_id:,
383
+ # The branch ancestry of the step that generated the message, outermost first.
384
+ # Each segment is the branching step and the branch taken. Omitted when the step
385
+ # is not nested under a branch.
386
+ branch_path: nil,
371
387
  # The step reference for the step in the workflow that generated the message.
372
388
  step_ref: nil,
373
389
  # Whether this message was generated from a workflow, broadcast, or guide.
@@ -388,6 +404,8 @@ module Knockapi
388
404
  categories: T::Array[String],
389
405
  key: String,
390
406
  version_id: String,
407
+ branch_path:
408
+ T.nilable(T::Array[Knockapi::Message::Source::BranchPath]),
391
409
  step_ref: T.nilable(String),
392
410
  type: Knockapi::Message::Source::Type::TaggedSymbol,
393
411
  workflow_recipient_run_id: T.nilable(String),
@@ -398,6 +416,53 @@ module Knockapi
398
416
  def to_hash
399
417
  end
400
418
 
419
+ class BranchPath < Knockapi::Internal::Type::BaseModel
420
+ OrHash =
421
+ T.type_alias do
422
+ T.any(
423
+ Knockapi::Message::Source::BranchPath,
424
+ Knockapi::Internal::AnyHash
425
+ )
426
+ end
427
+
428
+ # The ID of the branch taken.
429
+ sig { returns(String) }
430
+ attr_accessor :branch_id
431
+
432
+ # The reference of the branching step.
433
+ sig { returns(String) }
434
+ attr_accessor :step_ref
435
+
436
+ # The type of the branching step.
437
+ sig { returns(String) }
438
+ attr_accessor :step_type
439
+
440
+ sig do
441
+ params(
442
+ branch_id: String,
443
+ step_ref: String,
444
+ step_type: String
445
+ ).returns(T.attached_class)
446
+ end
447
+ def self.new(
448
+ # The ID of the branch taken.
449
+ branch_id:,
450
+ # The reference of the branching step.
451
+ step_ref:,
452
+ # The type of the branching step.
453
+ step_type:
454
+ )
455
+ end
456
+
457
+ sig do
458
+ override.returns(
459
+ { branch_id: String, step_ref: String, step_type: String }
460
+ )
461
+ end
462
+ def to_hash
463
+ end
464
+ end
465
+
401
466
  # Whether this message was generated from a workflow, broadcast, or guide.
402
467
  module Type
403
468
  extend Knockapi::Internal::Type::Enum
@@ -26,7 +26,7 @@ module Knockapi
26
26
  attr_reader :preference_center
27
27
 
28
28
  # Create or update a user with the provided identification data. When you identify
29
- # an existing user, the system merges the properties you specific with what is
29
+ # an existing user, the system merges the properties you specify with what is
30
30
  # currently set on the user, updating only the fields included in your requests.
31
31
  sig do
32
32
  params(
@@ -153,6 +153,7 @@ module Knockapi
153
153
  categories: ::Array[String],
154
154
  key: String,
155
155
  version_id: String,
156
+ branch_path: ::Array[Knockapi::Message::Source::BranchPath]?,
156
157
  step_ref: String?,
157
158
  type: Knockapi::Models::Message::Source::type_,
158
159
  workflow_recipient_run_id: String?,
@@ -168,6 +169,8 @@ module Knockapi
168
169
 
169
170
  attr_accessor version_id: String
170
171
 
172
+ attr_accessor branch_path: ::Array[Knockapi::Message::Source::BranchPath]?
173
+
171
174
  attr_accessor step_ref: String?
172
175
 
173
176
  attr_reader type: Knockapi::Models::Message::Source::type_?
@@ -185,6 +188,7 @@ module Knockapi
185
188
  categories: ::Array[String],
186
189
  key: String,
187
190
  version_id: String,
191
+ ?branch_path: ::Array[Knockapi::Message::Source::BranchPath]?,
188
192
  ?step_ref: String?,
189
193
  ?type: Knockapi::Models::Message::Source::type_,
190
194
  ?workflow_recipient_run_id: String?,
@@ -196,12 +200,36 @@ module Knockapi
196
200
  categories: ::Array[String],
197
201
  key: String,
198
202
  version_id: String,
203
+ branch_path: ::Array[Knockapi::Message::Source::BranchPath]?,
199
204
  step_ref: String?,
200
205
  type: Knockapi::Models::Message::Source::type_,
201
206
  workflow_recipient_run_id: String?,
202
207
  workflow_run_id: String?
203
208
  }
204
209
 
210
+ type branch_path =
211
+ { branch_id: String, step_ref: String, step_type: String }
212
+
213
+ class BranchPath < Knockapi::Internal::Type::BaseModel
214
+ attr_accessor branch_id: String
215
+
216
+ attr_accessor step_ref: String
217
+
218
+ attr_accessor step_type: String
219
+
220
+ def initialize: (
221
+ branch_id: String,
222
+ step_ref: String,
223
+ step_type: String
224
+ ) -> void
225
+
226
+ def to_hash: -> {
227
+ branch_id: String,
228
+ step_ref: String,
229
+ step_type: String
230
+ }
231
+ end
232
+
205
233
  type type_ = :broadcast | :workflow | :guide
206
234
 
207
235
  module Type
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.42.0
4
+ version: 1.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Knock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-30 00:00:00.000000000 Z
11
+ date: 2026-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi