knockapi 1.15.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +55 -0
- data/README.md +1 -1
- data/lib/knockapi/client.rb +0 -4
- data/lib/knockapi/file_part.rb +10 -7
- data/lib/knockapi/internal/transport/pooled_net_requester.rb +34 -31
- data/lib/knockapi/internal/type/file_input.rb +7 -4
- data/lib/knockapi/internal/util.rb +7 -6
- data/lib/knockapi/models/audience_add_members_params.rb +2 -2
- data/lib/knockapi/models/identify_user_request.rb +2 -2
- data/lib/knockapi/models/inline_identify_user_request.rb +2 -2
- data/lib/knockapi/models/inline_object_request.rb +2 -2
- data/lib/knockapi/models/message.rb +124 -11
- data/lib/knockapi/models/messages/batch_archive_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_interacted_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_read_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_seen_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_unread_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_mark_as_unseen_response.rb +1 -1
- data/lib/knockapi/models/messages/batch_unarchive_response.rb +1 -1
- data/lib/knockapi/models/object_set_params.rb +2 -2
- data/lib/knockapi/models/objects/bulk_set_params.rb +2 -2
- data/lib/knockapi/models/recipients/channel_data.rb +133 -11
- data/lib/knockapi/models/recipients/channel_data_request.rb +36 -10
- data/lib/knockapi/models/recipients/inline_channel_data_request.rb +34 -8
- data/lib/knockapi/models/recipients/preference_set.rb +130 -3
- data/lib/knockapi/models/recipients/preference_set_request.rb +136 -3
- data/lib/knockapi/models/tenant_request.rb +2 -2
- data/lib/knockapi/models/tenant_set_params.rb +2 -2
- data/lib/knockapi/models/users/guide_get_channel_response.rb +270 -34
- data/lib/knockapi/resources/audiences.rb +1 -1
- data/lib/knockapi/resources/messages/batch.rb +7 -7
- data/lib/knockapi/resources/objects.rb +7 -3
- data/lib/knockapi/resources/tenants/bulk.rb +3 -2
- data/lib/knockapi/resources/tenants.rb +1 -1
- data/lib/knockapi/resources/users.rb +7 -3
- data/lib/knockapi/version.rb +1 -1
- data/lib/knockapi.rb +0 -3
- data/rbi/knockapi/client.rbi +0 -3
- data/rbi/knockapi/file_part.rbi +1 -1
- data/rbi/knockapi/models/audience_add_members_params.rbi +2 -2
- data/rbi/knockapi/models/identify_user_request.rbi +9 -9
- data/rbi/knockapi/models/inline_identify_user_request.rbi +9 -9
- data/rbi/knockapi/models/inline_object_request.rbi +9 -9
- data/rbi/knockapi/models/message.rbi +169 -12
- data/rbi/knockapi/models/messages/batch_archive_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_interacted_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_read_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_seen_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_unread_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_mark_as_unseen_response.rbi +1 -1
- data/rbi/knockapi/models/messages/batch_unarchive_response.rbi +1 -1
- data/rbi/knockapi/models/object_set_params.rbi +12 -12
- data/rbi/knockapi/models/objects/bulk_set_params.rbi +9 -9
- data/rbi/knockapi/models/recipients/channel_data.rbi +250 -12
- data/rbi/knockapi/models/recipients/channel_data_request.rbi +68 -14
- data/rbi/knockapi/models/recipients/inline_channel_data_request.rbi +57 -5
- data/rbi/knockapi/models/recipients/preference_set.rbi +279 -0
- data/rbi/knockapi/models/recipients/preference_set_request.rbi +299 -0
- data/rbi/knockapi/models/tenant_request.rbi +9 -9
- data/rbi/knockapi/models/tenant_set_params.rbi +9 -9
- data/rbi/knockapi/models/users/guide_get_channel_response.rbi +532 -70
- data/rbi/knockapi/resources/audiences.rbi +1 -1
- data/rbi/knockapi/resources/messages/batch.rbi +7 -7
- data/rbi/knockapi/resources/objects.rbi +22 -6
- data/rbi/knockapi/resources/tenants/bulk.rbi +3 -2
- data/rbi/knockapi/resources/tenants.rbi +3 -3
- data/rbi/knockapi/resources/users.rbi +22 -6
- data/sig/knockapi/client.rbs +0 -2
- data/sig/knockapi/file_part.rbs +1 -1
- data/sig/knockapi/models/message.rbs +103 -3
- data/sig/knockapi/models/messages/batch_archive_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_interacted_response.rbs +1 -2
- data/sig/knockapi/models/messages/batch_mark_as_read_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_seen_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_unread_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_mark_as_unseen_response.rbs +1 -1
- data/sig/knockapi/models/messages/batch_unarchive_response.rbs +1 -1
- data/sig/knockapi/models/recipients/channel_data.rbs +97 -7
- data/sig/knockapi/models/recipients/channel_data_request.rbs +27 -5
- data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +27 -5
- data/sig/knockapi/models/recipients/preference_set.rbs +87 -0
- data/sig/knockapi/models/recipients/preference_set_request.rbs +87 -0
- data/sig/knockapi/models/users/guide_get_channel_response.rbs +294 -31
- data/sig/knockapi/resources/objects.rbs +2 -0
- data/sig/knockapi/resources/users.rbs +2 -0
- metadata +2 -11
- data/lib/knockapi/models/recipients/one_signal_channel_data.rb +0 -20
- data/lib/knockapi/models/recipients/push_channel_data.rb +0 -20
- data/lib/knockapi/resources/shared.rb +0 -14
- data/rbi/knockapi/models/recipients/one_signal_channel_data.rbi +0 -33
- data/rbi/knockapi/models/recipients/push_channel_data.rbi +0 -33
- data/rbi/knockapi/resources/shared.rbi +0 -12
- data/sig/knockapi/models/recipients/one_signal_channel_data.rbs +0 -15
- data/sig/knockapi/models/recipients/push_channel_data.rbs +0 -15
- data/sig/knockapi/resources/shared.rbs +0 -7
|
@@ -3,82 +3,345 @@ module Knockapi
|
|
|
3
3
|
module Users
|
|
4
4
|
type guide_get_channel_response =
|
|
5
5
|
{
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
12
|
+
attr_accessor entries: ::Array[Knockapi::Models::Users::GuideGetChannelResponse::Entry]
|
|
12
13
|
|
|
13
|
-
attr_accessor
|
|
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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
80
|
+
attr_reader inserted_at: Time?
|
|
46
81
|
|
|
47
|
-
|
|
82
|
+
def inserted_at=: (Time) -> Time
|
|
48
83
|
|
|
49
|
-
|
|
84
|
+
attr_reader key: String?
|
|
50
85
|
|
|
51
|
-
|
|
86
|
+
def key=: (String) -> String
|
|
52
87
|
|
|
53
|
-
|
|
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
|
-
?
|
|
59
|
-
?
|
|
60
|
-
?
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
|
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
|
|
75
|
-
attr_reader
|
|
303
|
+
class GuideGroup < Knockapi::Internal::Type::BaseModel
|
|
304
|
+
attr_reader _typename: String?
|
|
76
305
|
|
|
77
|
-
def
|
|
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
|
|
318
|
+
def inserted_at=: (Time) -> Time
|
|
80
319
|
|
|
81
|
-
|
|
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.
|
|
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-
|
|
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
|
|
@@ -237,7 +235,6 @@ files:
|
|
|
237
235
|
- lib/knockapi/resources/recipients/subscriptions.rb
|
|
238
236
|
- lib/knockapi/resources/schedules.rb
|
|
239
237
|
- lib/knockapi/resources/schedules/bulk.rb
|
|
240
|
-
- lib/knockapi/resources/shared.rb
|
|
241
238
|
- lib/knockapi/resources/tenants.rb
|
|
242
239
|
- lib/knockapi/resources/tenants/bulk.rb
|
|
243
240
|
- lib/knockapi/resources/users.rb
|
|
@@ -367,12 +364,10 @@ files:
|
|
|
367
364
|
- rbi/knockapi/models/recipients/inline_channel_data_request.rbi
|
|
368
365
|
- rbi/knockapi/models/recipients/inline_preference_set_request.rbi
|
|
369
366
|
- rbi/knockapi/models/recipients/ms_teams_channel_data.rbi
|
|
370
|
-
- rbi/knockapi/models/recipients/one_signal_channel_data.rbi
|
|
371
367
|
- rbi/knockapi/models/recipients/preference_set.rbi
|
|
372
368
|
- rbi/knockapi/models/recipients/preference_set_channel_type_setting.rbi
|
|
373
369
|
- rbi/knockapi/models/recipients/preference_set_channel_types.rbi
|
|
374
370
|
- rbi/knockapi/models/recipients/preference_set_request.rbi
|
|
375
|
-
- rbi/knockapi/models/recipients/push_channel_data.rbi
|
|
376
371
|
- rbi/knockapi/models/recipients/slack_channel_data.rbi
|
|
377
372
|
- rbi/knockapi/models/recipients/subscription.rbi
|
|
378
373
|
- rbi/knockapi/models/schedule.rbi
|
|
@@ -448,7 +443,6 @@ files:
|
|
|
448
443
|
- rbi/knockapi/resources/recipients/subscriptions.rbi
|
|
449
444
|
- rbi/knockapi/resources/schedules.rbi
|
|
450
445
|
- rbi/knockapi/resources/schedules/bulk.rbi
|
|
451
|
-
- rbi/knockapi/resources/shared.rbi
|
|
452
446
|
- rbi/knockapi/resources/tenants.rbi
|
|
453
447
|
- rbi/knockapi/resources/tenants/bulk.rbi
|
|
454
448
|
- rbi/knockapi/resources/users.rbi
|
|
@@ -577,12 +571,10 @@ files:
|
|
|
577
571
|
- sig/knockapi/models/recipients/inline_channel_data_request.rbs
|
|
578
572
|
- sig/knockapi/models/recipients/inline_preference_set_request.rbs
|
|
579
573
|
- sig/knockapi/models/recipients/ms_teams_channel_data.rbs
|
|
580
|
-
- sig/knockapi/models/recipients/one_signal_channel_data.rbs
|
|
581
574
|
- sig/knockapi/models/recipients/preference_set.rbs
|
|
582
575
|
- sig/knockapi/models/recipients/preference_set_channel_type_setting.rbs
|
|
583
576
|
- sig/knockapi/models/recipients/preference_set_channel_types.rbs
|
|
584
577
|
- sig/knockapi/models/recipients/preference_set_request.rbs
|
|
585
|
-
- sig/knockapi/models/recipients/push_channel_data.rbs
|
|
586
578
|
- sig/knockapi/models/recipients/slack_channel_data.rbs
|
|
587
579
|
- sig/knockapi/models/recipients/subscription.rbs
|
|
588
580
|
- sig/knockapi/models/schedule.rbs
|
|
@@ -658,7 +650,6 @@ files:
|
|
|
658
650
|
- sig/knockapi/resources/recipients/subscriptions.rbs
|
|
659
651
|
- sig/knockapi/resources/schedules.rbs
|
|
660
652
|
- sig/knockapi/resources/schedules/bulk.rbs
|
|
661
|
-
- sig/knockapi/resources/shared.rbs
|
|
662
653
|
- sig/knockapi/resources/tenants.rbs
|
|
663
654
|
- sig/knockapi/resources/tenants/bulk.rbs
|
|
664
655
|
- sig/knockapi/resources/users.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
|