trycourier 4.4.0 → 4.5.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 +14 -0
- data/README.md +1 -1
- data/lib/trycourier/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/trycourier/internal/type/base_model.rb +4 -3
- data/lib/trycourier/internal/type/union.rb +7 -9
- data/lib/trycourier/internal/util.rb +7 -2
- data/lib/trycourier/models/airship_profile.rb +21 -0
- data/lib/trycourier/models/airship_profile_audience.rb +15 -0
- data/lib/trycourier/models/audience.rb +3 -3
- data/lib/trycourier/models/audience_filter.rb +52 -0
- data/lib/trycourier/models/audience_recipient.rb +36 -0
- data/lib/trycourier/models/audience_update_params.rb +3 -3
- data/lib/trycourier/models/device_type.rb +7 -0
- data/lib/trycourier/models/discord.rb +16 -0
- data/lib/trycourier/models/expo.rb +16 -0
- data/lib/trycourier/models/filter.rb +8 -51
- data/lib/trycourier/models/filter_config.rb +8 -51
- data/lib/trycourier/models/intercom.rb +21 -0
- data/lib/trycourier/models/intercom_recipient.rb +15 -0
- data/lib/trycourier/models/list_filter.rb +52 -0
- data/lib/trycourier/models/list_pattern_recipient.rb +23 -0
- data/lib/trycourier/models/list_recipient.rb +29 -0
- data/lib/trycourier/models/ms_teams.rb +22 -0
- data/lib/trycourier/models/ms_teams_base_properties.rb +21 -0
- data/lib/trycourier/models/ms_teams_recipient.rb +17 -0
- data/lib/trycourier/models/multiple_tokens.rb +15 -0
- data/lib/trycourier/models/nested_filter_config.rb +49 -0
- data/lib/trycourier/models/pagerduty.rb +33 -0
- data/lib/trycourier/models/pagerduty_recipient.rb +17 -0
- data/lib/trycourier/models/send_direct_message.rb +15 -0
- data/lib/trycourier/models/send_message_params.rb +24 -7
- data/lib/trycourier/models/send_to_channel.rb +15 -0
- data/lib/trycourier/models/send_to_ms_teams_channel_id.rb +27 -0
- data/lib/trycourier/models/send_to_ms_teams_channel_name.rb +33 -0
- data/lib/trycourier/models/send_to_ms_teams_conversation_id.rb +27 -0
- data/lib/trycourier/models/send_to_ms_teams_email.rb +27 -0
- data/lib/trycourier/models/send_to_ms_teams_user_id.rb +27 -0
- data/lib/trycourier/models/send_to_slack_channel.rb +21 -0
- data/lib/trycourier/models/send_to_slack_email.rb +21 -0
- data/lib/trycourier/models/send_to_slack_user_id.rb +21 -0
- data/lib/trycourier/models/single_filter_config.rb +62 -0
- data/lib/trycourier/models/slack.rb +18 -0
- data/lib/trycourier/models/slack_base_properties.rb +15 -0
- data/lib/trycourier/models/slack_recipient.rb +17 -0
- data/lib/trycourier/models/token.rb +15 -0
- data/lib/trycourier/models/user_profile.rb +274 -0
- data/lib/trycourier/models/user_profile_firebase_token.rb +19 -0
- data/lib/trycourier/models/webhook_auth_mode.rb +16 -0
- data/lib/trycourier/models/webhook_authentication.rb +40 -0
- data/lib/trycourier/models/webhook_method.rb +15 -0
- data/lib/trycourier/models/webhook_profile.rb +53 -0
- data/lib/trycourier/models/webhook_profile_type.rb +15 -0
- data/lib/trycourier/models/webhook_recipient.rb +17 -0
- data/lib/trycourier/models.rb +84 -2
- data/lib/trycourier/resources/audiences.rb +1 -1
- data/lib/trycourier/version.rb +1 -1
- data/lib/trycourier.rb +42 -1
- data/rbi/trycourier/models/airship_profile.rbi +41 -0
- data/rbi/trycourier/models/airship_profile_audience.rbi +26 -0
- data/rbi/trycourier/models/audience.rbi +8 -7
- data/rbi/trycourier/models/audience_filter.rbi +88 -0
- data/rbi/trycourier/models/audience_recipient.rbi +52 -0
- data/rbi/trycourier/models/audience_update_params.rbi +25 -7
- data/rbi/trycourier/models/device_type.rbi +7 -0
- data/rbi/trycourier/models/discord.rbi +18 -0
- data/rbi/trycourier/models/expo.rbi +16 -0
- data/rbi/trycourier/models/filter.rbi +8 -78
- data/rbi/trycourier/models/filter_config.rbi +8 -83
- data/rbi/trycourier/models/intercom.rbi +35 -0
- data/rbi/trycourier/models/intercom_recipient.rbi +23 -0
- data/rbi/trycourier/models/list_filter.rbi +86 -0
- data/rbi/trycourier/models/list_pattern_recipient.rbi +39 -0
- data/rbi/trycourier/models/list_recipient.rbi +44 -0
- data/rbi/trycourier/models/ms_teams.rbi +24 -0
- data/rbi/trycourier/models/ms_teams_base_properties.rbi +31 -0
- data/rbi/trycourier/models/ms_teams_recipient.rbi +58 -0
- data/rbi/trycourier/models/multiple_tokens.rbi +27 -0
- data/rbi/trycourier/models/nested_filter_config.rbi +104 -0
- data/rbi/trycourier/models/pagerduty.rbi +53 -0
- data/rbi/trycourier/models/pagerduty_recipient.rbi +31 -0
- data/rbi/trycourier/models/send_direct_message.rbi +23 -0
- data/rbi/trycourier/models/send_message_params.rbi +34 -10
- data/rbi/trycourier/models/send_to_channel.rbi +23 -0
- data/rbi/trycourier/models/send_to_ms_teams_channel_id.rbi +42 -0
- data/rbi/trycourier/models/send_to_ms_teams_channel_name.rbi +51 -0
- data/rbi/trycourier/models/send_to_ms_teams_conversation_id.rbi +42 -0
- data/rbi/trycourier/models/send_to_ms_teams_email.rbi +37 -0
- data/rbi/trycourier/models/send_to_ms_teams_user_id.rbi +37 -0
- data/rbi/trycourier/models/send_to_slack_channel.rbi +28 -0
- data/rbi/trycourier/models/send_to_slack_email.rbi +28 -0
- data/rbi/trycourier/models/send_to_slack_user_id.rbi +28 -0
- data/rbi/trycourier/models/single_filter_config.rbi +116 -0
- data/rbi/trycourier/models/slack.rbi +22 -0
- data/rbi/trycourier/models/slack_base_properties.rbi +23 -0
- data/rbi/trycourier/models/slack_recipient.rbi +52 -0
- data/rbi/trycourier/models/token.rbi +21 -0
- data/rbi/trycourier/models/user_profile.rbi +377 -0
- data/rbi/trycourier/models/user_profile_firebase_token.rbi +25 -0
- data/rbi/trycourier/models/webhook_auth_mode.rbi +22 -0
- data/rbi/trycourier/models/webhook_authentication.rbi +64 -0
- data/rbi/trycourier/models/webhook_method.rbi +21 -0
- data/rbi/trycourier/models/webhook_profile.rbi +80 -0
- data/rbi/trycourier/models/webhook_profile_type.rbi +22 -0
- data/rbi/trycourier/models/webhook_recipient.rbi +31 -0
- data/rbi/trycourier/models.rbi +84 -2
- data/rbi/trycourier/resources/audiences.rbi +7 -1
- data/sig/trycourier/models/airship_profile.rbs +25 -0
- data/sig/trycourier/models/airship_profile_audience.rbs +13 -0
- data/sig/trycourier/models/audience.rbs +4 -4
- data/sig/trycourier/models/audience_filter.rbs +50 -0
- data/sig/trycourier/models/audience_recipient.rbs +30 -0
- data/sig/trycourier/models/audience_update_params.rbs +8 -4
- data/sig/trycourier/models/device_type.rbs +5 -0
- data/sig/trycourier/models/discord.rbs +11 -0
- data/sig/trycourier/models/expo.rbs +11 -0
- data/sig/trycourier/models/filter.rbs +4 -61
- data/sig/trycourier/models/filter_config.rbs +4 -61
- data/sig/trycourier/models/intercom.rbs +15 -0
- data/sig/trycourier/models/intercom_recipient.rbs +13 -0
- data/sig/trycourier/models/list_filter.rbs +50 -0
- data/sig/trycourier/models/list_pattern_recipient.rbs +19 -0
- data/sig/trycourier/models/list_recipient.rbs +30 -0
- data/sig/trycourier/models/ms_teams.rbs +16 -0
- data/sig/trycourier/models/ms_teams_base_properties.rbs +15 -0
- data/sig/trycourier/models/ms_teams_recipient.rbs +13 -0
- data/sig/trycourier/models/multiple_tokens.rbs +13 -0
- data/sig/trycourier/models/nested_filter_config.rbs +64 -0
- data/sig/trycourier/models/pagerduty.rbs +35 -0
- data/sig/trycourier/models/pagerduty_recipient.rbs +13 -0
- data/sig/trycourier/models/send_direct_message.rbs +13 -0
- data/sig/trycourier/models/send_message_params.rbs +9 -3
- data/sig/trycourier/models/send_to_channel.rbs +13 -0
- data/sig/trycourier/models/send_to_ms_teams_channel_id.rbs +26 -0
- data/sig/trycourier/models/send_to_ms_teams_channel_name.rbs +35 -0
- data/sig/trycourier/models/send_to_ms_teams_conversation_id.rbs +26 -0
- data/sig/trycourier/models/send_to_ms_teams_email.rbs +22 -0
- data/sig/trycourier/models/send_to_ms_teams_user_id.rbs +26 -0
- data/sig/trycourier/models/send_to_slack_channel.rbs +15 -0
- data/sig/trycourier/models/send_to_slack_email.rbs +15 -0
- data/sig/trycourier/models/send_to_slack_user_id.rbs +15 -0
- data/sig/trycourier/models/single_filter_config.rbs +69 -0
- data/sig/trycourier/models/slack.rbs +14 -0
- data/sig/trycourier/models/slack_base_properties.rbs +13 -0
- data/sig/trycourier/models/slack_recipient.rbs +13 -0
- data/sig/trycourier/models/token.rbs +13 -0
- data/sig/trycourier/models/user_profile.rbs +212 -0
- data/sig/trycourier/models/user_profile_firebase_token.rbs +13 -0
- data/sig/trycourier/models/webhook_auth_mode.rbs +15 -0
- data/sig/trycourier/models/webhook_authentication.rbs +35 -0
- data/sig/trycourier/models/webhook_method.rbs +14 -0
- data/sig/trycourier/models/webhook_profile.rbs +40 -0
- data/sig/trycourier/models/webhook_profile_type.rbs +14 -0
- data/sig/trycourier/models/webhook_recipient.rbs +13 -0
- data/sig/trycourier/models.rbs +86 -4
- data/sig/trycourier/resources/audiences.rbs +1 -1
- metadata +128 -5
- data/lib/trycourier/models/recipient.rb +0 -113
- data/rbi/trycourier/models/recipient.rbi +0 -161
- data/sig/trycourier/models/recipient.rbs +0 -92
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trycourier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Courier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -55,13 +55,17 @@ files:
|
|
|
55
55
|
- lib/trycourier/internal/type/unknown.rb
|
|
56
56
|
- lib/trycourier/internal/util.rb
|
|
57
57
|
- lib/trycourier/models.rb
|
|
58
|
+
- lib/trycourier/models/airship_profile.rb
|
|
59
|
+
- lib/trycourier/models/airship_profile_audience.rb
|
|
58
60
|
- lib/trycourier/models/alignment.rb
|
|
59
61
|
- lib/trycourier/models/audience.rb
|
|
60
62
|
- lib/trycourier/models/audience_delete_params.rb
|
|
63
|
+
- lib/trycourier/models/audience_filter.rb
|
|
61
64
|
- lib/trycourier/models/audience_list_members_params.rb
|
|
62
65
|
- lib/trycourier/models/audience_list_members_response.rb
|
|
63
66
|
- lib/trycourier/models/audience_list_params.rb
|
|
64
67
|
- lib/trycourier/models/audience_list_response.rb
|
|
68
|
+
- lib/trycourier/models/audience_recipient.rb
|
|
65
69
|
- lib/trycourier/models/audience_retrieve_params.rb
|
|
66
70
|
- lib/trycourier/models/audience_update_params.rb
|
|
67
71
|
- lib/trycourier/models/audience_update_response.rb
|
|
@@ -102,6 +106,8 @@ files:
|
|
|
102
106
|
- lib/trycourier/models/channel_preference.rb
|
|
103
107
|
- lib/trycourier/models/check.rb
|
|
104
108
|
- lib/trycourier/models/default_preferences.rb
|
|
109
|
+
- lib/trycourier/models/device_type.rb
|
|
110
|
+
- lib/trycourier/models/discord.rb
|
|
105
111
|
- lib/trycourier/models/elemental_action_node_with_type.rb
|
|
106
112
|
- lib/trycourier/models/elemental_base_node.rb
|
|
107
113
|
- lib/trycourier/models/elemental_channel_node.rb
|
|
@@ -117,6 +123,7 @@ files:
|
|
|
117
123
|
- lib/trycourier/models/email_footer.rb
|
|
118
124
|
- lib/trycourier/models/email_head.rb
|
|
119
125
|
- lib/trycourier/models/email_header.rb
|
|
126
|
+
- lib/trycourier/models/expo.rb
|
|
120
127
|
- lib/trycourier/models/filter.rb
|
|
121
128
|
- lib/trycourier/models/filter_config.rb
|
|
122
129
|
- lib/trycourier/models/icons.rb
|
|
@@ -124,9 +131,14 @@ files:
|
|
|
124
131
|
- lib/trycourier/models/inbound_bulk_message_user.rb
|
|
125
132
|
- lib/trycourier/models/inbound_track_event_params.rb
|
|
126
133
|
- lib/trycourier/models/inbound_track_event_response.rb
|
|
134
|
+
- lib/trycourier/models/intercom.rb
|
|
135
|
+
- lib/trycourier/models/intercom_recipient.rb
|
|
127
136
|
- lib/trycourier/models/list_delete_params.rb
|
|
137
|
+
- lib/trycourier/models/list_filter.rb
|
|
128
138
|
- lib/trycourier/models/list_list_params.rb
|
|
129
139
|
- lib/trycourier/models/list_list_response.rb
|
|
140
|
+
- lib/trycourier/models/list_pattern_recipient.rb
|
|
141
|
+
- lib/trycourier/models/list_recipient.rb
|
|
130
142
|
- lib/trycourier/models/list_restore_params.rb
|
|
131
143
|
- lib/trycourier/models/list_retrieve_params.rb
|
|
132
144
|
- lib/trycourier/models/list_update_params.rb
|
|
@@ -150,6 +162,11 @@ files:
|
|
|
150
162
|
- lib/trycourier/models/message_retrieve_response.rb
|
|
151
163
|
- lib/trycourier/models/message_routing.rb
|
|
152
164
|
- lib/trycourier/models/message_routing_channel.rb
|
|
165
|
+
- lib/trycourier/models/ms_teams.rb
|
|
166
|
+
- lib/trycourier/models/ms_teams_base_properties.rb
|
|
167
|
+
- lib/trycourier/models/ms_teams_recipient.rb
|
|
168
|
+
- lib/trycourier/models/multiple_tokens.rb
|
|
169
|
+
- lib/trycourier/models/nested_filter_config.rb
|
|
153
170
|
- lib/trycourier/models/notification_get_content.rb
|
|
154
171
|
- lib/trycourier/models/notification_list_params.rb
|
|
155
172
|
- lib/trycourier/models/notification_list_response.rb
|
|
@@ -161,6 +178,8 @@ files:
|
|
|
161
178
|
- lib/trycourier/models/notifications/check_update_params.rb
|
|
162
179
|
- lib/trycourier/models/notifications/check_update_response.rb
|
|
163
180
|
- lib/trycourier/models/notifications/draft_retrieve_content_params.rb
|
|
181
|
+
- lib/trycourier/models/pagerduty.rb
|
|
182
|
+
- lib/trycourier/models/pagerduty_recipient.rb
|
|
164
183
|
- lib/trycourier/models/paging.rb
|
|
165
184
|
- lib/trycourier/models/preference.rb
|
|
166
185
|
- lib/trycourier/models/preference_status.rb
|
|
@@ -179,12 +198,25 @@ files:
|
|
|
179
198
|
- lib/trycourier/models/profiles/list_subscribe_params.rb
|
|
180
199
|
- lib/trycourier/models/profiles/list_subscribe_response.rb
|
|
181
200
|
- lib/trycourier/models/put_subscriptions_recipient.rb
|
|
182
|
-
- lib/trycourier/models/recipient.rb
|
|
183
201
|
- lib/trycourier/models/recipient_preferences.rb
|
|
184
202
|
- lib/trycourier/models/request_archive_params.rb
|
|
185
203
|
- lib/trycourier/models/rule.rb
|
|
204
|
+
- lib/trycourier/models/send_direct_message.rb
|
|
186
205
|
- lib/trycourier/models/send_message_params.rb
|
|
187
206
|
- lib/trycourier/models/send_message_response.rb
|
|
207
|
+
- lib/trycourier/models/send_to_channel.rb
|
|
208
|
+
- lib/trycourier/models/send_to_ms_teams_channel_id.rb
|
|
209
|
+
- lib/trycourier/models/send_to_ms_teams_channel_name.rb
|
|
210
|
+
- lib/trycourier/models/send_to_ms_teams_conversation_id.rb
|
|
211
|
+
- lib/trycourier/models/send_to_ms_teams_email.rb
|
|
212
|
+
- lib/trycourier/models/send_to_ms_teams_user_id.rb
|
|
213
|
+
- lib/trycourier/models/send_to_slack_channel.rb
|
|
214
|
+
- lib/trycourier/models/send_to_slack_email.rb
|
|
215
|
+
- lib/trycourier/models/send_to_slack_user_id.rb
|
|
216
|
+
- lib/trycourier/models/single_filter_config.rb
|
|
217
|
+
- lib/trycourier/models/slack.rb
|
|
218
|
+
- lib/trycourier/models/slack_base_properties.rb
|
|
219
|
+
- lib/trycourier/models/slack_recipient.rb
|
|
188
220
|
- lib/trycourier/models/subscribe_to_lists_request_item.rb
|
|
189
221
|
- lib/trycourier/models/subscription_list.rb
|
|
190
222
|
- lib/trycourier/models/subscription_topic_new.rb
|
|
@@ -203,9 +235,12 @@ files:
|
|
|
203
235
|
- lib/trycourier/models/tenants/template_list_response.rb
|
|
204
236
|
- lib/trycourier/models/tenants/template_retrieve_params.rb
|
|
205
237
|
- lib/trycourier/models/text_style.rb
|
|
238
|
+
- lib/trycourier/models/token.rb
|
|
206
239
|
- lib/trycourier/models/translation_retrieve_params.rb
|
|
207
240
|
- lib/trycourier/models/translation_retrieve_response.rb
|
|
208
241
|
- lib/trycourier/models/translation_update_params.rb
|
|
242
|
+
- lib/trycourier/models/user_profile.rb
|
|
243
|
+
- lib/trycourier/models/user_profile_firebase_token.rb
|
|
209
244
|
- lib/trycourier/models/user_recipient.rb
|
|
210
245
|
- lib/trycourier/models/users/preference_retrieve_params.rb
|
|
211
246
|
- lib/trycourier/models/users/preference_retrieve_response.rb
|
|
@@ -230,6 +265,12 @@ files:
|
|
|
230
265
|
- lib/trycourier/models/users/topic_preference.rb
|
|
231
266
|
- lib/trycourier/models/users/user_token.rb
|
|
232
267
|
- lib/trycourier/models/utm.rb
|
|
268
|
+
- lib/trycourier/models/webhook_auth_mode.rb
|
|
269
|
+
- lib/trycourier/models/webhook_authentication.rb
|
|
270
|
+
- lib/trycourier/models/webhook_method.rb
|
|
271
|
+
- lib/trycourier/models/webhook_profile.rb
|
|
272
|
+
- lib/trycourier/models/webhook_profile_type.rb
|
|
273
|
+
- lib/trycourier/models/webhook_recipient.rb
|
|
233
274
|
- lib/trycourier/models/widget_background.rb
|
|
234
275
|
- lib/trycourier/request_options.rb
|
|
235
276
|
- lib/trycourier/resources/audiences.rb
|
|
@@ -280,13 +321,17 @@ files:
|
|
|
280
321
|
- rbi/trycourier/internal/type/unknown.rbi
|
|
281
322
|
- rbi/trycourier/internal/util.rbi
|
|
282
323
|
- rbi/trycourier/models.rbi
|
|
324
|
+
- rbi/trycourier/models/airship_profile.rbi
|
|
325
|
+
- rbi/trycourier/models/airship_profile_audience.rbi
|
|
283
326
|
- rbi/trycourier/models/alignment.rbi
|
|
284
327
|
- rbi/trycourier/models/audience.rbi
|
|
285
328
|
- rbi/trycourier/models/audience_delete_params.rbi
|
|
329
|
+
- rbi/trycourier/models/audience_filter.rbi
|
|
286
330
|
- rbi/trycourier/models/audience_list_members_params.rbi
|
|
287
331
|
- rbi/trycourier/models/audience_list_members_response.rbi
|
|
288
332
|
- rbi/trycourier/models/audience_list_params.rbi
|
|
289
333
|
- rbi/trycourier/models/audience_list_response.rbi
|
|
334
|
+
- rbi/trycourier/models/audience_recipient.rbi
|
|
290
335
|
- rbi/trycourier/models/audience_retrieve_params.rbi
|
|
291
336
|
- rbi/trycourier/models/audience_update_params.rbi
|
|
292
337
|
- rbi/trycourier/models/audience_update_response.rbi
|
|
@@ -327,6 +372,8 @@ files:
|
|
|
327
372
|
- rbi/trycourier/models/channel_preference.rbi
|
|
328
373
|
- rbi/trycourier/models/check.rbi
|
|
329
374
|
- rbi/trycourier/models/default_preferences.rbi
|
|
375
|
+
- rbi/trycourier/models/device_type.rbi
|
|
376
|
+
- rbi/trycourier/models/discord.rbi
|
|
330
377
|
- rbi/trycourier/models/elemental_action_node_with_type.rbi
|
|
331
378
|
- rbi/trycourier/models/elemental_base_node.rbi
|
|
332
379
|
- rbi/trycourier/models/elemental_channel_node.rbi
|
|
@@ -342,6 +389,7 @@ files:
|
|
|
342
389
|
- rbi/trycourier/models/email_footer.rbi
|
|
343
390
|
- rbi/trycourier/models/email_head.rbi
|
|
344
391
|
- rbi/trycourier/models/email_header.rbi
|
|
392
|
+
- rbi/trycourier/models/expo.rbi
|
|
345
393
|
- rbi/trycourier/models/filter.rbi
|
|
346
394
|
- rbi/trycourier/models/filter_config.rbi
|
|
347
395
|
- rbi/trycourier/models/icons.rbi
|
|
@@ -349,9 +397,14 @@ files:
|
|
|
349
397
|
- rbi/trycourier/models/inbound_bulk_message_user.rbi
|
|
350
398
|
- rbi/trycourier/models/inbound_track_event_params.rbi
|
|
351
399
|
- rbi/trycourier/models/inbound_track_event_response.rbi
|
|
400
|
+
- rbi/trycourier/models/intercom.rbi
|
|
401
|
+
- rbi/trycourier/models/intercom_recipient.rbi
|
|
352
402
|
- rbi/trycourier/models/list_delete_params.rbi
|
|
403
|
+
- rbi/trycourier/models/list_filter.rbi
|
|
353
404
|
- rbi/trycourier/models/list_list_params.rbi
|
|
354
405
|
- rbi/trycourier/models/list_list_response.rbi
|
|
406
|
+
- rbi/trycourier/models/list_pattern_recipient.rbi
|
|
407
|
+
- rbi/trycourier/models/list_recipient.rbi
|
|
355
408
|
- rbi/trycourier/models/list_restore_params.rbi
|
|
356
409
|
- rbi/trycourier/models/list_retrieve_params.rbi
|
|
357
410
|
- rbi/trycourier/models/list_update_params.rbi
|
|
@@ -375,6 +428,11 @@ files:
|
|
|
375
428
|
- rbi/trycourier/models/message_retrieve_response.rbi
|
|
376
429
|
- rbi/trycourier/models/message_routing.rbi
|
|
377
430
|
- rbi/trycourier/models/message_routing_channel.rbi
|
|
431
|
+
- rbi/trycourier/models/ms_teams.rbi
|
|
432
|
+
- rbi/trycourier/models/ms_teams_base_properties.rbi
|
|
433
|
+
- rbi/trycourier/models/ms_teams_recipient.rbi
|
|
434
|
+
- rbi/trycourier/models/multiple_tokens.rbi
|
|
435
|
+
- rbi/trycourier/models/nested_filter_config.rbi
|
|
378
436
|
- rbi/trycourier/models/notification_get_content.rbi
|
|
379
437
|
- rbi/trycourier/models/notification_list_params.rbi
|
|
380
438
|
- rbi/trycourier/models/notification_list_response.rbi
|
|
@@ -386,6 +444,8 @@ files:
|
|
|
386
444
|
- rbi/trycourier/models/notifications/check_update_params.rbi
|
|
387
445
|
- rbi/trycourier/models/notifications/check_update_response.rbi
|
|
388
446
|
- rbi/trycourier/models/notifications/draft_retrieve_content_params.rbi
|
|
447
|
+
- rbi/trycourier/models/pagerduty.rbi
|
|
448
|
+
- rbi/trycourier/models/pagerduty_recipient.rbi
|
|
389
449
|
- rbi/trycourier/models/paging.rbi
|
|
390
450
|
- rbi/trycourier/models/preference.rbi
|
|
391
451
|
- rbi/trycourier/models/preference_status.rbi
|
|
@@ -404,12 +464,25 @@ files:
|
|
|
404
464
|
- rbi/trycourier/models/profiles/list_subscribe_params.rbi
|
|
405
465
|
- rbi/trycourier/models/profiles/list_subscribe_response.rbi
|
|
406
466
|
- rbi/trycourier/models/put_subscriptions_recipient.rbi
|
|
407
|
-
- rbi/trycourier/models/recipient.rbi
|
|
408
467
|
- rbi/trycourier/models/recipient_preferences.rbi
|
|
409
468
|
- rbi/trycourier/models/request_archive_params.rbi
|
|
410
469
|
- rbi/trycourier/models/rule.rbi
|
|
470
|
+
- rbi/trycourier/models/send_direct_message.rbi
|
|
411
471
|
- rbi/trycourier/models/send_message_params.rbi
|
|
412
472
|
- rbi/trycourier/models/send_message_response.rbi
|
|
473
|
+
- rbi/trycourier/models/send_to_channel.rbi
|
|
474
|
+
- rbi/trycourier/models/send_to_ms_teams_channel_id.rbi
|
|
475
|
+
- rbi/trycourier/models/send_to_ms_teams_channel_name.rbi
|
|
476
|
+
- rbi/trycourier/models/send_to_ms_teams_conversation_id.rbi
|
|
477
|
+
- rbi/trycourier/models/send_to_ms_teams_email.rbi
|
|
478
|
+
- rbi/trycourier/models/send_to_ms_teams_user_id.rbi
|
|
479
|
+
- rbi/trycourier/models/send_to_slack_channel.rbi
|
|
480
|
+
- rbi/trycourier/models/send_to_slack_email.rbi
|
|
481
|
+
- rbi/trycourier/models/send_to_slack_user_id.rbi
|
|
482
|
+
- rbi/trycourier/models/single_filter_config.rbi
|
|
483
|
+
- rbi/trycourier/models/slack.rbi
|
|
484
|
+
- rbi/trycourier/models/slack_base_properties.rbi
|
|
485
|
+
- rbi/trycourier/models/slack_recipient.rbi
|
|
413
486
|
- rbi/trycourier/models/subscribe_to_lists_request_item.rbi
|
|
414
487
|
- rbi/trycourier/models/subscription_list.rbi
|
|
415
488
|
- rbi/trycourier/models/subscription_topic_new.rbi
|
|
@@ -428,9 +501,12 @@ files:
|
|
|
428
501
|
- rbi/trycourier/models/tenants/template_list_response.rbi
|
|
429
502
|
- rbi/trycourier/models/tenants/template_retrieve_params.rbi
|
|
430
503
|
- rbi/trycourier/models/text_style.rbi
|
|
504
|
+
- rbi/trycourier/models/token.rbi
|
|
431
505
|
- rbi/trycourier/models/translation_retrieve_params.rbi
|
|
432
506
|
- rbi/trycourier/models/translation_retrieve_response.rbi
|
|
433
507
|
- rbi/trycourier/models/translation_update_params.rbi
|
|
508
|
+
- rbi/trycourier/models/user_profile.rbi
|
|
509
|
+
- rbi/trycourier/models/user_profile_firebase_token.rbi
|
|
434
510
|
- rbi/trycourier/models/user_recipient.rbi
|
|
435
511
|
- rbi/trycourier/models/users/preference_retrieve_params.rbi
|
|
436
512
|
- rbi/trycourier/models/users/preference_retrieve_response.rbi
|
|
@@ -455,6 +531,12 @@ files:
|
|
|
455
531
|
- rbi/trycourier/models/users/topic_preference.rbi
|
|
456
532
|
- rbi/trycourier/models/users/user_token.rbi
|
|
457
533
|
- rbi/trycourier/models/utm.rbi
|
|
534
|
+
- rbi/trycourier/models/webhook_auth_mode.rbi
|
|
535
|
+
- rbi/trycourier/models/webhook_authentication.rbi
|
|
536
|
+
- rbi/trycourier/models/webhook_method.rbi
|
|
537
|
+
- rbi/trycourier/models/webhook_profile.rbi
|
|
538
|
+
- rbi/trycourier/models/webhook_profile_type.rbi
|
|
539
|
+
- rbi/trycourier/models/webhook_recipient.rbi
|
|
458
540
|
- rbi/trycourier/models/widget_background.rbi
|
|
459
541
|
- rbi/trycourier/request_options.rbi
|
|
460
542
|
- rbi/trycourier/resources/audiences.rbi
|
|
@@ -504,13 +586,17 @@ files:
|
|
|
504
586
|
- sig/trycourier/internal/type/unknown.rbs
|
|
505
587
|
- sig/trycourier/internal/util.rbs
|
|
506
588
|
- sig/trycourier/models.rbs
|
|
589
|
+
- sig/trycourier/models/airship_profile.rbs
|
|
590
|
+
- sig/trycourier/models/airship_profile_audience.rbs
|
|
507
591
|
- sig/trycourier/models/alignment.rbs
|
|
508
592
|
- sig/trycourier/models/audience.rbs
|
|
509
593
|
- sig/trycourier/models/audience_delete_params.rbs
|
|
594
|
+
- sig/trycourier/models/audience_filter.rbs
|
|
510
595
|
- sig/trycourier/models/audience_list_members_params.rbs
|
|
511
596
|
- sig/trycourier/models/audience_list_members_response.rbs
|
|
512
597
|
- sig/trycourier/models/audience_list_params.rbs
|
|
513
598
|
- sig/trycourier/models/audience_list_response.rbs
|
|
599
|
+
- sig/trycourier/models/audience_recipient.rbs
|
|
514
600
|
- sig/trycourier/models/audience_retrieve_params.rbs
|
|
515
601
|
- sig/trycourier/models/audience_update_params.rbs
|
|
516
602
|
- sig/trycourier/models/audience_update_response.rbs
|
|
@@ -551,6 +637,8 @@ files:
|
|
|
551
637
|
- sig/trycourier/models/channel_preference.rbs
|
|
552
638
|
- sig/trycourier/models/check.rbs
|
|
553
639
|
- sig/trycourier/models/default_preferences.rbs
|
|
640
|
+
- sig/trycourier/models/device_type.rbs
|
|
641
|
+
- sig/trycourier/models/discord.rbs
|
|
554
642
|
- sig/trycourier/models/elemental_action_node_with_type.rbs
|
|
555
643
|
- sig/trycourier/models/elemental_base_node.rbs
|
|
556
644
|
- sig/trycourier/models/elemental_channel_node.rbs
|
|
@@ -566,6 +654,7 @@ files:
|
|
|
566
654
|
- sig/trycourier/models/email_footer.rbs
|
|
567
655
|
- sig/trycourier/models/email_head.rbs
|
|
568
656
|
- sig/trycourier/models/email_header.rbs
|
|
657
|
+
- sig/trycourier/models/expo.rbs
|
|
569
658
|
- sig/trycourier/models/filter.rbs
|
|
570
659
|
- sig/trycourier/models/filter_config.rbs
|
|
571
660
|
- sig/trycourier/models/icons.rbs
|
|
@@ -573,9 +662,14 @@ files:
|
|
|
573
662
|
- sig/trycourier/models/inbound_bulk_message_user.rbs
|
|
574
663
|
- sig/trycourier/models/inbound_track_event_params.rbs
|
|
575
664
|
- sig/trycourier/models/inbound_track_event_response.rbs
|
|
665
|
+
- sig/trycourier/models/intercom.rbs
|
|
666
|
+
- sig/trycourier/models/intercom_recipient.rbs
|
|
576
667
|
- sig/trycourier/models/list_delete_params.rbs
|
|
668
|
+
- sig/trycourier/models/list_filter.rbs
|
|
577
669
|
- sig/trycourier/models/list_list_params.rbs
|
|
578
670
|
- sig/trycourier/models/list_list_response.rbs
|
|
671
|
+
- sig/trycourier/models/list_pattern_recipient.rbs
|
|
672
|
+
- sig/trycourier/models/list_recipient.rbs
|
|
579
673
|
- sig/trycourier/models/list_restore_params.rbs
|
|
580
674
|
- sig/trycourier/models/list_retrieve_params.rbs
|
|
581
675
|
- sig/trycourier/models/list_update_params.rbs
|
|
@@ -599,6 +693,11 @@ files:
|
|
|
599
693
|
- sig/trycourier/models/message_retrieve_response.rbs
|
|
600
694
|
- sig/trycourier/models/message_routing.rbs
|
|
601
695
|
- sig/trycourier/models/message_routing_channel.rbs
|
|
696
|
+
- sig/trycourier/models/ms_teams.rbs
|
|
697
|
+
- sig/trycourier/models/ms_teams_base_properties.rbs
|
|
698
|
+
- sig/trycourier/models/ms_teams_recipient.rbs
|
|
699
|
+
- sig/trycourier/models/multiple_tokens.rbs
|
|
700
|
+
- sig/trycourier/models/nested_filter_config.rbs
|
|
602
701
|
- sig/trycourier/models/notification_get_content.rbs
|
|
603
702
|
- sig/trycourier/models/notification_list_params.rbs
|
|
604
703
|
- sig/trycourier/models/notification_list_response.rbs
|
|
@@ -610,6 +709,8 @@ files:
|
|
|
610
709
|
- sig/trycourier/models/notifications/check_update_params.rbs
|
|
611
710
|
- sig/trycourier/models/notifications/check_update_response.rbs
|
|
612
711
|
- sig/trycourier/models/notifications/draft_retrieve_content_params.rbs
|
|
712
|
+
- sig/trycourier/models/pagerduty.rbs
|
|
713
|
+
- sig/trycourier/models/pagerduty_recipient.rbs
|
|
613
714
|
- sig/trycourier/models/paging.rbs
|
|
614
715
|
- sig/trycourier/models/preference.rbs
|
|
615
716
|
- sig/trycourier/models/preference_status.rbs
|
|
@@ -628,12 +729,25 @@ files:
|
|
|
628
729
|
- sig/trycourier/models/profiles/list_subscribe_params.rbs
|
|
629
730
|
- sig/trycourier/models/profiles/list_subscribe_response.rbs
|
|
630
731
|
- sig/trycourier/models/put_subscriptions_recipient.rbs
|
|
631
|
-
- sig/trycourier/models/recipient.rbs
|
|
632
732
|
- sig/trycourier/models/recipient_preferences.rbs
|
|
633
733
|
- sig/trycourier/models/request_archive_params.rbs
|
|
634
734
|
- sig/trycourier/models/rule.rbs
|
|
735
|
+
- sig/trycourier/models/send_direct_message.rbs
|
|
635
736
|
- sig/trycourier/models/send_message_params.rbs
|
|
636
737
|
- sig/trycourier/models/send_message_response.rbs
|
|
738
|
+
- sig/trycourier/models/send_to_channel.rbs
|
|
739
|
+
- sig/trycourier/models/send_to_ms_teams_channel_id.rbs
|
|
740
|
+
- sig/trycourier/models/send_to_ms_teams_channel_name.rbs
|
|
741
|
+
- sig/trycourier/models/send_to_ms_teams_conversation_id.rbs
|
|
742
|
+
- sig/trycourier/models/send_to_ms_teams_email.rbs
|
|
743
|
+
- sig/trycourier/models/send_to_ms_teams_user_id.rbs
|
|
744
|
+
- sig/trycourier/models/send_to_slack_channel.rbs
|
|
745
|
+
- sig/trycourier/models/send_to_slack_email.rbs
|
|
746
|
+
- sig/trycourier/models/send_to_slack_user_id.rbs
|
|
747
|
+
- sig/trycourier/models/single_filter_config.rbs
|
|
748
|
+
- sig/trycourier/models/slack.rbs
|
|
749
|
+
- sig/trycourier/models/slack_base_properties.rbs
|
|
750
|
+
- sig/trycourier/models/slack_recipient.rbs
|
|
637
751
|
- sig/trycourier/models/subscribe_to_lists_request_item.rbs
|
|
638
752
|
- sig/trycourier/models/subscription_list.rbs
|
|
639
753
|
- sig/trycourier/models/subscription_topic_new.rbs
|
|
@@ -652,9 +766,12 @@ files:
|
|
|
652
766
|
- sig/trycourier/models/tenants/template_list_response.rbs
|
|
653
767
|
- sig/trycourier/models/tenants/template_retrieve_params.rbs
|
|
654
768
|
- sig/trycourier/models/text_style.rbs
|
|
769
|
+
- sig/trycourier/models/token.rbs
|
|
655
770
|
- sig/trycourier/models/translation_retrieve_params.rbs
|
|
656
771
|
- sig/trycourier/models/translation_retrieve_response.rbs
|
|
657
772
|
- sig/trycourier/models/translation_update_params.rbs
|
|
773
|
+
- sig/trycourier/models/user_profile.rbs
|
|
774
|
+
- sig/trycourier/models/user_profile_firebase_token.rbs
|
|
658
775
|
- sig/trycourier/models/user_recipient.rbs
|
|
659
776
|
- sig/trycourier/models/users/preference_retrieve_params.rbs
|
|
660
777
|
- sig/trycourier/models/users/preference_retrieve_response.rbs
|
|
@@ -679,6 +796,12 @@ files:
|
|
|
679
796
|
- sig/trycourier/models/users/topic_preference.rbs
|
|
680
797
|
- sig/trycourier/models/users/user_token.rbs
|
|
681
798
|
- sig/trycourier/models/utm.rbs
|
|
799
|
+
- sig/trycourier/models/webhook_auth_mode.rbs
|
|
800
|
+
- sig/trycourier/models/webhook_authentication.rbs
|
|
801
|
+
- sig/trycourier/models/webhook_method.rbs
|
|
802
|
+
- sig/trycourier/models/webhook_profile.rbs
|
|
803
|
+
- sig/trycourier/models/webhook_profile_type.rbs
|
|
804
|
+
- sig/trycourier/models/webhook_recipient.rbs
|
|
682
805
|
- sig/trycourier/models/widget_background.rbs
|
|
683
806
|
- sig/trycourier/request_options.rbs
|
|
684
807
|
- sig/trycourier/resources/audiences.rbs
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Trycourier
|
|
4
|
-
module Models
|
|
5
|
-
class Recipient < Trycourier::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute account_id
|
|
7
|
-
# Deprecated - Use `tenant_id` instead.
|
|
8
|
-
#
|
|
9
|
-
# @return [String, nil]
|
|
10
|
-
optional :account_id, String, nil?: true
|
|
11
|
-
|
|
12
|
-
# @!attribute context
|
|
13
|
-
# Context such as tenant_id to send the notification with.
|
|
14
|
-
#
|
|
15
|
-
# @return [Trycourier::Models::MessageContext, nil]
|
|
16
|
-
optional :context, -> { Trycourier::MessageContext }, nil?: true
|
|
17
|
-
|
|
18
|
-
# @!attribute data
|
|
19
|
-
#
|
|
20
|
-
# @return [Hash{Symbol=>Object}, nil]
|
|
21
|
-
optional :data, Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown], nil?: true
|
|
22
|
-
|
|
23
|
-
# @!attribute email
|
|
24
|
-
# The user's email address.
|
|
25
|
-
#
|
|
26
|
-
# @return [String, nil]
|
|
27
|
-
optional :email, String, nil?: true
|
|
28
|
-
|
|
29
|
-
# @!attribute list_id
|
|
30
|
-
# The id of the list to send the message to.
|
|
31
|
-
#
|
|
32
|
-
# @return [String, nil]
|
|
33
|
-
optional :list_id, String, nil?: true
|
|
34
|
-
|
|
35
|
-
# @!attribute locale
|
|
36
|
-
# The user's preferred ISO 639-1 language code.
|
|
37
|
-
#
|
|
38
|
-
# @return [String, nil]
|
|
39
|
-
optional :locale, String, nil?: true
|
|
40
|
-
|
|
41
|
-
# @!attribute phone_number
|
|
42
|
-
# The user's phone number.
|
|
43
|
-
#
|
|
44
|
-
# @return [String, nil]
|
|
45
|
-
optional :phone_number, String, nil?: true
|
|
46
|
-
|
|
47
|
-
# @!attribute preferences
|
|
48
|
-
#
|
|
49
|
-
# @return [Trycourier::Models::Recipient::Preferences, nil]
|
|
50
|
-
optional :preferences, -> { Trycourier::Recipient::Preferences }, nil?: true
|
|
51
|
-
|
|
52
|
-
# @!attribute tenant_id
|
|
53
|
-
# The id of the tenant the user is associated with.
|
|
54
|
-
#
|
|
55
|
-
# @return [String, nil]
|
|
56
|
-
optional :tenant_id, String, nil?: true
|
|
57
|
-
|
|
58
|
-
# @!attribute user_id
|
|
59
|
-
# The user's unique identifier. Typically, this will match the user id of a user
|
|
60
|
-
# in your system.
|
|
61
|
-
#
|
|
62
|
-
# @return [String, nil]
|
|
63
|
-
optional :user_id, String, nil?: true
|
|
64
|
-
|
|
65
|
-
# @!method initialize(account_id: nil, context: nil, data: nil, email: nil, list_id: nil, locale: nil, phone_number: nil, preferences: nil, tenant_id: nil, user_id: nil)
|
|
66
|
-
# Some parameter documentations has been truncated, see
|
|
67
|
-
# {Trycourier::Models::Recipient} for more details.
|
|
68
|
-
#
|
|
69
|
-
# @param account_id [String, nil] Deprecated - Use `tenant_id` instead.
|
|
70
|
-
#
|
|
71
|
-
# @param context [Trycourier::Models::MessageContext, nil] Context such as tenant_id to send the notification with.
|
|
72
|
-
#
|
|
73
|
-
# @param data [Hash{Symbol=>Object}, nil]
|
|
74
|
-
#
|
|
75
|
-
# @param email [String, nil] The user's email address.
|
|
76
|
-
#
|
|
77
|
-
# @param list_id [String, nil] The id of the list to send the message to.
|
|
78
|
-
#
|
|
79
|
-
# @param locale [String, nil] The user's preferred ISO 639-1 language code.
|
|
80
|
-
#
|
|
81
|
-
# @param phone_number [String, nil] The user's phone number.
|
|
82
|
-
#
|
|
83
|
-
# @param preferences [Trycourier::Models::Recipient::Preferences, nil]
|
|
84
|
-
#
|
|
85
|
-
# @param tenant_id [String, nil] The id of the tenant the user is associated with.
|
|
86
|
-
#
|
|
87
|
-
# @param user_id [String, nil] The user's unique identifier. Typically, this will match the user id of a user i
|
|
88
|
-
|
|
89
|
-
# @see Trycourier::Models::Recipient#preferences
|
|
90
|
-
class Preferences < Trycourier::Internal::Type::BaseModel
|
|
91
|
-
# @!attribute notifications
|
|
92
|
-
#
|
|
93
|
-
# @return [Hash{Symbol=>Trycourier::Models::Preference}]
|
|
94
|
-
required :notifications, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }
|
|
95
|
-
|
|
96
|
-
# @!attribute categories
|
|
97
|
-
#
|
|
98
|
-
# @return [Hash{Symbol=>Trycourier::Models::Preference}, nil]
|
|
99
|
-
optional :categories, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }, nil?: true
|
|
100
|
-
|
|
101
|
-
# @!attribute template_id
|
|
102
|
-
#
|
|
103
|
-
# @return [String, nil]
|
|
104
|
-
optional :template_id, String, api_name: :templateId, nil?: true
|
|
105
|
-
|
|
106
|
-
# @!method initialize(notifications:, categories: nil, template_id: nil)
|
|
107
|
-
# @param notifications [Hash{Symbol=>Trycourier::Models::Preference}]
|
|
108
|
-
# @param categories [Hash{Symbol=>Trycourier::Models::Preference}, nil]
|
|
109
|
-
# @param template_id [String, nil]
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Trycourier
|
|
4
|
-
module Models
|
|
5
|
-
class Recipient < Trycourier::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Trycourier::Recipient, Trycourier::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# Deprecated - Use `tenant_id` instead.
|
|
12
|
-
sig { returns(T.nilable(String)) }
|
|
13
|
-
attr_accessor :account_id
|
|
14
|
-
|
|
15
|
-
# Context such as tenant_id to send the notification with.
|
|
16
|
-
sig { returns(T.nilable(Trycourier::MessageContext)) }
|
|
17
|
-
attr_reader :context
|
|
18
|
-
|
|
19
|
-
sig do
|
|
20
|
-
params(context: T.nilable(Trycourier::MessageContext::OrHash)).void
|
|
21
|
-
end
|
|
22
|
-
attr_writer :context
|
|
23
|
-
|
|
24
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
25
|
-
attr_accessor :data
|
|
26
|
-
|
|
27
|
-
# The user's email address.
|
|
28
|
-
sig { returns(T.nilable(String)) }
|
|
29
|
-
attr_accessor :email
|
|
30
|
-
|
|
31
|
-
# The id of the list to send the message to.
|
|
32
|
-
sig { returns(T.nilable(String)) }
|
|
33
|
-
attr_accessor :list_id
|
|
34
|
-
|
|
35
|
-
# The user's preferred ISO 639-1 language code.
|
|
36
|
-
sig { returns(T.nilable(String)) }
|
|
37
|
-
attr_accessor :locale
|
|
38
|
-
|
|
39
|
-
# The user's phone number.
|
|
40
|
-
sig { returns(T.nilable(String)) }
|
|
41
|
-
attr_accessor :phone_number
|
|
42
|
-
|
|
43
|
-
sig { returns(T.nilable(Trycourier::Recipient::Preferences)) }
|
|
44
|
-
attr_reader :preferences
|
|
45
|
-
|
|
46
|
-
sig do
|
|
47
|
-
params(
|
|
48
|
-
preferences: T.nilable(Trycourier::Recipient::Preferences::OrHash)
|
|
49
|
-
).void
|
|
50
|
-
end
|
|
51
|
-
attr_writer :preferences
|
|
52
|
-
|
|
53
|
-
# The id of the tenant the user is associated with.
|
|
54
|
-
sig { returns(T.nilable(String)) }
|
|
55
|
-
attr_accessor :tenant_id
|
|
56
|
-
|
|
57
|
-
# The user's unique identifier. Typically, this will match the user id of a user
|
|
58
|
-
# in your system.
|
|
59
|
-
sig { returns(T.nilable(String)) }
|
|
60
|
-
attr_accessor :user_id
|
|
61
|
-
|
|
62
|
-
sig do
|
|
63
|
-
params(
|
|
64
|
-
account_id: T.nilable(String),
|
|
65
|
-
context: T.nilable(Trycourier::MessageContext::OrHash),
|
|
66
|
-
data: T.nilable(T::Hash[Symbol, T.anything]),
|
|
67
|
-
email: T.nilable(String),
|
|
68
|
-
list_id: T.nilable(String),
|
|
69
|
-
locale: T.nilable(String),
|
|
70
|
-
phone_number: T.nilable(String),
|
|
71
|
-
preferences: T.nilable(Trycourier::Recipient::Preferences::OrHash),
|
|
72
|
-
tenant_id: T.nilable(String),
|
|
73
|
-
user_id: T.nilable(String)
|
|
74
|
-
).returns(T.attached_class)
|
|
75
|
-
end
|
|
76
|
-
def self.new(
|
|
77
|
-
# Deprecated - Use `tenant_id` instead.
|
|
78
|
-
account_id: nil,
|
|
79
|
-
# Context such as tenant_id to send the notification with.
|
|
80
|
-
context: nil,
|
|
81
|
-
data: nil,
|
|
82
|
-
# The user's email address.
|
|
83
|
-
email: nil,
|
|
84
|
-
# The id of the list to send the message to.
|
|
85
|
-
list_id: nil,
|
|
86
|
-
# The user's preferred ISO 639-1 language code.
|
|
87
|
-
locale: nil,
|
|
88
|
-
# The user's phone number.
|
|
89
|
-
phone_number: nil,
|
|
90
|
-
preferences: nil,
|
|
91
|
-
# The id of the tenant the user is associated with.
|
|
92
|
-
tenant_id: nil,
|
|
93
|
-
# The user's unique identifier. Typically, this will match the user id of a user
|
|
94
|
-
# in your system.
|
|
95
|
-
user_id: nil
|
|
96
|
-
)
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
sig do
|
|
100
|
-
override.returns(
|
|
101
|
-
{
|
|
102
|
-
account_id: T.nilable(String),
|
|
103
|
-
context: T.nilable(Trycourier::MessageContext),
|
|
104
|
-
data: T.nilable(T::Hash[Symbol, T.anything]),
|
|
105
|
-
email: T.nilable(String),
|
|
106
|
-
list_id: T.nilable(String),
|
|
107
|
-
locale: T.nilable(String),
|
|
108
|
-
phone_number: T.nilable(String),
|
|
109
|
-
preferences: T.nilable(Trycourier::Recipient::Preferences),
|
|
110
|
-
tenant_id: T.nilable(String),
|
|
111
|
-
user_id: T.nilable(String)
|
|
112
|
-
}
|
|
113
|
-
)
|
|
114
|
-
end
|
|
115
|
-
def to_hash
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
class Preferences < Trycourier::Internal::Type::BaseModel
|
|
119
|
-
OrHash =
|
|
120
|
-
T.type_alias do
|
|
121
|
-
T.any(
|
|
122
|
-
Trycourier::Recipient::Preferences,
|
|
123
|
-
Trycourier::Internal::AnyHash
|
|
124
|
-
)
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
sig { returns(T::Hash[Symbol, Trycourier::Preference]) }
|
|
128
|
-
attr_accessor :notifications
|
|
129
|
-
|
|
130
|
-
sig { returns(T.nilable(T::Hash[Symbol, Trycourier::Preference])) }
|
|
131
|
-
attr_accessor :categories
|
|
132
|
-
|
|
133
|
-
sig { returns(T.nilable(String)) }
|
|
134
|
-
attr_accessor :template_id
|
|
135
|
-
|
|
136
|
-
sig do
|
|
137
|
-
params(
|
|
138
|
-
notifications: T::Hash[Symbol, Trycourier::Preference::OrHash],
|
|
139
|
-
categories:
|
|
140
|
-
T.nilable(T::Hash[Symbol, Trycourier::Preference::OrHash]),
|
|
141
|
-
template_id: T.nilable(String)
|
|
142
|
-
).returns(T.attached_class)
|
|
143
|
-
end
|
|
144
|
-
def self.new(notifications:, categories: nil, template_id: nil)
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
sig do
|
|
148
|
-
override.returns(
|
|
149
|
-
{
|
|
150
|
-
notifications: T::Hash[Symbol, Trycourier::Preference],
|
|
151
|
-
categories: T.nilable(T::Hash[Symbol, Trycourier::Preference]),
|
|
152
|
-
template_id: T.nilable(String)
|
|
153
|
-
}
|
|
154
|
-
)
|
|
155
|
-
end
|
|
156
|
-
def to_hash
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
end
|