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,212 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile =
|
|
4
|
+
{
|
|
5
|
+
address: Trycourier::UserProfile::Address?,
|
|
6
|
+
airship: Trycourier::AirshipProfile?,
|
|
7
|
+
apn: String?,
|
|
8
|
+
birthdate: String?,
|
|
9
|
+
custom: ::Hash[Symbol, top]?,
|
|
10
|
+
discord: Trycourier::Models::discord?,
|
|
11
|
+
email: String?,
|
|
12
|
+
email_verified: bool?,
|
|
13
|
+
expo: Trycourier::Models::expo?,
|
|
14
|
+
facebook_psid: String?,
|
|
15
|
+
family_name: String?,
|
|
16
|
+
firebase_token: Trycourier::Models::user_profile_firebase_token?,
|
|
17
|
+
gender: String?,
|
|
18
|
+
given_name: String?,
|
|
19
|
+
intercom: Trycourier::Intercom?,
|
|
20
|
+
locale: String?,
|
|
21
|
+
middle_name: String?,
|
|
22
|
+
ms_teams: Trycourier::Models::ms_teams?,
|
|
23
|
+
name: String?,
|
|
24
|
+
nickname: String?,
|
|
25
|
+
phone_number: String?,
|
|
26
|
+
phone_number_verified: bool?,
|
|
27
|
+
picture: String?,
|
|
28
|
+
preferred_name: String?,
|
|
29
|
+
profile: String?,
|
|
30
|
+
slack: Trycourier::Models::slack?,
|
|
31
|
+
sub: String?,
|
|
32
|
+
target_arn: String?,
|
|
33
|
+
updated_at: String?,
|
|
34
|
+
website: String?,
|
|
35
|
+
zoneinfo: String?
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
class UserProfile < Trycourier::Internal::Type::BaseModel
|
|
39
|
+
attr_accessor address: Trycourier::UserProfile::Address?
|
|
40
|
+
|
|
41
|
+
attr_accessor airship: Trycourier::AirshipProfile?
|
|
42
|
+
|
|
43
|
+
attr_accessor apn: String?
|
|
44
|
+
|
|
45
|
+
attr_accessor birthdate: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor custom: ::Hash[Symbol, top]?
|
|
48
|
+
|
|
49
|
+
attr_accessor discord: Trycourier::Models::discord?
|
|
50
|
+
|
|
51
|
+
attr_accessor email: String?
|
|
52
|
+
|
|
53
|
+
attr_accessor email_verified: bool?
|
|
54
|
+
|
|
55
|
+
attr_accessor expo: Trycourier::Models::expo?
|
|
56
|
+
|
|
57
|
+
attr_accessor facebook_psid: String?
|
|
58
|
+
|
|
59
|
+
attr_accessor family_name: String?
|
|
60
|
+
|
|
61
|
+
attr_accessor firebase_token: Trycourier::Models::user_profile_firebase_token?
|
|
62
|
+
|
|
63
|
+
attr_accessor gender: String?
|
|
64
|
+
|
|
65
|
+
attr_accessor given_name: String?
|
|
66
|
+
|
|
67
|
+
attr_accessor intercom: Trycourier::Intercom?
|
|
68
|
+
|
|
69
|
+
attr_accessor locale: String?
|
|
70
|
+
|
|
71
|
+
attr_accessor middle_name: String?
|
|
72
|
+
|
|
73
|
+
attr_accessor ms_teams: Trycourier::Models::ms_teams?
|
|
74
|
+
|
|
75
|
+
attr_accessor name: String?
|
|
76
|
+
|
|
77
|
+
attr_accessor nickname: String?
|
|
78
|
+
|
|
79
|
+
attr_accessor phone_number: String?
|
|
80
|
+
|
|
81
|
+
attr_accessor phone_number_verified: bool?
|
|
82
|
+
|
|
83
|
+
attr_accessor picture: String?
|
|
84
|
+
|
|
85
|
+
attr_accessor preferred_name: String?
|
|
86
|
+
|
|
87
|
+
attr_accessor profile: String?
|
|
88
|
+
|
|
89
|
+
attr_accessor slack: Trycourier::Models::slack?
|
|
90
|
+
|
|
91
|
+
attr_accessor sub: String?
|
|
92
|
+
|
|
93
|
+
attr_accessor target_arn: String?
|
|
94
|
+
|
|
95
|
+
attr_accessor updated_at: String?
|
|
96
|
+
|
|
97
|
+
attr_accessor website: String?
|
|
98
|
+
|
|
99
|
+
attr_accessor zoneinfo: String?
|
|
100
|
+
|
|
101
|
+
def initialize: (
|
|
102
|
+
?address: Trycourier::UserProfile::Address?,
|
|
103
|
+
?airship: Trycourier::AirshipProfile?,
|
|
104
|
+
?apn: String?,
|
|
105
|
+
?birthdate: String?,
|
|
106
|
+
?custom: ::Hash[Symbol, top]?,
|
|
107
|
+
?discord: Trycourier::Models::discord?,
|
|
108
|
+
?email: String?,
|
|
109
|
+
?email_verified: bool?,
|
|
110
|
+
?expo: Trycourier::Models::expo?,
|
|
111
|
+
?facebook_psid: String?,
|
|
112
|
+
?family_name: String?,
|
|
113
|
+
?firebase_token: Trycourier::Models::user_profile_firebase_token?,
|
|
114
|
+
?gender: String?,
|
|
115
|
+
?given_name: String?,
|
|
116
|
+
?intercom: Trycourier::Intercom?,
|
|
117
|
+
?locale: String?,
|
|
118
|
+
?middle_name: String?,
|
|
119
|
+
?ms_teams: Trycourier::Models::ms_teams?,
|
|
120
|
+
?name: String?,
|
|
121
|
+
?nickname: String?,
|
|
122
|
+
?phone_number: String?,
|
|
123
|
+
?phone_number_verified: bool?,
|
|
124
|
+
?picture: String?,
|
|
125
|
+
?preferred_name: String?,
|
|
126
|
+
?profile: String?,
|
|
127
|
+
?slack: Trycourier::Models::slack?,
|
|
128
|
+
?sub: String?,
|
|
129
|
+
?target_arn: String?,
|
|
130
|
+
?updated_at: String?,
|
|
131
|
+
?website: String?,
|
|
132
|
+
?zoneinfo: String?
|
|
133
|
+
) -> void
|
|
134
|
+
|
|
135
|
+
def to_hash: -> {
|
|
136
|
+
address: Trycourier::UserProfile::Address?,
|
|
137
|
+
airship: Trycourier::AirshipProfile?,
|
|
138
|
+
apn: String?,
|
|
139
|
+
birthdate: String?,
|
|
140
|
+
custom: ::Hash[Symbol, top]?,
|
|
141
|
+
discord: Trycourier::Models::discord?,
|
|
142
|
+
email: String?,
|
|
143
|
+
email_verified: bool?,
|
|
144
|
+
expo: Trycourier::Models::expo?,
|
|
145
|
+
facebook_psid: String?,
|
|
146
|
+
family_name: String?,
|
|
147
|
+
firebase_token: Trycourier::Models::user_profile_firebase_token?,
|
|
148
|
+
gender: String?,
|
|
149
|
+
given_name: String?,
|
|
150
|
+
intercom: Trycourier::Intercom?,
|
|
151
|
+
locale: String?,
|
|
152
|
+
middle_name: String?,
|
|
153
|
+
ms_teams: Trycourier::Models::ms_teams?,
|
|
154
|
+
name: String?,
|
|
155
|
+
nickname: String?,
|
|
156
|
+
phone_number: String?,
|
|
157
|
+
phone_number_verified: bool?,
|
|
158
|
+
picture: String?,
|
|
159
|
+
preferred_name: String?,
|
|
160
|
+
profile: String?,
|
|
161
|
+
slack: Trycourier::Models::slack?,
|
|
162
|
+
sub: String?,
|
|
163
|
+
target_arn: String?,
|
|
164
|
+
updated_at: String?,
|
|
165
|
+
website: String?,
|
|
166
|
+
zoneinfo: String?
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type address =
|
|
170
|
+
{
|
|
171
|
+
country: String,
|
|
172
|
+
formatted: String,
|
|
173
|
+
locality: String,
|
|
174
|
+
postal_code: String,
|
|
175
|
+
region: String,
|
|
176
|
+
street_address: String
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
class Address < Trycourier::Internal::Type::BaseModel
|
|
180
|
+
attr_accessor country: String
|
|
181
|
+
|
|
182
|
+
attr_accessor formatted: String
|
|
183
|
+
|
|
184
|
+
attr_accessor locality: String
|
|
185
|
+
|
|
186
|
+
attr_accessor postal_code: String
|
|
187
|
+
|
|
188
|
+
attr_accessor region: String
|
|
189
|
+
|
|
190
|
+
attr_accessor street_address: String
|
|
191
|
+
|
|
192
|
+
def initialize: (
|
|
193
|
+
country: String,
|
|
194
|
+
formatted: String,
|
|
195
|
+
locality: String,
|
|
196
|
+
postal_code: String,
|
|
197
|
+
region: String,
|
|
198
|
+
street_address: String
|
|
199
|
+
) -> void
|
|
200
|
+
|
|
201
|
+
def to_hash: -> {
|
|
202
|
+
country: String,
|
|
203
|
+
formatted: String,
|
|
204
|
+
locality: String,
|
|
205
|
+
postal_code: String,
|
|
206
|
+
region: String,
|
|
207
|
+
street_address: String
|
|
208
|
+
}
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_firebase_token = String | ::Array[String]
|
|
4
|
+
|
|
5
|
+
module UserProfileFirebaseToken
|
|
6
|
+
extend Trycourier::Internal::Type::Union
|
|
7
|
+
|
|
8
|
+
def self?.variants: -> ::Array[Trycourier::Models::user_profile_firebase_token]
|
|
9
|
+
|
|
10
|
+
StringArray: Trycourier::Internal::Type::Converter
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_auth_mode = :none | :basic | :bearer
|
|
4
|
+
|
|
5
|
+
module WebhookAuthMode
|
|
6
|
+
extend Trycourier::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
NONE: :none
|
|
9
|
+
BASIC: :basic
|
|
10
|
+
BEARER: :bearer
|
|
11
|
+
|
|
12
|
+
def self?.values: -> ::Array[Trycourier::Models::webhook_auth_mode]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_authentication =
|
|
4
|
+
{
|
|
5
|
+
mode: Trycourier::Models::webhook_auth_mode,
|
|
6
|
+
token: String?,
|
|
7
|
+
password: String?,
|
|
8
|
+
username: String?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class WebhookAuthentication < Trycourier::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor mode: Trycourier::Models::webhook_auth_mode
|
|
13
|
+
|
|
14
|
+
attr_accessor token: String?
|
|
15
|
+
|
|
16
|
+
attr_accessor password: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor username: String?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
mode: Trycourier::Models::webhook_auth_mode,
|
|
22
|
+
?token: String?,
|
|
23
|
+
?password: String?,
|
|
24
|
+
?username: String?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
mode: Trycourier::Models::webhook_auth_mode,
|
|
29
|
+
token: String?,
|
|
30
|
+
password: String?,
|
|
31
|
+
username: String?
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_method = :POST | :PUT
|
|
4
|
+
|
|
5
|
+
module WebhookMethod
|
|
6
|
+
extend Trycourier::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
POST: :POST
|
|
9
|
+
PUT: :PUT
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Trycourier::Models::webhook_method]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_profile =
|
|
4
|
+
{
|
|
5
|
+
url: String,
|
|
6
|
+
authentication: Trycourier::WebhookAuthentication?,
|
|
7
|
+
headers: ::Hash[Symbol, String]?,
|
|
8
|
+
method_: Trycourier::Models::webhook_method?,
|
|
9
|
+
profile: Trycourier::Models::webhook_profile_type?
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class WebhookProfile < Trycourier::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor url: String
|
|
14
|
+
|
|
15
|
+
attr_accessor authentication: Trycourier::WebhookAuthentication?
|
|
16
|
+
|
|
17
|
+
attr_accessor headers: ::Hash[Symbol, String]?
|
|
18
|
+
|
|
19
|
+
attr_accessor method_: Trycourier::Models::webhook_method?
|
|
20
|
+
|
|
21
|
+
attr_accessor profile: Trycourier::Models::webhook_profile_type?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
url: String,
|
|
25
|
+
?authentication: Trycourier::WebhookAuthentication?,
|
|
26
|
+
?headers: ::Hash[Symbol, String]?,
|
|
27
|
+
?method_: Trycourier::Models::webhook_method?,
|
|
28
|
+
?profile: Trycourier::Models::webhook_profile_type?
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
url: String,
|
|
33
|
+
authentication: Trycourier::WebhookAuthentication?,
|
|
34
|
+
headers: ::Hash[Symbol, String]?,
|
|
35
|
+
method_: Trycourier::Models::webhook_method?,
|
|
36
|
+
profile: Trycourier::Models::webhook_profile_type?
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_profile_type = :limited | :expanded
|
|
4
|
+
|
|
5
|
+
module WebhookProfileType
|
|
6
|
+
extend Trycourier::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
LIMITED: :limited
|
|
9
|
+
EXPANDED: :expanded
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Trycourier::Models::webhook_profile_type]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_recipient = { webhook: Trycourier::WebhookProfile }
|
|
4
|
+
|
|
5
|
+
class WebhookRecipient < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor webhook: Trycourier::WebhookProfile
|
|
7
|
+
|
|
8
|
+
def initialize: (webhook: Trycourier::WebhookProfile) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { webhook: Trycourier::WebhookProfile }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/sig/trycourier/models.rbs
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
module Trycourier
|
|
2
|
+
class AirshipProfile = Trycourier::Models::AirshipProfile
|
|
3
|
+
|
|
4
|
+
class AirshipProfileAudience = Trycourier::Models::AirshipProfileAudience
|
|
5
|
+
|
|
2
6
|
module Alignment = Trycourier::Models::Alignment
|
|
3
7
|
|
|
4
8
|
class Audience = Trycourier::Models::Audience
|
|
5
9
|
|
|
6
10
|
class AudienceDeleteParams = Trycourier::Models::AudienceDeleteParams
|
|
7
11
|
|
|
12
|
+
class AudienceFilter = Trycourier::Models::AudienceFilter
|
|
13
|
+
|
|
8
14
|
class AudienceListMembersParams = Trycourier::Models::AudienceListMembersParams
|
|
9
15
|
|
|
10
16
|
class AudienceListParams = Trycourier::Models::AudienceListParams
|
|
11
17
|
|
|
18
|
+
class AudienceRecipient = Trycourier::Models::AudienceRecipient
|
|
19
|
+
|
|
12
20
|
class AudienceRetrieveParams = Trycourier::Models::AudienceRetrieveParams
|
|
13
21
|
|
|
14
22
|
class AudienceUpdateParams = Trycourier::Models::AudienceUpdateParams
|
|
@@ -73,6 +81,10 @@ module Trycourier
|
|
|
73
81
|
|
|
74
82
|
class DefaultPreferences = Trycourier::Models::DefaultPreferences
|
|
75
83
|
|
|
84
|
+
class DeviceType = Trycourier::Models::DeviceType
|
|
85
|
+
|
|
86
|
+
module Discord = Trycourier::Models::Discord
|
|
87
|
+
|
|
76
88
|
class ElementalActionNodeWithType = Trycourier::Models::ElementalActionNodeWithType
|
|
77
89
|
|
|
78
90
|
class ElementalBaseNode = Trycourier::Models::ElementalBaseNode
|
|
@@ -103,9 +115,11 @@ module Trycourier
|
|
|
103
115
|
|
|
104
116
|
class EmailHeader = Trycourier::Models::EmailHeader
|
|
105
117
|
|
|
106
|
-
|
|
118
|
+
module Expo = Trycourier::Models::Expo
|
|
107
119
|
|
|
108
|
-
|
|
120
|
+
module Filter = Trycourier::Models::Filter
|
|
121
|
+
|
|
122
|
+
module FilterConfig = Trycourier::Models::FilterConfig
|
|
109
123
|
|
|
110
124
|
class Icons = Trycourier::Models::Icons
|
|
111
125
|
|
|
@@ -115,10 +129,20 @@ module Trycourier
|
|
|
115
129
|
|
|
116
130
|
class InboundTrackEventParams = Trycourier::Models::InboundTrackEventParams
|
|
117
131
|
|
|
132
|
+
class Intercom = Trycourier::Models::Intercom
|
|
133
|
+
|
|
134
|
+
class IntercomRecipient = Trycourier::Models::IntercomRecipient
|
|
135
|
+
|
|
118
136
|
class ListDeleteParams = Trycourier::Models::ListDeleteParams
|
|
119
137
|
|
|
138
|
+
class ListFilter = Trycourier::Models::ListFilter
|
|
139
|
+
|
|
120
140
|
class ListListParams = Trycourier::Models::ListListParams
|
|
121
141
|
|
|
142
|
+
class ListPatternRecipient = Trycourier::Models::ListPatternRecipient
|
|
143
|
+
|
|
144
|
+
class ListRecipient = Trycourier::Models::ListRecipient
|
|
145
|
+
|
|
122
146
|
class ListRestoreParams = Trycourier::Models::ListRestoreParams
|
|
123
147
|
|
|
124
148
|
class ListRetrieveParams = Trycourier::Models::ListRetrieveParams
|
|
@@ -147,6 +171,16 @@ module Trycourier
|
|
|
147
171
|
|
|
148
172
|
module MessageRoutingChannel = Trycourier::Models::MessageRoutingChannel
|
|
149
173
|
|
|
174
|
+
module MsTeams = Trycourier::Models::MsTeams
|
|
175
|
+
|
|
176
|
+
class MsTeamsBaseProperties = Trycourier::Models::MsTeamsBaseProperties
|
|
177
|
+
|
|
178
|
+
class MsTeamsRecipient = Trycourier::Models::MsTeamsRecipient
|
|
179
|
+
|
|
180
|
+
class MultipleTokens = Trycourier::Models::MultipleTokens
|
|
181
|
+
|
|
182
|
+
class NestedFilterConfig = Trycourier::Models::NestedFilterConfig
|
|
183
|
+
|
|
150
184
|
class NotificationGetContent = Trycourier::Models::NotificationGetContent
|
|
151
185
|
|
|
152
186
|
class NotificationListParams = Trycourier::Models::NotificationListParams
|
|
@@ -157,6 +191,10 @@ module Trycourier
|
|
|
157
191
|
|
|
158
192
|
module Notifications = Trycourier::Models::Notifications
|
|
159
193
|
|
|
194
|
+
class Pagerduty = Trycourier::Models::Pagerduty
|
|
195
|
+
|
|
196
|
+
class PagerdutyRecipient = Trycourier::Models::PagerdutyRecipient
|
|
197
|
+
|
|
160
198
|
class Paging = Trycourier::Models::Paging
|
|
161
199
|
|
|
162
200
|
class Preference = Trycourier::Models::Preference
|
|
@@ -177,16 +215,42 @@ module Trycourier
|
|
|
177
215
|
|
|
178
216
|
class PutSubscriptionsRecipient = Trycourier::Models::PutSubscriptionsRecipient
|
|
179
217
|
|
|
180
|
-
class Recipient = Trycourier::Models::Recipient
|
|
181
|
-
|
|
182
218
|
class RecipientPreferences = Trycourier::Models::RecipientPreferences
|
|
183
219
|
|
|
184
220
|
class RequestArchiveParams = Trycourier::Models::RequestArchiveParams
|
|
185
221
|
|
|
186
222
|
class Rule = Trycourier::Models::Rule
|
|
187
223
|
|
|
224
|
+
class SendDirectMessage = Trycourier::Models::SendDirectMessage
|
|
225
|
+
|
|
188
226
|
class SendMessageParams = Trycourier::Models::SendMessageParams
|
|
189
227
|
|
|
228
|
+
class SendToChannel = Trycourier::Models::SendToChannel
|
|
229
|
+
|
|
230
|
+
class SendToMsTeamsChannelID = Trycourier::Models::SendToMsTeamsChannelID
|
|
231
|
+
|
|
232
|
+
class SendToMsTeamsChannelName = Trycourier::Models::SendToMsTeamsChannelName
|
|
233
|
+
|
|
234
|
+
class SendToMsTeamsConversationID = Trycourier::Models::SendToMsTeamsConversationID
|
|
235
|
+
|
|
236
|
+
class SendToMsTeamsEmail = Trycourier::Models::SendToMsTeamsEmail
|
|
237
|
+
|
|
238
|
+
class SendToMsTeamsUserID = Trycourier::Models::SendToMsTeamsUserID
|
|
239
|
+
|
|
240
|
+
class SendToSlackChannel = Trycourier::Models::SendToSlackChannel
|
|
241
|
+
|
|
242
|
+
class SendToSlackEmail = Trycourier::Models::SendToSlackEmail
|
|
243
|
+
|
|
244
|
+
class SendToSlackUserID = Trycourier::Models::SendToSlackUserID
|
|
245
|
+
|
|
246
|
+
class SingleFilterConfig = Trycourier::Models::SingleFilterConfig
|
|
247
|
+
|
|
248
|
+
module Slack = Trycourier::Models::Slack
|
|
249
|
+
|
|
250
|
+
class SlackBaseProperties = Trycourier::Models::SlackBaseProperties
|
|
251
|
+
|
|
252
|
+
class SlackRecipient = Trycourier::Models::SlackRecipient
|
|
253
|
+
|
|
190
254
|
class SubscribeToListsRequestItem = Trycourier::Models::SubscribeToListsRequestItem
|
|
191
255
|
|
|
192
256
|
class SubscriptionList = Trycourier::Models::SubscriptionList
|
|
@@ -211,15 +275,33 @@ module Trycourier
|
|
|
211
275
|
|
|
212
276
|
module TextStyle = Trycourier::Models::TextStyle
|
|
213
277
|
|
|
278
|
+
class Token = Trycourier::Models::Token
|
|
279
|
+
|
|
214
280
|
class TranslationRetrieveParams = Trycourier::Models::TranslationRetrieveParams
|
|
215
281
|
|
|
216
282
|
class TranslationUpdateParams = Trycourier::Models::TranslationUpdateParams
|
|
217
283
|
|
|
284
|
+
class UserProfile = Trycourier::Models::UserProfile
|
|
285
|
+
|
|
286
|
+
module UserProfileFirebaseToken = Trycourier::Models::UserProfileFirebaseToken
|
|
287
|
+
|
|
218
288
|
class UserRecipient = Trycourier::Models::UserRecipient
|
|
219
289
|
|
|
220
290
|
module Users = Trycourier::Models::Users
|
|
221
291
|
|
|
222
292
|
class Utm = Trycourier::Models::Utm
|
|
223
293
|
|
|
294
|
+
class WebhookAuthentication = Trycourier::Models::WebhookAuthentication
|
|
295
|
+
|
|
296
|
+
module WebhookAuthMode = Trycourier::Models::WebhookAuthMode
|
|
297
|
+
|
|
298
|
+
module WebhookMethod = Trycourier::Models::WebhookMethod
|
|
299
|
+
|
|
300
|
+
class WebhookProfile = Trycourier::Models::WebhookProfile
|
|
301
|
+
|
|
302
|
+
module WebhookProfileType = Trycourier::Models::WebhookProfileType
|
|
303
|
+
|
|
304
|
+
class WebhookRecipient = Trycourier::Models::WebhookRecipient
|
|
305
|
+
|
|
224
306
|
class WidgetBackground = Trycourier::Models::WidgetBackground
|
|
225
307
|
end
|
|
@@ -9,7 +9,7 @@ module Trycourier
|
|
|
9
9
|
def update: (
|
|
10
10
|
String audience_id,
|
|
11
11
|
?description: String?,
|
|
12
|
-
?filter: Trycourier::
|
|
12
|
+
?filter: Trycourier::Models::filter?,
|
|
13
13
|
?name: String?,
|
|
14
14
|
?request_options: Trycourier::request_opts
|
|
15
15
|
) -> Trycourier::Models::AudienceUpdateResponse
|