trycourier 4.17.0 → 4.18.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 +31 -0
- data/lib/courier/client.rb +3 -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/{preference_section_list_params.rb → journey_cancel_params.rb} +2 -2
- 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/publish_preferences_response.rb +1 -1
- data/lib/courier/models/{preference_section_archive_params.rb → workspace_preference_archive_params.rb} +2 -2
- data/lib/courier/models/workspace_preference_create_params.rb +14 -0
- data/lib/courier/models/{preference_section_create_request.rb → workspace_preference_create_request.rb} +8 -8
- data/lib/courier/models/{preference_section_get_response.rb → workspace_preference_get_response.rb} +15 -15
- data/lib/courier/models/{preference_section_publish_params.rb → workspace_preference_list_params.rb} +2 -2
- data/lib/courier/models/workspace_preference_list_response.rb +18 -0
- data/lib/courier/models/{preference_section_create_params.rb → workspace_preference_publish_params.rb} +2 -2
- data/lib/courier/models/{preference_section_replace_params.rb → workspace_preference_replace_params.rb} +2 -2
- data/lib/courier/models/{preference_section_replace_request.rb → workspace_preference_replace_request.rb} +8 -8
- data/lib/courier/models/{preference_section_retrieve_params.rb → workspace_preference_retrieve_params.rb} +2 -2
- data/lib/courier/models/{preference_topic_create_request.rb → workspace_preference_topic_create_request.rb} +9 -9
- data/lib/courier/models/{preference_topic_get_response.rb → workspace_preference_topic_get_response.rb} +8 -8
- data/lib/courier/models/workspace_preference_topic_list_response.rb +17 -0
- data/lib/courier/models/{preference_topic_replace_request.rb → workspace_preference_topic_replace_request.rb} +8 -8
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rb +2 -2
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rb +3 -3
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rb +2 -2
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rb +3 -3
- data/lib/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rb +2 -2
- data/lib/courier/models.rb +40 -30
- data/lib/courier/resources/journeys.rb +30 -0
- data/lib/courier/resources/notifications/checks.rb +3 -3
- data/lib/courier/resources/{preference_sections → workspace_preferences}/topics.rb +40 -37
- data/lib/courier/resources/{preference_sections.rb → workspace_preferences.rb} +40 -40
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +26 -21
- data/rbi/courier/client.rbi +2 -2
- 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/{preference_section_retrieve_params.rbi → workspace_preference_archive_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_create_params.rbi → workspace_preference_create_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_create_request.rbi → workspace_preference_create_request.rbi} +9 -9
- data/rbi/courier/models/{preference_section_get_response.rbi → workspace_preference_get_response.rbi} +17 -16
- data/rbi/courier/models/{preference_section_list_params.rbi → workspace_preference_list_params.rbi} +2 -2
- data/rbi/courier/models/{preference_topic_list_response.rbi → workspace_preference_list_response.rbi} +6 -6
- data/rbi/courier/models/{preference_section_publish_params.rbi → workspace_preference_publish_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_replace_params.rbi → workspace_preference_replace_params.rbi} +2 -2
- data/rbi/courier/models/{preference_section_replace_request.rbi → workspace_preference_replace_request.rbi} +9 -9
- data/rbi/courier/models/{preference_section_archive_params.rbi → workspace_preference_retrieve_params.rbi} +2 -2
- data/rbi/courier/models/{preference_topic_create_request.rbi → workspace_preference_topic_create_request.rbi} +22 -17
- data/rbi/courier/models/{preference_topic_get_response.rbi → workspace_preference_topic_get_response.rbi} +23 -17
- data/rbi/courier/models/workspace_preference_topic_list_response.rbi +36 -0
- data/rbi/courier/models/{preference_topic_replace_request.rbi → workspace_preference_topic_replace_request.rbi} +22 -17
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbi +2 -2
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbi +3 -3
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rbi +2 -2
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbi +3 -3
- data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbi +2 -2
- data/rbi/courier/models.rbi +53 -36
- data/rbi/courier/resources/journeys.rbi +25 -0
- data/rbi/courier/resources/notifications/checks.rbi +3 -3
- data/rbi/courier/resources/{preference_sections → workspace_preferences}/topics.rbi +25 -22
- data/rbi/courier/resources/{preference_sections.rbi → workspace_preferences.rbi} +27 -27
- data/sig/courier/client.rbs +1 -1
- data/sig/courier/models/cancel_journey_request.rbs +33 -0
- data/sig/courier/models/cancel_journey_response.rbs +35 -0
- data/sig/courier/models/{preference_section_list_params.rbs → journey_cancel_params.rbs} +2 -2
- 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/{preference_section_retrieve_params.rbs → workspace_preference_archive_params.rbs} +2 -2
- data/sig/courier/models/workspace_preference_create_params.rbs +15 -0
- data/sig/courier/models/{preference_section_replace_request.rbs → workspace_preference_create_request.rbs} +2 -2
- data/sig/courier/models/{preference_section_get_response.rbs → workspace_preference_get_response.rbs} +6 -6
- data/sig/courier/models/{preference_section_publish_params.rbs → workspace_preference_list_params.rbs} +2 -2
- data/sig/courier/models/workspace_preference_list_response.rbs +18 -0
- data/sig/courier/models/{preference_section_create_params.rbs → workspace_preference_publish_params.rbs} +2 -2
- data/sig/courier/models/{preference_section_replace_params.rbs → workspace_preference_replace_params.rbs} +2 -2
- data/sig/courier/models/{preference_section_create_request.rbs → workspace_preference_replace_request.rbs} +2 -2
- data/sig/courier/models/{preference_section_archive_params.rbs → workspace_preference_retrieve_params.rbs} +2 -2
- data/sig/courier/models/{preference_topic_create_request.rbs → workspace_preference_topic_create_request.rbs} +12 -12
- data/sig/courier/models/{preference_topic_get_response.rbs → workspace_preference_topic_get_response.rbs} +12 -12
- data/sig/courier/models/workspace_preference_topic_list_response.rbs +18 -0
- data/sig/courier/models/{preference_topic_replace_request.rbs → workspace_preference_topic_replace_request.rbs} +12 -12
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbs +1 -1
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbs +2 -2
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_list_params.rbs +1 -1
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbs +2 -2
- data/sig/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbs +1 -1
- data/sig/courier/models.rbs +40 -30
- data/sig/courier/resources/journeys.rbs +5 -0
- data/sig/courier/resources/{preference_sections → workspace_preferences}/topics.rbs +9 -9
- data/sig/courier/resources/{preference_sections.rbs → workspace_preferences.rbs} +6 -6
- metadata +80 -65
- data/lib/courier/models/preference_section_list_response.rb +0 -18
- data/lib/courier/models/preference_topic_list_response.rb +0 -17
- data/rbi/courier/models/preference_section_list_response.rbi +0 -35
- data/sig/courier/models/preference_section_list_response.rbs +0 -18
- data/sig/courier/models/preference_topic_list_response.rbs +0 -16
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class WorkspacePreferenceTopicGetResponse < Courier::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
|
-
T.any(
|
|
8
|
+
T.any(
|
|
9
|
+
Courier::WorkspacePreferenceTopicGetResponse,
|
|
10
|
+
Courier::Internal::AnyHash
|
|
11
|
+
)
|
|
9
12
|
end
|
|
10
13
|
|
|
11
14
|
# The preference topic id.
|
|
@@ -16,7 +19,7 @@ module Courier
|
|
|
16
19
|
sig do
|
|
17
20
|
returns(
|
|
18
21
|
T::Array[
|
|
19
|
-
Courier::
|
|
22
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference::TaggedSymbol
|
|
20
23
|
]
|
|
21
24
|
)
|
|
22
25
|
end
|
|
@@ -29,7 +32,7 @@ module Courier
|
|
|
29
32
|
# The default subscription status applied when a recipient has not set their own.
|
|
30
33
|
sig do
|
|
31
34
|
returns(
|
|
32
|
-
Courier::
|
|
35
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::TaggedSymbol
|
|
33
36
|
)
|
|
34
37
|
end
|
|
35
38
|
attr_accessor :default_status
|
|
@@ -68,11 +71,11 @@ module Courier
|
|
|
68
71
|
id: String,
|
|
69
72
|
allowed_preferences:
|
|
70
73
|
T::Array[
|
|
71
|
-
Courier::
|
|
74
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference::OrSymbol
|
|
72
75
|
],
|
|
73
76
|
created: String,
|
|
74
77
|
default_status:
|
|
75
|
-
Courier::
|
|
78
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::OrSymbol,
|
|
76
79
|
include_unsubscribe_header: T::Boolean,
|
|
77
80
|
name: String,
|
|
78
81
|
routing_options: T::Array[Courier::ChannelClassification::OrSymbol],
|
|
@@ -114,11 +117,11 @@ module Courier
|
|
|
114
117
|
id: String,
|
|
115
118
|
allowed_preferences:
|
|
116
119
|
T::Array[
|
|
117
|
-
Courier::
|
|
120
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference::TaggedSymbol
|
|
118
121
|
],
|
|
119
122
|
created: String,
|
|
120
123
|
default_status:
|
|
121
|
-
Courier::
|
|
124
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::TaggedSymbol,
|
|
122
125
|
include_unsubscribe_header: T::Boolean,
|
|
123
126
|
name: String,
|
|
124
127
|
routing_options:
|
|
@@ -141,7 +144,7 @@ module Courier
|
|
|
141
144
|
T.type_alias do
|
|
142
145
|
T.all(
|
|
143
146
|
Symbol,
|
|
144
|
-
Courier::
|
|
147
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference
|
|
145
148
|
)
|
|
146
149
|
end
|
|
147
150
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -149,18 +152,18 @@ module Courier
|
|
|
149
152
|
SNOOZE =
|
|
150
153
|
T.let(
|
|
151
154
|
:snooze,
|
|
152
|
-
Courier::
|
|
155
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference::TaggedSymbol
|
|
153
156
|
)
|
|
154
157
|
CHANNEL_PREFERENCES =
|
|
155
158
|
T.let(
|
|
156
159
|
:channel_preferences,
|
|
157
|
-
Courier::
|
|
160
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference::TaggedSymbol
|
|
158
161
|
)
|
|
159
162
|
|
|
160
163
|
sig do
|
|
161
164
|
override.returns(
|
|
162
165
|
T::Array[
|
|
163
|
-
Courier::
|
|
166
|
+
Courier::WorkspacePreferenceTopicGetResponse::AllowedPreference::TaggedSymbol
|
|
164
167
|
]
|
|
165
168
|
)
|
|
166
169
|
end
|
|
@@ -174,30 +177,33 @@ module Courier
|
|
|
174
177
|
|
|
175
178
|
TaggedSymbol =
|
|
176
179
|
T.type_alias do
|
|
177
|
-
T.all(
|
|
180
|
+
T.all(
|
|
181
|
+
Symbol,
|
|
182
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus
|
|
183
|
+
)
|
|
178
184
|
end
|
|
179
185
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
180
186
|
|
|
181
187
|
OPTED_OUT =
|
|
182
188
|
T.let(
|
|
183
189
|
:OPTED_OUT,
|
|
184
|
-
Courier::
|
|
190
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::TaggedSymbol
|
|
185
191
|
)
|
|
186
192
|
OPTED_IN =
|
|
187
193
|
T.let(
|
|
188
194
|
:OPTED_IN,
|
|
189
|
-
Courier::
|
|
195
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::TaggedSymbol
|
|
190
196
|
)
|
|
191
197
|
REQUIRED =
|
|
192
198
|
T.let(
|
|
193
199
|
:REQUIRED,
|
|
194
|
-
Courier::
|
|
200
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::TaggedSymbol
|
|
195
201
|
)
|
|
196
202
|
|
|
197
203
|
sig do
|
|
198
204
|
override.returns(
|
|
199
205
|
T::Array[
|
|
200
|
-
Courier::
|
|
206
|
+
Courier::WorkspacePreferenceTopicGetResponse::DefaultStatus::TaggedSymbol
|
|
201
207
|
]
|
|
202
208
|
)
|
|
203
209
|
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Courier
|
|
4
|
+
module Models
|
|
5
|
+
class WorkspacePreferenceTopicListResponse < Courier::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Courier::WorkspacePreferenceTopicListResponse,
|
|
10
|
+
Courier::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(T::Array[Courier::WorkspacePreferenceTopicGetResponse]) }
|
|
15
|
+
attr_accessor :results
|
|
16
|
+
|
|
17
|
+
# Topics contained in a workspace preference.
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
results:
|
|
21
|
+
T::Array[Courier::WorkspacePreferenceTopicGetResponse::OrHash]
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(results:)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
{ results: T::Array[Courier::WorkspacePreferenceTopicGetResponse] }
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
def to_hash
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class WorkspacePreferenceTopicReplaceRequest < Courier::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
9
|
-
Courier::
|
|
9
|
+
Courier::WorkspacePreferenceTopicReplaceRequest,
|
|
10
10
|
Courier::Internal::AnyHash
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# The default subscription status applied when a recipient has not set their own.
|
|
15
15
|
sig do
|
|
16
|
-
returns(
|
|
16
|
+
returns(
|
|
17
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::OrSymbol
|
|
18
|
+
)
|
|
17
19
|
end
|
|
18
20
|
attr_accessor :default_status
|
|
19
21
|
|
|
@@ -26,7 +28,7 @@ module Courier
|
|
|
26
28
|
returns(
|
|
27
29
|
T.nilable(
|
|
28
30
|
T::Array[
|
|
29
|
-
Courier::
|
|
31
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference::OrSymbol
|
|
30
32
|
]
|
|
31
33
|
)
|
|
32
34
|
)
|
|
@@ -52,12 +54,12 @@ module Courier
|
|
|
52
54
|
sig do
|
|
53
55
|
params(
|
|
54
56
|
default_status:
|
|
55
|
-
Courier::
|
|
57
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::OrSymbol,
|
|
56
58
|
name: String,
|
|
57
59
|
allowed_preferences:
|
|
58
60
|
T.nilable(
|
|
59
61
|
T::Array[
|
|
60
|
-
Courier::
|
|
62
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference::OrSymbol
|
|
61
63
|
]
|
|
62
64
|
),
|
|
63
65
|
include_unsubscribe_header: T.nilable(T::Boolean),
|
|
@@ -86,12 +88,12 @@ module Courier
|
|
|
86
88
|
override.returns(
|
|
87
89
|
{
|
|
88
90
|
default_status:
|
|
89
|
-
Courier::
|
|
91
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::OrSymbol,
|
|
90
92
|
name: String,
|
|
91
93
|
allowed_preferences:
|
|
92
94
|
T.nilable(
|
|
93
95
|
T::Array[
|
|
94
|
-
Courier::
|
|
96
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference::OrSymbol
|
|
95
97
|
]
|
|
96
98
|
),
|
|
97
99
|
include_unsubscribe_header: T.nilable(T::Boolean),
|
|
@@ -110,30 +112,33 @@ module Courier
|
|
|
110
112
|
|
|
111
113
|
TaggedSymbol =
|
|
112
114
|
T.type_alias do
|
|
113
|
-
T.all(
|
|
115
|
+
T.all(
|
|
116
|
+
Symbol,
|
|
117
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus
|
|
118
|
+
)
|
|
114
119
|
end
|
|
115
120
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
116
121
|
|
|
117
122
|
OPTED_OUT =
|
|
118
123
|
T.let(
|
|
119
124
|
:OPTED_OUT,
|
|
120
|
-
Courier::
|
|
125
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::TaggedSymbol
|
|
121
126
|
)
|
|
122
127
|
OPTED_IN =
|
|
123
128
|
T.let(
|
|
124
129
|
:OPTED_IN,
|
|
125
|
-
Courier::
|
|
130
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::TaggedSymbol
|
|
126
131
|
)
|
|
127
132
|
REQUIRED =
|
|
128
133
|
T.let(
|
|
129
134
|
:REQUIRED,
|
|
130
|
-
Courier::
|
|
135
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::TaggedSymbol
|
|
131
136
|
)
|
|
132
137
|
|
|
133
138
|
sig do
|
|
134
139
|
override.returns(
|
|
135
140
|
T::Array[
|
|
136
|
-
Courier::
|
|
141
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::DefaultStatus::TaggedSymbol
|
|
137
142
|
]
|
|
138
143
|
)
|
|
139
144
|
end
|
|
@@ -149,7 +154,7 @@ module Courier
|
|
|
149
154
|
T.type_alias do
|
|
150
155
|
T.all(
|
|
151
156
|
Symbol,
|
|
152
|
-
Courier::
|
|
157
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference
|
|
153
158
|
)
|
|
154
159
|
end
|
|
155
160
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -157,18 +162,18 @@ module Courier
|
|
|
157
162
|
SNOOZE =
|
|
158
163
|
T.let(
|
|
159
164
|
:snooze,
|
|
160
|
-
Courier::
|
|
165
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference::TaggedSymbol
|
|
161
166
|
)
|
|
162
167
|
CHANNEL_PREFERENCES =
|
|
163
168
|
T.let(
|
|
164
169
|
:channel_preferences,
|
|
165
|
-
Courier::
|
|
170
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference::TaggedSymbol
|
|
166
171
|
)
|
|
167
172
|
|
|
168
173
|
sig do
|
|
169
174
|
override.returns(
|
|
170
175
|
T::Array[
|
|
171
|
-
Courier::
|
|
176
|
+
Courier::WorkspacePreferenceTopicReplaceRequest::AllowedPreference::TaggedSymbol
|
|
172
177
|
]
|
|
173
178
|
)
|
|
174
179
|
end
|
data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_archive_params.rbi
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
5
|
+
module WorkspacePreferences
|
|
6
6
|
class TopicArchiveParams < Courier::Internal::Type::BaseModel
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
@@ -10,7 +10,7 @@ module Courier
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Courier::
|
|
13
|
+
Courier::WorkspacePreferences::TopicArchiveParams,
|
|
14
14
|
Courier::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_create_params.rbi
RENAMED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
class TopicCreateParams < Courier::Models::
|
|
5
|
+
module WorkspacePreferences
|
|
6
|
+
class TopicCreateParams < Courier::Models::WorkspacePreferenceTopicCreateRequest
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Courier::
|
|
13
|
+
Courier::WorkspacePreferences::TopicCreateParams,
|
|
14
14
|
Courier::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
5
|
+
module WorkspacePreferences
|
|
6
6
|
class TopicListParams < Courier::Internal::Type::BaseModel
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
@@ -10,7 +10,7 @@ module Courier
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Courier::
|
|
13
|
+
Courier::WorkspacePreferences::TopicListParams,
|
|
14
14
|
Courier::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_replace_params.rbi
RENAMED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
6
|
-
class TopicReplaceParams < Courier::Models::
|
|
5
|
+
module WorkspacePreferences
|
|
6
|
+
class TopicReplaceParams < Courier::Models::WorkspacePreferenceTopicReplaceRequest
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Courier::
|
|
13
|
+
Courier::WorkspacePreferences::TopicReplaceParams,
|
|
14
14
|
Courier::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
data/rbi/courier/models/{preference_sections → workspace_preferences}/topic_retrieve_params.rbi
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Courier
|
|
4
4
|
module Models
|
|
5
|
-
module
|
|
5
|
+
module WorkspacePreferences
|
|
6
6
|
class TopicRetrieveParams < Courier::Internal::Type::BaseModel
|
|
7
7
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Courier::Internal::Type::RequestParameters
|
|
@@ -10,7 +10,7 @@ module Courier
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
12
|
T.any(
|
|
13
|
-
Courier::
|
|
13
|
+
Courier::WorkspacePreferences::TopicRetrieveParams,
|
|
14
14
|
Courier::Internal::AnyHash
|
|
15
15
|
)
|
|
16
16
|
end
|
data/rbi/courier/models.rbi
CHANGED
|
@@ -87,6 +87,10 @@ module Courier
|
|
|
87
87
|
|
|
88
88
|
BulkRunJobParams = Courier::Models::BulkRunJobParams
|
|
89
89
|
|
|
90
|
+
CancelJourneyRequest = Courier::Models::CancelJourneyRequest
|
|
91
|
+
|
|
92
|
+
CancelJourneyResponse = Courier::Models::CancelJourneyResponse
|
|
93
|
+
|
|
90
94
|
Channel = Courier::Models::Channel
|
|
91
95
|
|
|
92
96
|
ChannelClassification = Courier::Models::ChannelClassification
|
|
@@ -171,6 +175,8 @@ module Courier
|
|
|
171
175
|
|
|
172
176
|
JourneyArchiveParams = Courier::Models::JourneyArchiveParams
|
|
173
177
|
|
|
178
|
+
JourneyCancelParams = Courier::Models::JourneyCancelParams
|
|
179
|
+
|
|
174
180
|
JourneyConditionAtom =
|
|
175
181
|
T.let(
|
|
176
182
|
Courier::Models::JourneyConditionAtom,
|
|
@@ -191,6 +197,10 @@ module Courier
|
|
|
191
197
|
|
|
192
198
|
JourneyExitNode = Courier::Models::JourneyExitNode
|
|
193
199
|
|
|
200
|
+
JourneyExperiment = Courier::Models::JourneyExperiment
|
|
201
|
+
|
|
202
|
+
JourneyExperimentVariant = Courier::Models::JourneyExperimentVariant
|
|
203
|
+
|
|
194
204
|
JourneyFetchGetDeleteNode = Courier::Models::JourneyFetchGetDeleteNode
|
|
195
205
|
|
|
196
206
|
JourneyFetchPostPutNode = Courier::Models::JourneyFetchPostPutNode
|
|
@@ -381,44 +391,8 @@ module Courier
|
|
|
381
391
|
|
|
382
392
|
Preference = Courier::Models::Preference
|
|
383
393
|
|
|
384
|
-
PreferenceSectionArchiveParams =
|
|
385
|
-
Courier::Models::PreferenceSectionArchiveParams
|
|
386
|
-
|
|
387
|
-
PreferenceSectionCreateParams = Courier::Models::PreferenceSectionCreateParams
|
|
388
|
-
|
|
389
|
-
PreferenceSectionCreateRequest =
|
|
390
|
-
Courier::Models::PreferenceSectionCreateRequest
|
|
391
|
-
|
|
392
|
-
PreferenceSectionGetResponse = Courier::Models::PreferenceSectionGetResponse
|
|
393
|
-
|
|
394
|
-
PreferenceSectionListParams = Courier::Models::PreferenceSectionListParams
|
|
395
|
-
|
|
396
|
-
PreferenceSectionListResponse = Courier::Models::PreferenceSectionListResponse
|
|
397
|
-
|
|
398
|
-
PreferenceSectionPublishParams =
|
|
399
|
-
Courier::Models::PreferenceSectionPublishParams
|
|
400
|
-
|
|
401
|
-
PreferenceSectionReplaceParams =
|
|
402
|
-
Courier::Models::PreferenceSectionReplaceParams
|
|
403
|
-
|
|
404
|
-
PreferenceSectionReplaceRequest =
|
|
405
|
-
Courier::Models::PreferenceSectionReplaceRequest
|
|
406
|
-
|
|
407
|
-
PreferenceSectionRetrieveParams =
|
|
408
|
-
Courier::Models::PreferenceSectionRetrieveParams
|
|
409
|
-
|
|
410
|
-
PreferenceSections = Courier::Models::PreferenceSections
|
|
411
|
-
|
|
412
394
|
PreferenceStatus = Courier::Models::PreferenceStatus
|
|
413
395
|
|
|
414
|
-
PreferenceTopicCreateRequest = Courier::Models::PreferenceTopicCreateRequest
|
|
415
|
-
|
|
416
|
-
PreferenceTopicGetResponse = Courier::Models::PreferenceTopicGetResponse
|
|
417
|
-
|
|
418
|
-
PreferenceTopicListResponse = Courier::Models::PreferenceTopicListResponse
|
|
419
|
-
|
|
420
|
-
PreferenceTopicReplaceRequest = Courier::Models::PreferenceTopicReplaceRequest
|
|
421
|
-
|
|
422
396
|
ProfileCreateParams = Courier::Models::ProfileCreateParams
|
|
423
397
|
|
|
424
398
|
ProfileDeleteParams = Courier::Models::ProfileDeleteParams
|
|
@@ -571,4 +545,47 @@ module Courier
|
|
|
571
545
|
WebhookRecipient = Courier::Models::WebhookRecipient
|
|
572
546
|
|
|
573
547
|
WidgetBackground = Courier::Models::WidgetBackground
|
|
548
|
+
|
|
549
|
+
WorkspacePreferenceArchiveParams =
|
|
550
|
+
Courier::Models::WorkspacePreferenceArchiveParams
|
|
551
|
+
|
|
552
|
+
WorkspacePreferenceCreateParams =
|
|
553
|
+
Courier::Models::WorkspacePreferenceCreateParams
|
|
554
|
+
|
|
555
|
+
WorkspacePreferenceCreateRequest =
|
|
556
|
+
Courier::Models::WorkspacePreferenceCreateRequest
|
|
557
|
+
|
|
558
|
+
WorkspacePreferenceGetResponse =
|
|
559
|
+
Courier::Models::WorkspacePreferenceGetResponse
|
|
560
|
+
|
|
561
|
+
WorkspacePreferenceListParams = Courier::Models::WorkspacePreferenceListParams
|
|
562
|
+
|
|
563
|
+
WorkspacePreferenceListResponse =
|
|
564
|
+
Courier::Models::WorkspacePreferenceListResponse
|
|
565
|
+
|
|
566
|
+
WorkspacePreferencePublishParams =
|
|
567
|
+
Courier::Models::WorkspacePreferencePublishParams
|
|
568
|
+
|
|
569
|
+
WorkspacePreferenceReplaceParams =
|
|
570
|
+
Courier::Models::WorkspacePreferenceReplaceParams
|
|
571
|
+
|
|
572
|
+
WorkspacePreferenceReplaceRequest =
|
|
573
|
+
Courier::Models::WorkspacePreferenceReplaceRequest
|
|
574
|
+
|
|
575
|
+
WorkspacePreferenceRetrieveParams =
|
|
576
|
+
Courier::Models::WorkspacePreferenceRetrieveParams
|
|
577
|
+
|
|
578
|
+
WorkspacePreferences = Courier::Models::WorkspacePreferences
|
|
579
|
+
|
|
580
|
+
WorkspacePreferenceTopicCreateRequest =
|
|
581
|
+
Courier::Models::WorkspacePreferenceTopicCreateRequest
|
|
582
|
+
|
|
583
|
+
WorkspacePreferenceTopicGetResponse =
|
|
584
|
+
Courier::Models::WorkspacePreferenceTopicGetResponse
|
|
585
|
+
|
|
586
|
+
WorkspacePreferenceTopicListResponse =
|
|
587
|
+
Courier::Models::WorkspacePreferenceTopicListResponse
|
|
588
|
+
|
|
589
|
+
WorkspacePreferenceTopicReplaceRequest =
|
|
590
|
+
Courier::Models::WorkspacePreferenceTopicReplaceRequest
|
|
574
591
|
end
|
|
@@ -101,6 +101,31 @@ module Courier
|
|
|
101
101
|
)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
# Cancel journey runs. The request body must include EXACTLY ONE of
|
|
105
|
+
# `cancelation_token` (cancels every run associated with the token) or `run_id`
|
|
106
|
+
# (cancels a single tenant-scoped run). Supplying both or neither returns a `400`.
|
|
107
|
+
# A `run_id` that does not match a run for the tenant returns `404`. Cancelation
|
|
108
|
+
# is idempotent: a run that has already finished (`PROCESSED`/`ERROR`) or was
|
|
109
|
+
# already `CANCELED` is left unchanged and its current status is returned.
|
|
110
|
+
sig do
|
|
111
|
+
params(
|
|
112
|
+
cancel_journey_request:
|
|
113
|
+
T.any(
|
|
114
|
+
Courier::CancelJourneyRequest::ByCancelationToken::OrHash,
|
|
115
|
+
Courier::CancelJourneyRequest::ByRunID::OrHash
|
|
116
|
+
),
|
|
117
|
+
request_options: Courier::RequestOptions::OrHash
|
|
118
|
+
).returns(Courier::CancelJourneyResponse::Variants)
|
|
119
|
+
end
|
|
120
|
+
def cancel(
|
|
121
|
+
# Request body for `POST /journeys/cancel`. Provide EXACTLY ONE of
|
|
122
|
+
# `cancelation_token` (cancels every run associated with the token) or `run_id`
|
|
123
|
+
# (cancels a single tenant-scoped run).
|
|
124
|
+
cancel_journey_request:,
|
|
125
|
+
request_options: {}
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
|
|
104
129
|
# Invoke a journey by id or alias to start a new run. The response includes a
|
|
105
130
|
# `runId` identifying the run.
|
|
106
131
|
sig do
|
|
@@ -4,7 +4,7 @@ module Courier
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Notifications
|
|
6
6
|
class Checks
|
|
7
|
-
# Replace the checks for a notification template
|
|
7
|
+
# Replace the submission checks for a notification template.
|
|
8
8
|
sig do
|
|
9
9
|
params(
|
|
10
10
|
submission_id: String,
|
|
@@ -24,7 +24,7 @@ module Courier
|
|
|
24
24
|
)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
# Retrieve the checks for a notification template
|
|
27
|
+
# Retrieve the submission checks for a notification template.
|
|
28
28
|
sig do
|
|
29
29
|
params(
|
|
30
30
|
submission_id: String,
|
|
@@ -41,7 +41,7 @@ module Courier
|
|
|
41
41
|
)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
-
# Cancel a notification template
|
|
44
|
+
# Cancel a submission for a notification template.
|
|
45
45
|
sig do
|
|
46
46
|
params(
|
|
47
47
|
submission_id: String,
|