trycourier 4.17.1 → 4.18.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/lib/courier/models/audience.rb +5 -3
- data/lib/courier/models/audience_filter_config.rb +29 -1
- data/lib/courier/models/audience_update_params.rb +7 -3
- data/lib/courier/models/cancel_journey_request.rb +39 -0
- data/lib/courier/models/cancel_journey_response.rb +55 -0
- data/lib/courier/models/journey_cancel_params.rb +14 -0
- data/lib/courier/models/journey_experiment.rb +49 -0
- data/lib/courier/models/journey_experiment_variant.rb +44 -0
- data/lib/courier/models/journey_node.rb +1 -1
- data/lib/courier/models/journey_send_node.rb +23 -10
- data/lib/courier/models.rb +10 -0
- data/lib/courier/resources/audiences.rb +1 -1
- data/lib/courier/resources/journeys.rb +30 -0
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +5 -0
- data/rbi/courier/models/audience.rbi +6 -3
- data/rbi/courier/models/audience_filter_config.rbi +54 -5
- data/rbi/courier/models/audience_update_params.rbi +9 -3
- data/rbi/courier/models/cancel_journey_request.rbi +68 -0
- data/rbi/courier/models/cancel_journey_response.rbi +81 -0
- data/rbi/courier/models/journey_cancel_params.rbi +27 -0
- data/rbi/courier/models/journey_experiment.rbi +74 -0
- data/rbi/courier/models/journey_experiment_variant.rbi +61 -0
- data/rbi/courier/models/journey_send_node.rbi +32 -11
- data/rbi/courier/models.rbi +10 -0
- data/rbi/courier/resources/audiences.rbi +3 -1
- data/rbi/courier/resources/journeys.rbi +25 -0
- data/sig/courier/models/audience_filter_config.rbs +30 -3
- data/sig/courier/models/cancel_journey_request.rbs +33 -0
- data/sig/courier/models/cancel_journey_response.rbs +35 -0
- data/sig/courier/models/journey_cancel_params.rbs +15 -0
- data/sig/courier/models/journey_experiment.rbs +39 -0
- data/sig/courier/models/journey_experiment_variant.rbs +32 -0
- data/sig/courier/models/journey_send_node.rbs +19 -8
- data/sig/courier/models.rbs +10 -0
- data/sig/courier/resources/journeys.rbs +5 -0
- metadata +17 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type journey_experiment =
|
|
4
|
+
{
|
|
5
|
+
bucketing_key: String,
|
|
6
|
+
variants: ::Array[Courier::JourneyExperimentVariant],
|
|
7
|
+
id: String,
|
|
8
|
+
name: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class JourneyExperiment < Courier::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor bucketing_key: String
|
|
13
|
+
|
|
14
|
+
attr_accessor variants: ::Array[Courier::JourneyExperimentVariant]
|
|
15
|
+
|
|
16
|
+
attr_reader id: String?
|
|
17
|
+
|
|
18
|
+
def id=: (String) -> String
|
|
19
|
+
|
|
20
|
+
attr_reader name: String?
|
|
21
|
+
|
|
22
|
+
def name=: (String) -> String
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
bucketing_key: String,
|
|
26
|
+
variants: ::Array[Courier::JourneyExperimentVariant],
|
|
27
|
+
?id: String,
|
|
28
|
+
?name: String
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
bucketing_key: String,
|
|
33
|
+
variants: ::Array[Courier::JourneyExperimentVariant],
|
|
34
|
+
id: String,
|
|
35
|
+
name: String
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type journey_experiment_variant =
|
|
4
|
+
{ id: String, template_id: String, weight: Float, name: String }
|
|
5
|
+
|
|
6
|
+
class JourneyExperimentVariant < Courier::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor id: String
|
|
8
|
+
|
|
9
|
+
attr_accessor template_id: String
|
|
10
|
+
|
|
11
|
+
attr_accessor weight: Float
|
|
12
|
+
|
|
13
|
+
attr_reader name: String?
|
|
14
|
+
|
|
15
|
+
def name=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
template_id: String,
|
|
20
|
+
weight: Float,
|
|
21
|
+
?name: String
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
26
|
+
template_id: String,
|
|
27
|
+
weight: Float,
|
|
28
|
+
name: String
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -5,7 +5,8 @@ module Courier
|
|
|
5
5
|
message: Courier::JourneySendNode::Message,
|
|
6
6
|
type: Courier::Models::JourneySendNode::type_,
|
|
7
7
|
id: String,
|
|
8
|
-
conditions: Courier::Models::journey_conditions_field
|
|
8
|
+
conditions: Courier::Models::journey_conditions_field,
|
|
9
|
+
experiment: Courier::JourneyExperiment
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class JourneySendNode < Courier::Internal::Type::BaseModel
|
|
@@ -23,31 +24,37 @@ module Courier
|
|
|
23
24
|
Courier::Models::journey_conditions_field
|
|
24
25
|
) -> Courier::Models::journey_conditions_field
|
|
25
26
|
|
|
27
|
+
attr_reader experiment: Courier::JourneyExperiment?
|
|
28
|
+
|
|
29
|
+
def experiment=: (
|
|
30
|
+
Courier::JourneyExperiment
|
|
31
|
+
) -> Courier::JourneyExperiment
|
|
32
|
+
|
|
26
33
|
def initialize: (
|
|
27
34
|
message: Courier::JourneySendNode::Message,
|
|
28
35
|
type: Courier::Models::JourneySendNode::type_,
|
|
29
36
|
?id: String,
|
|
30
|
-
?conditions: Courier::Models::journey_conditions_field
|
|
37
|
+
?conditions: Courier::Models::journey_conditions_field,
|
|
38
|
+
?experiment: Courier::JourneyExperiment
|
|
31
39
|
) -> void
|
|
32
40
|
|
|
33
41
|
def to_hash: -> {
|
|
34
42
|
message: Courier::JourneySendNode::Message,
|
|
35
43
|
type: Courier::Models::JourneySendNode::type_,
|
|
36
44
|
id: String,
|
|
37
|
-
conditions: Courier::Models::journey_conditions_field
|
|
45
|
+
conditions: Courier::Models::journey_conditions_field,
|
|
46
|
+
experiment: Courier::JourneyExperiment
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
type message =
|
|
41
50
|
{
|
|
42
|
-
template: String,
|
|
43
51
|
data: ::Hash[Symbol, top],
|
|
44
52
|
delay: Courier::JourneySendNode::Message::Delay,
|
|
53
|
+
template: String,
|
|
45
54
|
to: Courier::JourneySendNode::Message::To
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
class Message < Courier::Internal::Type::BaseModel
|
|
49
|
-
attr_accessor template: String
|
|
50
|
-
|
|
51
58
|
attr_reader data: ::Hash[Symbol, top]?
|
|
52
59
|
|
|
53
60
|
def data=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
@@ -58,6 +65,10 @@ module Courier
|
|
|
58
65
|
Courier::JourneySendNode::Message::Delay
|
|
59
66
|
) -> Courier::JourneySendNode::Message::Delay
|
|
60
67
|
|
|
68
|
+
attr_reader template: String?
|
|
69
|
+
|
|
70
|
+
def template=: (String) -> String
|
|
71
|
+
|
|
61
72
|
attr_reader to: Courier::JourneySendNode::Message::To?
|
|
62
73
|
|
|
63
74
|
def to=: (
|
|
@@ -65,16 +76,16 @@ module Courier
|
|
|
65
76
|
) -> Courier::JourneySendNode::Message::To
|
|
66
77
|
|
|
67
78
|
def initialize: (
|
|
68
|
-
template: String,
|
|
69
79
|
?data: ::Hash[Symbol, top],
|
|
70
80
|
?delay: Courier::JourneySendNode::Message::Delay,
|
|
81
|
+
?template: String,
|
|
71
82
|
?to: Courier::JourneySendNode::Message::To
|
|
72
83
|
) -> void
|
|
73
84
|
|
|
74
85
|
def to_hash: -> {
|
|
75
|
-
template: String,
|
|
76
86
|
data: ::Hash[Symbol, top],
|
|
77
87
|
delay: Courier::JourneySendNode::Message::Delay,
|
|
88
|
+
template: String,
|
|
78
89
|
to: Courier::JourneySendNode::Message::To
|
|
79
90
|
}
|
|
80
91
|
|
data/sig/courier/models.rbs
CHANGED
|
@@ -83,6 +83,10 @@ module Courier
|
|
|
83
83
|
|
|
84
84
|
class BulkRunJobParams = Courier::Models::BulkRunJobParams
|
|
85
85
|
|
|
86
|
+
module CancelJourneyRequest = Courier::Models::CancelJourneyRequest
|
|
87
|
+
|
|
88
|
+
module CancelJourneyResponse = Courier::Models::CancelJourneyResponse
|
|
89
|
+
|
|
86
90
|
class Channel = Courier::Models::Channel
|
|
87
91
|
|
|
88
92
|
module ChannelClassification = Courier::Models::ChannelClassification
|
|
@@ -167,6 +171,8 @@ module Courier
|
|
|
167
171
|
|
|
168
172
|
class JourneyArchiveParams = Courier::Models::JourneyArchiveParams
|
|
169
173
|
|
|
174
|
+
class JourneyCancelParams = Courier::Models::JourneyCancelParams
|
|
175
|
+
|
|
170
176
|
JourneyConditionAtom: Courier::Internal::Type::Converter
|
|
171
177
|
|
|
172
178
|
class JourneyConditionGroup = Courier::Models::JourneyConditionGroup
|
|
@@ -183,6 +189,10 @@ module Courier
|
|
|
183
189
|
|
|
184
190
|
class JourneyExitNode = Courier::Models::JourneyExitNode
|
|
185
191
|
|
|
192
|
+
class JourneyExperiment = Courier::Models::JourneyExperiment
|
|
193
|
+
|
|
194
|
+
class JourneyExperimentVariant = Courier::Models::JourneyExperimentVariant
|
|
195
|
+
|
|
186
196
|
class JourneyFetchGetDeleteNode = Courier::Models::JourneyFetchGetDeleteNode
|
|
187
197
|
|
|
188
198
|
class JourneyFetchPostPutNode = Courier::Models::JourneyFetchPostPutNode
|
|
@@ -28,6 +28,11 @@ module Courier
|
|
|
28
28
|
?request_options: Courier::request_opts
|
|
29
29
|
) -> nil
|
|
30
30
|
|
|
31
|
+
def cancel: (
|
|
32
|
+
cancel_journey_request: Courier::Models::cancel_journey_request,
|
|
33
|
+
?request_options: Courier::request_opts
|
|
34
|
+
) -> Courier::Models::cancel_journey_response
|
|
35
|
+
|
|
31
36
|
def invoke: (
|
|
32
37
|
String template_id,
|
|
33
38
|
?data: ::Hash[Symbol, top],
|
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: 4.
|
|
4
|
+
version: 4.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Courier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -121,6 +121,8 @@ files:
|
|
|
121
121
|
- lib/courier/models/bulk_retrieve_job_params.rb
|
|
122
122
|
- lib/courier/models/bulk_retrieve_job_response.rb
|
|
123
123
|
- lib/courier/models/bulk_run_job_params.rb
|
|
124
|
+
- lib/courier/models/cancel_journey_request.rb
|
|
125
|
+
- lib/courier/models/cancel_journey_response.rb
|
|
124
126
|
- lib/courier/models/channel.rb
|
|
125
127
|
- lib/courier/models/channel_classification.rb
|
|
126
128
|
- lib/courier/models/channel_metadata.rb
|
|
@@ -165,6 +167,7 @@ files:
|
|
|
165
167
|
- lib/courier/models/journey_ai_node.rb
|
|
166
168
|
- lib/courier/models/journey_api_invoke_trigger_node.rb
|
|
167
169
|
- lib/courier/models/journey_archive_params.rb
|
|
170
|
+
- lib/courier/models/journey_cancel_params.rb
|
|
168
171
|
- lib/courier/models/journey_condition_atom.rb
|
|
169
172
|
- lib/courier/models/journey_condition_group.rb
|
|
170
173
|
- lib/courier/models/journey_condition_nested_group.rb
|
|
@@ -173,6 +176,8 @@ files:
|
|
|
173
176
|
- lib/courier/models/journey_delay_duration_node.rb
|
|
174
177
|
- lib/courier/models/journey_delay_until_node.rb
|
|
175
178
|
- lib/courier/models/journey_exit_node.rb
|
|
179
|
+
- lib/courier/models/journey_experiment.rb
|
|
180
|
+
- lib/courier/models/journey_experiment_variant.rb
|
|
176
181
|
- lib/courier/models/journey_fetch_get_delete_node.rb
|
|
177
182
|
- lib/courier/models/journey_fetch_post_put_node.rb
|
|
178
183
|
- lib/courier/models/journey_invoke_params.rb
|
|
@@ -537,6 +542,8 @@ files:
|
|
|
537
542
|
- rbi/courier/models/bulk_retrieve_job_params.rbi
|
|
538
543
|
- rbi/courier/models/bulk_retrieve_job_response.rbi
|
|
539
544
|
- rbi/courier/models/bulk_run_job_params.rbi
|
|
545
|
+
- rbi/courier/models/cancel_journey_request.rbi
|
|
546
|
+
- rbi/courier/models/cancel_journey_response.rbi
|
|
540
547
|
- rbi/courier/models/channel.rbi
|
|
541
548
|
- rbi/courier/models/channel_classification.rbi
|
|
542
549
|
- rbi/courier/models/channel_metadata.rbi
|
|
@@ -581,6 +588,7 @@ files:
|
|
|
581
588
|
- rbi/courier/models/journey_ai_node.rbi
|
|
582
589
|
- rbi/courier/models/journey_api_invoke_trigger_node.rbi
|
|
583
590
|
- rbi/courier/models/journey_archive_params.rbi
|
|
591
|
+
- rbi/courier/models/journey_cancel_params.rbi
|
|
584
592
|
- rbi/courier/models/journey_condition_atom.rbi
|
|
585
593
|
- rbi/courier/models/journey_condition_group.rbi
|
|
586
594
|
- rbi/courier/models/journey_condition_nested_group.rbi
|
|
@@ -589,6 +597,8 @@ files:
|
|
|
589
597
|
- rbi/courier/models/journey_delay_duration_node.rbi
|
|
590
598
|
- rbi/courier/models/journey_delay_until_node.rbi
|
|
591
599
|
- rbi/courier/models/journey_exit_node.rbi
|
|
600
|
+
- rbi/courier/models/journey_experiment.rbi
|
|
601
|
+
- rbi/courier/models/journey_experiment_variant.rbi
|
|
592
602
|
- rbi/courier/models/journey_fetch_get_delete_node.rbi
|
|
593
603
|
- rbi/courier/models/journey_fetch_post_put_node.rbi
|
|
594
604
|
- rbi/courier/models/journey_invoke_params.rbi
|
|
@@ -952,6 +962,8 @@ files:
|
|
|
952
962
|
- sig/courier/models/bulk_retrieve_job_params.rbs
|
|
953
963
|
- sig/courier/models/bulk_retrieve_job_response.rbs
|
|
954
964
|
- sig/courier/models/bulk_run_job_params.rbs
|
|
965
|
+
- sig/courier/models/cancel_journey_request.rbs
|
|
966
|
+
- sig/courier/models/cancel_journey_response.rbs
|
|
955
967
|
- sig/courier/models/channel.rbs
|
|
956
968
|
- sig/courier/models/channel_classification.rbs
|
|
957
969
|
- sig/courier/models/channel_metadata.rbs
|
|
@@ -996,6 +1008,7 @@ files:
|
|
|
996
1008
|
- sig/courier/models/journey_ai_node.rbs
|
|
997
1009
|
- sig/courier/models/journey_api_invoke_trigger_node.rbs
|
|
998
1010
|
- sig/courier/models/journey_archive_params.rbs
|
|
1011
|
+
- sig/courier/models/journey_cancel_params.rbs
|
|
999
1012
|
- sig/courier/models/journey_condition_atom.rbs
|
|
1000
1013
|
- sig/courier/models/journey_condition_group.rbs
|
|
1001
1014
|
- sig/courier/models/journey_condition_nested_group.rbs
|
|
@@ -1004,6 +1017,8 @@ files:
|
|
|
1004
1017
|
- sig/courier/models/journey_delay_duration_node.rbs
|
|
1005
1018
|
- sig/courier/models/journey_delay_until_node.rbs
|
|
1006
1019
|
- sig/courier/models/journey_exit_node.rbs
|
|
1020
|
+
- sig/courier/models/journey_experiment.rbs
|
|
1021
|
+
- sig/courier/models/journey_experiment_variant.rbs
|
|
1007
1022
|
- sig/courier/models/journey_fetch_get_delete_node.rbs
|
|
1008
1023
|
- sig/courier/models/journey_fetch_post_put_node.rbs
|
|
1009
1024
|
- sig/courier/models/journey_invoke_params.rbs
|