trycourier 6.4.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/courier/models/elemental_action_node.rb +123 -0
  5. data/lib/courier/models/elemental_action_node_with_type.rb +3 -1
  6. data/lib/courier/models/elemental_channel_node.rb +1 -1
  7. data/lib/courier/models/elemental_divider_node.rb +18 -0
  8. data/lib/courier/models/elemental_divider_node_with_type.rb +3 -1
  9. data/lib/courier/models/elemental_html_node.rb +33 -0
  10. data/lib/courier/models/elemental_html_node_with_type.rb +5 -1
  11. data/lib/courier/models/elemental_image_node.rb +74 -0
  12. data/lib/courier/models/elemental_image_node_with_type.rb +3 -1
  13. data/lib/courier/models/elemental_meta_node.rb +23 -0
  14. data/lib/courier/models/elemental_meta_node_with_type.rb +5 -1
  15. data/lib/courier/models/elemental_node.rb +9 -18
  16. data/lib/courier/models/elemental_quote_node.rb +72 -0
  17. data/lib/courier/models/elemental_quote_node_with_type.rb +3 -1
  18. data/lib/courier/models/elemental_text_node.rb +134 -0
  19. data/lib/courier/models/elemental_text_node_with_type.rb +3 -1
  20. data/lib/courier/models/locales.rb +18 -0
  21. data/lib/courier/models.rb +19 -0
  22. data/lib/courier/version.rb +1 -1
  23. data/lib/courier.rb +8 -0
  24. data/rbi/courier/models/elemental_action_node.rbi +153 -0
  25. data/rbi/courier/models/elemental_action_node_with_type.rbi +2 -1
  26. data/rbi/courier/models/elemental_divider_node.rbi +28 -0
  27. data/rbi/courier/models/elemental_divider_node_with_type.rbi +2 -1
  28. data/rbi/courier/models/elemental_html_node.rbi +52 -0
  29. data/rbi/courier/models/elemental_html_node_with_type.rbi +4 -1
  30. data/rbi/courier/models/elemental_image_node.rbi +94 -0
  31. data/rbi/courier/models/elemental_image_node_with_type.rbi +2 -1
  32. data/rbi/courier/models/elemental_meta_node.rbi +30 -0
  33. data/rbi/courier/models/elemental_meta_node_with_type.rbi +4 -1
  34. data/rbi/courier/models/elemental_node.rbi +1 -10
  35. data/rbi/courier/models/elemental_quote_node.rbi +95 -0
  36. data/rbi/courier/models/elemental_quote_node_with_type.rbi +2 -1
  37. data/rbi/courier/models/elemental_text_node.rbi +177 -0
  38. data/rbi/courier/models/elemental_text_node_with_type.rbi +2 -1
  39. data/rbi/courier/models/locales.rbi +27 -0
  40. data/rbi/courier/models.rbi +18 -0
  41. data/sig/courier/models/elemental_action_node.rbs +112 -0
  42. data/sig/courier/models/elemental_action_node_with_type.rbs +1 -1
  43. data/sig/courier/models/elemental_divider_node.rbs +15 -0
  44. data/sig/courier/models/elemental_divider_node_with_type.rbs +1 -1
  45. data/sig/courier/models/elemental_html_node.rbs +23 -0
  46. data/sig/courier/models/elemental_html_node_with_type.rbs +1 -1
  47. data/sig/courier/models/elemental_image_node.rbs +71 -0
  48. data/sig/courier/models/elemental_image_node_with_type.rbs +1 -1
  49. data/sig/courier/models/elemental_meta_node.rbs +15 -0
  50. data/sig/courier/models/elemental_meta_node_with_type.rbs +1 -1
  51. data/sig/courier/models/elemental_quote_node.rbs +66 -0
  52. data/sig/courier/models/elemental_quote_node_with_type.rbs +1 -1
  53. data/sig/courier/models/elemental_text_node.rbs +127 -0
  54. data/sig/courier/models/elemental_text_node_with_type.rbs +1 -1
  55. data/sig/courier/models/locales.rbs +17 -0
  56. data/sig/courier/models.rbs +18 -0
  57. metadata +25 -1
@@ -0,0 +1,15 @@
1
+ module Courier
2
+ module Models
3
+ type elemental_meta_node = { title: String? }
4
+
5
+ class ElementalMetaNode < Courier::Models::ElementalBaseNode
6
+ def title: -> String?
7
+
8
+ def title=: (String? _) -> String?
9
+
10
+ def initialize: (?title: String?) -> void
11
+
12
+ def to_hash: -> { title: String? }
13
+ end
14
+ end
15
+ end
@@ -3,7 +3,7 @@ module Courier
3
3
  type elemental_meta_node_with_type =
4
4
  { type: Courier::Models::ElementalMetaNodeWithType::type_ }
5
5
 
6
- class ElementalMetaNodeWithType < Courier::Models::ElementalBaseNode
6
+ class ElementalMetaNodeWithType < Courier::Models::ElementalMetaNode
7
7
  def `type`: -> Courier::Models::ElementalMetaNodeWithType::type_?
8
8
 
9
9
  def type=: (
@@ -0,0 +1,66 @@
1
+ module Courier
2
+ module Models
3
+ type elemental_quote_node =
4
+ {
5
+ content: String,
6
+ align: Courier::Models::alignment?,
7
+ border_color: String?,
8
+ font_size: String?,
9
+ line_height: String?,
10
+ locales: Courier::Models::locales?,
11
+ text_style: Courier::Models::text_style
12
+ }
13
+
14
+ class ElementalQuoteNode < Courier::Models::ElementalBaseNode
15
+ def content: -> String
16
+
17
+ def content=: (String _) -> String
18
+
19
+ def align: -> Courier::Models::alignment?
20
+
21
+ def align=: (Courier::Models::alignment? _) -> Courier::Models::alignment?
22
+
23
+ def border_color: -> String?
24
+
25
+ def border_color=: (String? _) -> String?
26
+
27
+ def font_size: -> String?
28
+
29
+ def font_size=: (String? _) -> String?
30
+
31
+ def line_height: -> String?
32
+
33
+ def line_height=: (String? _) -> String?
34
+
35
+ def locales: -> Courier::Models::locales?
36
+
37
+ def locales=: (Courier::Models::locales? _) -> Courier::Models::locales?
38
+
39
+ def text_style: -> Courier::Models::text_style?
40
+
41
+ def text_style=: (
42
+ Courier::Models::text_style _
43
+ ) -> Courier::Models::text_style
44
+
45
+ def initialize: (
46
+ content: String,
47
+ ?align: Courier::Models::alignment?,
48
+ ?border_color: String?,
49
+ ?font_size: String?,
50
+ ?line_height: String?,
51
+ ?locales: Courier::Models::locales?,
52
+ ?text_style: Courier::Models::text_style
53
+ ) -> void
54
+
55
+ def to_hash: -> {
56
+ content: String,
57
+ align: Courier::Models::alignment?,
58
+ border_color: String?,
59
+ font_size: String?,
60
+ line_height: String?,
61
+ locales: Courier::Models::locales?,
62
+ text_style: Courier::Models::text_style
63
+ }
64
+ end
65
+ end
66
+ end
@@ -3,7 +3,7 @@ module Courier
3
3
  type elemental_quote_node_with_type =
4
4
  { type: Courier::Models::ElementalQuoteNodeWithType::type_ }
5
5
 
6
- class ElementalQuoteNodeWithType < Courier::Models::ElementalBaseNode
6
+ class ElementalQuoteNodeWithType < Courier::Models::ElementalQuoteNode
7
7
  def `type`: -> Courier::Models::ElementalQuoteNodeWithType::type_?
8
8
 
9
9
  def type=: (
@@ -0,0 +1,127 @@
1
+ module Courier
2
+ module Models
3
+ type elemental_text_node =
4
+ {
5
+ content: String,
6
+ align: Courier::Models::ElementalTextNode::align,
7
+ bold: String?,
8
+ color: String?,
9
+ font_size: String?,
10
+ format_: Courier::Models::ElementalTextNode::format_?,
11
+ italic: String?,
12
+ line_height: String?,
13
+ locales: Courier::Models::locales?,
14
+ strikethrough: String?,
15
+ text_style: Courier::Models::text_style?,
16
+ underline: String?
17
+ }
18
+
19
+ class ElementalTextNode < Courier::Models::ElementalBaseNode
20
+ def content: -> String
21
+
22
+ def content=: (String _) -> String
23
+
24
+ def align: -> Courier::Models::ElementalTextNode::align?
25
+
26
+ def align=: (
27
+ Courier::Models::ElementalTextNode::align _
28
+ ) -> Courier::Models::ElementalTextNode::align
29
+
30
+ def bold: -> String?
31
+
32
+ def bold=: (String? _) -> String?
33
+
34
+ def color: -> String?
35
+
36
+ def color=: (String? _) -> String?
37
+
38
+ def font_size: -> String?
39
+
40
+ def font_size=: (String? _) -> String?
41
+
42
+ def format_: -> Courier::Models::ElementalTextNode::format_?
43
+
44
+ def format_=: (
45
+ Courier::Models::ElementalTextNode::format_? _
46
+ ) -> Courier::Models::ElementalTextNode::format_?
47
+
48
+ def italic: -> String?
49
+
50
+ def italic=: (String? _) -> String?
51
+
52
+ def line_height: -> String?
53
+
54
+ def line_height=: (String? _) -> String?
55
+
56
+ def locales: -> Courier::Models::locales?
57
+
58
+ def locales=: (Courier::Models::locales? _) -> Courier::Models::locales?
59
+
60
+ def strikethrough: -> String?
61
+
62
+ def strikethrough=: (String? _) -> String?
63
+
64
+ def text_style: -> Courier::Models::text_style?
65
+
66
+ def text_style=: (
67
+ Courier::Models::text_style? _
68
+ ) -> Courier::Models::text_style?
69
+
70
+ def underline: -> String?
71
+
72
+ def underline=: (String? _) -> String?
73
+
74
+ def initialize: (
75
+ content: String,
76
+ ?align: Courier::Models::ElementalTextNode::align,
77
+ ?bold: String?,
78
+ ?color: String?,
79
+ ?font_size: String?,
80
+ ?format_: Courier::Models::ElementalTextNode::format_?,
81
+ ?italic: String?,
82
+ ?line_height: String?,
83
+ ?locales: Courier::Models::locales?,
84
+ ?strikethrough: String?,
85
+ ?text_style: Courier::Models::text_style?,
86
+ ?underline: String?
87
+ ) -> void
88
+
89
+ def to_hash: -> {
90
+ content: String,
91
+ align: Courier::Models::ElementalTextNode::align,
92
+ bold: String?,
93
+ color: String?,
94
+ font_size: String?,
95
+ format_: Courier::Models::ElementalTextNode::format_?,
96
+ italic: String?,
97
+ line_height: String?,
98
+ locales: Courier::Models::locales?,
99
+ strikethrough: String?,
100
+ text_style: Courier::Models::text_style?,
101
+ underline: String?
102
+ }
103
+
104
+ type align = :left | :center | :right
105
+
106
+ module Align
107
+ extend Courier::Internal::Type::Enum
108
+
109
+ LEFT: :left
110
+ CENTER: :center
111
+ RIGHT: :right
112
+
113
+ def self?.values: -> ::Array[Courier::Models::ElementalTextNode::align]
114
+ end
115
+
116
+ type format_ = :markdown
117
+
118
+ module Format
119
+ extend Courier::Internal::Type::Enum
120
+
121
+ MARKDOWN: :markdown
122
+
123
+ def self?.values: -> ::Array[Courier::Models::ElementalTextNode::format_]
124
+ end
125
+ end
126
+ end
127
+ end
@@ -3,7 +3,7 @@ module Courier
3
3
  type elemental_text_node_with_type =
4
4
  { type: Courier::Models::ElementalTextNodeWithType::type_ }
5
5
 
6
- class ElementalTextNodeWithType < Courier::Models::ElementalBaseNode
6
+ class ElementalTextNodeWithType < Courier::Models::ElementalTextNode
7
7
  def `type`: -> Courier::Models::ElementalTextNodeWithType::type_?
8
8
 
9
9
  def type=: (
@@ -0,0 +1,17 @@
1
+ module Courier
2
+ module Models
3
+ type locale_item = { content: String }
4
+
5
+ class LocaleItem < Courier::Internal::Type::BaseModel
6
+ attr_accessor content: String
7
+
8
+ def initialize: (content: String) -> void
9
+
10
+ def to_hash: -> { content: String }
11
+ end
12
+
13
+ type locales = ::Hash[Symbol, Courier::LocaleItem]?
14
+
15
+ Locales: Courier::Internal::Type::Converter
16
+ end
17
+ end
@@ -155,6 +155,8 @@ module Courier
155
155
 
156
156
  module Discord = Courier::Models::Discord
157
157
 
158
+ class ElementalActionNode = Courier::Models::ElementalActionNode
159
+
158
160
  class ElementalActionNodeWithType = Courier::Models::ElementalActionNodeWithType
159
161
 
160
162
  class ElementalBaseNode = Courier::Models::ElementalBaseNode
@@ -167,18 +169,30 @@ module Courier
167
169
 
168
170
  class ElementalContentSugar = Courier::Models::ElementalContentSugar
169
171
 
172
+ class ElementalDividerNode = Courier::Models::ElementalDividerNode
173
+
170
174
  class ElementalDividerNodeWithType = Courier::Models::ElementalDividerNodeWithType
171
175
 
176
+ class ElementalHTMLNode = Courier::Models::ElementalHTMLNode
177
+
172
178
  class ElementalHTMLNodeWithType = Courier::Models::ElementalHTMLNodeWithType
173
179
 
180
+ class ElementalImageNode = Courier::Models::ElementalImageNode
181
+
174
182
  class ElementalImageNodeWithType = Courier::Models::ElementalImageNodeWithType
175
183
 
184
+ class ElementalMetaNode = Courier::Models::ElementalMetaNode
185
+
176
186
  class ElementalMetaNodeWithType = Courier::Models::ElementalMetaNodeWithType
177
187
 
178
188
  module ElementalNode = Courier::Models::ElementalNode
179
189
 
190
+ class ElementalQuoteNode = Courier::Models::ElementalQuoteNode
191
+
180
192
  class ElementalQuoteNodeWithType = Courier::Models::ElementalQuoteNodeWithType
181
193
 
194
+ class ElementalTextNode = Courier::Models::ElementalTextNode
195
+
182
196
  class ElementalTextNodeWithType = Courier::Models::ElementalTextNodeWithType
183
197
 
184
198
  class ElementWithChecksums = Courier::Models::ElementWithChecksums
@@ -337,6 +351,10 @@ module Courier
337
351
 
338
352
  class ListUpdateParams = Courier::Models::ListUpdateParams
339
353
 
354
+ class LocaleItem = Courier::Models::LocaleItem
355
+
356
+ Locales: Courier::Internal::Type::Converter
357
+
340
358
  class Logo = Courier::Models::Logo
341
359
 
342
360
  class MessageCancelParams = Courier::Models::MessageCancelParams
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trycourier
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 6.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courier
@@ -161,18 +161,25 @@ files:
161
161
  - lib/courier/models/digests/schedule_release_params.rb
162
162
  - lib/courier/models/discord.rb
163
163
  - lib/courier/models/element_with_checksums.rb
164
+ - lib/courier/models/elemental_action_node.rb
164
165
  - lib/courier/models/elemental_action_node_with_type.rb
165
166
  - lib/courier/models/elemental_base_node.rb
166
167
  - lib/courier/models/elemental_channel_node.rb
167
168
  - lib/courier/models/elemental_channel_node_with_type.rb
168
169
  - lib/courier/models/elemental_content.rb
169
170
  - lib/courier/models/elemental_content_sugar.rb
171
+ - lib/courier/models/elemental_divider_node.rb
170
172
  - lib/courier/models/elemental_divider_node_with_type.rb
173
+ - lib/courier/models/elemental_html_node.rb
171
174
  - lib/courier/models/elemental_html_node_with_type.rb
175
+ - lib/courier/models/elemental_image_node.rb
172
176
  - lib/courier/models/elemental_image_node_with_type.rb
177
+ - lib/courier/models/elemental_meta_node.rb
173
178
  - lib/courier/models/elemental_meta_node_with_type.rb
174
179
  - lib/courier/models/elemental_node.rb
180
+ - lib/courier/models/elemental_quote_node.rb
175
181
  - lib/courier/models/elemental_quote_node_with_type.rb
182
+ - lib/courier/models/elemental_text_node.rb
176
183
  - lib/courier/models/elemental_text_node_with_type.rb
177
184
  - lib/courier/models/email_footer.rb
178
185
  - lib/courier/models/email_head.rb
@@ -270,6 +277,7 @@ files:
270
277
  - lib/courier/models/lists/subscription_subscribe_params.rb
271
278
  - lib/courier/models/lists/subscription_subscribe_user_params.rb
272
279
  - lib/courier/models/lists/subscription_unsubscribe_user_params.rb
280
+ - lib/courier/models/locales.rb
273
281
  - lib/courier/models/logo.rb
274
282
  - lib/courier/models/message_cancel_params.rb
275
283
  - lib/courier/models/message_channels.rb
@@ -639,18 +647,25 @@ files:
639
647
  - rbi/courier/models/digests/schedule_release_params.rbi
640
648
  - rbi/courier/models/discord.rbi
641
649
  - rbi/courier/models/element_with_checksums.rbi
650
+ - rbi/courier/models/elemental_action_node.rbi
642
651
  - rbi/courier/models/elemental_action_node_with_type.rbi
643
652
  - rbi/courier/models/elemental_base_node.rbi
644
653
  - rbi/courier/models/elemental_channel_node.rbi
645
654
  - rbi/courier/models/elemental_channel_node_with_type.rbi
646
655
  - rbi/courier/models/elemental_content.rbi
647
656
  - rbi/courier/models/elemental_content_sugar.rbi
657
+ - rbi/courier/models/elemental_divider_node.rbi
648
658
  - rbi/courier/models/elemental_divider_node_with_type.rbi
659
+ - rbi/courier/models/elemental_html_node.rbi
649
660
  - rbi/courier/models/elemental_html_node_with_type.rbi
661
+ - rbi/courier/models/elemental_image_node.rbi
650
662
  - rbi/courier/models/elemental_image_node_with_type.rbi
663
+ - rbi/courier/models/elemental_meta_node.rbi
651
664
  - rbi/courier/models/elemental_meta_node_with_type.rbi
652
665
  - rbi/courier/models/elemental_node.rbi
666
+ - rbi/courier/models/elemental_quote_node.rbi
653
667
  - rbi/courier/models/elemental_quote_node_with_type.rbi
668
+ - rbi/courier/models/elemental_text_node.rbi
654
669
  - rbi/courier/models/elemental_text_node_with_type.rbi
655
670
  - rbi/courier/models/email_footer.rbi
656
671
  - rbi/courier/models/email_head.rbi
@@ -748,6 +763,7 @@ files:
748
763
  - rbi/courier/models/lists/subscription_subscribe_params.rbi
749
764
  - rbi/courier/models/lists/subscription_subscribe_user_params.rbi
750
765
  - rbi/courier/models/lists/subscription_unsubscribe_user_params.rbi
766
+ - rbi/courier/models/locales.rbi
751
767
  - rbi/courier/models/logo.rbi
752
768
  - rbi/courier/models/message_cancel_params.rbi
753
769
  - rbi/courier/models/message_channels.rbi
@@ -1116,18 +1132,25 @@ files:
1116
1132
  - sig/courier/models/digests/schedule_release_params.rbs
1117
1133
  - sig/courier/models/discord.rbs
1118
1134
  - sig/courier/models/element_with_checksums.rbs
1135
+ - sig/courier/models/elemental_action_node.rbs
1119
1136
  - sig/courier/models/elemental_action_node_with_type.rbs
1120
1137
  - sig/courier/models/elemental_base_node.rbs
1121
1138
  - sig/courier/models/elemental_channel_node.rbs
1122
1139
  - sig/courier/models/elemental_channel_node_with_type.rbs
1123
1140
  - sig/courier/models/elemental_content.rbs
1124
1141
  - sig/courier/models/elemental_content_sugar.rbs
1142
+ - sig/courier/models/elemental_divider_node.rbs
1125
1143
  - sig/courier/models/elemental_divider_node_with_type.rbs
1144
+ - sig/courier/models/elemental_html_node.rbs
1126
1145
  - sig/courier/models/elemental_html_node_with_type.rbs
1146
+ - sig/courier/models/elemental_image_node.rbs
1127
1147
  - sig/courier/models/elemental_image_node_with_type.rbs
1148
+ - sig/courier/models/elemental_meta_node.rbs
1128
1149
  - sig/courier/models/elemental_meta_node_with_type.rbs
1129
1150
  - sig/courier/models/elemental_node.rbs
1151
+ - sig/courier/models/elemental_quote_node.rbs
1130
1152
  - sig/courier/models/elemental_quote_node_with_type.rbs
1153
+ - sig/courier/models/elemental_text_node.rbs
1131
1154
  - sig/courier/models/elemental_text_node_with_type.rbs
1132
1155
  - sig/courier/models/email_footer.rbs
1133
1156
  - sig/courier/models/email_head.rbs
@@ -1225,6 +1248,7 @@ files:
1225
1248
  - sig/courier/models/lists/subscription_subscribe_params.rbs
1226
1249
  - sig/courier/models/lists/subscription_subscribe_user_params.rbs
1227
1250
  - sig/courier/models/lists/subscription_unsubscribe_user_params.rbs
1251
+ - sig/courier/models/locales.rbs
1228
1252
  - sig/courier/models/logo.rbs
1229
1253
  - sig/courier/models/message_cancel_params.rbs
1230
1254
  - sig/courier/models/message_channels.rbs