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
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
class UserProfile < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute address
|
|
7
|
+
#
|
|
8
|
+
# @return [Trycourier::Models::UserProfile::Address, nil]
|
|
9
|
+
optional :address, -> { Trycourier::UserProfile::Address }, nil?: true
|
|
10
|
+
|
|
11
|
+
# @!attribute airship
|
|
12
|
+
#
|
|
13
|
+
# @return [Trycourier::Models::AirshipProfile, nil]
|
|
14
|
+
optional :airship, -> { Trycourier::AirshipProfile }, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute apn
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :apn, String, nil?: true
|
|
20
|
+
|
|
21
|
+
# @!attribute birthdate
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :birthdate, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute custom
|
|
27
|
+
# A free form object. Due to a limitation of the API Explorer, you can only enter
|
|
28
|
+
# string key/values below, but this API accepts more complex object structures.
|
|
29
|
+
#
|
|
30
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
31
|
+
optional :custom, Trycourier::Internal::Type::HashOf[Trycourier::Internal::Type::Unknown], nil?: true
|
|
32
|
+
|
|
33
|
+
# @!attribute discord
|
|
34
|
+
#
|
|
35
|
+
# @return [Trycourier::Models::SendToChannel, Trycourier::Models::SendDirectMessage, nil]
|
|
36
|
+
optional :discord, union: -> { Trycourier::Discord }, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute email
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :email, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute email_verified
|
|
44
|
+
#
|
|
45
|
+
# @return [Boolean, nil]
|
|
46
|
+
optional :email_verified, Trycourier::Internal::Type::Boolean, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!attribute expo
|
|
49
|
+
#
|
|
50
|
+
# @return [Trycourier::Models::Token, Trycourier::Models::MultipleTokens, nil]
|
|
51
|
+
optional :expo, union: -> { Trycourier::Expo }, nil?: true
|
|
52
|
+
|
|
53
|
+
# @!attribute facebook_psid
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :facebook_psid, String, api_name: :facebookPSID, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!attribute family_name
|
|
59
|
+
#
|
|
60
|
+
# @return [String, nil]
|
|
61
|
+
optional :family_name, String, nil?: true
|
|
62
|
+
|
|
63
|
+
# @!attribute firebase_token
|
|
64
|
+
#
|
|
65
|
+
# @return [String, Array<String>, nil]
|
|
66
|
+
optional :firebase_token,
|
|
67
|
+
union: -> { Trycourier::UserProfileFirebaseToken },
|
|
68
|
+
api_name: :firebaseToken,
|
|
69
|
+
nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute gender
|
|
72
|
+
#
|
|
73
|
+
# @return [String, nil]
|
|
74
|
+
optional :gender, String, nil?: true
|
|
75
|
+
|
|
76
|
+
# @!attribute given_name
|
|
77
|
+
#
|
|
78
|
+
# @return [String, nil]
|
|
79
|
+
optional :given_name, String, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute intercom
|
|
82
|
+
#
|
|
83
|
+
# @return [Trycourier::Models::Intercom, nil]
|
|
84
|
+
optional :intercom, -> { Trycourier::Intercom }, nil?: true
|
|
85
|
+
|
|
86
|
+
# @!attribute locale
|
|
87
|
+
#
|
|
88
|
+
# @return [String, nil]
|
|
89
|
+
optional :locale, String, nil?: true
|
|
90
|
+
|
|
91
|
+
# @!attribute middle_name
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :middle_name, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute ms_teams
|
|
97
|
+
#
|
|
98
|
+
# @return [Trycourier::Models::SendToMsTeamsUserID, Trycourier::Models::SendToMsTeamsEmail, Trycourier::Models::SendToMsTeamsChannelID, Trycourier::Models::SendToMsTeamsConversationID, Trycourier::Models::SendToMsTeamsChannelName, nil]
|
|
99
|
+
optional :ms_teams, union: -> { Trycourier::MsTeams }, nil?: true
|
|
100
|
+
|
|
101
|
+
# @!attribute name
|
|
102
|
+
#
|
|
103
|
+
# @return [String, nil]
|
|
104
|
+
optional :name, String, nil?: true
|
|
105
|
+
|
|
106
|
+
# @!attribute nickname
|
|
107
|
+
#
|
|
108
|
+
# @return [String, nil]
|
|
109
|
+
optional :nickname, String, nil?: true
|
|
110
|
+
|
|
111
|
+
# @!attribute phone_number
|
|
112
|
+
#
|
|
113
|
+
# @return [String, nil]
|
|
114
|
+
optional :phone_number, String, nil?: true
|
|
115
|
+
|
|
116
|
+
# @!attribute phone_number_verified
|
|
117
|
+
#
|
|
118
|
+
# @return [Boolean, nil]
|
|
119
|
+
optional :phone_number_verified, Trycourier::Internal::Type::Boolean, nil?: true
|
|
120
|
+
|
|
121
|
+
# @!attribute picture
|
|
122
|
+
#
|
|
123
|
+
# @return [String, nil]
|
|
124
|
+
optional :picture, String, nil?: true
|
|
125
|
+
|
|
126
|
+
# @!attribute preferred_name
|
|
127
|
+
#
|
|
128
|
+
# @return [String, nil]
|
|
129
|
+
optional :preferred_name, String, nil?: true
|
|
130
|
+
|
|
131
|
+
# @!attribute profile
|
|
132
|
+
#
|
|
133
|
+
# @return [String, nil]
|
|
134
|
+
optional :profile, String, nil?: true
|
|
135
|
+
|
|
136
|
+
# @!attribute slack
|
|
137
|
+
#
|
|
138
|
+
# @return [Trycourier::Models::SendToSlackChannel, Trycourier::Models::SendToSlackEmail, Trycourier::Models::SendToSlackUserID, nil]
|
|
139
|
+
optional :slack, union: -> { Trycourier::Slack }, nil?: true
|
|
140
|
+
|
|
141
|
+
# @!attribute sub
|
|
142
|
+
#
|
|
143
|
+
# @return [String, nil]
|
|
144
|
+
optional :sub, String, nil?: true
|
|
145
|
+
|
|
146
|
+
# @!attribute target_arn
|
|
147
|
+
#
|
|
148
|
+
# @return [String, nil]
|
|
149
|
+
optional :target_arn, String, nil?: true
|
|
150
|
+
|
|
151
|
+
# @!attribute updated_at
|
|
152
|
+
#
|
|
153
|
+
# @return [String, nil]
|
|
154
|
+
optional :updated_at, String, nil?: true
|
|
155
|
+
|
|
156
|
+
# @!attribute website
|
|
157
|
+
#
|
|
158
|
+
# @return [String, nil]
|
|
159
|
+
optional :website, String, nil?: true
|
|
160
|
+
|
|
161
|
+
# @!attribute zoneinfo
|
|
162
|
+
#
|
|
163
|
+
# @return [String, nil]
|
|
164
|
+
optional :zoneinfo, String, nil?: true
|
|
165
|
+
|
|
166
|
+
# @!method initialize(address: nil, airship: nil, apn: nil, birthdate: nil, custom: nil, discord: nil, email: nil, email_verified: nil, expo: nil, facebook_psid: nil, family_name: nil, firebase_token: nil, gender: nil, given_name: nil, intercom: nil, locale: nil, middle_name: nil, ms_teams: nil, name: nil, nickname: nil, phone_number: nil, phone_number_verified: nil, picture: nil, preferred_name: nil, profile: nil, slack: nil, sub: nil, target_arn: nil, updated_at: nil, website: nil, zoneinfo: nil)
|
|
167
|
+
# Some parameter documentations has been truncated, see
|
|
168
|
+
# {Trycourier::Models::UserProfile} for more details.
|
|
169
|
+
#
|
|
170
|
+
# @param address [Trycourier::Models::UserProfile::Address, nil]
|
|
171
|
+
#
|
|
172
|
+
# @param airship [Trycourier::Models::AirshipProfile, nil]
|
|
173
|
+
#
|
|
174
|
+
# @param apn [String, nil]
|
|
175
|
+
#
|
|
176
|
+
# @param birthdate [String, nil]
|
|
177
|
+
#
|
|
178
|
+
# @param custom [Hash{Symbol=>Object}, nil] A free form object. Due to a limitation of the API Explorer, you can only enter
|
|
179
|
+
#
|
|
180
|
+
# @param discord [Trycourier::Models::SendToChannel, Trycourier::Models::SendDirectMessage, nil]
|
|
181
|
+
#
|
|
182
|
+
# @param email [String, nil]
|
|
183
|
+
#
|
|
184
|
+
# @param email_verified [Boolean, nil]
|
|
185
|
+
#
|
|
186
|
+
# @param expo [Trycourier::Models::Token, Trycourier::Models::MultipleTokens, nil]
|
|
187
|
+
#
|
|
188
|
+
# @param facebook_psid [String, nil]
|
|
189
|
+
#
|
|
190
|
+
# @param family_name [String, nil]
|
|
191
|
+
#
|
|
192
|
+
# @param firebase_token [String, Array<String>, nil]
|
|
193
|
+
#
|
|
194
|
+
# @param gender [String, nil]
|
|
195
|
+
#
|
|
196
|
+
# @param given_name [String, nil]
|
|
197
|
+
#
|
|
198
|
+
# @param intercom [Trycourier::Models::Intercom, nil]
|
|
199
|
+
#
|
|
200
|
+
# @param locale [String, nil]
|
|
201
|
+
#
|
|
202
|
+
# @param middle_name [String, nil]
|
|
203
|
+
#
|
|
204
|
+
# @param ms_teams [Trycourier::Models::SendToMsTeamsUserID, Trycourier::Models::SendToMsTeamsEmail, Trycourier::Models::SendToMsTeamsChannelID, Trycourier::Models::SendToMsTeamsConversationID, Trycourier::Models::SendToMsTeamsChannelName, nil]
|
|
205
|
+
#
|
|
206
|
+
# @param name [String, nil]
|
|
207
|
+
#
|
|
208
|
+
# @param nickname [String, nil]
|
|
209
|
+
#
|
|
210
|
+
# @param phone_number [String, nil]
|
|
211
|
+
#
|
|
212
|
+
# @param phone_number_verified [Boolean, nil]
|
|
213
|
+
#
|
|
214
|
+
# @param picture [String, nil]
|
|
215
|
+
#
|
|
216
|
+
# @param preferred_name [String, nil]
|
|
217
|
+
#
|
|
218
|
+
# @param profile [String, nil]
|
|
219
|
+
#
|
|
220
|
+
# @param slack [Trycourier::Models::SendToSlackChannel, Trycourier::Models::SendToSlackEmail, Trycourier::Models::SendToSlackUserID, nil]
|
|
221
|
+
#
|
|
222
|
+
# @param sub [String, nil]
|
|
223
|
+
#
|
|
224
|
+
# @param target_arn [String, nil]
|
|
225
|
+
#
|
|
226
|
+
# @param updated_at [String, nil]
|
|
227
|
+
#
|
|
228
|
+
# @param website [String, nil]
|
|
229
|
+
#
|
|
230
|
+
# @param zoneinfo [String, nil]
|
|
231
|
+
|
|
232
|
+
# @see Trycourier::Models::UserProfile#address
|
|
233
|
+
class Address < Trycourier::Internal::Type::BaseModel
|
|
234
|
+
# @!attribute country
|
|
235
|
+
#
|
|
236
|
+
# @return [String]
|
|
237
|
+
required :country, String
|
|
238
|
+
|
|
239
|
+
# @!attribute formatted
|
|
240
|
+
#
|
|
241
|
+
# @return [String]
|
|
242
|
+
required :formatted, String
|
|
243
|
+
|
|
244
|
+
# @!attribute locality
|
|
245
|
+
#
|
|
246
|
+
# @return [String]
|
|
247
|
+
required :locality, String
|
|
248
|
+
|
|
249
|
+
# @!attribute postal_code
|
|
250
|
+
#
|
|
251
|
+
# @return [String]
|
|
252
|
+
required :postal_code, String
|
|
253
|
+
|
|
254
|
+
# @!attribute region
|
|
255
|
+
#
|
|
256
|
+
# @return [String]
|
|
257
|
+
required :region, String
|
|
258
|
+
|
|
259
|
+
# @!attribute street_address
|
|
260
|
+
#
|
|
261
|
+
# @return [String]
|
|
262
|
+
required :street_address, String
|
|
263
|
+
|
|
264
|
+
# @!method initialize(country:, formatted:, locality:, postal_code:, region:, street_address:)
|
|
265
|
+
# @param country [String]
|
|
266
|
+
# @param formatted [String]
|
|
267
|
+
# @param locality [String]
|
|
268
|
+
# @param postal_code [String]
|
|
269
|
+
# @param region [String]
|
|
270
|
+
# @param street_address [String]
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
module UserProfileFirebaseToken
|
|
6
|
+
extend Trycourier::Internal::Type::Union
|
|
7
|
+
|
|
8
|
+
variant String
|
|
9
|
+
|
|
10
|
+
variant -> { Trycourier::Models::UserProfileFirebaseToken::StringArray }
|
|
11
|
+
|
|
12
|
+
# @!method self.variants
|
|
13
|
+
# @return [Array(String, Array<String>)]
|
|
14
|
+
|
|
15
|
+
# @type [Trycourier::Internal::Type::Converter]
|
|
16
|
+
StringArray = Trycourier::Internal::Type::ArrayOf[String]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
module WebhookAuthMode
|
|
6
|
+
extend Trycourier::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
NONE = :none
|
|
9
|
+
BASIC = :basic
|
|
10
|
+
BEARER = :bearer
|
|
11
|
+
|
|
12
|
+
# @!method self.values
|
|
13
|
+
# @return [Array<Symbol>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
class WebhookAuthentication < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute mode
|
|
7
|
+
# The authentication mode to use. Defaults to 'none' if not specified.
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Trycourier::Models::WebhookAuthMode]
|
|
10
|
+
required :mode, enum: -> { Trycourier::WebhookAuthMode }
|
|
11
|
+
|
|
12
|
+
# @!attribute token
|
|
13
|
+
# Token for bearer authentication.
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :token, String, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute password
|
|
19
|
+
# Password for basic authentication.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :password, String, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute username
|
|
25
|
+
# Username for basic authentication.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :username, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!method initialize(mode:, token: nil, password: nil, username: nil)
|
|
31
|
+
# @param mode [Symbol, Trycourier::Models::WebhookAuthMode] The authentication mode to use. Defaults to 'none' if not specified.
|
|
32
|
+
#
|
|
33
|
+
# @param token [String, nil] Token for bearer authentication.
|
|
34
|
+
#
|
|
35
|
+
# @param password [String, nil] Password for basic authentication.
|
|
36
|
+
#
|
|
37
|
+
# @param username [String, nil] Username for basic authentication.
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
class WebhookProfile < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute url
|
|
7
|
+
# The URL to send the webhook request to.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :url, String
|
|
11
|
+
|
|
12
|
+
# @!attribute authentication
|
|
13
|
+
# Authentication configuration for the webhook request.
|
|
14
|
+
#
|
|
15
|
+
# @return [Trycourier::Models::WebhookAuthentication, nil]
|
|
16
|
+
optional :authentication, -> { Trycourier::WebhookAuthentication }, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute headers
|
|
19
|
+
# Custom headers to include in the webhook request.
|
|
20
|
+
#
|
|
21
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
22
|
+
optional :headers, Trycourier::Internal::Type::HashOf[String], nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute method_
|
|
25
|
+
# The HTTP method to use for the webhook request. Defaults to POST if not
|
|
26
|
+
# specified.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Trycourier::Models::WebhookMethod, nil]
|
|
29
|
+
optional :method_, enum: -> { Trycourier::WebhookMethod }, api_name: :method, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute profile
|
|
32
|
+
# Specifies what profile information is included in the request payload. Defaults
|
|
33
|
+
# to 'limited' if not specified.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, Trycourier::Models::WebhookProfileType, nil]
|
|
36
|
+
optional :profile, enum: -> { Trycourier::WebhookProfileType }, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!method initialize(url:, authentication: nil, headers: nil, method_: nil, profile: nil)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Trycourier::Models::WebhookProfile} for more details.
|
|
41
|
+
#
|
|
42
|
+
# @param url [String] The URL to send the webhook request to.
|
|
43
|
+
#
|
|
44
|
+
# @param authentication [Trycourier::Models::WebhookAuthentication, nil] Authentication configuration for the webhook request.
|
|
45
|
+
#
|
|
46
|
+
# @param headers [Hash{Symbol=>String}, nil] Custom headers to include in the webhook request.
|
|
47
|
+
#
|
|
48
|
+
# @param method_ [Symbol, Trycourier::Models::WebhookMethod, nil] The HTTP method to use for the webhook request. Defaults to POST if not specifie
|
|
49
|
+
#
|
|
50
|
+
# @param profile [Symbol, Trycourier::Models::WebhookProfileType, nil] Specifies what profile information is included in the request payload. Defaults
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
module WebhookProfileType
|
|
6
|
+
extend Trycourier::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
LIMITED = :limited
|
|
9
|
+
EXPANDED = :expanded
|
|
10
|
+
|
|
11
|
+
# @!method self.values
|
|
12
|
+
# @return [Array<Symbol>]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trycourier
|
|
4
|
+
module Models
|
|
5
|
+
class WebhookRecipient < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute webhook
|
|
7
|
+
#
|
|
8
|
+
# @return [Trycourier::Models::WebhookProfile]
|
|
9
|
+
required :webhook, -> { Trycourier::WebhookProfile }
|
|
10
|
+
|
|
11
|
+
# @!method initialize(webhook:)
|
|
12
|
+
# Send via webhook
|
|
13
|
+
#
|
|
14
|
+
# @param webhook [Trycourier::Models::WebhookProfile]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/lib/trycourier/models.rb
CHANGED
|
@@ -39,16 +39,24 @@ module Trycourier
|
|
|
39
39
|
mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
AirshipProfile = Trycourier::Models::AirshipProfile
|
|
43
|
+
|
|
44
|
+
AirshipProfileAudience = Trycourier::Models::AirshipProfileAudience
|
|
45
|
+
|
|
42
46
|
Alignment = Trycourier::Models::Alignment
|
|
43
47
|
|
|
44
48
|
Audience = Trycourier::Models::Audience
|
|
45
49
|
|
|
46
50
|
AudienceDeleteParams = Trycourier::Models::AudienceDeleteParams
|
|
47
51
|
|
|
52
|
+
AudienceFilter = Trycourier::Models::AudienceFilter
|
|
53
|
+
|
|
48
54
|
AudienceListMembersParams = Trycourier::Models::AudienceListMembersParams
|
|
49
55
|
|
|
50
56
|
AudienceListParams = Trycourier::Models::AudienceListParams
|
|
51
57
|
|
|
58
|
+
AudienceRecipient = Trycourier::Models::AudienceRecipient
|
|
59
|
+
|
|
52
60
|
AudienceRetrieveParams = Trycourier::Models::AudienceRetrieveParams
|
|
53
61
|
|
|
54
62
|
AudienceUpdateParams = Trycourier::Models::AudienceUpdateParams
|
|
@@ -113,6 +121,10 @@ module Trycourier
|
|
|
113
121
|
|
|
114
122
|
DefaultPreferences = Trycourier::Models::DefaultPreferences
|
|
115
123
|
|
|
124
|
+
DeviceType = Trycourier::Models::DeviceType
|
|
125
|
+
|
|
126
|
+
Discord = Trycourier::Models::Discord
|
|
127
|
+
|
|
116
128
|
ElementalActionNodeWithType = Trycourier::Models::ElementalActionNodeWithType
|
|
117
129
|
|
|
118
130
|
ElementalBaseNode = Trycourier::Models::ElementalBaseNode
|
|
@@ -143,6 +155,8 @@ module Trycourier
|
|
|
143
155
|
|
|
144
156
|
EmailHeader = Trycourier::Models::EmailHeader
|
|
145
157
|
|
|
158
|
+
Expo = Trycourier::Models::Expo
|
|
159
|
+
|
|
146
160
|
Filter = Trycourier::Models::Filter
|
|
147
161
|
|
|
148
162
|
FilterConfig = Trycourier::Models::FilterConfig
|
|
@@ -155,10 +169,20 @@ module Trycourier
|
|
|
155
169
|
|
|
156
170
|
InboundTrackEventParams = Trycourier::Models::InboundTrackEventParams
|
|
157
171
|
|
|
172
|
+
Intercom = Trycourier::Models::Intercom
|
|
173
|
+
|
|
174
|
+
IntercomRecipient = Trycourier::Models::IntercomRecipient
|
|
175
|
+
|
|
158
176
|
ListDeleteParams = Trycourier::Models::ListDeleteParams
|
|
159
177
|
|
|
178
|
+
ListFilter = Trycourier::Models::ListFilter
|
|
179
|
+
|
|
160
180
|
ListListParams = Trycourier::Models::ListListParams
|
|
161
181
|
|
|
182
|
+
ListPatternRecipient = Trycourier::Models::ListPatternRecipient
|
|
183
|
+
|
|
184
|
+
ListRecipient = Trycourier::Models::ListRecipient
|
|
185
|
+
|
|
162
186
|
ListRestoreParams = Trycourier::Models::ListRestoreParams
|
|
163
187
|
|
|
164
188
|
ListRetrieveParams = Trycourier::Models::ListRetrieveParams
|
|
@@ -187,6 +211,16 @@ module Trycourier
|
|
|
187
211
|
|
|
188
212
|
MessageRoutingChannel = Trycourier::Models::MessageRoutingChannel
|
|
189
213
|
|
|
214
|
+
MsTeams = Trycourier::Models::MsTeams
|
|
215
|
+
|
|
216
|
+
MsTeamsBaseProperties = Trycourier::Models::MsTeamsBaseProperties
|
|
217
|
+
|
|
218
|
+
MsTeamsRecipient = Trycourier::Models::MsTeamsRecipient
|
|
219
|
+
|
|
220
|
+
MultipleTokens = Trycourier::Models::MultipleTokens
|
|
221
|
+
|
|
222
|
+
NestedFilterConfig = Trycourier::Models::NestedFilterConfig
|
|
223
|
+
|
|
190
224
|
NotificationGetContent = Trycourier::Models::NotificationGetContent
|
|
191
225
|
|
|
192
226
|
NotificationListParams = Trycourier::Models::NotificationListParams
|
|
@@ -197,6 +231,10 @@ module Trycourier
|
|
|
197
231
|
|
|
198
232
|
Notifications = Trycourier::Models::Notifications
|
|
199
233
|
|
|
234
|
+
Pagerduty = Trycourier::Models::Pagerduty
|
|
235
|
+
|
|
236
|
+
PagerdutyRecipient = Trycourier::Models::PagerdutyRecipient
|
|
237
|
+
|
|
200
238
|
Paging = Trycourier::Models::Paging
|
|
201
239
|
|
|
202
240
|
Preference = Trycourier::Models::Preference
|
|
@@ -217,16 +255,42 @@ module Trycourier
|
|
|
217
255
|
|
|
218
256
|
PutSubscriptionsRecipient = Trycourier::Models::PutSubscriptionsRecipient
|
|
219
257
|
|
|
220
|
-
Recipient = Trycourier::Models::Recipient
|
|
221
|
-
|
|
222
258
|
RecipientPreferences = Trycourier::Models::RecipientPreferences
|
|
223
259
|
|
|
224
260
|
RequestArchiveParams = Trycourier::Models::RequestArchiveParams
|
|
225
261
|
|
|
226
262
|
Rule = Trycourier::Models::Rule
|
|
227
263
|
|
|
264
|
+
SendDirectMessage = Trycourier::Models::SendDirectMessage
|
|
265
|
+
|
|
228
266
|
SendMessageParams = Trycourier::Models::SendMessageParams
|
|
229
267
|
|
|
268
|
+
SendToChannel = Trycourier::Models::SendToChannel
|
|
269
|
+
|
|
270
|
+
SendToMsTeamsChannelID = Trycourier::Models::SendToMsTeamsChannelID
|
|
271
|
+
|
|
272
|
+
SendToMsTeamsChannelName = Trycourier::Models::SendToMsTeamsChannelName
|
|
273
|
+
|
|
274
|
+
SendToMsTeamsConversationID = Trycourier::Models::SendToMsTeamsConversationID
|
|
275
|
+
|
|
276
|
+
SendToMsTeamsEmail = Trycourier::Models::SendToMsTeamsEmail
|
|
277
|
+
|
|
278
|
+
SendToMsTeamsUserID = Trycourier::Models::SendToMsTeamsUserID
|
|
279
|
+
|
|
280
|
+
SendToSlackChannel = Trycourier::Models::SendToSlackChannel
|
|
281
|
+
|
|
282
|
+
SendToSlackEmail = Trycourier::Models::SendToSlackEmail
|
|
283
|
+
|
|
284
|
+
SendToSlackUserID = Trycourier::Models::SendToSlackUserID
|
|
285
|
+
|
|
286
|
+
SingleFilterConfig = Trycourier::Models::SingleFilterConfig
|
|
287
|
+
|
|
288
|
+
Slack = Trycourier::Models::Slack
|
|
289
|
+
|
|
290
|
+
SlackBaseProperties = Trycourier::Models::SlackBaseProperties
|
|
291
|
+
|
|
292
|
+
SlackRecipient = Trycourier::Models::SlackRecipient
|
|
293
|
+
|
|
230
294
|
SubscribeToListsRequestItem = Trycourier::Models::SubscribeToListsRequestItem
|
|
231
295
|
|
|
232
296
|
SubscriptionList = Trycourier::Models::SubscriptionList
|
|
@@ -251,15 +315,33 @@ module Trycourier
|
|
|
251
315
|
|
|
252
316
|
TextStyle = Trycourier::Models::TextStyle
|
|
253
317
|
|
|
318
|
+
Token = Trycourier::Models::Token
|
|
319
|
+
|
|
254
320
|
TranslationRetrieveParams = Trycourier::Models::TranslationRetrieveParams
|
|
255
321
|
|
|
256
322
|
TranslationUpdateParams = Trycourier::Models::TranslationUpdateParams
|
|
257
323
|
|
|
324
|
+
UserProfile = Trycourier::Models::UserProfile
|
|
325
|
+
|
|
326
|
+
UserProfileFirebaseToken = Trycourier::Models::UserProfileFirebaseToken
|
|
327
|
+
|
|
258
328
|
UserRecipient = Trycourier::Models::UserRecipient
|
|
259
329
|
|
|
260
330
|
Users = Trycourier::Models::Users
|
|
261
331
|
|
|
262
332
|
Utm = Trycourier::Models::Utm
|
|
263
333
|
|
|
334
|
+
WebhookAuthentication = Trycourier::Models::WebhookAuthentication
|
|
335
|
+
|
|
336
|
+
WebhookAuthMode = Trycourier::Models::WebhookAuthMode
|
|
337
|
+
|
|
338
|
+
WebhookMethod = Trycourier::Models::WebhookMethod
|
|
339
|
+
|
|
340
|
+
WebhookProfile = Trycourier::Models::WebhookProfile
|
|
341
|
+
|
|
342
|
+
WebhookProfileType = Trycourier::Models::WebhookProfileType
|
|
343
|
+
|
|
344
|
+
WebhookRecipient = Trycourier::Models::WebhookRecipient
|
|
345
|
+
|
|
264
346
|
WidgetBackground = Trycourier::Models::WidgetBackground
|
|
265
347
|
end
|
|
@@ -31,7 +31,7 @@ module Trycourier
|
|
|
31
31
|
#
|
|
32
32
|
# @param description [String, nil] A description of the audience
|
|
33
33
|
#
|
|
34
|
-
# @param filter [Trycourier::Models::
|
|
34
|
+
# @param filter [Trycourier::Models::SingleFilterConfig, Trycourier::Models::NestedFilterConfig, nil] A single filter to use for filtering
|
|
35
35
|
#
|
|
36
36
|
# @param name [String, nil] The name of the audience
|
|
37
37
|
#
|
data/lib/trycourier/version.rb
CHANGED