knockapi 1.28.0 → 1.30.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: 64a442736b2460b038455a36525edbb82ed5c11e17e026aaa909ec0e6cb0a1f1
4
- data.tar.gz: e007cb42e465cfadcddac8988508d456bc260fe956adcc490a0d665f5b20c129
3
+ metadata.gz: 968b7c6cd1bcba26164014728aac65bd2adbd9ece73f8b98f2646cded91ebe4d
4
+ data.tar.gz: c0d80064448643c1041421596c5467f80d33f1e94e3b0876f5ecd39bad794023
5
5
  SHA512:
6
- metadata.gz: 1159248a48a06c4e456157b3a335bd71984979a2c4d5a5956f3eb6505a29653b01c5f35c768d04adb6285882e9b4f4a06d7d6760bb030d1e1174abc78e5b1f01
7
- data.tar.gz: 0ba8d28798f8222322b4fde1a681fa12d8650d3e236fec5f934a80ece6d9c731ff0348ec7a5a2719246e33b64a69b5bc34f075cf9e1312ff781fc1d9d87ddd9b
6
+ metadata.gz: 1ffa2a84f9650b45de08419cc9976a1679fca4cc0864785a40f5a3a98c73350178820282b755e3537e5e3f146e81e81dc442738bac78c9f69bb2b8296e06ac2d
7
+ data.tar.gz: 65cb415912b9e29467ea9c31f2f1f50bd946838b99353a73f8f33b9b4de5f5be6dbd6a6556843e516b71bff4b5c7320b364d5983853563e1750a440905c3aa40
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.30.0 (2026-01-29)
4
+
5
+ Full Changelog: [v1.29.0...v1.30.0](https://github.com/knocklabs/knock-ruby/compare/v1.29.0...v1.30.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([5082dcb](https://github.com/knocklabs/knock-ruby/commit/5082dcb9d09ef3a3bc3d496f94fd31ee018ac4ee))
10
+ * **api:** api update ([41c7881](https://github.com/knocklabs/knock-ruby/commit/41c78811817cdc595674b56381e396b8a5c6f96a))
11
+ * **api:** api update ([e4c9e2b](https://github.com/knocklabs/knock-ruby/commit/e4c9e2bbf5664f057addd6c2b8013c11de97f193))
12
+ * **api:** api update ([3ba6399](https://github.com/knocklabs/knock-ruby/commit/3ba63996dab0c2047a0e019a0bfd844513e0600f))
13
+ * **api:** api update ([3a1d05d](https://github.com/knocklabs/knock-ruby/commit/3a1d05d96b3dbf0abe14f9f4c58e2b16f2ffbbd0))
14
+
15
+ ## 1.29.0 (2026-01-23)
16
+
17
+ Full Changelog: [v1.28.0...v1.29.0](https://github.com/knocklabs/knock-ruby/compare/v1.28.0...v1.29.0)
18
+
19
+ ### Features
20
+
21
+ * **api:** api update ([bea8ceb](https://github.com/knocklabs/knock-ruby/commit/bea8cebbd2499815f0117dc68193e7b1cac3545e))
22
+
3
23
  ## 1.28.0 (2026-01-23)
4
24
 
5
25
  Full Changelog: [v1.27.0...v1.28.0](https://github.com/knocklabs/knock-ruby/compare/v1.27.0...v1.28.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.28.0"
20
+ gem "knockapi", "~> 1.30.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -20,10 +20,13 @@ module Knockapi
20
20
 
21
21
  class Member < Knockapi::Internal::Type::BaseModel
22
22
  # @!attribute user
23
- # An object containing the user's ID.
23
+ # A set of parameters to inline-identify a user with. Inline identifying the user
24
+ # will ensure that the user is available before the request is executed in Knock.
25
+ # It will perform an upsert for the user you're supplying, replacing any
26
+ # properties specified.
24
27
  #
25
- # @return [Knockapi::Models::AudienceAddMembersParams::Member::User]
26
- required :user, -> { Knockapi::AudienceAddMembersParams::Member::User }
28
+ # @return [Knockapi::Models::InlineIdentifyUserRequest]
29
+ required :user, -> { Knockapi::InlineIdentifyUserRequest }
27
30
 
28
31
  # @!attribute tenant
29
32
  # The unique identifier for the tenant.
@@ -32,25 +35,14 @@ module Knockapi
32
35
  optional :tenant, String, nil?: true
33
36
 
34
37
  # @!method initialize(user:, tenant: nil)
38
+ # Some parameter documentations has been truncated, see
39
+ # {Knockapi::Models::AudienceAddMembersParams::Member} for more details.
40
+ #
35
41
  # An audience member.
36
42
  #
37
- # @param user [Knockapi::Models::AudienceAddMembersParams::Member::User] An object containing the user's ID.
43
+ # @param user [Knockapi::Models::InlineIdentifyUserRequest] A set of parameters to inline-identify a user with. Inline identifying the user
38
44
  #
39
45
  # @param tenant [String, nil] The unique identifier for the tenant.
40
-
41
- # @see Knockapi::Models::AudienceAddMembersParams::Member#user
42
- class User < Knockapi::Internal::Type::BaseModel
43
- # @!attribute id
44
- # The unique identifier of the user.
45
- #
46
- # @return [String, nil]
47
- optional :id, String
48
-
49
- # @!method initialize(id: nil)
50
- # An object containing the user's ID.
51
- #
52
- # @param id [String] The unique identifier of the user.
53
- end
54
46
  end
55
47
  end
56
48
  end
@@ -20,10 +20,13 @@ module Knockapi
20
20
 
21
21
  class Member < Knockapi::Internal::Type::BaseModel
22
22
  # @!attribute user
23
- # An object containing the user's ID.
23
+ # A set of parameters to inline-identify a user with. Inline identifying the user
24
+ # will ensure that the user is available before the request is executed in Knock.
25
+ # It will perform an upsert for the user you're supplying, replacing any
26
+ # properties specified.
24
27
  #
25
- # @return [Knockapi::Models::AudienceRemoveMembersParams::Member::User]
26
- required :user, -> { Knockapi::AudienceRemoveMembersParams::Member::User }
28
+ # @return [Knockapi::Models::InlineIdentifyUserRequest]
29
+ required :user, -> { Knockapi::InlineIdentifyUserRequest }
27
30
 
28
31
  # @!attribute tenant
29
32
  # The unique identifier for the tenant.
@@ -32,25 +35,14 @@ module Knockapi
32
35
  optional :tenant, String, nil?: true
33
36
 
34
37
  # @!method initialize(user:, tenant: nil)
38
+ # Some parameter documentations has been truncated, see
39
+ # {Knockapi::Models::AudienceRemoveMembersParams::Member} for more details.
40
+ #
35
41
  # An audience member.
36
42
  #
37
- # @param user [Knockapi::Models::AudienceRemoveMembersParams::Member::User] An object containing the user's ID.
43
+ # @param user [Knockapi::Models::InlineIdentifyUserRequest] A set of parameters to inline-identify a user with. Inline identifying the user
38
44
  #
39
45
  # @param tenant [String, nil] The unique identifier for the tenant.
40
-
41
- # @see Knockapi::Models::AudienceRemoveMembersParams::Member#user
42
- class User < Knockapi::Internal::Type::BaseModel
43
- # @!attribute id
44
- # The unique identifier of the user.
45
- #
46
- # @return [String, nil]
47
- optional :id, String
48
-
49
- # @!method initialize(id: nil)
50
- # An object containing the user's ID.
51
- #
52
- # @param id [String] The unique identifier of the user.
53
- end
54
46
  end
55
47
  end
56
48
  end
@@ -164,10 +164,18 @@ module Knockapi
164
164
  # @return [String, nil]
165
165
  optional :pathname, String
166
166
 
167
- # @!method initialize(directive: nil, pathname: nil)
167
+ # @!attribute search
168
+ # The search query params to match
169
+ #
170
+ # @return [String, nil]
171
+ optional :search, String
172
+
173
+ # @!method initialize(directive: nil, pathname: nil, search: nil)
168
174
  # @param directive [String] The directive for the URL pattern ('allow' or 'block')
169
175
  #
170
176
  # @param pathname [String] The pathname pattern to match (supports wildcards like /\*)
177
+ #
178
+ # @param search [String] The search query params to match
171
179
  end
172
180
 
173
181
  class ActivationURLRule < Knockapi::Internal::Type::BaseModel
@@ -178,7 +186,7 @@ module Knockapi
178
186
  optional :argument, String
179
187
 
180
188
  # @!attribute directive
181
- # The directive for the URL pattern ('allow' or 'block')
189
+ # The directive for the URL rule ('allow' or 'block')
182
190
  #
183
191
  # @return [String, nil]
184
192
  optional :directive, String
@@ -198,7 +206,7 @@ module Knockapi
198
206
  # @!method initialize(argument: nil, directive: nil, operator: nil, variable: nil)
199
207
  # @param argument [String] The value to compare against
200
208
  #
201
- # @param directive [String] The directive for the URL pattern ('allow' or 'block')
209
+ # @param directive [String] The directive for the URL rule ('allow' or 'block')
202
210
  #
203
211
  # @param operator [String] The comparison operator ('contains' or 'equal_to')
204
212
  #
@@ -43,6 +43,9 @@ module Knockapi
43
43
  # along with a user token.
44
44
  # - This endpoint’s rate limit is always scoped per-user and per-environment. This
45
45
  # is true even for requests made without a signed user token.
46
+ # - Any [attachments](/integrations/email/attachments) present in trigger data are
47
+ # automatically excluded from both the `data` and `activities` fields of
48
+ # `UserInAppFeedResponse`.
46
49
  #
47
50
  # @overload list_items(user_id, id, after: nil, archived: nil, before: nil, has_tenant: nil, locale: nil, page_size: nil, source: nil, status: nil, tenant: nil, trigger_data: nil, workflow_categories: nil, request_options: {})
48
51
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Knockapi
4
- VERSION = "1.28.0"
4
+ VERSION = "1.30.0"
5
5
  end
@@ -48,15 +48,14 @@ module Knockapi
48
48
  )
49
49
  end
50
50
 
51
- # An object containing the user's ID.
52
- sig { returns(Knockapi::AudienceAddMembersParams::Member::User) }
51
+ # A set of parameters to inline-identify a user with. Inline identifying the user
52
+ # will ensure that the user is available before the request is executed in Knock.
53
+ # It will perform an upsert for the user you're supplying, replacing any
54
+ # properties specified.
55
+ sig { returns(Knockapi::InlineIdentifyUserRequest) }
53
56
  attr_reader :user
54
57
 
55
- sig do
56
- params(
57
- user: Knockapi::AudienceAddMembersParams::Member::User::OrHash
58
- ).void
59
- end
58
+ sig { params(user: Knockapi::InlineIdentifyUserRequest::OrHash).void }
60
59
  attr_writer :user
61
60
 
62
61
  # The unique identifier for the tenant.
@@ -66,12 +65,15 @@ module Knockapi
66
65
  # An audience member.
67
66
  sig do
68
67
  params(
69
- user: Knockapi::AudienceAddMembersParams::Member::User::OrHash,
68
+ user: Knockapi::InlineIdentifyUserRequest::OrHash,
70
69
  tenant: T.nilable(String)
71
70
  ).returns(T.attached_class)
72
71
  end
73
72
  def self.new(
74
- # An object containing the user's ID.
73
+ # A set of parameters to inline-identify a user with. Inline identifying the user
74
+ # will ensure that the user is available before the request is executed in Knock.
75
+ # It will perform an upsert for the user you're supplying, replacing any
76
+ # properties specified.
75
77
  user:,
76
78
  # The unique identifier for the tenant.
77
79
  tenant: nil
@@ -81,42 +83,13 @@ module Knockapi
81
83
  sig do
82
84
  override.returns(
83
85
  {
84
- user: Knockapi::AudienceAddMembersParams::Member::User,
86
+ user: Knockapi::InlineIdentifyUserRequest,
85
87
  tenant: T.nilable(String)
86
88
  }
87
89
  )
88
90
  end
89
91
  def to_hash
90
92
  end
91
-
92
- class User < Knockapi::Internal::Type::BaseModel
93
- OrHash =
94
- T.type_alias do
95
- T.any(
96
- Knockapi::AudienceAddMembersParams::Member::User,
97
- Knockapi::Internal::AnyHash
98
- )
99
- end
100
-
101
- # The unique identifier of the user.
102
- sig { returns(T.nilable(String)) }
103
- attr_reader :id
104
-
105
- sig { params(id: String).void }
106
- attr_writer :id
107
-
108
- # An object containing the user's ID.
109
- sig { params(id: String).returns(T.attached_class) }
110
- def self.new(
111
- # The unique identifier of the user.
112
- id: nil
113
- )
114
- end
115
-
116
- sig { override.returns({ id: String }) }
117
- def to_hash
118
- end
119
- end
120
93
  end
121
94
  end
122
95
  end
@@ -52,15 +52,14 @@ module Knockapi
52
52
  )
53
53
  end
54
54
 
55
- # An object containing the user's ID.
56
- sig { returns(Knockapi::AudienceRemoveMembersParams::Member::User) }
55
+ # A set of parameters to inline-identify a user with. Inline identifying the user
56
+ # will ensure that the user is available before the request is executed in Knock.
57
+ # It will perform an upsert for the user you're supplying, replacing any
58
+ # properties specified.
59
+ sig { returns(Knockapi::InlineIdentifyUserRequest) }
57
60
  attr_reader :user
58
61
 
59
- sig do
60
- params(
61
- user: Knockapi::AudienceRemoveMembersParams::Member::User::OrHash
62
- ).void
63
- end
62
+ sig { params(user: Knockapi::InlineIdentifyUserRequest::OrHash).void }
64
63
  attr_writer :user
65
64
 
66
65
  # The unique identifier for the tenant.
@@ -70,12 +69,15 @@ module Knockapi
70
69
  # An audience member.
71
70
  sig do
72
71
  params(
73
- user: Knockapi::AudienceRemoveMembersParams::Member::User::OrHash,
72
+ user: Knockapi::InlineIdentifyUserRequest::OrHash,
74
73
  tenant: T.nilable(String)
75
74
  ).returns(T.attached_class)
76
75
  end
77
76
  def self.new(
78
- # An object containing the user's ID.
77
+ # A set of parameters to inline-identify a user with. Inline identifying the user
78
+ # will ensure that the user is available before the request is executed in Knock.
79
+ # It will perform an upsert for the user you're supplying, replacing any
80
+ # properties specified.
79
81
  user:,
80
82
  # The unique identifier for the tenant.
81
83
  tenant: nil
@@ -85,42 +87,13 @@ module Knockapi
85
87
  sig do
86
88
  override.returns(
87
89
  {
88
- user: Knockapi::AudienceRemoveMembersParams::Member::User,
90
+ user: Knockapi::InlineIdentifyUserRequest,
89
91
  tenant: T.nilable(String)
90
92
  }
91
93
  )
92
94
  end
93
95
  def to_hash
94
96
  end
95
-
96
- class User < Knockapi::Internal::Type::BaseModel
97
- OrHash =
98
- T.type_alias do
99
- T.any(
100
- Knockapi::AudienceRemoveMembersParams::Member::User,
101
- Knockapi::Internal::AnyHash
102
- )
103
- end
104
-
105
- # The unique identifier of the user.
106
- sig { returns(T.nilable(String)) }
107
- attr_reader :id
108
-
109
- sig { params(id: String).void }
110
- attr_writer :id
111
-
112
- # An object containing the user's ID.
113
- sig { params(id: String).returns(T.attached_class) }
114
- def self.new(
115
- # The unique identifier of the user.
116
- id: nil
117
- )
118
- end
119
-
120
- sig { override.returns({ id: String }) }
121
- def to_hash
122
- end
123
- end
124
97
  end
125
98
  end
126
99
  end
@@ -343,20 +343,35 @@ module Knockapi
343
343
  sig { params(pathname: String).void }
344
344
  attr_writer :pathname
345
345
 
346
+ # The search query params to match
347
+ sig { returns(T.nilable(String)) }
348
+ attr_reader :search
349
+
350
+ sig { params(search: String).void }
351
+ attr_writer :search
352
+
346
353
  sig do
347
- params(directive: String, pathname: String).returns(
348
- T.attached_class
349
- )
354
+ params(
355
+ directive: String,
356
+ pathname: String,
357
+ search: String
358
+ ).returns(T.attached_class)
350
359
  end
351
360
  def self.new(
352
361
  # The directive for the URL pattern ('allow' or 'block')
353
362
  directive: nil,
354
363
  # The pathname pattern to match (supports wildcards like /\*)
355
- pathname: nil
364
+ pathname: nil,
365
+ # The search query params to match
366
+ search: nil
356
367
  )
357
368
  end
358
369
 
359
- sig { override.returns({ directive: String, pathname: String }) }
370
+ sig do
371
+ override.returns(
372
+ { directive: String, pathname: String, search: String }
373
+ )
374
+ end
360
375
  def to_hash
361
376
  end
362
377
  end
@@ -377,7 +392,7 @@ module Knockapi
377
392
  sig { params(argument: String).void }
378
393
  attr_writer :argument
379
394
 
380
- # The directive for the URL pattern ('allow' or 'block')
395
+ # The directive for the URL rule ('allow' or 'block')
381
396
  sig { returns(T.nilable(String)) }
382
397
  attr_reader :directive
383
398
 
@@ -409,7 +424,7 @@ module Knockapi
409
424
  def self.new(
410
425
  # The value to compare against
411
426
  argument: nil,
412
- # The directive for the URL pattern ('allow' or 'block')
427
+ # The directive for the URL rule ('allow' or 'block')
413
428
  directive: nil,
414
429
  # The comparison operator ('contains' or 'equal_to')
415
430
  operator: nil,
@@ -35,6 +35,9 @@ module Knockapi
35
35
  # along with a user token.
36
36
  # - This endpoint’s rate limit is always scoped per-user and per-environment. This
37
37
  # is true even for requests made without a signed user token.
38
+ # - Any [attachments](/integrations/email/attachments) present in trigger data are
39
+ # automatically excluded from both the `data` and `activities` fields of
40
+ # `UserInAppFeedResponse`.
38
41
  sig do
39
42
  params(
40
43
  user_id: String,
@@ -21,37 +21,22 @@ module Knockapi
21
21
  }
22
22
 
23
23
  type member =
24
- {
25
- user: Knockapi::AudienceAddMembersParams::Member::User,
26
- tenant: String?
27
- }
24
+ { user: Knockapi::InlineIdentifyUserRequest, tenant: String? }
28
25
 
29
26
  class Member < Knockapi::Internal::Type::BaseModel
30
- attr_accessor user: Knockapi::AudienceAddMembersParams::Member::User
27
+ attr_accessor user: Knockapi::InlineIdentifyUserRequest
31
28
 
32
29
  attr_accessor tenant: String?
33
30
 
34
31
  def initialize: (
35
- user: Knockapi::AudienceAddMembersParams::Member::User,
32
+ user: Knockapi::InlineIdentifyUserRequest,
36
33
  ?tenant: String?
37
34
  ) -> void
38
35
 
39
36
  def to_hash: -> {
40
- user: Knockapi::AudienceAddMembersParams::Member::User,
37
+ user: Knockapi::InlineIdentifyUserRequest,
41
38
  tenant: String?
42
39
  }
43
-
44
- type user = { id: String }
45
-
46
- class User < Knockapi::Internal::Type::BaseModel
47
- attr_reader id: String?
48
-
49
- def id=: (String) -> String
50
-
51
- def initialize: (?id: String) -> void
52
-
53
- def to_hash: -> { id: String }
54
- end
55
40
  end
56
41
  end
57
42
  end
@@ -21,37 +21,22 @@ module Knockapi
21
21
  }
22
22
 
23
23
  type member =
24
- {
25
- user: Knockapi::AudienceRemoveMembersParams::Member::User,
26
- tenant: String?
27
- }
24
+ { user: Knockapi::InlineIdentifyUserRequest, tenant: String? }
28
25
 
29
26
  class Member < Knockapi::Internal::Type::BaseModel
30
- attr_accessor user: Knockapi::AudienceRemoveMembersParams::Member::User
27
+ attr_accessor user: Knockapi::InlineIdentifyUserRequest
31
28
 
32
29
  attr_accessor tenant: String?
33
30
 
34
31
  def initialize: (
35
- user: Knockapi::AudienceRemoveMembersParams::Member::User,
32
+ user: Knockapi::InlineIdentifyUserRequest,
36
33
  ?tenant: String?
37
34
  ) -> void
38
35
 
39
36
  def to_hash: -> {
40
- user: Knockapi::AudienceRemoveMembersParams::Member::User,
37
+ user: Knockapi::InlineIdentifyUserRequest,
41
38
  tenant: String?
42
39
  }
43
-
44
- type user = { id: String }
45
-
46
- class User < Knockapi::Internal::Type::BaseModel
47
- attr_reader id: String?
48
-
49
- def id=: (String) -> String
50
-
51
- def initialize: (?id: String) -> void
52
-
53
- def to_hash: -> { id: String }
54
- end
55
40
  end
56
41
  end
57
42
  end
@@ -140,7 +140,8 @@ module Knockapi
140
140
  updated_at: Time
141
141
  }
142
142
 
143
- type activation_url_pattern = { directive: String, pathname: String }
143
+ type activation_url_pattern =
144
+ { directive: String, pathname: String, search: String }
144
145
 
145
146
  class ActivationURLPattern < Knockapi::Internal::Type::BaseModel
146
147
  attr_reader directive: String?
@@ -151,9 +152,21 @@ module Knockapi
151
152
 
152
153
  def pathname=: (String) -> String
153
154
 
154
- def initialize: (?directive: String, ?pathname: String) -> void
155
+ attr_reader search: String?
155
156
 
156
- def to_hash: -> { directive: String, pathname: String }
157
+ def search=: (String) -> String
158
+
159
+ def initialize: (
160
+ ?directive: String,
161
+ ?pathname: String,
162
+ ?search: String
163
+ ) -> void
164
+
165
+ def to_hash: -> {
166
+ directive: String,
167
+ pathname: String,
168
+ search: String
169
+ }
157
170
  end
158
171
 
159
172
  type activation_url_rule =
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.28.0
4
+ version: 1.30.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-01-23 00:00:00.000000000 Z
11
+ date: 2026-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi