trycourier 4.9.0 → 4.10.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 +18 -0
- data/lib/courier/internal/util.rb +3 -1
- data/lib/courier/models/associated_notification_list_response.rb +24 -0
- data/lib/courier/models/element_with_checksums.rb +60 -0
- data/lib/courier/models/notification_content_get_response.rb +26 -0
- data/lib/courier/models/notification_content_mutation_response.rb +61 -0
- data/lib/courier/models/notification_content_put_request.rb +51 -0
- data/lib/courier/models/notification_element_put_request.rb +62 -0
- data/lib/courier/models/notification_get_content.rb +0 -1
- data/lib/courier/models/notification_locale_put_request.rb +39 -0
- data/lib/courier/models/notification_put_content_params.rb +20 -0
- data/lib/courier/models/notification_put_element_params.rb +26 -0
- data/lib/courier/models/notification_put_locale_params.rb +26 -0
- data/lib/courier/models/notification_retrieve_content_params.rb +14 -1
- data/lib/courier/models/notification_retrieve_content_response.rb +21 -0
- data/lib/courier/models/notification_template_get_response.rb +1 -1
- data/lib/courier/models/notification_template_state.rb +16 -0
- data/lib/courier/models/provider_update_params.rb +3 -2
- data/lib/courier/models/routing_strategy_get_response.rb +1 -1
- data/lib/courier/models/routing_strategy_list_notifications_params.rb +37 -0
- data/lib/courier/models.rb +24 -4
- data/lib/courier/resources/notifications.rb +128 -13
- data/lib/courier/resources/providers.rb +7 -5
- data/lib/courier/resources/routing_strategies.rb +32 -4
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +13 -4
- data/rbi/courier/models/associated_notification_list_response.rbi +45 -0
- data/rbi/courier/models/element_with_checksums.rbi +109 -0
- data/rbi/courier/models/notification_content_get_response.rbi +45 -0
- data/rbi/courier/models/notification_content_mutation_response.rbi +95 -0
- data/rbi/courier/models/notification_content_put_request.rbi +145 -0
- data/rbi/courier/models/notification_element_put_request.rbi +98 -0
- data/rbi/courier/models/notification_locale_put_request.rbi +79 -0
- data/rbi/courier/models/notification_put_content_params.rbi +38 -0
- data/rbi/courier/models/notification_put_element_params.rbi +46 -0
- data/rbi/courier/models/notification_put_locale_params.rbi +46 -0
- data/rbi/courier/models/notification_retrieve_content_params.rbi +21 -2
- data/rbi/courier/models/notification_retrieve_content_response.rbi +29 -0
- data/rbi/courier/models/notification_template_state.rbi +26 -0
- data/rbi/courier/models/provider_update_params.rbi +4 -2
- data/rbi/courier/models/routing_strategy_list_notifications_params.rbi +63 -0
- data/rbi/courier/models.rbi +28 -6
- data/rbi/courier/resources/notifications.rbi +105 -7
- data/rbi/courier/resources/providers.rbi +7 -4
- data/rbi/courier/resources/routing_strategies.rbi +23 -2
- data/sig/courier/models/associated_notification_list_response.rbs +25 -0
- data/sig/courier/models/element_with_checksums.rbs +60 -0
- data/sig/courier/models/notification_content_get_response.rbs +22 -0
- data/sig/courier/models/notification_content_mutation_response.rbs +47 -0
- data/sig/courier/models/notification_content_put_request.rbs +50 -0
- data/sig/courier/models/notification_element_put_request.rbs +64 -0
- data/sig/courier/models/notification_locale_put_request.rbs +39 -0
- data/sig/courier/models/notification_put_content_params.rbs +22 -0
- data/sig/courier/models/notification_put_element_params.rbs +32 -0
- data/sig/courier/models/notification_put_locale_params.rbs +32 -0
- data/sig/courier/models/notification_retrieve_content_params.rbs +12 -2
- data/sig/courier/models/notification_retrieve_content_response.rbs +12 -0
- data/sig/courier/models/notification_template_state.rbs +14 -0
- data/sig/courier/models/routing_strategy_list_notifications_params.rbs +34 -0
- data/sig/courier/models.rbs +24 -4
- data/sig/courier/resources/notifications.rbs +32 -5
- data/sig/courier/resources/routing_strategies.rbs +9 -2
- metadata +41 -14
- data/lib/courier/models/notification_template_mutation_response.rb +0 -51
- data/lib/courier/models/notifications/draft_retrieve_content_params.rb +0 -22
- data/lib/courier/models/routing_strategy_mutation_response.rb +0 -19
- data/lib/courier/resources/notifications/draft.rb +0 -33
- data/rbi/courier/models/notification_template_mutation_response.rbi +0 -121
- data/rbi/courier/models/notifications/draft_retrieve_content_params.rbi +0 -40
- data/rbi/courier/models/routing_strategy_mutation_response.rbi +0 -31
- data/rbi/courier/resources/notifications/draft.rbi +0 -23
- data/sig/courier/models/notification_template_mutation_response.rbs +0 -46
- data/sig/courier/models/notifications/draft_retrieve_content_params.rbs +0 -22
- data/sig/courier/models/routing_strategy_mutation_response.rbs +0 -13
- data/sig/courier/resources/notifications/draft.rbs +0 -14
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_put_content_params =
|
|
4
|
+
{ id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class NotificationPutContentParams < Courier::Models::NotificationContentPutRequest
|
|
7
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Courier::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def id: -> String
|
|
11
|
+
|
|
12
|
+
def id=: (String _) -> String
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
id: String,
|
|
16
|
+
?request_options: Courier::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { id: String, request_options: Courier::RequestOptions }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_put_element_params =
|
|
4
|
+
{ id: String, element_id: String }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class NotificationPutElementParams < Courier::Models::NotificationElementPutRequest
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def id: -> String
|
|
12
|
+
|
|
13
|
+
def id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def element_id: -> String
|
|
16
|
+
|
|
17
|
+
def element_id=: (String _) -> String
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
id: String,
|
|
21
|
+
element_id: String,
|
|
22
|
+
?request_options: Courier::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
id: String,
|
|
27
|
+
element_id: String,
|
|
28
|
+
request_options: Courier::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_put_locale_params =
|
|
4
|
+
{ id: String, locale_id: String }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class NotificationPutLocaleParams < Courier::Models::NotificationLocalePutRequest
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def id: -> String
|
|
12
|
+
|
|
13
|
+
def id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def locale_id: -> String
|
|
16
|
+
|
|
17
|
+
def locale_id=: (String _) -> String
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
id: String,
|
|
21
|
+
locale_id: String,
|
|
22
|
+
?request_options: Courier::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
id: String,
|
|
27
|
+
locale_id: String,
|
|
28
|
+
request_options: Courier::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Models
|
|
3
3
|
type notification_retrieve_content_params =
|
|
4
|
-
{ id: String
|
|
4
|
+
{ id: String, version: String }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class NotificationRetrieveContentParams < Courier::Internal::Type::BaseModel
|
|
7
8
|
extend Courier::Internal::Type::RequestParameters::Converter
|
|
@@ -9,12 +10,21 @@ module Courier
|
|
|
9
10
|
|
|
10
11
|
attr_accessor id: String
|
|
11
12
|
|
|
13
|
+
attr_reader version: String?
|
|
14
|
+
|
|
15
|
+
def version=: (String) -> String
|
|
16
|
+
|
|
12
17
|
def initialize: (
|
|
13
18
|
id: String,
|
|
19
|
+
?version: String,
|
|
14
20
|
?request_options: Courier::request_opts
|
|
15
21
|
) -> void
|
|
16
22
|
|
|
17
|
-
def to_hash: -> {
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
version: String,
|
|
26
|
+
request_options: Courier::RequestOptions
|
|
27
|
+
}
|
|
18
28
|
end
|
|
19
29
|
end
|
|
20
30
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_retrieve_content_response =
|
|
4
|
+
Courier::NotificationContentGetResponse | Courier::NotificationGetContent
|
|
5
|
+
|
|
6
|
+
module NotificationRetrieveContentResponse
|
|
7
|
+
extend Courier::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
def self?.variants: -> ::Array[Courier::Models::notification_retrieve_content_response]
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type notification_template_state = :DRAFT | :PUBLISHED
|
|
4
|
+
|
|
5
|
+
module NotificationTemplateState
|
|
6
|
+
extend Courier::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
DRAFT: :DRAFT
|
|
9
|
+
PUBLISHED: :PUBLISHED
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[Courier::Models::notification_template_state]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type routing_strategy_list_notifications_params =
|
|
4
|
+
{ id: String, cursor: String?, limit: Integer }
|
|
5
|
+
& Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class RoutingStrategyListNotificationsParams < Courier::Internal::Type::BaseModel
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor cursor: String?
|
|
14
|
+
|
|
15
|
+
attr_reader limit: Integer?
|
|
16
|
+
|
|
17
|
+
def limit=: (Integer) -> Integer
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
id: String,
|
|
21
|
+
?cursor: String?,
|
|
22
|
+
?limit: Integer,
|
|
23
|
+
?request_options: Courier::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
cursor: String?,
|
|
29
|
+
limit: Integer,
|
|
30
|
+
request_options: Courier::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
data/sig/courier/models.rbs
CHANGED
|
@@ -5,6 +5,8 @@ module Courier
|
|
|
5
5
|
|
|
6
6
|
module Alignment = Courier::Models::Alignment
|
|
7
7
|
|
|
8
|
+
class AssociatedNotificationListResponse = Courier::Models::AssociatedNotificationListResponse
|
|
9
|
+
|
|
8
10
|
class Audience = Courier::Models::Audience
|
|
9
11
|
|
|
10
12
|
class AudienceDeleteParams = Courier::Models::AudienceDeleteParams
|
|
@@ -123,6 +125,8 @@ module Courier
|
|
|
123
125
|
|
|
124
126
|
class ElementalTextNodeWithType = Courier::Models::ElementalTextNodeWithType
|
|
125
127
|
|
|
128
|
+
class ElementWithChecksums = Courier::Models::ElementWithChecksums
|
|
129
|
+
|
|
126
130
|
class EmailFooter = Courier::Models::EmailFooter
|
|
127
131
|
|
|
128
132
|
class EmailHead = Courier::Models::EmailHead
|
|
@@ -213,18 +217,34 @@ module Courier
|
|
|
213
217
|
|
|
214
218
|
class NotificationArchiveParams = Courier::Models::NotificationArchiveParams
|
|
215
219
|
|
|
220
|
+
class NotificationContentGetResponse = Courier::Models::NotificationContentGetResponse
|
|
221
|
+
|
|
222
|
+
class NotificationContentMutationResponse = Courier::Models::NotificationContentMutationResponse
|
|
223
|
+
|
|
224
|
+
class NotificationContentPutRequest = Courier::Models::NotificationContentPutRequest
|
|
225
|
+
|
|
216
226
|
class NotificationCreateParams = Courier::Models::NotificationCreateParams
|
|
217
227
|
|
|
228
|
+
class NotificationElementPutRequest = Courier::Models::NotificationElementPutRequest
|
|
229
|
+
|
|
218
230
|
class NotificationGetContent = Courier::Models::NotificationGetContent
|
|
219
231
|
|
|
220
232
|
class NotificationListParams = Courier::Models::NotificationListParams
|
|
221
233
|
|
|
222
234
|
class NotificationListVersionsParams = Courier::Models::NotificationListVersionsParams
|
|
223
235
|
|
|
236
|
+
class NotificationLocalePutRequest = Courier::Models::NotificationLocalePutRequest
|
|
237
|
+
|
|
224
238
|
class NotificationPreferenceDetails = Courier::Models::NotificationPreferenceDetails
|
|
225
239
|
|
|
226
240
|
class NotificationPublishParams = Courier::Models::NotificationPublishParams
|
|
227
241
|
|
|
242
|
+
class NotificationPutContentParams = Courier::Models::NotificationPutContentParams
|
|
243
|
+
|
|
244
|
+
class NotificationPutElementParams = Courier::Models::NotificationPutElementParams
|
|
245
|
+
|
|
246
|
+
class NotificationPutLocaleParams = Courier::Models::NotificationPutLocaleParams
|
|
247
|
+
|
|
228
248
|
class NotificationReplaceParams = Courier::Models::NotificationReplaceParams
|
|
229
249
|
|
|
230
250
|
class NotificationRetrieveContentParams = Courier::Models::NotificationRetrieveContentParams
|
|
@@ -237,12 +257,12 @@ module Courier
|
|
|
237
257
|
|
|
238
258
|
class NotificationTemplateGetResponse = Courier::Models::NotificationTemplateGetResponse
|
|
239
259
|
|
|
240
|
-
class NotificationTemplateMutationResponse = Courier::Models::NotificationTemplateMutationResponse
|
|
241
|
-
|
|
242
260
|
class NotificationTemplatePayload = Courier::Models::NotificationTemplatePayload
|
|
243
261
|
|
|
244
262
|
class NotificationTemplatePublishRequest = Courier::Models::NotificationTemplatePublishRequest
|
|
245
263
|
|
|
264
|
+
module NotificationTemplateState = Courier::Models::NotificationTemplateState
|
|
265
|
+
|
|
246
266
|
class NotificationTemplateSummary = Courier::Models::NotificationTemplateSummary
|
|
247
267
|
|
|
248
268
|
class NotificationTemplateUpdateRequest = Courier::Models::NotificationTemplateUpdateRequest
|
|
@@ -309,12 +329,12 @@ module Courier
|
|
|
309
329
|
|
|
310
330
|
class RoutingStrategyGetResponse = Courier::Models::RoutingStrategyGetResponse
|
|
311
331
|
|
|
332
|
+
class RoutingStrategyListNotificationsParams = Courier::Models::RoutingStrategyListNotificationsParams
|
|
333
|
+
|
|
312
334
|
class RoutingStrategyListParams = Courier::Models::RoutingStrategyListParams
|
|
313
335
|
|
|
314
336
|
class RoutingStrategyListResponse = Courier::Models::RoutingStrategyListResponse
|
|
315
337
|
|
|
316
|
-
class RoutingStrategyMutationResponse = Courier::Models::RoutingStrategyMutationResponse
|
|
317
|
-
|
|
318
338
|
class RoutingStrategyReplaceParams = Courier::Models::RoutingStrategyReplaceParams
|
|
319
339
|
|
|
320
340
|
class RoutingStrategyReplaceRequest = Courier::Models::RoutingStrategyReplaceRequest
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
module Courier
|
|
2
2
|
module Resources
|
|
3
3
|
class Notifications
|
|
4
|
-
attr_reader draft: Courier::Resources::Notifications::Draft
|
|
5
|
-
|
|
6
4
|
attr_reader checks: Courier::Resources::Notifications::Checks
|
|
7
5
|
|
|
8
6
|
def create: (
|
|
9
7
|
notification: Courier::NotificationTemplatePayload,
|
|
10
8
|
?state: Courier::Models::NotificationTemplateCreateRequest::state,
|
|
11
9
|
?request_options: Courier::request_opts
|
|
12
|
-
) -> Courier::
|
|
10
|
+
) -> Courier::NotificationTemplateGetResponse
|
|
13
11
|
|
|
14
12
|
def retrieve: (
|
|
15
13
|
String id,
|
|
@@ -39,17 +37,46 @@ module Courier
|
|
|
39
37
|
?request_options: Courier::request_opts
|
|
40
38
|
) -> nil
|
|
41
39
|
|
|
40
|
+
def put_content: (
|
|
41
|
+
String id,
|
|
42
|
+
content: Courier::NotificationContentPutRequest::Content,
|
|
43
|
+
?state: Courier::Models::notification_template_state,
|
|
44
|
+
?request_options: Courier::request_opts
|
|
45
|
+
) -> Courier::NotificationContentMutationResponse
|
|
46
|
+
|
|
47
|
+
def put_element: (
|
|
48
|
+
String element_id,
|
|
49
|
+
id: String,
|
|
50
|
+
type: String,
|
|
51
|
+
?channels: ::Array[String],
|
|
52
|
+
?data: ::Hash[Symbol, top],
|
|
53
|
+
?if_: String,
|
|
54
|
+
?loop_: String,
|
|
55
|
+
?ref: String,
|
|
56
|
+
?state: Courier::Models::notification_template_state,
|
|
57
|
+
?request_options: Courier::request_opts
|
|
58
|
+
) -> Courier::NotificationContentMutationResponse
|
|
59
|
+
|
|
60
|
+
def put_locale: (
|
|
61
|
+
String locale_id,
|
|
62
|
+
id: String,
|
|
63
|
+
elements: ::Array[Courier::NotificationLocalePutRequest::Element],
|
|
64
|
+
?state: Courier::Models::notification_template_state,
|
|
65
|
+
?request_options: Courier::request_opts
|
|
66
|
+
) -> Courier::NotificationContentMutationResponse
|
|
67
|
+
|
|
42
68
|
def replace: (
|
|
43
69
|
String id,
|
|
44
70
|
notification: Courier::NotificationTemplatePayload,
|
|
45
71
|
?state: Courier::Models::NotificationTemplateUpdateRequest::state,
|
|
46
72
|
?request_options: Courier::request_opts
|
|
47
|
-
) -> Courier::
|
|
73
|
+
) -> Courier::NotificationTemplateGetResponse
|
|
48
74
|
|
|
49
75
|
def retrieve_content: (
|
|
50
76
|
String id,
|
|
77
|
+
?version: String,
|
|
51
78
|
?request_options: Courier::request_opts
|
|
52
|
-
) -> Courier::
|
|
79
|
+
) -> Courier::Models::notification_retrieve_content_response
|
|
53
80
|
|
|
54
81
|
def initialize: (client: Courier::Client) -> void
|
|
55
82
|
end
|
|
@@ -9,7 +9,7 @@ module Courier
|
|
|
9
9
|
?providers: Courier::Models::message_providers?,
|
|
10
10
|
?tags: ::Array[String]?,
|
|
11
11
|
?request_options: Courier::request_opts
|
|
12
|
-
) -> Courier::
|
|
12
|
+
) -> Courier::RoutingStrategyGetResponse
|
|
13
13
|
|
|
14
14
|
def retrieve: (
|
|
15
15
|
String id,
|
|
@@ -24,6 +24,13 @@ module Courier
|
|
|
24
24
|
|
|
25
25
|
def archive: (String id, ?request_options: Courier::request_opts) -> nil
|
|
26
26
|
|
|
27
|
+
def list_notifications: (
|
|
28
|
+
String id,
|
|
29
|
+
?cursor: String?,
|
|
30
|
+
?limit: Integer,
|
|
31
|
+
?request_options: Courier::request_opts
|
|
32
|
+
) -> Courier::AssociatedNotificationListResponse
|
|
33
|
+
|
|
27
34
|
def replace: (
|
|
28
35
|
String id,
|
|
29
36
|
name: String,
|
|
@@ -33,7 +40,7 @@ module Courier
|
|
|
33
40
|
?providers: Courier::Models::message_providers?,
|
|
34
41
|
?tags: ::Array[String]?,
|
|
35
42
|
?request_options: Courier::request_opts
|
|
36
|
-
) -> Courier::
|
|
43
|
+
) -> Courier::RoutingStrategyGetResponse
|
|
37
44
|
|
|
38
45
|
def initialize: (client: Courier::Client) -> void
|
|
39
46
|
end
|
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.10.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-04-
|
|
11
|
+
date: 2026-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -72,6 +72,7 @@ files:
|
|
|
72
72
|
- lib/courier/models/airship_profile.rb
|
|
73
73
|
- lib/courier/models/airship_profile_audience.rb
|
|
74
74
|
- lib/courier/models/alignment.rb
|
|
75
|
+
- lib/courier/models/associated_notification_list_response.rb
|
|
75
76
|
- lib/courier/models/audience.rb
|
|
76
77
|
- lib/courier/models/audience_delete_params.rb
|
|
77
78
|
- lib/courier/models/audience_filter.rb
|
|
@@ -128,6 +129,7 @@ files:
|
|
|
128
129
|
- lib/courier/models/default_preferences.rb
|
|
129
130
|
- lib/courier/models/device_type.rb
|
|
130
131
|
- lib/courier/models/discord.rb
|
|
132
|
+
- lib/courier/models/element_with_checksums.rb
|
|
131
133
|
- lib/courier/models/elemental_action_node_with_type.rb
|
|
132
134
|
- lib/courier/models/elemental_base_node.rb
|
|
133
135
|
- lib/courier/models/elemental_channel_node.rb
|
|
@@ -197,21 +199,30 @@ files:
|
|
|
197
199
|
- lib/courier/models/ms_teams_recipient.rb
|
|
198
200
|
- lib/courier/models/multiple_tokens.rb
|
|
199
201
|
- lib/courier/models/notification_archive_params.rb
|
|
202
|
+
- lib/courier/models/notification_content_get_response.rb
|
|
203
|
+
- lib/courier/models/notification_content_mutation_response.rb
|
|
204
|
+
- lib/courier/models/notification_content_put_request.rb
|
|
200
205
|
- lib/courier/models/notification_create_params.rb
|
|
206
|
+
- lib/courier/models/notification_element_put_request.rb
|
|
201
207
|
- lib/courier/models/notification_get_content.rb
|
|
202
208
|
- lib/courier/models/notification_list_params.rb
|
|
203
209
|
- lib/courier/models/notification_list_response.rb
|
|
204
210
|
- lib/courier/models/notification_list_versions_params.rb
|
|
211
|
+
- lib/courier/models/notification_locale_put_request.rb
|
|
205
212
|
- lib/courier/models/notification_preference_details.rb
|
|
206
213
|
- lib/courier/models/notification_publish_params.rb
|
|
214
|
+
- lib/courier/models/notification_put_content_params.rb
|
|
215
|
+
- lib/courier/models/notification_put_element_params.rb
|
|
216
|
+
- lib/courier/models/notification_put_locale_params.rb
|
|
207
217
|
- lib/courier/models/notification_replace_params.rb
|
|
208
218
|
- lib/courier/models/notification_retrieve_content_params.rb
|
|
219
|
+
- lib/courier/models/notification_retrieve_content_response.rb
|
|
209
220
|
- lib/courier/models/notification_retrieve_params.rb
|
|
210
221
|
- lib/courier/models/notification_template_create_request.rb
|
|
211
222
|
- lib/courier/models/notification_template_get_response.rb
|
|
212
|
-
- lib/courier/models/notification_template_mutation_response.rb
|
|
213
223
|
- lib/courier/models/notification_template_payload.rb
|
|
214
224
|
- lib/courier/models/notification_template_publish_request.rb
|
|
225
|
+
- lib/courier/models/notification_template_state.rb
|
|
215
226
|
- lib/courier/models/notification_template_summary.rb
|
|
216
227
|
- lib/courier/models/notification_template_update_request.rb
|
|
217
228
|
- lib/courier/models/notification_template_version_list_response.rb
|
|
@@ -220,7 +231,6 @@ files:
|
|
|
220
231
|
- lib/courier/models/notifications/check_list_response.rb
|
|
221
232
|
- lib/courier/models/notifications/check_update_params.rb
|
|
222
233
|
- lib/courier/models/notifications/check_update_response.rb
|
|
223
|
-
- lib/courier/models/notifications/draft_retrieve_content_params.rb
|
|
224
234
|
- lib/courier/models/pagerduty.rb
|
|
225
235
|
- lib/courier/models/pagerduty_recipient.rb
|
|
226
236
|
- lib/courier/models/paging.rb
|
|
@@ -261,9 +271,9 @@ files:
|
|
|
261
271
|
- lib/courier/models/routing_strategy_create_params.rb
|
|
262
272
|
- lib/courier/models/routing_strategy_create_request.rb
|
|
263
273
|
- lib/courier/models/routing_strategy_get_response.rb
|
|
274
|
+
- lib/courier/models/routing_strategy_list_notifications_params.rb
|
|
264
275
|
- lib/courier/models/routing_strategy_list_params.rb
|
|
265
276
|
- lib/courier/models/routing_strategy_list_response.rb
|
|
266
|
-
- lib/courier/models/routing_strategy_mutation_response.rb
|
|
267
277
|
- lib/courier/models/routing_strategy_replace_params.rb
|
|
268
278
|
- lib/courier/models/routing_strategy_replace_request.rb
|
|
269
279
|
- lib/courier/models/routing_strategy_retrieve_params.rb
|
|
@@ -360,7 +370,6 @@ files:
|
|
|
360
370
|
- lib/courier/resources/messages.rb
|
|
361
371
|
- lib/courier/resources/notifications.rb
|
|
362
372
|
- lib/courier/resources/notifications/checks.rb
|
|
363
|
-
- lib/courier/resources/notifications/draft.rb
|
|
364
373
|
- lib/courier/resources/profiles.rb
|
|
365
374
|
- lib/courier/resources/profiles/lists.rb
|
|
366
375
|
- lib/courier/resources/providers.rb
|
|
@@ -402,6 +411,7 @@ files:
|
|
|
402
411
|
- rbi/courier/models/airship_profile.rbi
|
|
403
412
|
- rbi/courier/models/airship_profile_audience.rbi
|
|
404
413
|
- rbi/courier/models/alignment.rbi
|
|
414
|
+
- rbi/courier/models/associated_notification_list_response.rbi
|
|
405
415
|
- rbi/courier/models/audience.rbi
|
|
406
416
|
- rbi/courier/models/audience_delete_params.rbi
|
|
407
417
|
- rbi/courier/models/audience_filter.rbi
|
|
@@ -458,6 +468,7 @@ files:
|
|
|
458
468
|
- rbi/courier/models/default_preferences.rbi
|
|
459
469
|
- rbi/courier/models/device_type.rbi
|
|
460
470
|
- rbi/courier/models/discord.rbi
|
|
471
|
+
- rbi/courier/models/element_with_checksums.rbi
|
|
461
472
|
- rbi/courier/models/elemental_action_node_with_type.rbi
|
|
462
473
|
- rbi/courier/models/elemental_base_node.rbi
|
|
463
474
|
- rbi/courier/models/elemental_channel_node.rbi
|
|
@@ -527,21 +538,30 @@ files:
|
|
|
527
538
|
- rbi/courier/models/ms_teams_recipient.rbi
|
|
528
539
|
- rbi/courier/models/multiple_tokens.rbi
|
|
529
540
|
- rbi/courier/models/notification_archive_params.rbi
|
|
541
|
+
- rbi/courier/models/notification_content_get_response.rbi
|
|
542
|
+
- rbi/courier/models/notification_content_mutation_response.rbi
|
|
543
|
+
- rbi/courier/models/notification_content_put_request.rbi
|
|
530
544
|
- rbi/courier/models/notification_create_params.rbi
|
|
545
|
+
- rbi/courier/models/notification_element_put_request.rbi
|
|
531
546
|
- rbi/courier/models/notification_get_content.rbi
|
|
532
547
|
- rbi/courier/models/notification_list_params.rbi
|
|
533
548
|
- rbi/courier/models/notification_list_response.rbi
|
|
534
549
|
- rbi/courier/models/notification_list_versions_params.rbi
|
|
550
|
+
- rbi/courier/models/notification_locale_put_request.rbi
|
|
535
551
|
- rbi/courier/models/notification_preference_details.rbi
|
|
536
552
|
- rbi/courier/models/notification_publish_params.rbi
|
|
553
|
+
- rbi/courier/models/notification_put_content_params.rbi
|
|
554
|
+
- rbi/courier/models/notification_put_element_params.rbi
|
|
555
|
+
- rbi/courier/models/notification_put_locale_params.rbi
|
|
537
556
|
- rbi/courier/models/notification_replace_params.rbi
|
|
538
557
|
- rbi/courier/models/notification_retrieve_content_params.rbi
|
|
558
|
+
- rbi/courier/models/notification_retrieve_content_response.rbi
|
|
539
559
|
- rbi/courier/models/notification_retrieve_params.rbi
|
|
540
560
|
- rbi/courier/models/notification_template_create_request.rbi
|
|
541
561
|
- rbi/courier/models/notification_template_get_response.rbi
|
|
542
|
-
- rbi/courier/models/notification_template_mutation_response.rbi
|
|
543
562
|
- rbi/courier/models/notification_template_payload.rbi
|
|
544
563
|
- rbi/courier/models/notification_template_publish_request.rbi
|
|
564
|
+
- rbi/courier/models/notification_template_state.rbi
|
|
545
565
|
- rbi/courier/models/notification_template_summary.rbi
|
|
546
566
|
- rbi/courier/models/notification_template_update_request.rbi
|
|
547
567
|
- rbi/courier/models/notification_template_version_list_response.rbi
|
|
@@ -550,7 +570,6 @@ files:
|
|
|
550
570
|
- rbi/courier/models/notifications/check_list_response.rbi
|
|
551
571
|
- rbi/courier/models/notifications/check_update_params.rbi
|
|
552
572
|
- rbi/courier/models/notifications/check_update_response.rbi
|
|
553
|
-
- rbi/courier/models/notifications/draft_retrieve_content_params.rbi
|
|
554
573
|
- rbi/courier/models/pagerduty.rbi
|
|
555
574
|
- rbi/courier/models/pagerduty_recipient.rbi
|
|
556
575
|
- rbi/courier/models/paging.rbi
|
|
@@ -591,9 +610,9 @@ files:
|
|
|
591
610
|
- rbi/courier/models/routing_strategy_create_params.rbi
|
|
592
611
|
- rbi/courier/models/routing_strategy_create_request.rbi
|
|
593
612
|
- rbi/courier/models/routing_strategy_get_response.rbi
|
|
613
|
+
- rbi/courier/models/routing_strategy_list_notifications_params.rbi
|
|
594
614
|
- rbi/courier/models/routing_strategy_list_params.rbi
|
|
595
615
|
- rbi/courier/models/routing_strategy_list_response.rbi
|
|
596
|
-
- rbi/courier/models/routing_strategy_mutation_response.rbi
|
|
597
616
|
- rbi/courier/models/routing_strategy_replace_params.rbi
|
|
598
617
|
- rbi/courier/models/routing_strategy_replace_request.rbi
|
|
599
618
|
- rbi/courier/models/routing_strategy_retrieve_params.rbi
|
|
@@ -690,7 +709,6 @@ files:
|
|
|
690
709
|
- rbi/courier/resources/messages.rbi
|
|
691
710
|
- rbi/courier/resources/notifications.rbi
|
|
692
711
|
- rbi/courier/resources/notifications/checks.rbi
|
|
693
|
-
- rbi/courier/resources/notifications/draft.rbi
|
|
694
712
|
- rbi/courier/resources/profiles.rbi
|
|
695
713
|
- rbi/courier/resources/profiles/lists.rbi
|
|
696
714
|
- rbi/courier/resources/providers.rbi
|
|
@@ -731,6 +749,7 @@ files:
|
|
|
731
749
|
- sig/courier/models/airship_profile.rbs
|
|
732
750
|
- sig/courier/models/airship_profile_audience.rbs
|
|
733
751
|
- sig/courier/models/alignment.rbs
|
|
752
|
+
- sig/courier/models/associated_notification_list_response.rbs
|
|
734
753
|
- sig/courier/models/audience.rbs
|
|
735
754
|
- sig/courier/models/audience_delete_params.rbs
|
|
736
755
|
- sig/courier/models/audience_filter.rbs
|
|
@@ -787,6 +806,7 @@ files:
|
|
|
787
806
|
- sig/courier/models/default_preferences.rbs
|
|
788
807
|
- sig/courier/models/device_type.rbs
|
|
789
808
|
- sig/courier/models/discord.rbs
|
|
809
|
+
- sig/courier/models/element_with_checksums.rbs
|
|
790
810
|
- sig/courier/models/elemental_action_node_with_type.rbs
|
|
791
811
|
- sig/courier/models/elemental_base_node.rbs
|
|
792
812
|
- sig/courier/models/elemental_channel_node.rbs
|
|
@@ -856,21 +876,30 @@ files:
|
|
|
856
876
|
- sig/courier/models/ms_teams_recipient.rbs
|
|
857
877
|
- sig/courier/models/multiple_tokens.rbs
|
|
858
878
|
- sig/courier/models/notification_archive_params.rbs
|
|
879
|
+
- sig/courier/models/notification_content_get_response.rbs
|
|
880
|
+
- sig/courier/models/notification_content_mutation_response.rbs
|
|
881
|
+
- sig/courier/models/notification_content_put_request.rbs
|
|
859
882
|
- sig/courier/models/notification_create_params.rbs
|
|
883
|
+
- sig/courier/models/notification_element_put_request.rbs
|
|
860
884
|
- sig/courier/models/notification_get_content.rbs
|
|
861
885
|
- sig/courier/models/notification_list_params.rbs
|
|
862
886
|
- sig/courier/models/notification_list_response.rbs
|
|
863
887
|
- sig/courier/models/notification_list_versions_params.rbs
|
|
888
|
+
- sig/courier/models/notification_locale_put_request.rbs
|
|
864
889
|
- sig/courier/models/notification_preference_details.rbs
|
|
865
890
|
- sig/courier/models/notification_publish_params.rbs
|
|
891
|
+
- sig/courier/models/notification_put_content_params.rbs
|
|
892
|
+
- sig/courier/models/notification_put_element_params.rbs
|
|
893
|
+
- sig/courier/models/notification_put_locale_params.rbs
|
|
866
894
|
- sig/courier/models/notification_replace_params.rbs
|
|
867
895
|
- sig/courier/models/notification_retrieve_content_params.rbs
|
|
896
|
+
- sig/courier/models/notification_retrieve_content_response.rbs
|
|
868
897
|
- sig/courier/models/notification_retrieve_params.rbs
|
|
869
898
|
- sig/courier/models/notification_template_create_request.rbs
|
|
870
899
|
- sig/courier/models/notification_template_get_response.rbs
|
|
871
|
-
- sig/courier/models/notification_template_mutation_response.rbs
|
|
872
900
|
- sig/courier/models/notification_template_payload.rbs
|
|
873
901
|
- sig/courier/models/notification_template_publish_request.rbs
|
|
902
|
+
- sig/courier/models/notification_template_state.rbs
|
|
874
903
|
- sig/courier/models/notification_template_summary.rbs
|
|
875
904
|
- sig/courier/models/notification_template_update_request.rbs
|
|
876
905
|
- sig/courier/models/notification_template_version_list_response.rbs
|
|
@@ -879,7 +908,6 @@ files:
|
|
|
879
908
|
- sig/courier/models/notifications/check_list_response.rbs
|
|
880
909
|
- sig/courier/models/notifications/check_update_params.rbs
|
|
881
910
|
- sig/courier/models/notifications/check_update_response.rbs
|
|
882
|
-
- sig/courier/models/notifications/draft_retrieve_content_params.rbs
|
|
883
911
|
- sig/courier/models/pagerduty.rbs
|
|
884
912
|
- sig/courier/models/pagerduty_recipient.rbs
|
|
885
913
|
- sig/courier/models/paging.rbs
|
|
@@ -920,9 +948,9 @@ files:
|
|
|
920
948
|
- sig/courier/models/routing_strategy_create_params.rbs
|
|
921
949
|
- sig/courier/models/routing_strategy_create_request.rbs
|
|
922
950
|
- sig/courier/models/routing_strategy_get_response.rbs
|
|
951
|
+
- sig/courier/models/routing_strategy_list_notifications_params.rbs
|
|
923
952
|
- sig/courier/models/routing_strategy_list_params.rbs
|
|
924
953
|
- sig/courier/models/routing_strategy_list_response.rbs
|
|
925
|
-
- sig/courier/models/routing_strategy_mutation_response.rbs
|
|
926
954
|
- sig/courier/models/routing_strategy_replace_params.rbs
|
|
927
955
|
- sig/courier/models/routing_strategy_replace_request.rbs
|
|
928
956
|
- sig/courier/models/routing_strategy_retrieve_params.rbs
|
|
@@ -1019,7 +1047,6 @@ files:
|
|
|
1019
1047
|
- sig/courier/resources/messages.rbs
|
|
1020
1048
|
- sig/courier/resources/notifications.rbs
|
|
1021
1049
|
- sig/courier/resources/notifications/checks.rbs
|
|
1022
|
-
- sig/courier/resources/notifications/draft.rbs
|
|
1023
1050
|
- sig/courier/resources/profiles.rbs
|
|
1024
1051
|
- sig/courier/resources/profiles/lists.rbs
|
|
1025
1052
|
- sig/courier/resources/providers.rbs
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Courier
|
|
4
|
-
module Models
|
|
5
|
-
# @see Courier::Resources::Notifications#create
|
|
6
|
-
class NotificationTemplateMutationResponse < Courier::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute notification
|
|
8
|
-
#
|
|
9
|
-
# @return [Courier::Models::NotificationTemplateMutationResponse::Notification]
|
|
10
|
-
required :notification, -> { Courier::NotificationTemplateMutationResponse::Notification }
|
|
11
|
-
|
|
12
|
-
# @!attribute state
|
|
13
|
-
# The template state after the operation. Always uppercase.
|
|
14
|
-
#
|
|
15
|
-
# @return [Symbol, Courier::Models::NotificationTemplateMutationResponse::State]
|
|
16
|
-
required :state, enum: -> { Courier::NotificationTemplateMutationResponse::State }
|
|
17
|
-
|
|
18
|
-
# @!method initialize(notification:, state:)
|
|
19
|
-
# Response returned by POST and PUT operations.
|
|
20
|
-
#
|
|
21
|
-
# @param notification [Courier::Models::NotificationTemplateMutationResponse::Notification]
|
|
22
|
-
#
|
|
23
|
-
# @param state [Symbol, Courier::Models::NotificationTemplateMutationResponse::State] The template state after the operation. Always uppercase.
|
|
24
|
-
|
|
25
|
-
# @see Courier::Models::NotificationTemplateMutationResponse#notification
|
|
26
|
-
class Notification < Courier::Internal::Type::BaseModel
|
|
27
|
-
# @!attribute id
|
|
28
|
-
# The ID of the created or updated template.
|
|
29
|
-
#
|
|
30
|
-
# @return [String]
|
|
31
|
-
required :id, String
|
|
32
|
-
|
|
33
|
-
# @!method initialize(id:)
|
|
34
|
-
# @param id [String] The ID of the created or updated template.
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# The template state after the operation. Always uppercase.
|
|
38
|
-
#
|
|
39
|
-
# @see Courier::Models::NotificationTemplateMutationResponse#state
|
|
40
|
-
module State
|
|
41
|
-
extend Courier::Internal::Type::Enum
|
|
42
|
-
|
|
43
|
-
DRAFT = :DRAFT
|
|
44
|
-
PUBLISHED = :PUBLISHED
|
|
45
|
-
|
|
46
|
-
# @!method self.values
|
|
47
|
-
# @return [Array<Symbol>]
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Courier
|
|
4
|
-
module Models
|
|
5
|
-
module Notifications
|
|
6
|
-
# @see Courier::Resources::Notifications::Draft#retrieve_content
|
|
7
|
-
class DraftRetrieveContentParams < Courier::Internal::Type::BaseModel
|
|
8
|
-
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include Courier::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
# @!attribute id
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :id, String
|
|
15
|
-
|
|
16
|
-
# @!method initialize(id:, request_options: {})
|
|
17
|
-
# @param id [String]
|
|
18
|
-
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|