knockapi 1.16.0 → 1.17.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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/knockapi/internal/transport/pooled_net_requester.rb +30 -24
  5. data/lib/knockapi/internal/util.rb +5 -5
  6. data/lib/knockapi/models/identify_user_request.rb +2 -2
  7. data/lib/knockapi/models/inline_identify_user_request.rb +2 -2
  8. data/lib/knockapi/models/inline_object_request.rb +2 -2
  9. data/lib/knockapi/models/message.rb +94 -3
  10. data/lib/knockapi/models/messages/batch_archive_response.rb +1 -1
  11. data/lib/knockapi/models/messages/batch_mark_as_interacted_response.rb +1 -1
  12. data/lib/knockapi/models/messages/batch_mark_as_read_response.rb +1 -1
  13. data/lib/knockapi/models/messages/batch_mark_as_seen_response.rb +1 -1
  14. data/lib/knockapi/models/messages/batch_mark_as_unread_response.rb +1 -1
  15. data/lib/knockapi/models/messages/batch_mark_as_unseen_response.rb +1 -1
  16. data/lib/knockapi/models/messages/batch_unarchive_response.rb +1 -1
  17. data/lib/knockapi/models/object_set_params.rb +2 -2
  18. data/lib/knockapi/models/objects/bulk_set_params.rb +2 -2
  19. data/lib/knockapi/models/recipients/channel_data.rb +133 -11
  20. data/lib/knockapi/models/recipients/channel_data_request.rb +36 -10
  21. data/lib/knockapi/models/recipients/inline_channel_data_request.rb +34 -8
  22. data/lib/knockapi/models/recipients/preference_set.rb +130 -3
  23. data/lib/knockapi/models/recipients/preference_set_request.rb +136 -3
  24. data/lib/knockapi/models/tenant_request.rb +2 -2
  25. data/lib/knockapi/models/tenant_set_params.rb +2 -2
  26. data/lib/knockapi/models/users/guide_get_channel_response.rb +270 -34
  27. data/lib/knockapi/resources/messages/batch.rb +7 -7
  28. data/lib/knockapi/resources/objects.rb +7 -3
  29. data/lib/knockapi/resources/tenants.rb +1 -1
  30. data/lib/knockapi/resources/users.rb +7 -3
  31. data/lib/knockapi/version.rb +1 -1
  32. data/lib/knockapi.rb +0 -2
  33. data/rbi/knockapi/models/identify_user_request.rbi +9 -9
  34. data/rbi/knockapi/models/inline_identify_user_request.rbi +9 -9
  35. data/rbi/knockapi/models/inline_object_request.rbi +9 -9
  36. data/rbi/knockapi/models/message.rbi +123 -2
  37. data/rbi/knockapi/models/messages/batch_archive_response.rbi +1 -1
  38. data/rbi/knockapi/models/messages/batch_mark_as_interacted_response.rbi +1 -1
  39. data/rbi/knockapi/models/messages/batch_mark_as_read_response.rbi +1 -1
  40. data/rbi/knockapi/models/messages/batch_mark_as_seen_response.rbi +1 -1
  41. data/rbi/knockapi/models/messages/batch_mark_as_unread_response.rbi +1 -1
  42. data/rbi/knockapi/models/messages/batch_mark_as_unseen_response.rbi +1 -1
  43. data/rbi/knockapi/models/messages/batch_unarchive_response.rbi +1 -1
  44. data/rbi/knockapi/models/object_set_params.rbi +12 -12
  45. data/rbi/knockapi/models/objects/bulk_set_params.rbi +9 -9
  46. data/rbi/knockapi/models/recipients/channel_data.rbi +250 -12
  47. data/rbi/knockapi/models/recipients/channel_data_request.rbi +68 -14
  48. data/rbi/knockapi/models/recipients/inline_channel_data_request.rbi +57 -5
  49. data/rbi/knockapi/models/recipients/preference_set.rbi +279 -0
  50. data/rbi/knockapi/models/recipients/preference_set_request.rbi +299 -0
  51. data/rbi/knockapi/models/tenant_request.rbi +9 -9
  52. data/rbi/knockapi/models/tenant_set_params.rbi +9 -9
  53. data/rbi/knockapi/models/users/guide_get_channel_response.rbi +532 -70
  54. data/rbi/knockapi/resources/messages/batch.rbi +7 -7
  55. data/rbi/knockapi/resources/objects.rbi +22 -6
  56. data/rbi/knockapi/resources/tenants.rbi +3 -3
  57. data/rbi/knockapi/resources/users.rbi +22 -6
  58. data/sig/knockapi/models/message.rbs +79 -0
  59. data/sig/knockapi/models/messages/batch_archive_response.rbs +1 -1
  60. data/sig/knockapi/models/messages/batch_mark_as_interacted_response.rbs +1 -2
  61. data/sig/knockapi/models/messages/batch_mark_as_read_response.rbs +1 -1
  62. data/sig/knockapi/models/messages/batch_mark_as_seen_response.rbs +1 -1
  63. data/sig/knockapi/models/messages/batch_mark_as_unread_response.rbs +1 -1
  64. data/sig/knockapi/models/messages/batch_mark_as_unseen_response.rbs +1 -1
  65. data/sig/knockapi/models/messages/batch_unarchive_response.rbs +1 -1
  66. data/sig/knockapi/models/recipients/channel_data.rbs +97 -7
  67. data/sig/knockapi/models/recipients/channel_data_request.rbs +27 -5
  68. data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +27 -5
  69. data/sig/knockapi/models/recipients/preference_set.rbs +87 -0
  70. data/sig/knockapi/models/recipients/preference_set_request.rbs +87 -0
  71. data/sig/knockapi/models/users/guide_get_channel_response.rbs +294 -31
  72. data/sig/knockapi/resources/objects.rbs +2 -0
  73. data/sig/knockapi/resources/users.rbs +2 -0
  74. metadata +2 -8
  75. data/lib/knockapi/models/recipients/one_signal_channel_data.rb +0 -20
  76. data/lib/knockapi/models/recipients/push_channel_data.rb +0 -20
  77. data/rbi/knockapi/models/recipients/one_signal_channel_data.rbi +0 -33
  78. data/rbi/knockapi/models/recipients/push_channel_data.rbi +0 -33
  79. data/sig/knockapi/models/recipients/one_signal_channel_data.rbs +0 -15
  80. data/sig/knockapi/models/recipients/push_channel_data.rbs +0 -15
@@ -3,82 +3,345 @@ module Knockapi
3
3
  module Users
4
4
  type guide_get_channel_response =
5
5
  {
6
- guides: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Guide],
7
- recipient: Knockapi::Models::Users::GuideGetChannelResponse::Recipient?
6
+ entries: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry],
7
+ guide_group_display_logs: ::Hash[Symbol, Time],
8
+ guide_groups: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::GuideGroup]
8
9
  }
9
10
 
10
11
  class GuideGetChannelResponse < Knockapi::Internal::Type::BaseModel
11
- attr_accessor guides: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Guide]
12
+ attr_accessor entries: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry]
12
13
 
13
- attr_accessor recipient: Knockapi::Models::Users::GuideGetChannelResponse::Recipient?
14
+ attr_accessor guide_group_display_logs: ::Hash[Symbol, Time]
15
+
16
+ attr_accessor guide_groups: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::GuideGroup]
14
17
 
15
18
  def initialize: (
16
- guides: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Guide],
17
- ?recipient: Knockapi::Models::Users::GuideGetChannelResponse::Recipient?
19
+ entries: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry],
20
+ guide_group_display_logs: ::Hash[Symbol, Time],
21
+ guide_groups: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::GuideGroup]
18
22
  ) -> void
19
23
 
20
24
  def to_hash: -> {
21
- guides: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Guide],
22
- recipient: Knockapi::Models::Users::GuideGetChannelResponse::Recipient?
25
+ entries: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry],
26
+ guide_group_display_logs: ::Hash[Symbol, Time],
27
+ guide_groups: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::GuideGroup]
23
28
  }
24
29
 
25
- type guide =
30
+ type entry =
26
31
  {
27
32
  id: String,
33
+ _typename: String,
34
+ activation_url_patterns: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLPattern],
35
+ activation_url_rules: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLRule],
28
36
  active: bool,
29
- content: String,
30
- metadata: ::Hash[Symbol, top],
31
- title: String
37
+ bypass_global_group_limit: bool,
38
+ channel_id: String,
39
+ inserted_at: Time,
40
+ key: String,
41
+ semver: String,
42
+ steps: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step],
43
+ type: String,
44
+ updated_at: Time
32
45
  }
33
46
 
34
- class Guide < Knockapi::Internal::Type::BaseModel
47
+ class Entry < Knockapi::Internal::Type::BaseModel
35
48
  attr_reader id: String?
36
49
 
37
50
  def id=: (String) -> String
38
51
 
52
+ attr_reader _typename: String?
53
+
54
+ def _typename=: (String) -> String
55
+
56
+ attr_reader activation_url_patterns: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLPattern]?
57
+
58
+ def activation_url_patterns=: (
59
+ ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLPattern]
60
+ ) -> ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLPattern]
61
+
62
+ attr_reader activation_url_rules: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLRule]?
63
+
64
+ def activation_url_rules=: (
65
+ ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLRule]
66
+ ) -> ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLRule]
67
+
39
68
  attr_reader active: bool?
40
69
 
41
70
  def active=: (bool) -> bool
42
71
 
43
- attr_reader content: String?
72
+ attr_reader bypass_global_group_limit: bool?
73
+
74
+ def bypass_global_group_limit=: (bool) -> bool
75
+
76
+ attr_reader channel_id: String?
77
+
78
+ def channel_id=: (String) -> String
44
79
 
45
- def content=: (String) -> String
80
+ attr_reader inserted_at: Time?
46
81
 
47
- attr_reader metadata: ::Hash[Symbol, top]?
82
+ def inserted_at=: (Time) -> Time
48
83
 
49
- def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
84
+ attr_reader key: String?
50
85
 
51
- attr_reader title: String?
86
+ def key=: (String) -> String
52
87
 
53
- def title=: (String) -> String
88
+ attr_reader semver: String?
89
+
90
+ def semver=: (String) -> String
91
+
92
+ attr_reader steps: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step]?
93
+
94
+ def steps=: (
95
+ ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step]
96
+ ) -> ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step]
97
+
98
+ attr_reader type: String?
99
+
100
+ def type=: (String) -> String
101
+
102
+ attr_reader updated_at: Time?
103
+
104
+ def updated_at=: (Time) -> Time
54
105
 
55
106
  def initialize: (
56
107
  ?id: String,
108
+ ?_typename: String,
109
+ ?activation_url_patterns: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLPattern],
110
+ ?activation_url_rules: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLRule],
57
111
  ?active: bool,
58
- ?content: String,
59
- ?metadata: ::Hash[Symbol, top],
60
- ?title: String
112
+ ?bypass_global_group_limit: bool,
113
+ ?channel_id: String,
114
+ ?inserted_at: Time,
115
+ ?key: String,
116
+ ?semver: String,
117
+ ?steps: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step],
118
+ ?type: String,
119
+ ?updated_at: Time
61
120
  ) -> void
62
121
 
63
122
  def to_hash: -> {
64
123
  id: String,
124
+ _typename: String,
125
+ activation_url_patterns: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLPattern],
126
+ activation_url_rules: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::ActivationURLRule],
65
127
  active: bool,
66
- content: String,
67
- metadata: ::Hash[Symbol, top],
68
- title: String
128
+ bypass_global_group_limit: bool,
129
+ channel_id: String,
130
+ inserted_at: Time,
131
+ key: String,
132
+ semver: String,
133
+ steps: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step],
134
+ type: String,
135
+ updated_at: Time
69
136
  }
137
+
138
+ type activation_url_pattern = { directive: String, pathname: String }
139
+
140
+ class ActivationURLPattern < Knockapi::Internal::Type::BaseModel
141
+ attr_reader directive: String?
142
+
143
+ def directive=: (String) -> String
144
+
145
+ attr_reader pathname: String?
146
+
147
+ def pathname=: (String) -> String
148
+
149
+ def initialize: (?directive: String, ?pathname: String) -> void
150
+
151
+ def to_hash: -> { directive: String, pathname: String }
152
+ end
153
+
154
+ type activation_url_rule =
155
+ {
156
+ argument: String,
157
+ directive: String,
158
+ operator: String,
159
+ variable: String
160
+ }
161
+
162
+ class ActivationURLRule < Knockapi::Internal::Type::BaseModel
163
+ attr_reader argument: String?
164
+
165
+ def argument=: (String) -> String
166
+
167
+ attr_reader directive: String?
168
+
169
+ def directive=: (String) -> String
170
+
171
+ attr_reader operator: String?
172
+
173
+ def operator=: (String) -> String
174
+
175
+ attr_reader variable: String?
176
+
177
+ def variable=: (String) -> String
178
+
179
+ def initialize: (
180
+ ?argument: String,
181
+ ?directive: String,
182
+ ?operator: String,
183
+ ?variable: String
184
+ ) -> void
185
+
186
+ def to_hash: -> {
187
+ argument: String,
188
+ directive: String,
189
+ operator: String,
190
+ variable: String
191
+ }
192
+ end
193
+
194
+ type step =
195
+ {
196
+ content: ::Hash[Symbol, top],
197
+ message: Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step::Message,
198
+ ref: String,
199
+ schema_key: String,
200
+ schema_semver: String,
201
+ schema_variant_key: String
202
+ }
203
+
204
+ class Step < Knockapi::Internal::Type::BaseModel
205
+ attr_reader content: ::Hash[Symbol, top]?
206
+
207
+ def content=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
208
+
209
+ attr_reader message: Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step::Message?
210
+
211
+ def message=: (
212
+ Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step::Message
213
+ ) -> Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step::Message
214
+
215
+ attr_reader ref: String?
216
+
217
+ def ref=: (String) -> String
218
+
219
+ attr_reader schema_key: String?
220
+
221
+ def schema_key=: (String) -> String
222
+
223
+ attr_reader schema_semver: String?
224
+
225
+ def schema_semver=: (String) -> String
226
+
227
+ attr_reader schema_variant_key: String?
228
+
229
+ def schema_variant_key=: (String) -> String
230
+
231
+ def initialize: (
232
+ ?content: ::Hash[Symbol, top],
233
+ ?message: Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step::Message,
234
+ ?ref: String,
235
+ ?schema_key: String,
236
+ ?schema_semver: String,
237
+ ?schema_variant_key: String
238
+ ) -> void
239
+
240
+ def to_hash: -> {
241
+ content: ::Hash[Symbol, top],
242
+ message: Knockapi::Models::Users::GuideGetChannelResponse::Entry::Step::Message,
243
+ ref: String,
244
+ schema_key: String,
245
+ schema_semver: String,
246
+ schema_variant_key: String
247
+ }
248
+
249
+ type message =
250
+ {
251
+ id: String?,
252
+ archived_at: Time?,
253
+ interacted_at: Time?,
254
+ link_clicked_at: Time?,
255
+ read_at: Time?,
256
+ seen_at: Time?
257
+ }
258
+
259
+ class Message < Knockapi::Internal::Type::BaseModel
260
+ attr_accessor id: String?
261
+
262
+ attr_accessor archived_at: Time?
263
+
264
+ attr_accessor interacted_at: Time?
265
+
266
+ attr_accessor link_clicked_at: Time?
267
+
268
+ attr_accessor read_at: Time?
269
+
270
+ attr_accessor seen_at: Time?
271
+
272
+ def initialize: (
273
+ ?id: String?,
274
+ ?archived_at: Time?,
275
+ ?interacted_at: Time?,
276
+ ?link_clicked_at: Time?,
277
+ ?read_at: Time?,
278
+ ?seen_at: Time?
279
+ ) -> void
280
+
281
+ def to_hash: -> {
282
+ id: String?,
283
+ archived_at: Time?,
284
+ interacted_at: Time?,
285
+ link_clicked_at: Time?,
286
+ read_at: Time?,
287
+ seen_at: Time?
288
+ }
289
+ end
290
+ end
70
291
  end
71
292
 
72
- type recipient = { id: String }
293
+ type guide_group =
294
+ {
295
+ _typename: String,
296
+ display_interval: Integer,
297
+ display_sequence: ::Array[String],
298
+ inserted_at: Time,
299
+ key: String,
300
+ updated_at: Time
301
+ }
73
302
 
74
- class Recipient < Knockapi::Internal::Type::BaseModel
75
- attr_reader id: String?
303
+ class GuideGroup < Knockapi::Internal::Type::BaseModel
304
+ attr_reader _typename: String?
76
305
 
77
- def id=: (String) -> String
306
+ def _typename=: (String) -> String
307
+
308
+ attr_reader display_interval: Integer?
309
+
310
+ def display_interval=: (Integer) -> Integer
311
+
312
+ attr_reader display_sequence: ::Array[String]?
313
+
314
+ def display_sequence=: (::Array[String]) -> ::Array[String]
315
+
316
+ attr_reader inserted_at: Time?
78
317
 
79
- def initialize: (?id: String) -> void
318
+ def inserted_at=: (Time) -> Time
80
319
 
81
- def to_hash: -> { id: String }
320
+ attr_reader key: String?
321
+
322
+ def key=: (String) -> String
323
+
324
+ attr_reader updated_at: Time?
325
+
326
+ def updated_at=: (Time) -> Time
327
+
328
+ def initialize: (
329
+ ?_typename: String,
330
+ ?display_interval: Integer,
331
+ ?display_sequence: ::Array[String],
332
+ ?inserted_at: Time,
333
+ ?key: String,
334
+ ?updated_at: Time
335
+ ) -> void
336
+
337
+ def to_hash: -> {
338
+ _typename: String,
339
+ display_interval: Integer,
340
+ display_sequence: ::Array[String],
341
+ inserted_at: Time,
342
+ key: String,
343
+ updated_at: Time
344
+ }
82
345
  end
83
346
  end
84
347
  end
@@ -128,6 +128,8 @@ module Knockapi
128
128
  ?_persistence_strategy: Knockapi::Models::Recipients::PreferenceSetRequest::persistence_strategy,
129
129
  ?categories: ::Hash[Symbol, Knockapi::Models::Recipients::PreferenceSetRequest::category]?,
130
130
  ?channel_types: Knockapi::Recipients::PreferenceSetChannelTypes?,
131
+ ?channels: ::Hash[Symbol, Knockapi::Models::Recipients::PreferenceSetRequest::channel]?,
132
+ ?commercial_subscribed: bool?,
131
133
  ?workflows: ::Hash[Symbol, Knockapi::Models::Recipients::PreferenceSetRequest::workflow]?,
132
134
  ?request_options: Knockapi::request_opts
133
135
  ) -> Knockapi::Recipients::PreferenceSet
@@ -115,6 +115,8 @@ module Knockapi
115
115
  ?_persistence_strategy: Knockapi::Models::Recipients::PreferenceSetRequest::persistence_strategy,
116
116
  ?categories: ::Hash[Symbol, Knockapi::Models::Recipients::PreferenceSetRequest::category]?,
117
117
  ?channel_types: Knockapi::Recipients::PreferenceSetChannelTypes?,
118
+ ?channels: ::Hash[Symbol, Knockapi::Models::Recipients::PreferenceSetRequest::channel]?,
119
+ ?commercial_subscribed: bool?,
118
120
  ?workflows: ::Hash[Symbol, Knockapi::Models::Recipients::PreferenceSetRequest::workflow]?,
119
121
  ?request_options: Knockapi::request_opts
120
122
  ) -> Knockapi::Recipients::PreferenceSet
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.16.0
4
+ version: 1.17.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-10-07 00:00:00.000000000 Z
11
+ date: 2025-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -156,12 +156,10 @@ files:
156
156
  - lib/knockapi/models/recipients/inline_channel_data_request.rb
157
157
  - lib/knockapi/models/recipients/inline_preference_set_request.rb
158
158
  - lib/knockapi/models/recipients/ms_teams_channel_data.rb
159
- - lib/knockapi/models/recipients/one_signal_channel_data.rb
160
159
  - lib/knockapi/models/recipients/preference_set.rb
161
160
  - lib/knockapi/models/recipients/preference_set_channel_type_setting.rb
162
161
  - lib/knockapi/models/recipients/preference_set_channel_types.rb
163
162
  - lib/knockapi/models/recipients/preference_set_request.rb
164
- - lib/knockapi/models/recipients/push_channel_data.rb
165
163
  - lib/knockapi/models/recipients/slack_channel_data.rb
166
164
  - lib/knockapi/models/recipients/subscription.rb
167
165
  - lib/knockapi/models/schedule.rb
@@ -366,12 +364,10 @@ files:
366
364
  - rbi/knockapi/models/recipients/inline_channel_data_request.rbi
367
365
  - rbi/knockapi/models/recipients/inline_preference_set_request.rbi
368
366
  - rbi/knockapi/models/recipients/ms_teams_channel_data.rbi
369
- - rbi/knockapi/models/recipients/one_signal_channel_data.rbi
370
367
  - rbi/knockapi/models/recipients/preference_set.rbi
371
368
  - rbi/knockapi/models/recipients/preference_set_channel_type_setting.rbi
372
369
  - rbi/knockapi/models/recipients/preference_set_channel_types.rbi
373
370
  - rbi/knockapi/models/recipients/preference_set_request.rbi
374
- - rbi/knockapi/models/recipients/push_channel_data.rbi
375
371
  - rbi/knockapi/models/recipients/slack_channel_data.rbi
376
372
  - rbi/knockapi/models/recipients/subscription.rbi
377
373
  - rbi/knockapi/models/schedule.rbi
@@ -575,12 +571,10 @@ files:
575
571
  - sig/knockapi/models/recipients/inline_channel_data_request.rbs
576
572
  - sig/knockapi/models/recipients/inline_preference_set_request.rbs
577
573
  - sig/knockapi/models/recipients/ms_teams_channel_data.rbs
578
- - sig/knockapi/models/recipients/one_signal_channel_data.rbs
579
574
  - sig/knockapi/models/recipients/preference_set.rbs
580
575
  - sig/knockapi/models/recipients/preference_set_channel_type_setting.rbs
581
576
  - sig/knockapi/models/recipients/preference_set_channel_types.rbs
582
577
  - sig/knockapi/models/recipients/preference_set_request.rbs
583
- - sig/knockapi/models/recipients/push_channel_data.rbs
584
578
  - sig/knockapi/models/recipients/slack_channel_data.rbs
585
579
  - sig/knockapi/models/recipients/subscription.rbs
586
580
  - sig/knockapi/models/schedule.rbs
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Knockapi
4
- module Models
5
- module Recipients
6
- class OneSignalChannelData < Knockapi::Internal::Type::BaseModel
7
- # @!attribute player_ids
8
- # A list of OneSignal player IDs.
9
- #
10
- # @return [Array<String>]
11
- required :player_ids, Knockapi::Internal::Type::ArrayOf[String]
12
-
13
- # @!method initialize(player_ids:)
14
- # OneSignal channel data.
15
- #
16
- # @param player_ids [Array<String>] A list of OneSignal player IDs.
17
- end
18
- end
19
- end
20
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Knockapi
4
- module Models
5
- module Recipients
6
- class PushChannelData < Knockapi::Internal::Type::BaseModel
7
- # @!attribute tokens
8
- # A list of push channel tokens.
9
- #
10
- # @return [Array<String>]
11
- required :tokens, Knockapi::Internal::Type::ArrayOf[String]
12
-
13
- # @!method initialize(tokens:)
14
- # Push channel data.
15
- #
16
- # @param tokens [Array<String>] A list of push channel tokens.
17
- end
18
- end
19
- end
20
- end
@@ -1,33 +0,0 @@
1
- # typed: strong
2
-
3
- module Knockapi
4
- module Models
5
- module Recipients
6
- class OneSignalChannelData < Knockapi::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Knockapi::Recipients::OneSignalChannelData,
11
- Knockapi::Internal::AnyHash
12
- )
13
- end
14
-
15
- # A list of OneSignal player IDs.
16
- sig { returns(T::Array[String]) }
17
- attr_accessor :player_ids
18
-
19
- # OneSignal channel data.
20
- sig { params(player_ids: T::Array[String]).returns(T.attached_class) }
21
- def self.new(
22
- # A list of OneSignal player IDs.
23
- player_ids:
24
- )
25
- end
26
-
27
- sig { override.returns({ player_ids: T::Array[String] }) }
28
- def to_hash
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,33 +0,0 @@
1
- # typed: strong
2
-
3
- module Knockapi
4
- module Models
5
- module Recipients
6
- class PushChannelData < Knockapi::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Knockapi::Recipients::PushChannelData,
11
- Knockapi::Internal::AnyHash
12
- )
13
- end
14
-
15
- # A list of push channel tokens.
16
- sig { returns(T::Array[String]) }
17
- attr_accessor :tokens
18
-
19
- # Push channel data.
20
- sig { params(tokens: T::Array[String]).returns(T.attached_class) }
21
- def self.new(
22
- # A list of push channel tokens.
23
- tokens:
24
- )
25
- end
26
-
27
- sig { override.returns({ tokens: T::Array[String] }) }
28
- def to_hash
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,15 +0,0 @@
1
- module Knockapi
2
- module Models
3
- module Recipients
4
- type one_signal_channel_data = { player_ids: ::Array[String] }
5
-
6
- class OneSignalChannelData < Knockapi::Internal::Type::BaseModel
7
- attr_accessor player_ids: ::Array[String]
8
-
9
- def initialize: (player_ids: ::Array[String]) -> void
10
-
11
- def to_hash: -> { player_ids: ::Array[String] }
12
- end
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- module Knockapi
2
- module Models
3
- module Recipients
4
- type push_channel_data = { tokens: ::Array[String] }
5
-
6
- class PushChannelData < Knockapi::Internal::Type::BaseModel
7
- attr_accessor tokens: ::Array[String]
8
-
9
- def initialize: (tokens: ::Array[String]) -> void
10
-
11
- def to_hash: -> { tokens: ::Array[String] }
12
- end
13
- end
14
- end
15
- end