knockapi 1.17.0 → 1.19.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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +1 -1
  4. data/lib/knockapi/client.rb +12 -0
  5. data/lib/knockapi/internal/transport/base_client.rb +7 -1
  6. data/lib/knockapi/internal/transport/pooled_net_requester.rb +6 -2
  7. data/lib/knockapi/models/identify_user_request.rb +2 -2
  8. data/lib/knockapi/models/inline_identify_user_request.rb +2 -2
  9. data/lib/knockapi/models/inline_object_request.rb +11 -3
  10. data/lib/knockapi/models/object_set_params.rb +11 -3
  11. data/lib/knockapi/models/objects/bulk_set_params.rb +11 -3
  12. data/lib/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rb +63 -0
  13. data/lib/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rb +25 -0
  14. data/lib/knockapi/models/recipients/channel_data.rb +4 -17
  15. data/lib/knockapi/models/recipients/channel_data_request.rb +12 -50
  16. data/lib/knockapi/models/recipients/inline_channel_data_request.rb +10 -48
  17. data/lib/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rb +20 -0
  18. data/lib/knockapi/models/recipients/preference_set.rb +12 -54
  19. data/lib/knockapi/models/recipients/preference_set_channel_setting.rb +21 -0
  20. data/lib/knockapi/models/recipients/preference_set_request.rb +12 -54
  21. data/lib/knockapi/models/recipients/push_channel_data_devices_only.rb +60 -0
  22. data/lib/knockapi/models/recipients/push_channel_data_tokens_only.rb +20 -0
  23. data/lib/knockapi/models/tenant_request.rb +11 -3
  24. data/lib/knockapi/models/tenant_set_params.rb +11 -3
  25. data/lib/knockapi/models/users/feed_list_items_params.rb +15 -1
  26. data/lib/knockapi/resources/objects.rb +6 -4
  27. data/lib/knockapi/resources/tenants.rb +4 -2
  28. data/lib/knockapi/resources/users/feeds.rb +6 -1
  29. data/lib/knockapi/resources/users.rb +3 -3
  30. data/lib/knockapi/version.rb +1 -1
  31. data/lib/knockapi.rb +7 -0
  32. data/manifest.yaml +1 -0
  33. data/rbi/knockapi/client.rbi +7 -0
  34. data/rbi/knockapi/internal/transport/base_client.rbi +5 -0
  35. data/rbi/knockapi/internal/transport/pooled_net_requester.rbi +6 -2
  36. data/rbi/knockapi/internal/type/base_model.rbi +8 -4
  37. data/rbi/knockapi/models/identify_user_request.rbi +15 -9
  38. data/rbi/knockapi/models/inline_identify_user_request.rbi +15 -9
  39. data/rbi/knockapi/models/inline_object_request.rbi +23 -9
  40. data/rbi/knockapi/models/object_set_params.rbi +28 -12
  41. data/rbi/knockapi/models/objects/bulk_set_params.rbi +23 -9
  42. data/rbi/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rbi +120 -0
  43. data/rbi/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rbi +35 -0
  44. data/rbi/knockapi/models/recipients/channel_data.rbi +2 -30
  45. data/rbi/knockapi/models/recipients/channel_data_request.rbi +20 -96
  46. data/rbi/knockapi/models/recipients/inline_channel_data_request.rbi +5 -85
  47. data/rbi/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rbi +33 -0
  48. data/rbi/knockapi/models/recipients/preference_set.rbi +6 -109
  49. data/rbi/knockapi/models/recipients/preference_set_channel_setting.rbi +38 -0
  50. data/rbi/knockapi/models/recipients/preference_set_request.rbi +12 -115
  51. data/rbi/knockapi/models/recipients/push_channel_data_devices_only.rbi +114 -0
  52. data/rbi/knockapi/models/recipients/push_channel_data_tokens_only.rbi +33 -0
  53. data/rbi/knockapi/models/tenant_request.rbi +23 -9
  54. data/rbi/knockapi/models/tenant_set_params.rbi +23 -9
  55. data/rbi/knockapi/models/users/feed_list_items_params.rbi +17 -0
  56. data/rbi/knockapi/resources/objects.rbi +14 -7
  57. data/rbi/knockapi/resources/tenants.rbi +8 -3
  58. data/rbi/knockapi/resources/users/feeds.rbi +6 -0
  59. data/rbi/knockapi/resources/users.rbi +11 -7
  60. data/sig/knockapi/client.rbs +3 -0
  61. data/sig/knockapi/internal/transport/base_client.rbs +2 -0
  62. data/sig/knockapi/internal/transport/pooled_net_requester.rbs +4 -1
  63. data/sig/knockapi/models/inline_object_request.rbs +5 -0
  64. data/sig/knockapi/models/object_set_params.rbs +5 -0
  65. data/sig/knockapi/models/objects/bulk_set_params.rbs +5 -0
  66. data/sig/knockapi/models/recipients/aws_sns_push_channel_data_devices_only.rbs +44 -0
  67. data/sig/knockapi/models/recipients/aws_sns_push_channel_data_target_arns_only.rbs +16 -0
  68. data/sig/knockapi/models/recipients/channel_data.rbs +1 -12
  69. data/sig/knockapi/models/recipients/channel_data_request.rbs +5 -35
  70. data/sig/knockapi/models/recipients/inline_channel_data_request.rbs +5 -35
  71. data/sig/knockapi/models/recipients/one_signal_channel_data_player_ids_only.rbs +16 -0
  72. data/sig/knockapi/models/recipients/preference_set.rbs +3 -44
  73. data/sig/knockapi/models/recipients/preference_set_channel_setting.rbs +16 -0
  74. data/sig/knockapi/models/recipients/preference_set_request.rbs +3 -44
  75. data/sig/knockapi/models/recipients/push_channel_data_devices_only.rbs +40 -0
  76. data/sig/knockapi/models/recipients/push_channel_data_tokens_only.rbs +15 -0
  77. data/sig/knockapi/models/tenant_request.rbs +5 -0
  78. data/sig/knockapi/models/tenant_set_params.rbs +5 -0
  79. data/sig/knockapi/models/users/feed_list_items_params.rbs +7 -0
  80. data/sig/knockapi/resources/objects.rbs +1 -0
  81. data/sig/knockapi/resources/tenants.rbs +1 -0
  82. data/sig/knockapi/resources/users/feeds.rbs +1 -0
  83. metadata +20 -2
@@ -8,13 +8,19 @@ module Knockapi
8
8
  extend Knockapi::Internal::Type::Union
9
9
 
10
10
  # Push channel data.
11
- variant -> { Knockapi::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly }
11
+ variant -> { Knockapi::Recipients::PushChannelDataTokensOnly }
12
+
13
+ # Push channel data.
14
+ variant -> { Knockapi::Recipients::PushChannelDataDevicesOnly }
12
15
 
13
16
  # AWS SNS push channel data.
14
- variant -> { Knockapi::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly }
17
+ variant -> { Knockapi::Recipients::AwsSnsPushChannelDataTargetArnsOnly }
18
+
19
+ # AWS SNS push channel data.
20
+ variant -> { Knockapi::Recipients::AwsSnsPushChannelDataDevicesOnly }
15
21
 
16
22
  # OneSignal channel data.
17
- variant -> { Knockapi::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly }
23
+ variant -> { Knockapi::Recipients::OneSignalChannelDataPlayerIDsOnly }
18
24
 
19
25
  # Slack channel data.
20
26
  variant -> { Knockapi::Recipients::SlackChannelData }
@@ -25,52 +31,8 @@ module Knockapi
25
31
  # Discord channel data.
26
32
  variant -> { Knockapi::Recipients::DiscordChannelData }
27
33
 
28
- class PushChannelDataTokensOnly < Knockapi::Internal::Type::BaseModel
29
- # @!attribute tokens
30
- # A list of push channel tokens.
31
- #
32
- # @return [Array<String>]
33
- required :tokens, Knockapi::Internal::Type::ArrayOf[String]
34
-
35
- # @!method initialize(tokens:)
36
- # Push channel data.
37
- #
38
- # @param tokens [Array<String>] A list of push channel tokens.
39
- end
40
-
41
- class AwssnsPushChannelDataTargetArNsOnly < Knockapi::Internal::Type::BaseModel
42
- # @!attribute target_arns
43
- # A list of platform endpoint ARNs. See
44
- # [Setting up an Amazon SNS platform endpoint for mobile notifications](https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html).
45
- #
46
- # @return [Array<String>]
47
- required :target_arns, Knockapi::Internal::Type::ArrayOf[String]
48
-
49
- # @!method initialize(target_arns:)
50
- # Some parameter documentations has been truncated, see
51
- # {Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly}
52
- # for more details.
53
- #
54
- # AWS SNS push channel data.
55
- #
56
- # @param target_arns [Array<String>] A list of platform endpoint ARNs. See [Setting up an Amazon SNS platform endpoin
57
- end
58
-
59
- class OneSignalChannelDataPlayerIDsOnly < Knockapi::Internal::Type::BaseModel
60
- # @!attribute player_ids
61
- # A list of OneSignal player IDs.
62
- #
63
- # @return [Array<String>]
64
- required :player_ids, Knockapi::Internal::Type::ArrayOf[String]
65
-
66
- # @!method initialize(player_ids:)
67
- # OneSignal channel data.
68
- #
69
- # @param player_ids [Array<String>] A list of OneSignal player IDs.
70
- end
71
-
72
34
  # @!method self.variants
73
- # @return [Array(Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData)]
35
+ # @return [Array(Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData)]
74
36
  end
75
37
 
76
38
  # @type [Knockapi::Internal::Type::Converter]
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Knockapi
4
+ module Models
5
+ module Recipients
6
+ class OneSignalChannelDataPlayerIDsOnly < 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
@@ -30,7 +30,7 @@ module Knockapi
30
30
  # @!attribute channels
31
31
  # Channel preferences.
32
32
  #
33
- # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSet::Channel::PreferenceSetChannelSetting}, nil]
33
+ # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil]
34
34
  optional :channels,
35
35
  -> { Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::PreferenceSet::Channel] },
36
36
  nil?: true
@@ -66,7 +66,7 @@ module Knockapi
66
66
  #
67
67
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
68
68
  #
69
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSet::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
69
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
70
70
  #
71
71
  # @param commercial_subscribed [Boolean, nil] Whether the recipient is subscribed to commercial communications. When false, th
72
72
  #
@@ -91,7 +91,7 @@ module Knockapi
91
91
  # @!attribute channels
92
92
  # Channel preferences.
93
93
  #
94
- # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil]
94
+ # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil]
95
95
  optional :channels,
96
96
  -> {
97
97
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::Channel]
@@ -110,7 +110,7 @@ module Knockapi
110
110
  #
111
111
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
112
112
  #
113
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
113
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
114
114
  #
115
115
  # @param conditions [Array<Knockapi::Models::Condition>, nil] A list of conditions to apply to a channel type.
116
116
 
@@ -122,24 +122,10 @@ module Knockapi
122
122
  variant Knockapi::Internal::Type::Boolean
123
123
 
124
124
  # A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
125
- variant -> { Knockapi::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting }
126
-
127
- class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
128
- # @!attribute conditions
129
- # A list of conditions to apply to a specific channel.
130
- #
131
- # @return [Array<Knockapi::Models::Condition>]
132
- required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
133
-
134
- # @!method initialize(conditions:)
135
- # A set of settings for a specific channel. Currently, this can only be a list of
136
- # conditions to apply.
137
- #
138
- # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
139
- end
125
+ variant -> { Knockapi::Recipients::PreferenceSetChannelSetting }
140
126
 
141
127
  # @!method self.variants
142
- # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSet::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting)]
128
+ # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting)]
143
129
  end
144
130
  end
145
131
 
@@ -155,24 +141,10 @@ module Knockapi
155
141
  variant Knockapi::Internal::Type::Boolean
156
142
 
157
143
  # A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
158
- variant -> { Knockapi::Recipients::PreferenceSet::Channel::PreferenceSetChannelSetting }
159
-
160
- class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
161
- # @!attribute conditions
162
- # A list of conditions to apply to a specific channel.
163
- #
164
- # @return [Array<Knockapi::Models::Condition>]
165
- required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
166
-
167
- # @!method initialize(conditions:)
168
- # A set of settings for a specific channel. Currently, this can only be a list of
169
- # conditions to apply.
170
- #
171
- # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
172
- end
144
+ variant -> { Knockapi::Recipients::PreferenceSetChannelSetting }
173
145
 
174
146
  # @!method self.variants
175
- # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSet::Channel::PreferenceSetChannelSetting)]
147
+ # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting)]
176
148
  end
177
149
 
178
150
  # Workflow or category preferences within a preference set
@@ -194,7 +166,7 @@ module Knockapi
194
166
  # @!attribute channels
195
167
  # Channel preferences.
196
168
  #
197
- # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil]
169
+ # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil]
198
170
  optional :channels,
199
171
  -> {
200
172
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel]
@@ -213,7 +185,7 @@ module Knockapi
213
185
  #
214
186
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
215
187
  #
216
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
188
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
217
189
  #
218
190
  # @param conditions [Array<Knockapi::Models::Condition>, nil] A list of conditions to apply to a channel type.
219
191
 
@@ -225,24 +197,10 @@ module Knockapi
225
197
  variant Knockapi::Internal::Type::Boolean
226
198
 
227
199
  # A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
228
- variant -> { Knockapi::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting }
229
-
230
- class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
231
- # @!attribute conditions
232
- # A list of conditions to apply to a specific channel.
233
- #
234
- # @return [Array<Knockapi::Models::Condition>]
235
- required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
236
-
237
- # @!method initialize(conditions:)
238
- # A set of settings for a specific channel. Currently, this can only be a list of
239
- # conditions to apply.
240
- #
241
- # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
242
- end
200
+ variant -> { Knockapi::Recipients::PreferenceSetChannelSetting }
243
201
 
244
202
  # @!method self.variants
245
- # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSet::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting)]
203
+ # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting)]
246
204
  end
247
205
  end
248
206
 
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Knockapi
4
+ module Models
5
+ module Recipients
6
+ class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
7
+ # @!attribute conditions
8
+ # A list of conditions to apply to a specific channel.
9
+ #
10
+ # @return [Array<Knockapi::Models::Condition>]
11
+ required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
12
+
13
+ # @!method initialize(conditions:)
14
+ # A set of settings for a specific channel. Currently, this can only be a list of
15
+ # conditions to apply.
16
+ #
17
+ # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
18
+ end
19
+ end
20
+ end
21
+ end
@@ -33,7 +33,7 @@ module Knockapi
33
33
  # @!attribute channels
34
34
  # Channel preferences.
35
35
  #
36
- # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting}, nil]
36
+ # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil]
37
37
  optional :channels,
38
38
  -> {
39
39
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::PreferenceSetRequest::Channel]
@@ -70,7 +70,7 @@ module Knockapi
70
70
  #
71
71
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
72
72
  #
73
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
73
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
74
74
  #
75
75
  # @param commercial_subscribed [Boolean, nil] Whether the recipient is subscribed to commercial communications. When false, th
76
76
  #
@@ -109,7 +109,7 @@ module Knockapi
109
109
  # @!attribute channels
110
110
  # Channel preferences.
111
111
  #
112
- # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil]
112
+ # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil]
113
113
  optional :channels,
114
114
  -> do
115
115
  Knockapi::Internal::Type::HashOf[
@@ -130,7 +130,7 @@ module Knockapi
130
130
  #
131
131
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
132
132
  #
133
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
133
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
134
134
  #
135
135
  # @param conditions [Array<Knockapi::Models::Condition>, nil] A list of conditions to apply to a channel type.
136
136
 
@@ -142,24 +142,10 @@ module Knockapi
142
142
  variant Knockapi::Internal::Type::Boolean
143
143
 
144
144
  # A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
145
- variant -> { Knockapi::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting }
146
-
147
- class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
148
- # @!attribute conditions
149
- # A list of conditions to apply to a specific channel.
150
- #
151
- # @return [Array<Knockapi::Models::Condition>]
152
- required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
153
-
154
- # @!method initialize(conditions:)
155
- # A set of settings for a specific channel. Currently, this can only be a list of
156
- # conditions to apply.
157
- #
158
- # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
159
- end
145
+ variant -> { Knockapi::Recipients::PreferenceSetChannelSetting }
160
146
 
161
147
  # @!method self.variants
162
- # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Category::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting)]
148
+ # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting)]
163
149
  end
164
150
  end
165
151
 
@@ -175,24 +161,10 @@ module Knockapi
175
161
  variant Knockapi::Internal::Type::Boolean
176
162
 
177
163
  # A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
178
- variant -> { Knockapi::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting }
179
-
180
- class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
181
- # @!attribute conditions
182
- # A list of conditions to apply to a specific channel.
183
- #
184
- # @return [Array<Knockapi::Models::Condition>]
185
- required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
186
-
187
- # @!method initialize(conditions:)
188
- # A set of settings for a specific channel. Currently, this can only be a list of
189
- # conditions to apply.
190
- #
191
- # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
192
- end
164
+ variant -> { Knockapi::Recipients::PreferenceSetChannelSetting }
193
165
 
194
166
  # @!method self.variants
195
- # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting)]
167
+ # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting)]
196
168
  end
197
169
 
198
170
  # Workflow or category preferences within a preference set
@@ -214,7 +186,7 @@ module Knockapi
214
186
  # @!attribute channels
215
187
  # Channel preferences.
216
188
  #
217
- # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil]
189
+ # @return [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil]
218
190
  optional :channels,
219
191
  -> do
220
192
  Knockapi::Internal::Type::HashOf[
@@ -235,7 +207,7 @@ module Knockapi
235
207
  #
236
208
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
237
209
  #
238
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
210
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
239
211
  #
240
212
  # @param conditions [Array<Knockapi::Models::Condition>, nil] A list of conditions to apply to a channel type.
241
213
 
@@ -247,24 +219,10 @@ module Knockapi
247
219
  variant Knockapi::Internal::Type::Boolean
248
220
 
249
221
  # A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
250
- variant -> { Knockapi::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting }
251
-
252
- class PreferenceSetChannelSetting < Knockapi::Internal::Type::BaseModel
253
- # @!attribute conditions
254
- # A list of conditions to apply to a specific channel.
255
- #
256
- # @return [Array<Knockapi::Models::Condition>]
257
- required :conditions, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Condition] }
258
-
259
- # @!method initialize(conditions:)
260
- # A set of settings for a specific channel. Currently, this can only be a list of
261
- # conditions to apply.
262
- #
263
- # @param conditions [Array<Knockapi::Models::Condition>] A list of conditions to apply to a specific channel.
264
- end
222
+ variant -> { Knockapi::Recipients::PreferenceSetChannelSetting }
265
223
 
266
224
  # @!method self.variants
267
- # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Workflow::PreferenceSetWorkflowCategorySettingObject::Channel::PreferenceSetChannelSetting)]
225
+ # @return [Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting)]
268
226
  end
269
227
  end
270
228
 
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Knockapi
4
+ module Models
5
+ module Recipients
6
+ class PushChannelDataDevicesOnly < Knockapi::Internal::Type::BaseModel
7
+ # @!attribute devices
8
+ # A list of devices. Each device contains a token, and optionally a locale and
9
+ # timezone.
10
+ #
11
+ # @return [Array<Knockapi::Models::Recipients::PushChannelDataDevicesOnly::Device>]
12
+ required :devices,
13
+ -> { Knockapi::Internal::Type::ArrayOf[Knockapi::Recipients::PushChannelDataDevicesOnly::Device] }
14
+
15
+ # @!method initialize(devices:)
16
+ # Some parameter documentations has been truncated, see
17
+ # {Knockapi::Models::Recipients::PushChannelDataDevicesOnly} for more details.
18
+ #
19
+ # Push channel data.
20
+ #
21
+ # @param devices [Array<Knockapi::Models::Recipients::PushChannelDataDevicesOnly::Device>] A list of devices. Each device contains a token, and optionally a locale and tim
22
+
23
+ class Device < Knockapi::Internal::Type::BaseModel
24
+ # @!attribute token
25
+ # The device token to send the push notification to.
26
+ #
27
+ # @return [String]
28
+ required :token, String
29
+
30
+ # @!attribute locale
31
+ # The locale of the object. Used for
32
+ # [message localization](/concepts/translations).
33
+ #
34
+ # @return [String, nil]
35
+ optional :locale, String, nil?: true
36
+
37
+ # @!attribute timezone
38
+ # The timezone of the object. Must be a
39
+ # valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
40
+ # Used
41
+ # for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
42
+ #
43
+ # @return [String, nil]
44
+ optional :timezone, String, nil?: true
45
+
46
+ # @!method initialize(token:, locale: nil, timezone: nil)
47
+ # Some parameter documentations has been truncated, see
48
+ # {Knockapi::Models::Recipients::PushChannelDataDevicesOnly::Device} for more
49
+ # details.
50
+ #
51
+ # @param token [String] The device token to send the push notification to.
52
+ #
53
+ # @param locale [String, nil] The locale of the object. Used for [message localization](/concepts/translations
54
+ #
55
+ # @param timezone [String, nil] The timezone of the object. Must be a valid [tz database time zone string](https
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Knockapi
4
+ module Models
5
+ module Recipients
6
+ class PushChannelDataTokensOnly < 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
@@ -12,13 +12,19 @@ module Knockapi
12
12
  # @!attribute channel_data
13
13
  # A request to set channel data for a type of channel inline.
14
14
  #
15
- # @return [Hash{Symbol=>Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil]
15
+ # @return [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil]
16
16
  optional :channel_data,
17
17
  -> {
18
18
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::InlineChannelDataRequestItem]
19
19
  },
20
20
  nil?: true
21
21
 
22
+ # @!attribute name
23
+ # An optional name for the tenant.
24
+ #
25
+ # @return [String, nil]
26
+ optional :name, String, nil?: true
27
+
22
28
  # @!attribute preferences
23
29
  # Inline set preferences for a recipient, where the key is the preference set id.
24
30
  # Preferences that are set inline will be merged into any existing preferences
@@ -35,7 +41,7 @@ module Knockapi
35
41
  # @return [Knockapi::Models::TenantRequest::Settings, nil]
36
42
  optional :settings, -> { Knockapi::TenantRequest::Settings }
37
43
 
38
- # @!method initialize(id:, channel_data: nil, preferences: nil, settings: nil)
44
+ # @!method initialize(id:, channel_data: nil, name: nil, preferences: nil, settings: nil)
39
45
  # Some parameter documentations has been truncated, see
40
46
  # {Knockapi::Models::TenantRequest} for more details.
41
47
  #
@@ -44,7 +50,9 @@ module Knockapi
44
50
  #
45
51
  # @param id [String] The unique identifier for the tenant.
46
52
  #
47
- # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
53
+ # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
54
+ #
55
+ # @param name [String, nil] An optional name for the tenant.
48
56
  #
49
57
  # @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}, nil] Inline set preferences for a recipient, where the key is the preference set id.
50
58
  #
@@ -10,21 +10,29 @@ module Knockapi
10
10
  # @!attribute channel_data
11
11
  # A request to set channel data for a type of channel inline.
12
12
  #
13
- # @return [Hash{Symbol=>Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil]
13
+ # @return [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil]
14
14
  optional :channel_data,
15
15
  -> {
16
16
  Knockapi::Internal::Type::HashOf[union: Knockapi::Recipients::InlineChannelDataRequestItem]
17
17
  },
18
18
  nil?: true
19
19
 
20
+ # @!attribute name
21
+ # An optional name for the tenant.
22
+ #
23
+ # @return [String, nil]
24
+ optional :name, String, nil?: true
25
+
20
26
  # @!attribute settings
21
27
  # The settings for the tenant. Includes branding and preference set.
22
28
  #
23
29
  # @return [Knockapi::Models::TenantSetParams::Settings, nil]
24
30
  optional :settings, -> { Knockapi::TenantSetParams::Settings }
25
31
 
26
- # @!method initialize(channel_data: nil, settings: nil, request_options: {})
27
- # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
32
+ # @!method initialize(channel_data: nil, name: nil, settings: nil, request_options: {})
33
+ # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
34
+ #
35
+ # @param name [String, nil] An optional name for the tenant.
28
36
  #
29
37
  # @param settings [Knockapi::Models::TenantSetParams::Settings] The settings for the tenant. Includes branding and preference set.
30
38
  #
@@ -32,6 +32,15 @@ module Knockapi
32
32
  # @return [Boolean, nil]
33
33
  optional :has_tenant, Knockapi::Internal::Type::Boolean
34
34
 
35
+ # @!attribute locale
36
+ # The locale to render the feed items in. Must be in the IETF 5646 format (e.g.
37
+ # `en-US`). When not provided, will default to the locale that the feed items were
38
+ # rendered in. Only available for enterprise plan customers using custom
39
+ # translations.
40
+ #
41
+ # @return [String, nil]
42
+ optional :locale, String
43
+
35
44
  # @!attribute page_size
36
45
  # The number of items per page (defaults to 50).
37
46
  #
@@ -68,7 +77,10 @@ module Knockapi
68
77
  # @return [Array<String>, nil]
69
78
  optional :workflow_categories, Knockapi::Internal::Type::ArrayOf[String]
70
79
 
71
- # @!method initialize(after: nil, archived: nil, before: nil, has_tenant: nil, page_size: nil, source: nil, status: nil, tenant: nil, trigger_data: nil, workflow_categories: nil, request_options: {})
80
+ # @!method initialize(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: {})
81
+ # Some parameter documentations has been truncated, see
82
+ # {Knockapi::Models::Users::FeedListItemsParams} for more details.
83
+ #
72
84
  # @param after [String] The cursor to fetch entries after.
73
85
  #
74
86
  # @param archived [Symbol, Knockapi::Models::Users::FeedListItemsParams::Archived] The archived status of the feed items.
@@ -77,6 +89,8 @@ module Knockapi
77
89
  #
78
90
  # @param has_tenant [Boolean] Whether the feed items have a tenant.
79
91
  #
92
+ # @param locale [String] The locale to render the feed items in. Must be in the IETF 5646 format (e.g. `e
93
+ #
80
94
  # @param page_size [Integer] The number of items per page (defaults to 50).
81
95
  #
82
96
  # @param source [String] The workflow key associated with the message in the feed.
@@ -362,16 +362,18 @@ module Knockapi
362
362
  # This operation is used to identify objects with their properties, as well as
363
363
  # optional preferences and channel data.
364
364
  #
365
- # @overload set(collection, id, channel_data: nil, locale: nil, preferences: nil, timezone: nil, request_options: {})
365
+ # @overload set(collection, id, channel_data: nil, locale: nil, name: nil, preferences: nil, timezone: nil, request_options: {})
366
366
  #
367
367
  # @param collection [String] The collection this object belongs to.
368
368
  #
369
369
  # @param id [String] Unique identifier for the object.
370
370
  #
371
- # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}] A request to set channel data for a type of channel inline.
371
+ # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}] A request to set channel data for a type of channel inline.
372
372
  #
373
373
  # @param locale [String, nil] The locale of the object. Used for [message localization](/concepts/translations
374
374
  #
375
+ # @param name [String, nil] An optional name for the object.
376
+ #
375
377
  # @param preferences [Hash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}] Inline set preferences for a recipient, where the key is the preference set id.
376
378
  #
377
379
  # @param timezone [String, nil] The timezone of the object. Must be a valid [tz database time zone string](https
@@ -404,7 +406,7 @@ module Knockapi
404
406
  #
405
407
  # @param channel_id [String] The unique identifier for the channel.
406
408
  #
407
- # @param data [Knockapi::Models::Recipients::ChannelDataRequest::Data::PushChannelDataTokensOnly, Knockapi::Models::Recipients::ChannelDataRequest::Data::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::ChannelDataRequest::Data::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData] Channel data for a given channel type.
409
+ # @param data [Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData] Channel data for a given channel type.
408
410
  #
409
411
  # @param request_options [Knockapi::RequestOptions, Hash{Symbol=>Object}, nil]
410
412
  #
@@ -448,7 +450,7 @@ module Knockapi
448
450
  #
449
451
  # @param channel_types [Knockapi::Models::Recipients::PreferenceSetChannelTypes, nil] Channel type preferences.
450
452
  #
451
- # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetRequest::Channel::PreferenceSetChannelSetting}, nil] Channel preferences.
453
+ # @param channels [Hash{Symbol=>Boolean, Knockapi::Models::Recipients::PreferenceSetChannelSetting}, nil] Channel preferences.
452
454
  #
453
455
  # @param commercial_subscribed [Boolean, nil] Whether the recipient is subscribed to commercial communications. When false, th
454
456
  #
@@ -80,11 +80,13 @@ module Knockapi
80
80
  # Sets a tenant within an environment, performing an upsert operation. Any
81
81
  # existing properties will be merged with the incoming properties.
82
82
  #
83
- # @overload set(id, channel_data: nil, settings: nil, request_options: {})
83
+ # @overload set(id, channel_data: nil, name: nil, settings: nil, request_options: {})
84
84
  #
85
85
  # @param id [String] The unique identifier for the tenant.
86
86
  #
87
- # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::InlineChannelDataRequestItem::PushChannelDataTokensOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::AwssnsPushChannelDataTargetArNsOnly, Knockapi::Models::Recipients::InlineChannelDataRequestItem::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
87
+ # @param channel_data [Hash{Symbol=>Knockapi::Models::Recipients::PushChannelDataTokensOnly, Knockapi::Models::Recipients::PushChannelDataDevicesOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataTargetArnsOnly, Knockapi::Models::Recipients::AwsSnsPushChannelDataDevicesOnly, Knockapi::Models::Recipients::OneSignalChannelDataPlayerIDsOnly, Knockapi::Models::Recipients::SlackChannelData, Knockapi::Models::Recipients::MsTeamsChannelData, Knockapi::Models::Recipients::DiscordChannelData}, nil] A request to set channel data for a type of channel inline.
88
+ #
89
+ # @param name [String, nil] An optional name for the tenant.
88
90
  #
89
91
  # @param settings [Knockapi::Models::TenantSetParams::Settings] The settings for the tenant. Includes branding and preference set.
90
92
  #