trycourier 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/courier/models/journey_send_node.rb +38 -2
  5. data/lib/courier/models/journey_send_node_to_ms_teams.rb +81 -0
  6. data/lib/courier/models/journey_send_node_to_slack.rb +20 -0
  7. data/lib/courier/models/journey_send_node_to_slack_channel.rb +29 -0
  8. data/lib/courier/models/journey_send_node_to_slack_email.rb +30 -0
  9. data/lib/courier/models/journey_send_node_to_slack_user_id.rb +29 -0
  10. data/lib/courier/models/ms_teams.rb +6 -0
  11. data/lib/courier/models/ms_teams_base_properties.rb +10 -5
  12. data/lib/courier/models/ms_teams_recipient.rb +6 -1
  13. data/lib/courier/models/send_to_ms_teams_channel_id.rb +9 -5
  14. data/lib/courier/models/send_to_ms_teams_channel_name.rb +12 -9
  15. data/lib/courier/models/send_to_ms_teams_email.rb +8 -5
  16. data/lib/courier/models/send_to_ms_teams_user_id.rb +13 -10
  17. data/lib/courier/models/user_profile.rb +3 -1
  18. data/lib/courier/models.rb +10 -0
  19. data/lib/courier/version.rb +1 -1
  20. data/lib/courier.rb +5 -0
  21. data/rbi/courier/models/journey_send_node.rbi +78 -0
  22. data/rbi/courier/models/journey_send_node_to_ms_teams.rbi +124 -0
  23. data/rbi/courier/models/journey_send_node_to_slack.rbi +26 -0
  24. data/rbi/courier/models/journey_send_node_to_slack_channel.rbi +45 -0
  25. data/rbi/courier/models/journey_send_node_to_slack_email.rbi +47 -0
  26. data/rbi/courier/models/journey_send_node_to_slack_user_id.rbi +45 -0
  27. data/rbi/courier/models/ms_teams.rbi +2 -0
  28. data/rbi/courier/models/ms_teams_base_properties.rbi +15 -5
  29. data/rbi/courier/models/ms_teams_recipient.rbi +7 -1
  30. data/rbi/courier/models/send_to_ms_teams_channel_id.rbi +14 -5
  31. data/rbi/courier/models/send_to_ms_teams_channel_name.rbi +16 -8
  32. data/rbi/courier/models/send_to_ms_teams_email.rbi +13 -5
  33. data/rbi/courier/models/send_to_ms_teams_user_id.rbi +16 -8
  34. data/rbi/courier/models/user_profile.rbi +4 -0
  35. data/rbi/courier/models.rbi +10 -0
  36. data/sig/courier/models/journey_send_node.rbs +18 -0
  37. data/sig/courier/models/journey_send_node_to_ms_teams.rbs +64 -0
  38. data/sig/courier/models/journey_send_node_to_slack.rbs +14 -0
  39. data/sig/courier/models/journey_send_node_to_slack_channel.rbs +18 -0
  40. data/sig/courier/models/journey_send_node_to_slack_email.rbs +18 -0
  41. data/sig/courier/models/journey_send_node_to_slack_user_id.rbs +18 -0
  42. data/sig/courier/models/ms_teams_base_properties.rbs +7 -3
  43. data/sig/courier/models/send_to_ms_teams_channel_id.rbs +8 -4
  44. data/sig/courier/models/send_to_ms_teams_channel_name.rbs +11 -7
  45. data/sig/courier/models/send_to_ms_teams_email.rbs +8 -4
  46. data/sig/courier/models/send_to_ms_teams_user_id.rbs +13 -9
  47. data/sig/courier/models.rbs +10 -0
  48. metadata +17 -2
@@ -125,7 +125,9 @@ module Courier
125
125
  type to =
126
126
  {
127
127
  email_override: String,
128
+ ms_teams: Courier::JourneySendNodeToMsTeams,
128
129
  phone_number_override: String,
130
+ slack: Courier::Models::journey_send_node_to_slack,
129
131
  user_id_override: String
130
132
  }
131
133
 
@@ -134,23 +136,39 @@ module Courier
134
136
 
135
137
  def email_override=: (String) -> String
136
138
 
139
+ attr_reader ms_teams: Courier::JourneySendNodeToMsTeams?
140
+
141
+ def ms_teams=: (
142
+ Courier::JourneySendNodeToMsTeams
143
+ ) -> Courier::JourneySendNodeToMsTeams
144
+
137
145
  attr_reader phone_number_override: String?
138
146
 
139
147
  def phone_number_override=: (String) -> String
140
148
 
149
+ attr_reader slack: Courier::Models::journey_send_node_to_slack?
150
+
151
+ def slack=: (
152
+ Courier::Models::journey_send_node_to_slack
153
+ ) -> Courier::Models::journey_send_node_to_slack
154
+
141
155
  attr_reader user_id_override: String?
142
156
 
143
157
  def user_id_override=: (String) -> String
144
158
 
145
159
  def initialize: (
146
160
  ?email_override: String,
161
+ ?ms_teams: Courier::JourneySendNodeToMsTeams,
147
162
  ?phone_number_override: String,
163
+ ?slack: Courier::Models::journey_send_node_to_slack,
148
164
  ?user_id_override: String
149
165
  ) -> void
150
166
 
151
167
  def to_hash: -> {
152
168
  email_override: String,
169
+ ms_teams: Courier::JourneySendNodeToMsTeams,
153
170
  phone_number_override: String,
171
+ slack: Courier::Models::journey_send_node_to_slack,
154
172
  user_id_override: String
155
173
  }
156
174
  end
@@ -0,0 +1,64 @@
1
+ module Courier
2
+ module Models
3
+ type journey_send_node_to_ms_teams =
4
+ {
5
+ channel_id: String,
6
+ channel_name: String,
7
+ email: String,
8
+ service_url: String,
9
+ team_id: String,
10
+ tenant_id: String,
11
+ user_id: String
12
+ }
13
+
14
+ class JourneySendNodeToMsTeams < Courier::Internal::Type::BaseModel
15
+ attr_reader channel_id: String?
16
+
17
+ def channel_id=: (String) -> String
18
+
19
+ attr_reader channel_name: String?
20
+
21
+ def channel_name=: (String) -> String
22
+
23
+ attr_reader email: String?
24
+
25
+ def email=: (String) -> String
26
+
27
+ attr_reader service_url: String?
28
+
29
+ def service_url=: (String) -> String
30
+
31
+ attr_reader team_id: String?
32
+
33
+ def team_id=: (String) -> String
34
+
35
+ attr_reader tenant_id: String?
36
+
37
+ def tenant_id=: (String) -> String
38
+
39
+ attr_reader user_id: String?
40
+
41
+ def user_id=: (String) -> String
42
+
43
+ def initialize: (
44
+ ?channel_id: String,
45
+ ?channel_name: String,
46
+ ?email: String,
47
+ ?service_url: String,
48
+ ?team_id: String,
49
+ ?tenant_id: String,
50
+ ?user_id: String
51
+ ) -> void
52
+
53
+ def to_hash: -> {
54
+ channel_id: String,
55
+ channel_name: String,
56
+ email: String,
57
+ service_url: String,
58
+ team_id: String,
59
+ tenant_id: String,
60
+ user_id: String
61
+ }
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,14 @@
1
+ module Courier
2
+ module Models
3
+ type journey_send_node_to_slack =
4
+ Courier::JourneySendNodeToSlackChannel
5
+ | Courier::JourneySendNodeToSlackUserID
6
+ | Courier::JourneySendNodeToSlackEmail
7
+
8
+ module JourneySendNodeToSlack
9
+ extend Courier::Internal::Type::Union
10
+
11
+ def self?.variants: -> ::Array[Courier::Models::journey_send_node_to_slack]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ module Courier
2
+ module Models
3
+ type journey_send_node_to_slack_channel =
4
+ { channel: String, access_token: String }
5
+
6
+ class JourneySendNodeToSlackChannel < Courier::Internal::Type::BaseModel
7
+ attr_accessor channel: String
8
+
9
+ attr_reader access_token: String?
10
+
11
+ def access_token=: (String) -> String
12
+
13
+ def initialize: (channel: String, ?access_token: String) -> void
14
+
15
+ def to_hash: -> { channel: String, access_token: String }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Courier
2
+ module Models
3
+ type journey_send_node_to_slack_email =
4
+ { email: String, access_token: String }
5
+
6
+ class JourneySendNodeToSlackEmail < Courier::Internal::Type::BaseModel
7
+ attr_accessor email: String
8
+
9
+ attr_reader access_token: String?
10
+
11
+ def access_token=: (String) -> String
12
+
13
+ def initialize: (email: String, ?access_token: String) -> void
14
+
15
+ def to_hash: -> { email: String, access_token: String }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Courier
2
+ module Models
3
+ type journey_send_node_to_slack_user_id =
4
+ { user_id: String, access_token: String }
5
+
6
+ class JourneySendNodeToSlackUserID < Courier::Internal::Type::BaseModel
7
+ attr_accessor user_id: String
8
+
9
+ attr_reader access_token: String?
10
+
11
+ def access_token=: (String) -> String
12
+
13
+ def initialize: (user_id: String, ?access_token: String) -> void
14
+
15
+ def to_hash: -> { user_id: String, access_token: String }
16
+ end
17
+ end
18
+ end
@@ -3,11 +3,15 @@ module Courier
3
3
  type ms_teams_base_properties = { service_url: String, tenant_id: String }
4
4
 
5
5
  class MsTeamsBaseProperties < Courier::Internal::Type::BaseModel
6
- attr_accessor service_url: String
6
+ attr_reader service_url: String?
7
7
 
8
- attr_accessor tenant_id: String
8
+ def service_url=: (String) -> String
9
9
 
10
- def initialize: (service_url: String, tenant_id: String) -> void
10
+ attr_reader tenant_id: String?
11
+
12
+ def tenant_id=: (String) -> String
13
+
14
+ def initialize: (?service_url: String, ?tenant_id: String) -> void
11
15
 
12
16
  def to_hash: -> { service_url: String, tenant_id: String }
13
17
  end
@@ -6,14 +6,18 @@ module Courier
6
6
  class SendToMsTeamsChannelID < Courier::Internal::Type::BaseModel
7
7
  attr_accessor channel_id: String
8
8
 
9
- attr_accessor service_url: String
9
+ attr_reader service_url: String?
10
10
 
11
- attr_accessor tenant_id: String
11
+ def service_url=: (String) -> String
12
+
13
+ attr_reader tenant_id: String?
14
+
15
+ def tenant_id=: (String) -> String
12
16
 
13
17
  def initialize: (
14
18
  channel_id: String,
15
- service_url: String,
16
- tenant_id: String
19
+ ?service_url: String,
20
+ ?tenant_id: String
17
21
  ) -> void
18
22
 
19
23
  def to_hash: -> {
@@ -3,31 +3,35 @@ module Courier
3
3
  type send_to_ms_teams_channel_name =
4
4
  {
5
5
  channel_name: String,
6
- service_url: String,
7
6
  team_id: String,
7
+ service_url: String,
8
8
  tenant_id: String
9
9
  }
10
10
 
11
11
  class SendToMsTeamsChannelName < Courier::Internal::Type::BaseModel
12
12
  attr_accessor channel_name: String
13
13
 
14
- attr_accessor service_url: String
15
-
16
14
  attr_accessor team_id: String
17
15
 
18
- attr_accessor tenant_id: String
16
+ attr_reader service_url: String?
17
+
18
+ def service_url=: (String) -> String
19
+
20
+ attr_reader tenant_id: String?
21
+
22
+ def tenant_id=: (String) -> String
19
23
 
20
24
  def initialize: (
21
25
  channel_name: String,
22
- service_url: String,
23
26
  team_id: String,
24
- tenant_id: String
27
+ ?service_url: String,
28
+ ?tenant_id: String
25
29
  ) -> void
26
30
 
27
31
  def to_hash: -> {
28
32
  channel_name: String,
29
- service_url: String,
30
33
  team_id: String,
34
+ service_url: String,
31
35
  tenant_id: String
32
36
  }
33
37
  end
@@ -6,14 +6,18 @@ module Courier
6
6
  class SendToMsTeamsEmail < Courier::Internal::Type::BaseModel
7
7
  attr_accessor email: String
8
8
 
9
- attr_accessor service_url: String
9
+ attr_reader service_url: String?
10
10
 
11
- attr_accessor tenant_id: String
11
+ def service_url=: (String) -> String
12
+
13
+ attr_reader tenant_id: String?
14
+
15
+ def tenant_id=: (String) -> String
12
16
 
13
17
  def initialize: (
14
18
  email: String,
15
- service_url: String,
16
- tenant_id: String
19
+ ?service_url: String,
20
+ ?tenant_id: String
17
21
  ) -> void
18
22
 
19
23
  def to_hash: -> { email: String, service_url: String, tenant_id: String }
@@ -1,25 +1,29 @@
1
1
  module Courier
2
2
  module Models
3
3
  type send_to_ms_teams_user_id =
4
- { service_url: String, tenant_id: String, user_id: String }
4
+ { user_id: String, service_url: String, tenant_id: String }
5
5
 
6
6
  class SendToMsTeamsUserID < Courier::Internal::Type::BaseModel
7
- attr_accessor service_url: String
7
+ attr_accessor user_id: String
8
8
 
9
- attr_accessor tenant_id: String
9
+ attr_reader service_url: String?
10
10
 
11
- attr_accessor user_id: String
11
+ def service_url=: (String) -> String
12
+
13
+ attr_reader tenant_id: String?
14
+
15
+ def tenant_id=: (String) -> String
12
16
 
13
17
  def initialize: (
14
- service_url: String,
15
- tenant_id: String,
16
- user_id: String
18
+ user_id: String,
19
+ ?service_url: String,
20
+ ?tenant_id: String
17
21
  ) -> void
18
22
 
19
23
  def to_hash: -> {
24
+ user_id: String,
20
25
  service_url: String,
21
- tenant_id: String,
22
- user_id: String
26
+ tenant_id: String
23
27
  }
24
28
  end
25
29
  end
@@ -279,6 +279,16 @@ module Courier
279
279
 
280
280
  class JourneySendNode = Courier::Models::JourneySendNode
281
281
 
282
+ class JourneySendNodeToMsTeams = Courier::Models::JourneySendNodeToMsTeams
283
+
284
+ module JourneySendNodeToSlack = Courier::Models::JourneySendNodeToSlack
285
+
286
+ class JourneySendNodeToSlackChannel = Courier::Models::JourneySendNodeToSlackChannel
287
+
288
+ class JourneySendNodeToSlackEmail = Courier::Models::JourneySendNodeToSlackEmail
289
+
290
+ class JourneySendNodeToSlackUserID = Courier::Models::JourneySendNodeToSlackUserID
291
+
282
292
  class JourneysInvokeRequest = Courier::Models::JourneysInvokeRequest
283
293
 
284
294
  class JourneysInvokeResponse = Courier::Models::JourneysInvokeResponse
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trycourier
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-26 00:00:00.000000000 Z
11
+ date: 2026-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -222,6 +222,11 @@ files:
222
222
  - lib/courier/models/journey_run_steps_response.rb
223
223
  - lib/courier/models/journey_segment_trigger_node.rb
224
224
  - lib/courier/models/journey_send_node.rb
225
+ - lib/courier/models/journey_send_node_to_ms_teams.rb
226
+ - lib/courier/models/journey_send_node_to_slack.rb
227
+ - lib/courier/models/journey_send_node_to_slack_channel.rb
228
+ - lib/courier/models/journey_send_node_to_slack_email.rb
229
+ - lib/courier/models/journey_send_node_to_slack_user_id.rb
225
230
  - lib/courier/models/journey_state.rb
226
231
  - lib/courier/models/journey_template_create_request.rb
227
232
  - lib/courier/models/journey_template_get_response.rb
@@ -695,6 +700,11 @@ files:
695
700
  - rbi/courier/models/journey_run_steps_response.rbi
696
701
  - rbi/courier/models/journey_segment_trigger_node.rbi
697
702
  - rbi/courier/models/journey_send_node.rbi
703
+ - rbi/courier/models/journey_send_node_to_ms_teams.rbi
704
+ - rbi/courier/models/journey_send_node_to_slack.rbi
705
+ - rbi/courier/models/journey_send_node_to_slack_channel.rbi
706
+ - rbi/courier/models/journey_send_node_to_slack_email.rbi
707
+ - rbi/courier/models/journey_send_node_to_slack_user_id.rbi
698
708
  - rbi/courier/models/journey_state.rbi
699
709
  - rbi/courier/models/journey_template_create_request.rbi
700
710
  - rbi/courier/models/journey_template_get_response.rbi
@@ -1167,6 +1177,11 @@ files:
1167
1177
  - sig/courier/models/journey_run_steps_response.rbs
1168
1178
  - sig/courier/models/journey_segment_trigger_node.rbs
1169
1179
  - sig/courier/models/journey_send_node.rbs
1180
+ - sig/courier/models/journey_send_node_to_ms_teams.rbs
1181
+ - sig/courier/models/journey_send_node_to_slack.rbs
1182
+ - sig/courier/models/journey_send_node_to_slack_channel.rbs
1183
+ - sig/courier/models/journey_send_node_to_slack_email.rbs
1184
+ - sig/courier/models/journey_send_node_to_slack_user_id.rbs
1170
1185
  - sig/courier/models/journey_state.rbs
1171
1186
  - sig/courier/models/journey_template_create_request.rbs
1172
1187
  - sig/courier/models/journey_template_get_response.rbs