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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +9 -9
- 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/automation_list_params.rb +47 -0
- data/lib/trycourier/models/automation_template.rb +61 -0
- data/lib/trycourier/models/automation_template_list_response.rb +24 -0
- 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 +90 -2
- data/lib/trycourier/resources/audiences.rb +1 -1
- data/lib/trycourier/resources/automations.rb +27 -0
- data/lib/trycourier/version.rb +1 -1
- data/lib/trycourier.rb +45 -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/automation_list_params.rbi +95 -0
- data/rbi/trycourier/models/automation_template.rbi +102 -0
- data/rbi/trycourier/models/automation_template_list_response.rbi +54 -0
- 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 +91 -2
- data/rbi/trycourier/resources/audiences.rbi +7 -1
- data/rbi/trycourier/resources/automations.rbi +19 -0
- 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/automation_list_params.rbs +48 -0
- data/sig/trycourier/models/automation_template.rbs +55 -0
- data/sig/trycourier/models/automation_template_list_response.rbs +28 -0
- 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 +92 -4
- data/sig/trycourier/resources/audiences.rbs +1 -1
- data/sig/trycourier/resources/automations.rbs +6 -0
- metadata +137 -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,69 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type single_filter_config =
|
|
4
|
+
{
|
|
5
|
+
operator: Trycourier::Models::SingleFilterConfig::operator,
|
|
6
|
+
path: String,
|
|
7
|
+
value: String
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SingleFilterConfig < Trycourier::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor operator: Trycourier::Models::SingleFilterConfig::operator
|
|
12
|
+
|
|
13
|
+
attr_accessor path: String
|
|
14
|
+
|
|
15
|
+
attr_accessor value: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
operator: Trycourier::Models::SingleFilterConfig::operator,
|
|
19
|
+
path: String,
|
|
20
|
+
value: String
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
operator: Trycourier::Models::SingleFilterConfig::operator,
|
|
25
|
+
path: String,
|
|
26
|
+
value: String
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type operator =
|
|
30
|
+
:ENDS_WITH
|
|
31
|
+
| :EQ
|
|
32
|
+
| :EXISTS
|
|
33
|
+
| :GT
|
|
34
|
+
| :GTE
|
|
35
|
+
| :INCLUDES
|
|
36
|
+
| :IS_AFTER
|
|
37
|
+
| :IS_BEFORE
|
|
38
|
+
| :LT
|
|
39
|
+
| :LTE
|
|
40
|
+
| :NEQ
|
|
41
|
+
| :OMIT
|
|
42
|
+
| :STARTS_WITH
|
|
43
|
+
| :AND
|
|
44
|
+
| :OR
|
|
45
|
+
|
|
46
|
+
module Operator
|
|
47
|
+
extend Trycourier::Internal::Type::Enum
|
|
48
|
+
|
|
49
|
+
ENDS_WITH: :ENDS_WITH
|
|
50
|
+
EQ: :EQ
|
|
51
|
+
EXISTS: :EXISTS
|
|
52
|
+
GT: :GT
|
|
53
|
+
GTE: :GTE
|
|
54
|
+
INCLUDES: :INCLUDES
|
|
55
|
+
IS_AFTER: :IS_AFTER
|
|
56
|
+
IS_BEFORE: :IS_BEFORE
|
|
57
|
+
LT: :LT
|
|
58
|
+
LTE: :LTE
|
|
59
|
+
NEQ: :NEQ
|
|
60
|
+
OMIT: :OMIT
|
|
61
|
+
STARTS_WITH: :STARTS_WITH
|
|
62
|
+
AND: :AND
|
|
63
|
+
OR: :OR
|
|
64
|
+
|
|
65
|
+
def self?.values: -> ::Array[Trycourier::Models::SingleFilterConfig::operator]
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type slack =
|
|
4
|
+
Trycourier::SendToSlackChannel
|
|
5
|
+
| Trycourier::SendToSlackEmail
|
|
6
|
+
| Trycourier::SendToSlackUserID
|
|
7
|
+
|
|
8
|
+
module Slack
|
|
9
|
+
extend Trycourier::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
def self?.variants: -> ::Array[Trycourier::Models::slack]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type slack_base_properties = { access_token: String }
|
|
4
|
+
|
|
5
|
+
class SlackBaseProperties < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor access_token: String
|
|
7
|
+
|
|
8
|
+
def initialize: (access_token: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { access_token: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type slack_recipient = { slack: Trycourier::Models::slack }
|
|
4
|
+
|
|
5
|
+
class SlackRecipient < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor slack: Trycourier::Models::slack
|
|
7
|
+
|
|
8
|
+
def initialize: (slack: Trycourier::Models::slack) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { slack: Trycourier::Models::slack }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Trycourier
|
|
2
|
+
module Models
|
|
3
|
+
type token = { token: String }
|
|
4
|
+
|
|
5
|
+
class Token < Trycourier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor token: String
|
|
7
|
+
|
|
8
|
+
def initialize: (token: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { token: String }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -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
|
|
@@ -23,8 +31,14 @@ module Trycourier
|
|
|
23
31
|
|
|
24
32
|
class AutomationInvokeResponse = Trycourier::Models::AutomationInvokeResponse
|
|
25
33
|
|
|
34
|
+
class AutomationListParams = Trycourier::Models::AutomationListParams
|
|
35
|
+
|
|
26
36
|
module Automations = Trycourier::Models::Automations
|
|
27
37
|
|
|
38
|
+
class AutomationTemplate = Trycourier::Models::AutomationTemplate
|
|
39
|
+
|
|
40
|
+
class AutomationTemplateListResponse = Trycourier::Models::AutomationTemplateListResponse
|
|
41
|
+
|
|
28
42
|
class BaseCheck = Trycourier::Models::BaseCheck
|
|
29
43
|
|
|
30
44
|
class BaseTemplateTenantAssociation = Trycourier::Models::BaseTemplateTenantAssociation
|
|
@@ -73,6 +87,10 @@ module Trycourier
|
|
|
73
87
|
|
|
74
88
|
class DefaultPreferences = Trycourier::Models::DefaultPreferences
|
|
75
89
|
|
|
90
|
+
class DeviceType = Trycourier::Models::DeviceType
|
|
91
|
+
|
|
92
|
+
module Discord = Trycourier::Models::Discord
|
|
93
|
+
|
|
76
94
|
class ElementalActionNodeWithType = Trycourier::Models::ElementalActionNodeWithType
|
|
77
95
|
|
|
78
96
|
class ElementalBaseNode = Trycourier::Models::ElementalBaseNode
|
|
@@ -103,9 +121,11 @@ module Trycourier
|
|
|
103
121
|
|
|
104
122
|
class EmailHeader = Trycourier::Models::EmailHeader
|
|
105
123
|
|
|
106
|
-
|
|
124
|
+
module Expo = Trycourier::Models::Expo
|
|
107
125
|
|
|
108
|
-
|
|
126
|
+
module Filter = Trycourier::Models::Filter
|
|
127
|
+
|
|
128
|
+
module FilterConfig = Trycourier::Models::FilterConfig
|
|
109
129
|
|
|
110
130
|
class Icons = Trycourier::Models::Icons
|
|
111
131
|
|
|
@@ -115,10 +135,20 @@ module Trycourier
|
|
|
115
135
|
|
|
116
136
|
class InboundTrackEventParams = Trycourier::Models::InboundTrackEventParams
|
|
117
137
|
|
|
138
|
+
class Intercom = Trycourier::Models::Intercom
|
|
139
|
+
|
|
140
|
+
class IntercomRecipient = Trycourier::Models::IntercomRecipient
|
|
141
|
+
|
|
118
142
|
class ListDeleteParams = Trycourier::Models::ListDeleteParams
|
|
119
143
|
|
|
144
|
+
class ListFilter = Trycourier::Models::ListFilter
|
|
145
|
+
|
|
120
146
|
class ListListParams = Trycourier::Models::ListListParams
|
|
121
147
|
|
|
148
|
+
class ListPatternRecipient = Trycourier::Models::ListPatternRecipient
|
|
149
|
+
|
|
150
|
+
class ListRecipient = Trycourier::Models::ListRecipient
|
|
151
|
+
|
|
122
152
|
class ListRestoreParams = Trycourier::Models::ListRestoreParams
|
|
123
153
|
|
|
124
154
|
class ListRetrieveParams = Trycourier::Models::ListRetrieveParams
|
|
@@ -147,6 +177,16 @@ module Trycourier
|
|
|
147
177
|
|
|
148
178
|
module MessageRoutingChannel = Trycourier::Models::MessageRoutingChannel
|
|
149
179
|
|
|
180
|
+
module MsTeams = Trycourier::Models::MsTeams
|
|
181
|
+
|
|
182
|
+
class MsTeamsBaseProperties = Trycourier::Models::MsTeamsBaseProperties
|
|
183
|
+
|
|
184
|
+
class MsTeamsRecipient = Trycourier::Models::MsTeamsRecipient
|
|
185
|
+
|
|
186
|
+
class MultipleTokens = Trycourier::Models::MultipleTokens
|
|
187
|
+
|
|
188
|
+
class NestedFilterConfig = Trycourier::Models::NestedFilterConfig
|
|
189
|
+
|
|
150
190
|
class NotificationGetContent = Trycourier::Models::NotificationGetContent
|
|
151
191
|
|
|
152
192
|
class NotificationListParams = Trycourier::Models::NotificationListParams
|
|
@@ -157,6 +197,10 @@ module Trycourier
|
|
|
157
197
|
|
|
158
198
|
module Notifications = Trycourier::Models::Notifications
|
|
159
199
|
|
|
200
|
+
class Pagerduty = Trycourier::Models::Pagerduty
|
|
201
|
+
|
|
202
|
+
class PagerdutyRecipient = Trycourier::Models::PagerdutyRecipient
|
|
203
|
+
|
|
160
204
|
class Paging = Trycourier::Models::Paging
|
|
161
205
|
|
|
162
206
|
class Preference = Trycourier::Models::Preference
|
|
@@ -177,16 +221,42 @@ module Trycourier
|
|
|
177
221
|
|
|
178
222
|
class PutSubscriptionsRecipient = Trycourier::Models::PutSubscriptionsRecipient
|
|
179
223
|
|
|
180
|
-
class Recipient = Trycourier::Models::Recipient
|
|
181
|
-
|
|
182
224
|
class RecipientPreferences = Trycourier::Models::RecipientPreferences
|
|
183
225
|
|
|
184
226
|
class RequestArchiveParams = Trycourier::Models::RequestArchiveParams
|
|
185
227
|
|
|
186
228
|
class Rule = Trycourier::Models::Rule
|
|
187
229
|
|
|
230
|
+
class SendDirectMessage = Trycourier::Models::SendDirectMessage
|
|
231
|
+
|
|
188
232
|
class SendMessageParams = Trycourier::Models::SendMessageParams
|
|
189
233
|
|
|
234
|
+
class SendToChannel = Trycourier::Models::SendToChannel
|
|
235
|
+
|
|
236
|
+
class SendToMsTeamsChannelID = Trycourier::Models::SendToMsTeamsChannelID
|
|
237
|
+
|
|
238
|
+
class SendToMsTeamsChannelName = Trycourier::Models::SendToMsTeamsChannelName
|
|
239
|
+
|
|
240
|
+
class SendToMsTeamsConversationID = Trycourier::Models::SendToMsTeamsConversationID
|
|
241
|
+
|
|
242
|
+
class SendToMsTeamsEmail = Trycourier::Models::SendToMsTeamsEmail
|
|
243
|
+
|
|
244
|
+
class SendToMsTeamsUserID = Trycourier::Models::SendToMsTeamsUserID
|
|
245
|
+
|
|
246
|
+
class SendToSlackChannel = Trycourier::Models::SendToSlackChannel
|
|
247
|
+
|
|
248
|
+
class SendToSlackEmail = Trycourier::Models::SendToSlackEmail
|
|
249
|
+
|
|
250
|
+
class SendToSlackUserID = Trycourier::Models::SendToSlackUserID
|
|
251
|
+
|
|
252
|
+
class SingleFilterConfig = Trycourier::Models::SingleFilterConfig
|
|
253
|
+
|
|
254
|
+
module Slack = Trycourier::Models::Slack
|
|
255
|
+
|
|
256
|
+
class SlackBaseProperties = Trycourier::Models::SlackBaseProperties
|
|
257
|
+
|
|
258
|
+
class SlackRecipient = Trycourier::Models::SlackRecipient
|
|
259
|
+
|
|
190
260
|
class SubscribeToListsRequestItem = Trycourier::Models::SubscribeToListsRequestItem
|
|
191
261
|
|
|
192
262
|
class SubscriptionList = Trycourier::Models::SubscriptionList
|
|
@@ -211,15 +281,33 @@ module Trycourier
|
|
|
211
281
|
|
|
212
282
|
module TextStyle = Trycourier::Models::TextStyle
|
|
213
283
|
|
|
284
|
+
class Token = Trycourier::Models::Token
|
|
285
|
+
|
|
214
286
|
class TranslationRetrieveParams = Trycourier::Models::TranslationRetrieveParams
|
|
215
287
|
|
|
216
288
|
class TranslationUpdateParams = Trycourier::Models::TranslationUpdateParams
|
|
217
289
|
|
|
290
|
+
class UserProfile = Trycourier::Models::UserProfile
|
|
291
|
+
|
|
292
|
+
module UserProfileFirebaseToken = Trycourier::Models::UserProfileFirebaseToken
|
|
293
|
+
|
|
218
294
|
class UserRecipient = Trycourier::Models::UserRecipient
|
|
219
295
|
|
|
220
296
|
module Users = Trycourier::Models::Users
|
|
221
297
|
|
|
222
298
|
class Utm = Trycourier::Models::Utm
|
|
223
299
|
|
|
300
|
+
class WebhookAuthentication = Trycourier::Models::WebhookAuthentication
|
|
301
|
+
|
|
302
|
+
module WebhookAuthMode = Trycourier::Models::WebhookAuthMode
|
|
303
|
+
|
|
304
|
+
module WebhookMethod = Trycourier::Models::WebhookMethod
|
|
305
|
+
|
|
306
|
+
class WebhookProfile = Trycourier::Models::WebhookProfile
|
|
307
|
+
|
|
308
|
+
module WebhookProfileType = Trycourier::Models::WebhookProfileType
|
|
309
|
+
|
|
310
|
+
class WebhookRecipient = Trycourier::Models::WebhookRecipient
|
|
311
|
+
|
|
224
312
|
class WidgetBackground = Trycourier::Models::WidgetBackground
|
|
225
313
|
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
|