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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/README.md +1 -1
- data/lib/knockapi/internal/transport/pooled_net_requester.rb +30 -24
- data/lib/knockapi/internal/util.rb +5 -5
- 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 +94 -3
- 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/messages/batch.rb +7 -7
- data/lib/knockapi/resources/objects.rb +7 -3
- 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 -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 +123 -2
- 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/messages/batch.rbi +7 -7
- data/rbi/knockapi/resources/objects.rbi +22 -6
- data/rbi/knockapi/resources/tenants.rbi +3 -3
- data/rbi/knockapi/resources/users.rbi +22 -6
- data/sig/knockapi/models/message.rbs +79 -0
- 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 -8
- data/lib/knockapi/models/recipients/one_signal_channel_data.rb +0 -20
- data/lib/knockapi/models/recipients/push_channel_data.rb +0 -20
- data/rbi/knockapi/models/recipients/one_signal_channel_data.rbi +0 -33
- data/rbi/knockapi/models/recipients/push_channel_data.rbi +0 -33
- data/sig/knockapi/models/recipients/one_signal_channel_data.rbs +0 -15
- data/sig/knockapi/models/recipients/push_channel_data.rbs +0 -15
|
@@ -62,6 +62,27 @@ module Knockapi
|
|
|
62
62
|
end
|
|
63
63
|
attr_writer :channel_types
|
|
64
64
|
|
|
65
|
+
# Channel preferences.
|
|
66
|
+
sig do
|
|
67
|
+
returns(
|
|
68
|
+
T.nilable(
|
|
69
|
+
T::Hash[
|
|
70
|
+
Symbol,
|
|
71
|
+
T.any(
|
|
72
|
+
T::Boolean,
|
|
73
|
+
Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting
|
|
74
|
+
)
|
|
75
|
+
]
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
attr_accessor :channels
|
|
80
|
+
|
|
81
|
+
# Whether the recipient is subscribed to commercial communications. When false,
|
|
82
|
+
# the recipient will not receive commercial workflow notifications.
|
|
83
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
84
|
+
attr_accessor :commercial_subscribed
|
|
85
|
+
|
|
65
86
|
# An object where the key is the workflow key and the values are the preference
|
|
66
87
|
# settings for that workflow.
|
|
67
88
|
sig do
|
|
@@ -98,6 +119,17 @@ module Knockapi
|
|
|
98
119
|
T.nilable(
|
|
99
120
|
Knockapi::Recipients::PreferenceSetChannelTypes::OrHash
|
|
100
121
|
),
|
|
122
|
+
channels:
|
|
123
|
+
T.nilable(
|
|
124
|
+
T::Hash[
|
|
125
|
+
Symbol,
|
|
126
|
+
T.any(
|
|
127
|
+
T::Boolean,
|
|
128
|
+
Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting::OrHash
|
|
129
|
+
)
|
|
130
|
+
]
|
|
131
|
+
),
|
|
132
|
+
commercial_subscribed: T.nilable(T::Boolean),
|
|
101
133
|
workflows:
|
|
102
134
|
T.nilable(
|
|
103
135
|
T::Hash[
|
|
@@ -119,6 +151,11 @@ module Knockapi
|
|
|
119
151
|
categories: nil,
|
|
120
152
|
# Channel type preferences.
|
|
121
153
|
channel_types: nil,
|
|
154
|
+
# Channel preferences.
|
|
155
|
+
channels: nil,
|
|
156
|
+
# Whether the recipient is subscribed to commercial communications. When false,
|
|
157
|
+
# the recipient will not receive commercial workflow notifications.
|
|
158
|
+
commercial_subscribed: nil,
|
|
122
159
|
# An object where the key is the workflow key and the values are the preference
|
|
123
160
|
# settings for that workflow.
|
|
124
161
|
workflows: nil
|
|
@@ -142,6 +179,17 @@ module Knockapi
|
|
|
142
179
|
),
|
|
143
180
|
channel_types:
|
|
144
181
|
T.nilable(Knockapi::Recipients::PreferenceSetChannelTypes),
|
|
182
|
+
channels:
|
|
183
|
+
T.nilable(
|
|
184
|
+
T::Hash[
|
|
185
|
+
Symbol,
|
|
186
|
+
T.any(
|
|
187
|
+
T::Boolean,
|
|
188
|
+
Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting
|
|
189
|
+
)
|
|
190
|
+
]
|
|
191
|
+
),
|
|
192
|
+
commercial_subscribed: T.nilable(T::Boolean),
|
|
145
193
|
workflows:
|
|
146
194
|
T.nilable(
|
|
147
195
|
T::Hash[
|
|
@@ -233,6 +281,22 @@ module Knockapi
|
|
|
233
281
|
end
|
|
234
282
|
attr_writer :channel_types
|
|
235
283
|
|
|
284
|
+
# Channel preferences.
|
|
285
|
+
sig do
|
|
286
|
+
returns(
|
|
287
|
+
T.nilable(
|
|
288
|
+
T::Hash[
|
|
289
|
+
Symbol,
|
|
290
|
+
T.any(
|
|
291
|
+
T::Boolean,
|
|
292
|
+
Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
293
|
+
)
|
|
294
|
+
]
|
|
295
|
+
)
|
|
296
|
+
)
|
|
297
|
+
end
|
|
298
|
+
attr_accessor :channels
|
|
299
|
+
|
|
236
300
|
# A list of conditions to apply to a channel type.
|
|
237
301
|
sig { returns(T.nilable(T::Array[Knockapi::Condition])) }
|
|
238
302
|
attr_accessor :conditions
|
|
@@ -245,12 +309,24 @@ module Knockapi
|
|
|
245
309
|
T.nilable(
|
|
246
310
|
Knockapi::Recipients::PreferenceSetChannelTypes::OrHash
|
|
247
311
|
),
|
|
312
|
+
channels:
|
|
313
|
+
T.nilable(
|
|
314
|
+
T::Hash[
|
|
315
|
+
Symbol,
|
|
316
|
+
T.any(
|
|
317
|
+
T::Boolean,
|
|
318
|
+
Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting::OrHash
|
|
319
|
+
)
|
|
320
|
+
]
|
|
321
|
+
),
|
|
248
322
|
conditions: T.nilable(T::Array[Knockapi::Condition::OrHash])
|
|
249
323
|
).returns(T.attached_class)
|
|
250
324
|
end
|
|
251
325
|
def self.new(
|
|
252
326
|
# Channel type preferences.
|
|
253
327
|
channel_types: nil,
|
|
328
|
+
# Channel preferences.
|
|
329
|
+
channels: nil,
|
|
254
330
|
# A list of conditions to apply to a channel type.
|
|
255
331
|
conditions: nil
|
|
256
332
|
)
|
|
@@ -261,12 +337,81 @@ module Knockapi
|
|
|
261
337
|
{
|
|
262
338
|
channel_types:
|
|
263
339
|
T.nilable(Knockapi::Recipients::PreferenceSetChannelTypes),
|
|
340
|
+
channels:
|
|
341
|
+
T.nilable(
|
|
342
|
+
T::Hash[
|
|
343
|
+
Symbol,
|
|
344
|
+
T.any(
|
|
345
|
+
T::Boolean,
|
|
346
|
+
Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
347
|
+
)
|
|
348
|
+
]
|
|
349
|
+
),
|
|
264
350
|
conditions: T.nilable(T::Array[Knockapi::Condition])
|
|
265
351
|
}
|
|
266
352
|
)
|
|
267
353
|
end
|
|
268
354
|
def to_hash
|
|
269
355
|
end
|
|
356
|
+
|
|
357
|
+
# Whether the specific channel (by channel_id) is enabled for the preference set,
|
|
358
|
+
# or a settings object with conditions.
|
|
359
|
+
module Channel
|
|
360
|
+
extend Knockapi::Internal::Type::Union
|
|
361
|
+
|
|
362
|
+
Variants =
|
|
363
|
+
T.type_alias do
|
|
364
|
+
T.any(
|
|
365
|
+
T::Boolean,
|
|
366
|
+
Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
367
|
+
)
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
371
|
+
OrHash =
|
|
372
|
+
T.type_alias do
|
|
373
|
+
T.any(
|
|
374
|
+
Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting,
|
|
375
|
+
Knockapi::Internal::AnyHash
|
|
376
|
+
)
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# A list of conditions to apply to a specific channel.
|
|
380
|
+
sig { returns(T::Array[Knockapi::Condition]) }
|
|
381
|
+
attr_accessor :conditions
|
|
382
|
+
|
|
383
|
+
# A set of settings for a specific channel. Currently, this can only be a list of
|
|
384
|
+
# conditions to apply.
|
|
385
|
+
sig do
|
|
386
|
+
params(
|
|
387
|
+
conditions: T::Array[Knockapi::Condition::OrHash]
|
|
388
|
+
).returns(T.attached_class)
|
|
389
|
+
end
|
|
390
|
+
def self.new(
|
|
391
|
+
# A list of conditions to apply to a specific channel.
|
|
392
|
+
conditions:
|
|
393
|
+
)
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
sig do
|
|
397
|
+
override.returns(
|
|
398
|
+
{ conditions: T::Array[Knockapi::Condition] }
|
|
399
|
+
)
|
|
400
|
+
end
|
|
401
|
+
def to_hash
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
sig do
|
|
406
|
+
override.returns(
|
|
407
|
+
T::Array[
|
|
408
|
+
Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::Variants
|
|
409
|
+
]
|
|
410
|
+
)
|
|
411
|
+
end
|
|
412
|
+
def self.variants
|
|
413
|
+
end
|
|
414
|
+
end
|
|
270
415
|
end
|
|
271
416
|
|
|
272
417
|
sig do
|
|
@@ -280,6 +425,63 @@ module Knockapi
|
|
|
280
425
|
end
|
|
281
426
|
end
|
|
282
427
|
|
|
428
|
+
# Whether the specific channel (by channel_id) is enabled for the preference set,
|
|
429
|
+
# or a settings object with conditions.
|
|
430
|
+
module Channel
|
|
431
|
+
extend Knockapi::Internal::Type::Union
|
|
432
|
+
|
|
433
|
+
Variants =
|
|
434
|
+
T.type_alias do
|
|
435
|
+
T.any(
|
|
436
|
+
T::Boolean,
|
|
437
|
+
Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting
|
|
438
|
+
)
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
442
|
+
OrHash =
|
|
443
|
+
T.type_alias do
|
|
444
|
+
T.any(
|
|
445
|
+
Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting,
|
|
446
|
+
Knockapi::Internal::AnyHash
|
|
447
|
+
)
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# A list of conditions to apply to a specific channel.
|
|
451
|
+
sig { returns(T::Array[Knockapi::Condition]) }
|
|
452
|
+
attr_accessor :conditions
|
|
453
|
+
|
|
454
|
+
# A set of settings for a specific channel. Currently, this can only be a list of
|
|
455
|
+
# conditions to apply.
|
|
456
|
+
sig do
|
|
457
|
+
params(conditions: T::Array[Knockapi::Condition::OrHash]).returns(
|
|
458
|
+
T.attached_class
|
|
459
|
+
)
|
|
460
|
+
end
|
|
461
|
+
def self.new(
|
|
462
|
+
# A list of conditions to apply to a specific channel.
|
|
463
|
+
conditions:
|
|
464
|
+
)
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
sig do
|
|
468
|
+
override.returns({ conditions: T::Array[Knockapi::Condition] })
|
|
469
|
+
end
|
|
470
|
+
def to_hash
|
|
471
|
+
end
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
sig do
|
|
475
|
+
override.returns(
|
|
476
|
+
T::Array[
|
|
477
|
+
Knockapi::Recipients::PreferenceSetRequest::Channel::Variants
|
|
478
|
+
]
|
|
479
|
+
)
|
|
480
|
+
end
|
|
481
|
+
def self.variants
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
|
|
283
485
|
# Workflow or category preferences within a preference set
|
|
284
486
|
module Workflow
|
|
285
487
|
extend Knockapi::Internal::Type::Union
|
|
@@ -319,6 +521,22 @@ module Knockapi
|
|
|
319
521
|
end
|
|
320
522
|
attr_writer :channel_types
|
|
321
523
|
|
|
524
|
+
# Channel preferences.
|
|
525
|
+
sig do
|
|
526
|
+
returns(
|
|
527
|
+
T.nilable(
|
|
528
|
+
T::Hash[
|
|
529
|
+
Symbol,
|
|
530
|
+
T.any(
|
|
531
|
+
T::Boolean,
|
|
532
|
+
Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
533
|
+
)
|
|
534
|
+
]
|
|
535
|
+
)
|
|
536
|
+
)
|
|
537
|
+
end
|
|
538
|
+
attr_accessor :channels
|
|
539
|
+
|
|
322
540
|
# A list of conditions to apply to a channel type.
|
|
323
541
|
sig { returns(T.nilable(T::Array[Knockapi::Condition])) }
|
|
324
542
|
attr_accessor :conditions
|
|
@@ -331,12 +549,24 @@ module Knockapi
|
|
|
331
549
|
T.nilable(
|
|
332
550
|
Knockapi::Recipients::PreferenceSetChannelTypes::OrHash
|
|
333
551
|
),
|
|
552
|
+
channels:
|
|
553
|
+
T.nilable(
|
|
554
|
+
T::Hash[
|
|
555
|
+
Symbol,
|
|
556
|
+
T.any(
|
|
557
|
+
T::Boolean,
|
|
558
|
+
Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting::OrHash
|
|
559
|
+
)
|
|
560
|
+
]
|
|
561
|
+
),
|
|
334
562
|
conditions: T.nilable(T::Array[Knockapi::Condition::OrHash])
|
|
335
563
|
).returns(T.attached_class)
|
|
336
564
|
end
|
|
337
565
|
def self.new(
|
|
338
566
|
# Channel type preferences.
|
|
339
567
|
channel_types: nil,
|
|
568
|
+
# Channel preferences.
|
|
569
|
+
channels: nil,
|
|
340
570
|
# A list of conditions to apply to a channel type.
|
|
341
571
|
conditions: nil
|
|
342
572
|
)
|
|
@@ -347,12 +577,81 @@ module Knockapi
|
|
|
347
577
|
{
|
|
348
578
|
channel_types:
|
|
349
579
|
T.nilable(Knockapi::Recipients::PreferenceSetChannelTypes),
|
|
580
|
+
channels:
|
|
581
|
+
T.nilable(
|
|
582
|
+
T::Hash[
|
|
583
|
+
Symbol,
|
|
584
|
+
T.any(
|
|
585
|
+
T::Boolean,
|
|
586
|
+
Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
587
|
+
)
|
|
588
|
+
]
|
|
589
|
+
),
|
|
350
590
|
conditions: T.nilable(T::Array[Knockapi::Condition])
|
|
351
591
|
}
|
|
352
592
|
)
|
|
353
593
|
end
|
|
354
594
|
def to_hash
|
|
355
595
|
end
|
|
596
|
+
|
|
597
|
+
# Whether the specific channel (by channel_id) is enabled for the preference set,
|
|
598
|
+
# or a settings object with conditions.
|
|
599
|
+
module Channel
|
|
600
|
+
extend Knockapi::Internal::Type::Union
|
|
601
|
+
|
|
602
|
+
Variants =
|
|
603
|
+
T.type_alias do
|
|
604
|
+
T.any(
|
|
605
|
+
T::Boolean,
|
|
606
|
+
Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting
|
|
607
|
+
)
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
|
|
611
|
+
OrHash =
|
|
612
|
+
T.type_alias do
|
|
613
|
+
T.any(
|
|
614
|
+
Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting,
|
|
615
|
+
Knockapi::Internal::AnyHash
|
|
616
|
+
)
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# A list of conditions to apply to a specific channel.
|
|
620
|
+
sig { returns(T::Array[Knockapi::Condition]) }
|
|
621
|
+
attr_accessor :conditions
|
|
622
|
+
|
|
623
|
+
# A set of settings for a specific channel. Currently, this can only be a list of
|
|
624
|
+
# conditions to apply.
|
|
625
|
+
sig do
|
|
626
|
+
params(
|
|
627
|
+
conditions: T::Array[Knockapi::Condition::OrHash]
|
|
628
|
+
).returns(T.attached_class)
|
|
629
|
+
end
|
|
630
|
+
def self.new(
|
|
631
|
+
# A list of conditions to apply to a specific channel.
|
|
632
|
+
conditions:
|
|
633
|
+
)
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
sig do
|
|
637
|
+
override.returns(
|
|
638
|
+
{ conditions: T::Array[Knockapi::Condition] }
|
|
639
|
+
)
|
|
640
|
+
end
|
|
641
|
+
def to_hash
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
sig do
|
|
646
|
+
override.returns(
|
|
647
|
+
T::Array[
|
|
648
|
+
Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::Variants
|
|
649
|
+
]
|
|
650
|
+
)
|
|
651
|
+
end
|
|
652
|
+
def self.variants
|
|
653
|
+
end
|
|
654
|
+
end
|
|
356
655
|
end
|
|
357
656
|
|
|
358
657
|
sig do
|
|
@@ -19,9 +19,9 @@ module Knockapi
|
|
|
19
19
|
T::Hash[
|
|
20
20
|
Symbol,
|
|
21
21
|
T.any(
|
|
22
|
-
Knockapi::Recipients::
|
|
23
|
-
Knockapi::Recipients::
|
|
24
|
-
Knockapi::Recipients::InlineChannelDataRequestItem::
|
|
22
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly,
|
|
23
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly,
|
|
24
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly,
|
|
25
25
|
Knockapi::Recipients::SlackChannelData,
|
|
26
26
|
Knockapi::Recipients::MsTeamsChannelData,
|
|
27
27
|
Knockapi::Recipients::DiscordChannelData
|
|
@@ -59,9 +59,9 @@ module Knockapi
|
|
|
59
59
|
T::Hash[
|
|
60
60
|
Symbol,
|
|
61
61
|
T.any(
|
|
62
|
-
Knockapi::Recipients::
|
|
63
|
-
Knockapi::Recipients::
|
|
64
|
-
Knockapi::Recipients::InlineChannelDataRequestItem::
|
|
62
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly::OrHash,
|
|
63
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly::OrHash,
|
|
64
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly::OrHash,
|
|
65
65
|
Knockapi::Recipients::SlackChannelData::OrHash,
|
|
66
66
|
Knockapi::Recipients::MsTeamsChannelData::OrHash,
|
|
67
67
|
Knockapi::Recipients::DiscordChannelData::OrHash
|
|
@@ -101,9 +101,9 @@ module Knockapi
|
|
|
101
101
|
T::Hash[
|
|
102
102
|
Symbol,
|
|
103
103
|
T.any(
|
|
104
|
-
Knockapi::Recipients::
|
|
105
|
-
Knockapi::Recipients::
|
|
106
|
-
Knockapi::Recipients::InlineChannelDataRequestItem::
|
|
104
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly,
|
|
105
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly,
|
|
106
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly,
|
|
107
107
|
Knockapi::Recipients::SlackChannelData,
|
|
108
108
|
Knockapi::Recipients::MsTeamsChannelData,
|
|
109
109
|
Knockapi::Recipients::DiscordChannelData
|
|
@@ -18,9 +18,9 @@ module Knockapi
|
|
|
18
18
|
T::Hash[
|
|
19
19
|
Symbol,
|
|
20
20
|
T.any(
|
|
21
|
-
Knockapi::Recipients::
|
|
22
|
-
Knockapi::Recipients::
|
|
23
|
-
Knockapi::Recipients::InlineChannelDataRequestItem::
|
|
21
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly,
|
|
22
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly,
|
|
23
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly,
|
|
24
24
|
Knockapi::Recipients::SlackChannelData,
|
|
25
25
|
Knockapi::Recipients::MsTeamsChannelData,
|
|
26
26
|
Knockapi::Recipients::DiscordChannelData
|
|
@@ -45,9 +45,9 @@ module Knockapi
|
|
|
45
45
|
T::Hash[
|
|
46
46
|
Symbol,
|
|
47
47
|
T.any(
|
|
48
|
-
Knockapi::Recipients::
|
|
49
|
-
Knockapi::Recipients::
|
|
50
|
-
Knockapi::Recipients::InlineChannelDataRequestItem::
|
|
48
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly::OrHash,
|
|
49
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly::OrHash,
|
|
50
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly::OrHash,
|
|
51
51
|
Knockapi::Recipients::SlackChannelData::OrHash,
|
|
52
52
|
Knockapi::Recipients::MsTeamsChannelData::OrHash,
|
|
53
53
|
Knockapi::Recipients::DiscordChannelData::OrHash
|
|
@@ -75,9 +75,9 @@ module Knockapi
|
|
|
75
75
|
T::Hash[
|
|
76
76
|
Symbol,
|
|
77
77
|
T.any(
|
|
78
|
-
Knockapi::Recipients::
|
|
79
|
-
Knockapi::Recipients::
|
|
80
|
-
Knockapi::Recipients::InlineChannelDataRequestItem::
|
|
78
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly,
|
|
79
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly,
|
|
80
|
+
Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly,
|
|
81
81
|
Knockapi::Recipients::SlackChannelData,
|
|
82
82
|
Knockapi::Recipients::MsTeamsChannelData,
|
|
83
83
|
Knockapi::Recipients::DiscordChannelData
|