trycourier 4.4.0 → 4.6.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 (172) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +9 -9
  4. data/lib/trycourier/internal/transport/pooled_net_requester.rb +12 -10
  5. data/lib/trycourier/internal/type/base_model.rb +4 -3
  6. data/lib/trycourier/internal/type/union.rb +7 -9
  7. data/lib/trycourier/internal/util.rb +7 -2
  8. data/lib/trycourier/models/airship_profile.rb +21 -0
  9. data/lib/trycourier/models/airship_profile_audience.rb +15 -0
  10. data/lib/trycourier/models/audience.rb +3 -3
  11. data/lib/trycourier/models/audience_filter.rb +52 -0
  12. data/lib/trycourier/models/audience_recipient.rb +36 -0
  13. data/lib/trycourier/models/audience_update_params.rb +3 -3
  14. data/lib/trycourier/models/automation_list_params.rb +47 -0
  15. data/lib/trycourier/models/automation_template.rb +61 -0
  16. data/lib/trycourier/models/automation_template_list_response.rb +24 -0
  17. data/lib/trycourier/models/device_type.rb +7 -0
  18. data/lib/trycourier/models/discord.rb +16 -0
  19. data/lib/trycourier/models/expo.rb +16 -0
  20. data/lib/trycourier/models/filter.rb +8 -51
  21. data/lib/trycourier/models/filter_config.rb +8 -51
  22. data/lib/trycourier/models/intercom.rb +21 -0
  23. data/lib/trycourier/models/intercom_recipient.rb +15 -0
  24. data/lib/trycourier/models/list_filter.rb +52 -0
  25. data/lib/trycourier/models/list_pattern_recipient.rb +23 -0
  26. data/lib/trycourier/models/list_recipient.rb +29 -0
  27. data/lib/trycourier/models/ms_teams.rb +22 -0
  28. data/lib/trycourier/models/ms_teams_base_properties.rb +21 -0
  29. data/lib/trycourier/models/ms_teams_recipient.rb +17 -0
  30. data/lib/trycourier/models/multiple_tokens.rb +15 -0
  31. data/lib/trycourier/models/nested_filter_config.rb +49 -0
  32. data/lib/trycourier/models/pagerduty.rb +33 -0
  33. data/lib/trycourier/models/pagerduty_recipient.rb +17 -0
  34. data/lib/trycourier/models/send_direct_message.rb +15 -0
  35. data/lib/trycourier/models/send_message_params.rb +24 -7
  36. data/lib/trycourier/models/send_to_channel.rb +15 -0
  37. data/lib/trycourier/models/send_to_ms_teams_channel_id.rb +27 -0
  38. data/lib/trycourier/models/send_to_ms_teams_channel_name.rb +33 -0
  39. data/lib/trycourier/models/send_to_ms_teams_conversation_id.rb +27 -0
  40. data/lib/trycourier/models/send_to_ms_teams_email.rb +27 -0
  41. data/lib/trycourier/models/send_to_ms_teams_user_id.rb +27 -0
  42. data/lib/trycourier/models/send_to_slack_channel.rb +21 -0
  43. data/lib/trycourier/models/send_to_slack_email.rb +21 -0
  44. data/lib/trycourier/models/send_to_slack_user_id.rb +21 -0
  45. data/lib/trycourier/models/single_filter_config.rb +62 -0
  46. data/lib/trycourier/models/slack.rb +18 -0
  47. data/lib/trycourier/models/slack_base_properties.rb +15 -0
  48. data/lib/trycourier/models/slack_recipient.rb +17 -0
  49. data/lib/trycourier/models/token.rb +15 -0
  50. data/lib/trycourier/models/user_profile.rb +274 -0
  51. data/lib/trycourier/models/user_profile_firebase_token.rb +19 -0
  52. data/lib/trycourier/models/webhook_auth_mode.rb +16 -0
  53. data/lib/trycourier/models/webhook_authentication.rb +40 -0
  54. data/lib/trycourier/models/webhook_method.rb +15 -0
  55. data/lib/trycourier/models/webhook_profile.rb +53 -0
  56. data/lib/trycourier/models/webhook_profile_type.rb +15 -0
  57. data/lib/trycourier/models/webhook_recipient.rb +17 -0
  58. data/lib/trycourier/models.rb +90 -2
  59. data/lib/trycourier/resources/audiences.rb +1 -1
  60. data/lib/trycourier/resources/automations.rb +27 -0
  61. data/lib/trycourier/version.rb +1 -1
  62. data/lib/trycourier.rb +45 -1
  63. data/rbi/trycourier/models/airship_profile.rbi +41 -0
  64. data/rbi/trycourier/models/airship_profile_audience.rbi +26 -0
  65. data/rbi/trycourier/models/audience.rbi +8 -7
  66. data/rbi/trycourier/models/audience_filter.rbi +88 -0
  67. data/rbi/trycourier/models/audience_recipient.rbi +52 -0
  68. data/rbi/trycourier/models/audience_update_params.rbi +25 -7
  69. data/rbi/trycourier/models/automation_list_params.rbi +95 -0
  70. data/rbi/trycourier/models/automation_template.rbi +102 -0
  71. data/rbi/trycourier/models/automation_template_list_response.rbi +54 -0
  72. data/rbi/trycourier/models/device_type.rbi +7 -0
  73. data/rbi/trycourier/models/discord.rbi +18 -0
  74. data/rbi/trycourier/models/expo.rbi +16 -0
  75. data/rbi/trycourier/models/filter.rbi +8 -78
  76. data/rbi/trycourier/models/filter_config.rbi +8 -83
  77. data/rbi/trycourier/models/intercom.rbi +35 -0
  78. data/rbi/trycourier/models/intercom_recipient.rbi +23 -0
  79. data/rbi/trycourier/models/list_filter.rbi +86 -0
  80. data/rbi/trycourier/models/list_pattern_recipient.rbi +39 -0
  81. data/rbi/trycourier/models/list_recipient.rbi +44 -0
  82. data/rbi/trycourier/models/ms_teams.rbi +24 -0
  83. data/rbi/trycourier/models/ms_teams_base_properties.rbi +31 -0
  84. data/rbi/trycourier/models/ms_teams_recipient.rbi +58 -0
  85. data/rbi/trycourier/models/multiple_tokens.rbi +27 -0
  86. data/rbi/trycourier/models/nested_filter_config.rbi +104 -0
  87. data/rbi/trycourier/models/pagerduty.rbi +53 -0
  88. data/rbi/trycourier/models/pagerduty_recipient.rbi +31 -0
  89. data/rbi/trycourier/models/send_direct_message.rbi +23 -0
  90. data/rbi/trycourier/models/send_message_params.rbi +34 -10
  91. data/rbi/trycourier/models/send_to_channel.rbi +23 -0
  92. data/rbi/trycourier/models/send_to_ms_teams_channel_id.rbi +42 -0
  93. data/rbi/trycourier/models/send_to_ms_teams_channel_name.rbi +51 -0
  94. data/rbi/trycourier/models/send_to_ms_teams_conversation_id.rbi +42 -0
  95. data/rbi/trycourier/models/send_to_ms_teams_email.rbi +37 -0
  96. data/rbi/trycourier/models/send_to_ms_teams_user_id.rbi +37 -0
  97. data/rbi/trycourier/models/send_to_slack_channel.rbi +28 -0
  98. data/rbi/trycourier/models/send_to_slack_email.rbi +28 -0
  99. data/rbi/trycourier/models/send_to_slack_user_id.rbi +28 -0
  100. data/rbi/trycourier/models/single_filter_config.rbi +116 -0
  101. data/rbi/trycourier/models/slack.rbi +22 -0
  102. data/rbi/trycourier/models/slack_base_properties.rbi +23 -0
  103. data/rbi/trycourier/models/slack_recipient.rbi +52 -0
  104. data/rbi/trycourier/models/token.rbi +21 -0
  105. data/rbi/trycourier/models/user_profile.rbi +377 -0
  106. data/rbi/trycourier/models/user_profile_firebase_token.rbi +25 -0
  107. data/rbi/trycourier/models/webhook_auth_mode.rbi +22 -0
  108. data/rbi/trycourier/models/webhook_authentication.rbi +64 -0
  109. data/rbi/trycourier/models/webhook_method.rbi +21 -0
  110. data/rbi/trycourier/models/webhook_profile.rbi +80 -0
  111. data/rbi/trycourier/models/webhook_profile_type.rbi +22 -0
  112. data/rbi/trycourier/models/webhook_recipient.rbi +31 -0
  113. data/rbi/trycourier/models.rbi +91 -2
  114. data/rbi/trycourier/resources/audiences.rbi +7 -1
  115. data/rbi/trycourier/resources/automations.rbi +19 -0
  116. data/sig/trycourier/models/airship_profile.rbs +25 -0
  117. data/sig/trycourier/models/airship_profile_audience.rbs +13 -0
  118. data/sig/trycourier/models/audience.rbs +4 -4
  119. data/sig/trycourier/models/audience_filter.rbs +50 -0
  120. data/sig/trycourier/models/audience_recipient.rbs +30 -0
  121. data/sig/trycourier/models/audience_update_params.rbs +8 -4
  122. data/sig/trycourier/models/automation_list_params.rbs +48 -0
  123. data/sig/trycourier/models/automation_template.rbs +55 -0
  124. data/sig/trycourier/models/automation_template_list_response.rbs +28 -0
  125. data/sig/trycourier/models/device_type.rbs +5 -0
  126. data/sig/trycourier/models/discord.rbs +11 -0
  127. data/sig/trycourier/models/expo.rbs +11 -0
  128. data/sig/trycourier/models/filter.rbs +4 -61
  129. data/sig/trycourier/models/filter_config.rbs +4 -61
  130. data/sig/trycourier/models/intercom.rbs +15 -0
  131. data/sig/trycourier/models/intercom_recipient.rbs +13 -0
  132. data/sig/trycourier/models/list_filter.rbs +50 -0
  133. data/sig/trycourier/models/list_pattern_recipient.rbs +19 -0
  134. data/sig/trycourier/models/list_recipient.rbs +30 -0
  135. data/sig/trycourier/models/ms_teams.rbs +16 -0
  136. data/sig/trycourier/models/ms_teams_base_properties.rbs +15 -0
  137. data/sig/trycourier/models/ms_teams_recipient.rbs +13 -0
  138. data/sig/trycourier/models/multiple_tokens.rbs +13 -0
  139. data/sig/trycourier/models/nested_filter_config.rbs +64 -0
  140. data/sig/trycourier/models/pagerduty.rbs +35 -0
  141. data/sig/trycourier/models/pagerduty_recipient.rbs +13 -0
  142. data/sig/trycourier/models/send_direct_message.rbs +13 -0
  143. data/sig/trycourier/models/send_message_params.rbs +9 -3
  144. data/sig/trycourier/models/send_to_channel.rbs +13 -0
  145. data/sig/trycourier/models/send_to_ms_teams_channel_id.rbs +26 -0
  146. data/sig/trycourier/models/send_to_ms_teams_channel_name.rbs +35 -0
  147. data/sig/trycourier/models/send_to_ms_teams_conversation_id.rbs +26 -0
  148. data/sig/trycourier/models/send_to_ms_teams_email.rbs +22 -0
  149. data/sig/trycourier/models/send_to_ms_teams_user_id.rbs +26 -0
  150. data/sig/trycourier/models/send_to_slack_channel.rbs +15 -0
  151. data/sig/trycourier/models/send_to_slack_email.rbs +15 -0
  152. data/sig/trycourier/models/send_to_slack_user_id.rbs +15 -0
  153. data/sig/trycourier/models/single_filter_config.rbs +69 -0
  154. data/sig/trycourier/models/slack.rbs +14 -0
  155. data/sig/trycourier/models/slack_base_properties.rbs +13 -0
  156. data/sig/trycourier/models/slack_recipient.rbs +13 -0
  157. data/sig/trycourier/models/token.rbs +13 -0
  158. data/sig/trycourier/models/user_profile.rbs +212 -0
  159. data/sig/trycourier/models/user_profile_firebase_token.rbs +13 -0
  160. data/sig/trycourier/models/webhook_auth_mode.rbs +15 -0
  161. data/sig/trycourier/models/webhook_authentication.rbs +35 -0
  162. data/sig/trycourier/models/webhook_method.rbs +14 -0
  163. data/sig/trycourier/models/webhook_profile.rbs +40 -0
  164. data/sig/trycourier/models/webhook_profile_type.rbs +14 -0
  165. data/sig/trycourier/models/webhook_recipient.rbs +13 -0
  166. data/sig/trycourier/models.rbs +92 -4
  167. data/sig/trycourier/resources/audiences.rbs +1 -1
  168. data/sig/trycourier/resources/automations.rbs +6 -0
  169. metadata +137 -5
  170. data/lib/trycourier/models/recipient.rb +0 -113
  171. data/rbi/trycourier/models/recipient.rbi +0 -161
  172. data/sig/trycourier/models/recipient.rbs +0 -92
@@ -3,6 +3,12 @@ module Trycourier
3
3
  class Automations
4
4
  attr_reader invoke: Trycourier::Resources::Automations::Invoke
5
5
 
6
+ def list: (
7
+ ?cursor: String,
8
+ ?version: Trycourier::Models::AutomationListParams::version,
9
+ ?request_options: Trycourier::request_opts
10
+ ) -> Trycourier::AutomationTemplateListResponse
11
+
6
12
  def initialize: (client: Trycourier::Client) -> void
7
13
  end
8
14
  end
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.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-16 00:00:00.000000000 Z
11
+ date: 2026-01-08 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
@@ -72,6 +76,9 @@ files:
72
76
  - lib/trycourier/models/auth_issue_token_params.rb
73
77
  - lib/trycourier/models/auth_issue_token_response.rb
74
78
  - lib/trycourier/models/automation_invoke_response.rb
79
+ - lib/trycourier/models/automation_list_params.rb
80
+ - lib/trycourier/models/automation_template.rb
81
+ - lib/trycourier/models/automation_template_list_response.rb
75
82
  - lib/trycourier/models/automations/invoke_invoke_ad_hoc_params.rb
76
83
  - lib/trycourier/models/automations/invoke_invoke_by_template_params.rb
77
84
  - lib/trycourier/models/base_check.rb
@@ -102,6 +109,8 @@ files:
102
109
  - lib/trycourier/models/channel_preference.rb
103
110
  - lib/trycourier/models/check.rb
104
111
  - lib/trycourier/models/default_preferences.rb
112
+ - lib/trycourier/models/device_type.rb
113
+ - lib/trycourier/models/discord.rb
105
114
  - lib/trycourier/models/elemental_action_node_with_type.rb
106
115
  - lib/trycourier/models/elemental_base_node.rb
107
116
  - lib/trycourier/models/elemental_channel_node.rb
@@ -117,6 +126,7 @@ files:
117
126
  - lib/trycourier/models/email_footer.rb
118
127
  - lib/trycourier/models/email_head.rb
119
128
  - lib/trycourier/models/email_header.rb
129
+ - lib/trycourier/models/expo.rb
120
130
  - lib/trycourier/models/filter.rb
121
131
  - lib/trycourier/models/filter_config.rb
122
132
  - lib/trycourier/models/icons.rb
@@ -124,9 +134,14 @@ files:
124
134
  - lib/trycourier/models/inbound_bulk_message_user.rb
125
135
  - lib/trycourier/models/inbound_track_event_params.rb
126
136
  - lib/trycourier/models/inbound_track_event_response.rb
137
+ - lib/trycourier/models/intercom.rb
138
+ - lib/trycourier/models/intercom_recipient.rb
127
139
  - lib/trycourier/models/list_delete_params.rb
140
+ - lib/trycourier/models/list_filter.rb
128
141
  - lib/trycourier/models/list_list_params.rb
129
142
  - lib/trycourier/models/list_list_response.rb
143
+ - lib/trycourier/models/list_pattern_recipient.rb
144
+ - lib/trycourier/models/list_recipient.rb
130
145
  - lib/trycourier/models/list_restore_params.rb
131
146
  - lib/trycourier/models/list_retrieve_params.rb
132
147
  - lib/trycourier/models/list_update_params.rb
@@ -150,6 +165,11 @@ files:
150
165
  - lib/trycourier/models/message_retrieve_response.rb
151
166
  - lib/trycourier/models/message_routing.rb
152
167
  - lib/trycourier/models/message_routing_channel.rb
168
+ - lib/trycourier/models/ms_teams.rb
169
+ - lib/trycourier/models/ms_teams_base_properties.rb
170
+ - lib/trycourier/models/ms_teams_recipient.rb
171
+ - lib/trycourier/models/multiple_tokens.rb
172
+ - lib/trycourier/models/nested_filter_config.rb
153
173
  - lib/trycourier/models/notification_get_content.rb
154
174
  - lib/trycourier/models/notification_list_params.rb
155
175
  - lib/trycourier/models/notification_list_response.rb
@@ -161,6 +181,8 @@ files:
161
181
  - lib/trycourier/models/notifications/check_update_params.rb
162
182
  - lib/trycourier/models/notifications/check_update_response.rb
163
183
  - lib/trycourier/models/notifications/draft_retrieve_content_params.rb
184
+ - lib/trycourier/models/pagerduty.rb
185
+ - lib/trycourier/models/pagerduty_recipient.rb
164
186
  - lib/trycourier/models/paging.rb
165
187
  - lib/trycourier/models/preference.rb
166
188
  - lib/trycourier/models/preference_status.rb
@@ -179,12 +201,25 @@ files:
179
201
  - lib/trycourier/models/profiles/list_subscribe_params.rb
180
202
  - lib/trycourier/models/profiles/list_subscribe_response.rb
181
203
  - lib/trycourier/models/put_subscriptions_recipient.rb
182
- - lib/trycourier/models/recipient.rb
183
204
  - lib/trycourier/models/recipient_preferences.rb
184
205
  - lib/trycourier/models/request_archive_params.rb
185
206
  - lib/trycourier/models/rule.rb
207
+ - lib/trycourier/models/send_direct_message.rb
186
208
  - lib/trycourier/models/send_message_params.rb
187
209
  - lib/trycourier/models/send_message_response.rb
210
+ - lib/trycourier/models/send_to_channel.rb
211
+ - lib/trycourier/models/send_to_ms_teams_channel_id.rb
212
+ - lib/trycourier/models/send_to_ms_teams_channel_name.rb
213
+ - lib/trycourier/models/send_to_ms_teams_conversation_id.rb
214
+ - lib/trycourier/models/send_to_ms_teams_email.rb
215
+ - lib/trycourier/models/send_to_ms_teams_user_id.rb
216
+ - lib/trycourier/models/send_to_slack_channel.rb
217
+ - lib/trycourier/models/send_to_slack_email.rb
218
+ - lib/trycourier/models/send_to_slack_user_id.rb
219
+ - lib/trycourier/models/single_filter_config.rb
220
+ - lib/trycourier/models/slack.rb
221
+ - lib/trycourier/models/slack_base_properties.rb
222
+ - lib/trycourier/models/slack_recipient.rb
188
223
  - lib/trycourier/models/subscribe_to_lists_request_item.rb
189
224
  - lib/trycourier/models/subscription_list.rb
190
225
  - lib/trycourier/models/subscription_topic_new.rb
@@ -203,9 +238,12 @@ files:
203
238
  - lib/trycourier/models/tenants/template_list_response.rb
204
239
  - lib/trycourier/models/tenants/template_retrieve_params.rb
205
240
  - lib/trycourier/models/text_style.rb
241
+ - lib/trycourier/models/token.rb
206
242
  - lib/trycourier/models/translation_retrieve_params.rb
207
243
  - lib/trycourier/models/translation_retrieve_response.rb
208
244
  - lib/trycourier/models/translation_update_params.rb
245
+ - lib/trycourier/models/user_profile.rb
246
+ - lib/trycourier/models/user_profile_firebase_token.rb
209
247
  - lib/trycourier/models/user_recipient.rb
210
248
  - lib/trycourier/models/users/preference_retrieve_params.rb
211
249
  - lib/trycourier/models/users/preference_retrieve_response.rb
@@ -230,6 +268,12 @@ files:
230
268
  - lib/trycourier/models/users/topic_preference.rb
231
269
  - lib/trycourier/models/users/user_token.rb
232
270
  - lib/trycourier/models/utm.rb
271
+ - lib/trycourier/models/webhook_auth_mode.rb
272
+ - lib/trycourier/models/webhook_authentication.rb
273
+ - lib/trycourier/models/webhook_method.rb
274
+ - lib/trycourier/models/webhook_profile.rb
275
+ - lib/trycourier/models/webhook_profile_type.rb
276
+ - lib/trycourier/models/webhook_recipient.rb
233
277
  - lib/trycourier/models/widget_background.rb
234
278
  - lib/trycourier/request_options.rb
235
279
  - lib/trycourier/resources/audiences.rb
@@ -280,13 +324,17 @@ files:
280
324
  - rbi/trycourier/internal/type/unknown.rbi
281
325
  - rbi/trycourier/internal/util.rbi
282
326
  - rbi/trycourier/models.rbi
327
+ - rbi/trycourier/models/airship_profile.rbi
328
+ - rbi/trycourier/models/airship_profile_audience.rbi
283
329
  - rbi/trycourier/models/alignment.rbi
284
330
  - rbi/trycourier/models/audience.rbi
285
331
  - rbi/trycourier/models/audience_delete_params.rbi
332
+ - rbi/trycourier/models/audience_filter.rbi
286
333
  - rbi/trycourier/models/audience_list_members_params.rbi
287
334
  - rbi/trycourier/models/audience_list_members_response.rbi
288
335
  - rbi/trycourier/models/audience_list_params.rbi
289
336
  - rbi/trycourier/models/audience_list_response.rbi
337
+ - rbi/trycourier/models/audience_recipient.rbi
290
338
  - rbi/trycourier/models/audience_retrieve_params.rbi
291
339
  - rbi/trycourier/models/audience_update_params.rbi
292
340
  - rbi/trycourier/models/audience_update_response.rbi
@@ -297,6 +345,9 @@ files:
297
345
  - rbi/trycourier/models/auth_issue_token_params.rbi
298
346
  - rbi/trycourier/models/auth_issue_token_response.rbi
299
347
  - rbi/trycourier/models/automation_invoke_response.rbi
348
+ - rbi/trycourier/models/automation_list_params.rbi
349
+ - rbi/trycourier/models/automation_template.rbi
350
+ - rbi/trycourier/models/automation_template_list_response.rbi
300
351
  - rbi/trycourier/models/automations/invoke_invoke_ad_hoc_params.rbi
301
352
  - rbi/trycourier/models/automations/invoke_invoke_by_template_params.rbi
302
353
  - rbi/trycourier/models/base_check.rbi
@@ -327,6 +378,8 @@ files:
327
378
  - rbi/trycourier/models/channel_preference.rbi
328
379
  - rbi/trycourier/models/check.rbi
329
380
  - rbi/trycourier/models/default_preferences.rbi
381
+ - rbi/trycourier/models/device_type.rbi
382
+ - rbi/trycourier/models/discord.rbi
330
383
  - rbi/trycourier/models/elemental_action_node_with_type.rbi
331
384
  - rbi/trycourier/models/elemental_base_node.rbi
332
385
  - rbi/trycourier/models/elemental_channel_node.rbi
@@ -342,6 +395,7 @@ files:
342
395
  - rbi/trycourier/models/email_footer.rbi
343
396
  - rbi/trycourier/models/email_head.rbi
344
397
  - rbi/trycourier/models/email_header.rbi
398
+ - rbi/trycourier/models/expo.rbi
345
399
  - rbi/trycourier/models/filter.rbi
346
400
  - rbi/trycourier/models/filter_config.rbi
347
401
  - rbi/trycourier/models/icons.rbi
@@ -349,9 +403,14 @@ files:
349
403
  - rbi/trycourier/models/inbound_bulk_message_user.rbi
350
404
  - rbi/trycourier/models/inbound_track_event_params.rbi
351
405
  - rbi/trycourier/models/inbound_track_event_response.rbi
406
+ - rbi/trycourier/models/intercom.rbi
407
+ - rbi/trycourier/models/intercom_recipient.rbi
352
408
  - rbi/trycourier/models/list_delete_params.rbi
409
+ - rbi/trycourier/models/list_filter.rbi
353
410
  - rbi/trycourier/models/list_list_params.rbi
354
411
  - rbi/trycourier/models/list_list_response.rbi
412
+ - rbi/trycourier/models/list_pattern_recipient.rbi
413
+ - rbi/trycourier/models/list_recipient.rbi
355
414
  - rbi/trycourier/models/list_restore_params.rbi
356
415
  - rbi/trycourier/models/list_retrieve_params.rbi
357
416
  - rbi/trycourier/models/list_update_params.rbi
@@ -375,6 +434,11 @@ files:
375
434
  - rbi/trycourier/models/message_retrieve_response.rbi
376
435
  - rbi/trycourier/models/message_routing.rbi
377
436
  - rbi/trycourier/models/message_routing_channel.rbi
437
+ - rbi/trycourier/models/ms_teams.rbi
438
+ - rbi/trycourier/models/ms_teams_base_properties.rbi
439
+ - rbi/trycourier/models/ms_teams_recipient.rbi
440
+ - rbi/trycourier/models/multiple_tokens.rbi
441
+ - rbi/trycourier/models/nested_filter_config.rbi
378
442
  - rbi/trycourier/models/notification_get_content.rbi
379
443
  - rbi/trycourier/models/notification_list_params.rbi
380
444
  - rbi/trycourier/models/notification_list_response.rbi
@@ -386,6 +450,8 @@ files:
386
450
  - rbi/trycourier/models/notifications/check_update_params.rbi
387
451
  - rbi/trycourier/models/notifications/check_update_response.rbi
388
452
  - rbi/trycourier/models/notifications/draft_retrieve_content_params.rbi
453
+ - rbi/trycourier/models/pagerduty.rbi
454
+ - rbi/trycourier/models/pagerduty_recipient.rbi
389
455
  - rbi/trycourier/models/paging.rbi
390
456
  - rbi/trycourier/models/preference.rbi
391
457
  - rbi/trycourier/models/preference_status.rbi
@@ -404,12 +470,25 @@ files:
404
470
  - rbi/trycourier/models/profiles/list_subscribe_params.rbi
405
471
  - rbi/trycourier/models/profiles/list_subscribe_response.rbi
406
472
  - rbi/trycourier/models/put_subscriptions_recipient.rbi
407
- - rbi/trycourier/models/recipient.rbi
408
473
  - rbi/trycourier/models/recipient_preferences.rbi
409
474
  - rbi/trycourier/models/request_archive_params.rbi
410
475
  - rbi/trycourier/models/rule.rbi
476
+ - rbi/trycourier/models/send_direct_message.rbi
411
477
  - rbi/trycourier/models/send_message_params.rbi
412
478
  - rbi/trycourier/models/send_message_response.rbi
479
+ - rbi/trycourier/models/send_to_channel.rbi
480
+ - rbi/trycourier/models/send_to_ms_teams_channel_id.rbi
481
+ - rbi/trycourier/models/send_to_ms_teams_channel_name.rbi
482
+ - rbi/trycourier/models/send_to_ms_teams_conversation_id.rbi
483
+ - rbi/trycourier/models/send_to_ms_teams_email.rbi
484
+ - rbi/trycourier/models/send_to_ms_teams_user_id.rbi
485
+ - rbi/trycourier/models/send_to_slack_channel.rbi
486
+ - rbi/trycourier/models/send_to_slack_email.rbi
487
+ - rbi/trycourier/models/send_to_slack_user_id.rbi
488
+ - rbi/trycourier/models/single_filter_config.rbi
489
+ - rbi/trycourier/models/slack.rbi
490
+ - rbi/trycourier/models/slack_base_properties.rbi
491
+ - rbi/trycourier/models/slack_recipient.rbi
413
492
  - rbi/trycourier/models/subscribe_to_lists_request_item.rbi
414
493
  - rbi/trycourier/models/subscription_list.rbi
415
494
  - rbi/trycourier/models/subscription_topic_new.rbi
@@ -428,9 +507,12 @@ files:
428
507
  - rbi/trycourier/models/tenants/template_list_response.rbi
429
508
  - rbi/trycourier/models/tenants/template_retrieve_params.rbi
430
509
  - rbi/trycourier/models/text_style.rbi
510
+ - rbi/trycourier/models/token.rbi
431
511
  - rbi/trycourier/models/translation_retrieve_params.rbi
432
512
  - rbi/trycourier/models/translation_retrieve_response.rbi
433
513
  - rbi/trycourier/models/translation_update_params.rbi
514
+ - rbi/trycourier/models/user_profile.rbi
515
+ - rbi/trycourier/models/user_profile_firebase_token.rbi
434
516
  - rbi/trycourier/models/user_recipient.rbi
435
517
  - rbi/trycourier/models/users/preference_retrieve_params.rbi
436
518
  - rbi/trycourier/models/users/preference_retrieve_response.rbi
@@ -455,6 +537,12 @@ files:
455
537
  - rbi/trycourier/models/users/topic_preference.rbi
456
538
  - rbi/trycourier/models/users/user_token.rbi
457
539
  - rbi/trycourier/models/utm.rbi
540
+ - rbi/trycourier/models/webhook_auth_mode.rbi
541
+ - rbi/trycourier/models/webhook_authentication.rbi
542
+ - rbi/trycourier/models/webhook_method.rbi
543
+ - rbi/trycourier/models/webhook_profile.rbi
544
+ - rbi/trycourier/models/webhook_profile_type.rbi
545
+ - rbi/trycourier/models/webhook_recipient.rbi
458
546
  - rbi/trycourier/models/widget_background.rbi
459
547
  - rbi/trycourier/request_options.rbi
460
548
  - rbi/trycourier/resources/audiences.rbi
@@ -504,13 +592,17 @@ files:
504
592
  - sig/trycourier/internal/type/unknown.rbs
505
593
  - sig/trycourier/internal/util.rbs
506
594
  - sig/trycourier/models.rbs
595
+ - sig/trycourier/models/airship_profile.rbs
596
+ - sig/trycourier/models/airship_profile_audience.rbs
507
597
  - sig/trycourier/models/alignment.rbs
508
598
  - sig/trycourier/models/audience.rbs
509
599
  - sig/trycourier/models/audience_delete_params.rbs
600
+ - sig/trycourier/models/audience_filter.rbs
510
601
  - sig/trycourier/models/audience_list_members_params.rbs
511
602
  - sig/trycourier/models/audience_list_members_response.rbs
512
603
  - sig/trycourier/models/audience_list_params.rbs
513
604
  - sig/trycourier/models/audience_list_response.rbs
605
+ - sig/trycourier/models/audience_recipient.rbs
514
606
  - sig/trycourier/models/audience_retrieve_params.rbs
515
607
  - sig/trycourier/models/audience_update_params.rbs
516
608
  - sig/trycourier/models/audience_update_response.rbs
@@ -521,6 +613,9 @@ files:
521
613
  - sig/trycourier/models/auth_issue_token_params.rbs
522
614
  - sig/trycourier/models/auth_issue_token_response.rbs
523
615
  - sig/trycourier/models/automation_invoke_response.rbs
616
+ - sig/trycourier/models/automation_list_params.rbs
617
+ - sig/trycourier/models/automation_template.rbs
618
+ - sig/trycourier/models/automation_template_list_response.rbs
524
619
  - sig/trycourier/models/automations/invoke_invoke_ad_hoc_params.rbs
525
620
  - sig/trycourier/models/automations/invoke_invoke_by_template_params.rbs
526
621
  - sig/trycourier/models/base_check.rbs
@@ -551,6 +646,8 @@ files:
551
646
  - sig/trycourier/models/channel_preference.rbs
552
647
  - sig/trycourier/models/check.rbs
553
648
  - sig/trycourier/models/default_preferences.rbs
649
+ - sig/trycourier/models/device_type.rbs
650
+ - sig/trycourier/models/discord.rbs
554
651
  - sig/trycourier/models/elemental_action_node_with_type.rbs
555
652
  - sig/trycourier/models/elemental_base_node.rbs
556
653
  - sig/trycourier/models/elemental_channel_node.rbs
@@ -566,6 +663,7 @@ files:
566
663
  - sig/trycourier/models/email_footer.rbs
567
664
  - sig/trycourier/models/email_head.rbs
568
665
  - sig/trycourier/models/email_header.rbs
666
+ - sig/trycourier/models/expo.rbs
569
667
  - sig/trycourier/models/filter.rbs
570
668
  - sig/trycourier/models/filter_config.rbs
571
669
  - sig/trycourier/models/icons.rbs
@@ -573,9 +671,14 @@ files:
573
671
  - sig/trycourier/models/inbound_bulk_message_user.rbs
574
672
  - sig/trycourier/models/inbound_track_event_params.rbs
575
673
  - sig/trycourier/models/inbound_track_event_response.rbs
674
+ - sig/trycourier/models/intercom.rbs
675
+ - sig/trycourier/models/intercom_recipient.rbs
576
676
  - sig/trycourier/models/list_delete_params.rbs
677
+ - sig/trycourier/models/list_filter.rbs
577
678
  - sig/trycourier/models/list_list_params.rbs
578
679
  - sig/trycourier/models/list_list_response.rbs
680
+ - sig/trycourier/models/list_pattern_recipient.rbs
681
+ - sig/trycourier/models/list_recipient.rbs
579
682
  - sig/trycourier/models/list_restore_params.rbs
580
683
  - sig/trycourier/models/list_retrieve_params.rbs
581
684
  - sig/trycourier/models/list_update_params.rbs
@@ -599,6 +702,11 @@ files:
599
702
  - sig/trycourier/models/message_retrieve_response.rbs
600
703
  - sig/trycourier/models/message_routing.rbs
601
704
  - sig/trycourier/models/message_routing_channel.rbs
705
+ - sig/trycourier/models/ms_teams.rbs
706
+ - sig/trycourier/models/ms_teams_base_properties.rbs
707
+ - sig/trycourier/models/ms_teams_recipient.rbs
708
+ - sig/trycourier/models/multiple_tokens.rbs
709
+ - sig/trycourier/models/nested_filter_config.rbs
602
710
  - sig/trycourier/models/notification_get_content.rbs
603
711
  - sig/trycourier/models/notification_list_params.rbs
604
712
  - sig/trycourier/models/notification_list_response.rbs
@@ -610,6 +718,8 @@ files:
610
718
  - sig/trycourier/models/notifications/check_update_params.rbs
611
719
  - sig/trycourier/models/notifications/check_update_response.rbs
612
720
  - sig/trycourier/models/notifications/draft_retrieve_content_params.rbs
721
+ - sig/trycourier/models/pagerduty.rbs
722
+ - sig/trycourier/models/pagerduty_recipient.rbs
613
723
  - sig/trycourier/models/paging.rbs
614
724
  - sig/trycourier/models/preference.rbs
615
725
  - sig/trycourier/models/preference_status.rbs
@@ -628,12 +738,25 @@ files:
628
738
  - sig/trycourier/models/profiles/list_subscribe_params.rbs
629
739
  - sig/trycourier/models/profiles/list_subscribe_response.rbs
630
740
  - sig/trycourier/models/put_subscriptions_recipient.rbs
631
- - sig/trycourier/models/recipient.rbs
632
741
  - sig/trycourier/models/recipient_preferences.rbs
633
742
  - sig/trycourier/models/request_archive_params.rbs
634
743
  - sig/trycourier/models/rule.rbs
744
+ - sig/trycourier/models/send_direct_message.rbs
635
745
  - sig/trycourier/models/send_message_params.rbs
636
746
  - sig/trycourier/models/send_message_response.rbs
747
+ - sig/trycourier/models/send_to_channel.rbs
748
+ - sig/trycourier/models/send_to_ms_teams_channel_id.rbs
749
+ - sig/trycourier/models/send_to_ms_teams_channel_name.rbs
750
+ - sig/trycourier/models/send_to_ms_teams_conversation_id.rbs
751
+ - sig/trycourier/models/send_to_ms_teams_email.rbs
752
+ - sig/trycourier/models/send_to_ms_teams_user_id.rbs
753
+ - sig/trycourier/models/send_to_slack_channel.rbs
754
+ - sig/trycourier/models/send_to_slack_email.rbs
755
+ - sig/trycourier/models/send_to_slack_user_id.rbs
756
+ - sig/trycourier/models/single_filter_config.rbs
757
+ - sig/trycourier/models/slack.rbs
758
+ - sig/trycourier/models/slack_base_properties.rbs
759
+ - sig/trycourier/models/slack_recipient.rbs
637
760
  - sig/trycourier/models/subscribe_to_lists_request_item.rbs
638
761
  - sig/trycourier/models/subscription_list.rbs
639
762
  - sig/trycourier/models/subscription_topic_new.rbs
@@ -652,9 +775,12 @@ files:
652
775
  - sig/trycourier/models/tenants/template_list_response.rbs
653
776
  - sig/trycourier/models/tenants/template_retrieve_params.rbs
654
777
  - sig/trycourier/models/text_style.rbs
778
+ - sig/trycourier/models/token.rbs
655
779
  - sig/trycourier/models/translation_retrieve_params.rbs
656
780
  - sig/trycourier/models/translation_retrieve_response.rbs
657
781
  - sig/trycourier/models/translation_update_params.rbs
782
+ - sig/trycourier/models/user_profile.rbs
783
+ - sig/trycourier/models/user_profile_firebase_token.rbs
658
784
  - sig/trycourier/models/user_recipient.rbs
659
785
  - sig/trycourier/models/users/preference_retrieve_params.rbs
660
786
  - sig/trycourier/models/users/preference_retrieve_response.rbs
@@ -679,6 +805,12 @@ files:
679
805
  - sig/trycourier/models/users/topic_preference.rbs
680
806
  - sig/trycourier/models/users/user_token.rbs
681
807
  - sig/trycourier/models/utm.rbs
808
+ - sig/trycourier/models/webhook_auth_mode.rbs
809
+ - sig/trycourier/models/webhook_authentication.rbs
810
+ - sig/trycourier/models/webhook_method.rbs
811
+ - sig/trycourier/models/webhook_profile.rbs
812
+ - sig/trycourier/models/webhook_profile_type.rbs
813
+ - sig/trycourier/models/webhook_recipient.rbs
682
814
  - sig/trycourier/models/widget_background.rbs
683
815
  - sig/trycourier/request_options.rbs
684
816
  - 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