trycourier 4.6.3 → 4.7.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 +19 -0
- data/README.md +1 -1
- data/lib/courier/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/courier/models/post_tenant_template_publish_request.rb +22 -0
- data/lib/courier/models/post_tenant_template_publish_response.rb +34 -0
- data/lib/courier/models/put_tenant_template_request.rb +31 -0
- data/lib/courier/models/put_tenant_template_response.rb +38 -0
- data/lib/courier/models/send_message_params.rb +49 -3
- data/lib/courier/models/tenant_template_input.rb +192 -0
- data/lib/courier/models/tenants/template_publish_params.rb +22 -0
- data/lib/courier/models/tenants/template_replace_params.rb +22 -0
- data/lib/courier/models/tenants/templates/version_retrieve_params.rb +30 -0
- data/lib/courier/models.rb +10 -0
- data/lib/courier/resources/tenants/templates/versions.rb +60 -0
- data/lib/courier/resources/tenants/templates.rb +81 -0
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +9 -0
- data/rbi/courier/models/post_tenant_template_publish_request.rbi +36 -0
- data/rbi/courier/models/post_tenant_template_publish_response.rbi +49 -0
- data/rbi/courier/models/put_tenant_template_request.rbi +53 -0
- data/rbi/courier/models/put_tenant_template_response.rbi +52 -0
- data/rbi/courier/models/send_message_params.rbi +86 -4
- data/rbi/courier/models/tenant_template_input.rbi +408 -0
- data/rbi/courier/models/tenants/template_publish_params.rbi +40 -0
- data/rbi/courier/models/tenants/template_replace_params.rbi +40 -0
- data/rbi/courier/models/tenants/templates/version_retrieve_params.rbi +50 -0
- data/rbi/courier/models.rbi +12 -0
- data/rbi/courier/resources/tenants/templates/versions.rbi +43 -0
- data/rbi/courier/resources/tenants/templates.rbi +59 -0
- data/sig/courier/models/post_tenant_template_publish_request.rbs +15 -0
- data/sig/courier/models/post_tenant_template_publish_response.rbs +22 -0
- data/sig/courier/models/put_tenant_template_request.rbs +24 -0
- data/sig/courier/models/put_tenant_template_response.rbs +22 -0
- data/sig/courier/models/send_message_params.rbs +19 -0
- data/sig/courier/models/tenant_template_input.rbs +167 -0
- data/sig/courier/models/tenants/template_publish_params.rbs +27 -0
- data/sig/courier/models/tenants/template_replace_params.rbs +27 -0
- data/sig/courier/models/tenants/templates/version_retrieve_params.rbs +32 -0
- data/sig/courier/models.rbs +10 -0
- data/sig/courier/resources/tenants/templates/versions.rbs +18 -0
- data/sig/courier/resources/tenants/templates.rbs +17 -0
- metadata +29 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type post_tenant_template_publish_response =
|
|
4
|
+
{ id: String, published_at: String, version: String }
|
|
5
|
+
|
|
6
|
+
class PostTenantTemplatePublishResponse < Courier::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor id: String
|
|
8
|
+
|
|
9
|
+
attr_accessor published_at: String
|
|
10
|
+
|
|
11
|
+
attr_accessor version: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
id: String,
|
|
15
|
+
published_at: String,
|
|
16
|
+
version: String
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { id: String, published_at: String, version: String }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type put_tenant_template_request =
|
|
4
|
+
{ template: Courier::TenantTemplateInput, published: bool }
|
|
5
|
+
|
|
6
|
+
class PutTenantTemplateRequest < Courier::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor template: Courier::TenantTemplateInput
|
|
8
|
+
|
|
9
|
+
attr_reader published: bool?
|
|
10
|
+
|
|
11
|
+
def published=: (bool) -> bool
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
template: Courier::TenantTemplateInput,
|
|
15
|
+
?published: bool
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
template: Courier::TenantTemplateInput,
|
|
20
|
+
published: bool
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type put_tenant_template_response =
|
|
4
|
+
{ id: String, version: String, published_at: String? }
|
|
5
|
+
|
|
6
|
+
class PutTenantTemplateResponse < Courier::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor id: String
|
|
8
|
+
|
|
9
|
+
attr_accessor version: String
|
|
10
|
+
|
|
11
|
+
attr_accessor published_at: String?
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
id: String,
|
|
15
|
+
version: String,
|
|
16
|
+
?published_at: String?
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { id: String, version: String, published_at: String? }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -422,11 +422,30 @@ module Courier
|
|
|
422
422
|
| Courier::MsTeamsRecipient
|
|
423
423
|
| Courier::PagerdutyRecipient
|
|
424
424
|
| Courier::WebhookRecipient
|
|
425
|
+
| ::Array[Courier::Models::SendMessageParams::Message::To::union_member8]
|
|
425
426
|
|
|
426
427
|
module To
|
|
427
428
|
extend Courier::Internal::Type::Union
|
|
428
429
|
|
|
430
|
+
type union_member8 =
|
|
431
|
+
Courier::UserRecipient
|
|
432
|
+
| Courier::AudienceRecipient
|
|
433
|
+
| Courier::ListRecipient
|
|
434
|
+
| Courier::ListPatternRecipient
|
|
435
|
+
| Courier::SlackRecipient
|
|
436
|
+
| Courier::MsTeamsRecipient
|
|
437
|
+
| Courier::PagerdutyRecipient
|
|
438
|
+
| Courier::WebhookRecipient
|
|
439
|
+
|
|
440
|
+
module UnionMember8
|
|
441
|
+
extend Courier::Internal::Type::Union
|
|
442
|
+
|
|
443
|
+
def self?.variants: -> ::Array[Courier::Models::SendMessageParams::Message::To::union_member8]
|
|
444
|
+
end
|
|
445
|
+
|
|
429
446
|
def self?.variants: -> ::Array[Courier::Models::SendMessageParams::Message::to]
|
|
447
|
+
|
|
448
|
+
UnionMember8Array: Courier::Internal::Type::Converter
|
|
430
449
|
end
|
|
431
450
|
end
|
|
432
451
|
end
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type tenant_template_input =
|
|
4
|
+
{
|
|
5
|
+
content: Courier::ElementalContent,
|
|
6
|
+
channels: ::Hash[Symbol, Courier::TenantTemplateInput::Channel],
|
|
7
|
+
providers: ::Hash[Symbol, Courier::TenantTemplateInput::Provider],
|
|
8
|
+
routing: Courier::MessageRouting
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class TenantTemplateInput < Courier::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor content: Courier::ElementalContent
|
|
13
|
+
|
|
14
|
+
attr_reader channels: ::Hash[Symbol, Courier::TenantTemplateInput::Channel]?
|
|
15
|
+
|
|
16
|
+
def channels=: (
|
|
17
|
+
::Hash[Symbol, Courier::TenantTemplateInput::Channel]
|
|
18
|
+
) -> ::Hash[Symbol, Courier::TenantTemplateInput::Channel]
|
|
19
|
+
|
|
20
|
+
attr_reader providers: ::Hash[Symbol, Courier::TenantTemplateInput::Provider]?
|
|
21
|
+
|
|
22
|
+
def providers=: (
|
|
23
|
+
::Hash[Symbol, Courier::TenantTemplateInput::Provider]
|
|
24
|
+
) -> ::Hash[Symbol, Courier::TenantTemplateInput::Provider]
|
|
25
|
+
|
|
26
|
+
attr_reader routing: Courier::MessageRouting?
|
|
27
|
+
|
|
28
|
+
def routing=: (Courier::MessageRouting) -> Courier::MessageRouting
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
content: Courier::ElementalContent,
|
|
32
|
+
?channels: ::Hash[Symbol, Courier::TenantTemplateInput::Channel],
|
|
33
|
+
?providers: ::Hash[Symbol, Courier::TenantTemplateInput::Provider],
|
|
34
|
+
?routing: Courier::MessageRouting
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
content: Courier::ElementalContent,
|
|
39
|
+
channels: ::Hash[Symbol, Courier::TenantTemplateInput::Channel],
|
|
40
|
+
providers: ::Hash[Symbol, Courier::TenantTemplateInput::Provider],
|
|
41
|
+
routing: Courier::MessageRouting
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type channel =
|
|
45
|
+
{
|
|
46
|
+
brand_id: String?,
|
|
47
|
+
if_: String?,
|
|
48
|
+
metadata: Courier::TenantTemplateInput::Channel::Metadata?,
|
|
49
|
+
override: ::Hash[Symbol, top]?,
|
|
50
|
+
providers: ::Array[String]?,
|
|
51
|
+
routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?,
|
|
52
|
+
timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
class Channel < Courier::Internal::Type::BaseModel
|
|
56
|
+
attr_accessor brand_id: String?
|
|
57
|
+
|
|
58
|
+
attr_accessor if_: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor metadata: Courier::TenantTemplateInput::Channel::Metadata?
|
|
61
|
+
|
|
62
|
+
attr_accessor override: ::Hash[Symbol, top]?
|
|
63
|
+
|
|
64
|
+
attr_accessor providers: ::Array[String]?
|
|
65
|
+
|
|
66
|
+
attr_accessor routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?
|
|
67
|
+
|
|
68
|
+
attr_accessor timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
69
|
+
|
|
70
|
+
def initialize: (
|
|
71
|
+
?brand_id: String?,
|
|
72
|
+
?if_: String?,
|
|
73
|
+
?metadata: Courier::TenantTemplateInput::Channel::Metadata?,
|
|
74
|
+
?override: ::Hash[Symbol, top]?,
|
|
75
|
+
?providers: ::Array[String]?,
|
|
76
|
+
?routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?,
|
|
77
|
+
?timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
brand_id: String?,
|
|
82
|
+
if_: String?,
|
|
83
|
+
metadata: Courier::TenantTemplateInput::Channel::Metadata?,
|
|
84
|
+
override: ::Hash[Symbol, top]?,
|
|
85
|
+
providers: ::Array[String]?,
|
|
86
|
+
routing_method: Courier::Models::TenantTemplateInput::Channel::routing_method?,
|
|
87
|
+
timeouts: Courier::TenantTemplateInput::Channel::Timeouts?
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type metadata = { utm: Courier::Utm? }
|
|
91
|
+
|
|
92
|
+
class Metadata < Courier::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor utm: Courier::Utm?
|
|
94
|
+
|
|
95
|
+
def initialize: (?utm: Courier::Utm?) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> { utm: Courier::Utm? }
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
type routing_method = :all | :single
|
|
101
|
+
|
|
102
|
+
module RoutingMethod
|
|
103
|
+
extend Courier::Internal::Type::Enum
|
|
104
|
+
|
|
105
|
+
ALL: :all
|
|
106
|
+
SINGLE: :single
|
|
107
|
+
|
|
108
|
+
def self?.values: -> ::Array[Courier::Models::TenantTemplateInput::Channel::routing_method]
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
type timeouts = { channel: Integer?, provider: Integer? }
|
|
112
|
+
|
|
113
|
+
class Timeouts < Courier::Internal::Type::BaseModel
|
|
114
|
+
attr_accessor channel: Integer?
|
|
115
|
+
|
|
116
|
+
attr_accessor provider: Integer?
|
|
117
|
+
|
|
118
|
+
def initialize: (?channel: Integer?, ?provider: Integer?) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> { channel: Integer?, provider: Integer? }
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
type provider =
|
|
125
|
+
{
|
|
126
|
+
if_: String?,
|
|
127
|
+
metadata: Courier::TenantTemplateInput::Provider::Metadata?,
|
|
128
|
+
override: ::Hash[Symbol, top]?,
|
|
129
|
+
timeouts: Integer?
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
class Provider < Courier::Internal::Type::BaseModel
|
|
133
|
+
attr_accessor if_: String?
|
|
134
|
+
|
|
135
|
+
attr_accessor metadata: Courier::TenantTemplateInput::Provider::Metadata?
|
|
136
|
+
|
|
137
|
+
attr_accessor override: ::Hash[Symbol, top]?
|
|
138
|
+
|
|
139
|
+
attr_accessor timeouts: Integer?
|
|
140
|
+
|
|
141
|
+
def initialize: (
|
|
142
|
+
?if_: String?,
|
|
143
|
+
?metadata: Courier::TenantTemplateInput::Provider::Metadata?,
|
|
144
|
+
?override: ::Hash[Symbol, top]?,
|
|
145
|
+
?timeouts: Integer?
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
if_: String?,
|
|
150
|
+
metadata: Courier::TenantTemplateInput::Provider::Metadata?,
|
|
151
|
+
override: ::Hash[Symbol, top]?,
|
|
152
|
+
timeouts: Integer?
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type metadata = { utm: Courier::Utm? }
|
|
156
|
+
|
|
157
|
+
class Metadata < Courier::Internal::Type::BaseModel
|
|
158
|
+
attr_accessor utm: Courier::Utm?
|
|
159
|
+
|
|
160
|
+
def initialize: (?utm: Courier::Utm?) -> void
|
|
161
|
+
|
|
162
|
+
def to_hash: -> { utm: Courier::Utm? }
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module Tenants
|
|
4
|
+
type template_publish_params =
|
|
5
|
+
{ tenant_id: String } & Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class TemplatePublishParams < Courier::Models::PostTenantTemplatePublishRequest
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def tenant_id: -> String
|
|
12
|
+
|
|
13
|
+
def tenant_id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
tenant_id: String,
|
|
17
|
+
?request_options: Courier::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
tenant_id: String,
|
|
22
|
+
request_options: Courier::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module Tenants
|
|
4
|
+
type template_replace_params =
|
|
5
|
+
{ tenant_id: String } & Courier::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class TemplateReplaceParams < Courier::Models::PutTenantTemplateRequest
|
|
8
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Courier::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def tenant_id: -> String
|
|
12
|
+
|
|
13
|
+
def tenant_id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
tenant_id: String,
|
|
17
|
+
?request_options: Courier::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
tenant_id: String,
|
|
22
|
+
request_options: Courier::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
module Tenants
|
|
4
|
+
module Templates
|
|
5
|
+
type version_retrieve_params =
|
|
6
|
+
{ tenant_id: String, template_id: String }
|
|
7
|
+
& Courier::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class VersionRetrieveParams < Courier::Internal::Type::BaseModel
|
|
10
|
+
extend Courier::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Courier::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor tenant_id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor template_id: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
tenant_id: String,
|
|
19
|
+
template_id: String,
|
|
20
|
+
?request_options: Courier::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
tenant_id: String,
|
|
25
|
+
template_id: String,
|
|
26
|
+
request_options: Courier::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
data/sig/courier/models.rbs
CHANGED
|
@@ -201,6 +201,10 @@ module Courier
|
|
|
201
201
|
|
|
202
202
|
class Paging = Courier::Models::Paging
|
|
203
203
|
|
|
204
|
+
class PostTenantTemplatePublishRequest = Courier::Models::PostTenantTemplatePublishRequest
|
|
205
|
+
|
|
206
|
+
class PostTenantTemplatePublishResponse = Courier::Models::PostTenantTemplatePublishResponse
|
|
207
|
+
|
|
204
208
|
class Preference = Courier::Models::Preference
|
|
205
209
|
|
|
206
210
|
module PreferenceStatus = Courier::Models::PreferenceStatus
|
|
@@ -219,6 +223,10 @@ module Courier
|
|
|
219
223
|
|
|
220
224
|
class PutSubscriptionsRecipient = Courier::Models::PutSubscriptionsRecipient
|
|
221
225
|
|
|
226
|
+
class PutTenantTemplateRequest = Courier::Models::PutTenantTemplateRequest
|
|
227
|
+
|
|
228
|
+
class PutTenantTemplateResponse = Courier::Models::PutTenantTemplateResponse
|
|
229
|
+
|
|
222
230
|
class RecipientPreferences = Courier::Models::RecipientPreferences
|
|
223
231
|
|
|
224
232
|
class RequestArchiveParams = Courier::Models::RequestArchiveParams
|
|
@@ -273,6 +281,8 @@ module Courier
|
|
|
273
281
|
|
|
274
282
|
module Tenants = Courier::Models::Tenants
|
|
275
283
|
|
|
284
|
+
class TenantTemplateInput = Courier::Models::TenantTemplateInput
|
|
285
|
+
|
|
276
286
|
class TenantUpdateParams = Courier::Models::TenantUpdateParams
|
|
277
287
|
|
|
278
288
|
module TextStyle = Courier::Models::TextStyle
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Resources
|
|
3
|
+
class Tenants
|
|
4
|
+
class Templates
|
|
5
|
+
class Versions
|
|
6
|
+
def retrieve: (
|
|
7
|
+
String version,
|
|
8
|
+
tenant_id: String,
|
|
9
|
+
template_id: String,
|
|
10
|
+
?request_options: Courier::request_opts
|
|
11
|
+
) -> Courier::BaseTemplateTenantAssociation
|
|
12
|
+
|
|
13
|
+
def initialize: (client: Courier::Client) -> void
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -2,6 +2,8 @@ module Courier
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Tenants
|
|
4
4
|
class Templates
|
|
5
|
+
attr_reader versions: Courier::Resources::Tenants::Templates::Versions
|
|
6
|
+
|
|
5
7
|
def retrieve: (
|
|
6
8
|
String template_id,
|
|
7
9
|
tenant_id: String,
|
|
@@ -15,6 +17,21 @@ module Courier
|
|
|
15
17
|
?request_options: Courier::request_opts
|
|
16
18
|
) -> Courier::Models::Tenants::TemplateListResponse
|
|
17
19
|
|
|
20
|
+
def publish: (
|
|
21
|
+
String template_id,
|
|
22
|
+
tenant_id: String,
|
|
23
|
+
?version: String,
|
|
24
|
+
?request_options: Courier::request_opts
|
|
25
|
+
) -> Courier::PostTenantTemplatePublishResponse
|
|
26
|
+
|
|
27
|
+
def replace: (
|
|
28
|
+
String template_id,
|
|
29
|
+
tenant_id: String,
|
|
30
|
+
template: Courier::TenantTemplateInput,
|
|
31
|
+
?published: bool,
|
|
32
|
+
?request_options: Courier::request_opts
|
|
33
|
+
) -> Courier::PutTenantTemplateResponse
|
|
34
|
+
|
|
18
35
|
def initialize: (client: Courier::Client) -> void
|
|
19
36
|
end
|
|
20
37
|
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.7.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-
|
|
11
|
+
date: 2026-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -197,6 +197,8 @@ files:
|
|
|
197
197
|
- lib/courier/models/pagerduty.rb
|
|
198
198
|
- lib/courier/models/pagerduty_recipient.rb
|
|
199
199
|
- lib/courier/models/paging.rb
|
|
200
|
+
- lib/courier/models/post_tenant_template_publish_request.rb
|
|
201
|
+
- lib/courier/models/post_tenant_template_publish_response.rb
|
|
200
202
|
- lib/courier/models/preference.rb
|
|
201
203
|
- lib/courier/models/preference_status.rb
|
|
202
204
|
- lib/courier/models/profile_create_params.rb
|
|
@@ -214,6 +216,8 @@ files:
|
|
|
214
216
|
- lib/courier/models/profiles/list_subscribe_params.rb
|
|
215
217
|
- lib/courier/models/profiles/list_subscribe_response.rb
|
|
216
218
|
- lib/courier/models/put_subscriptions_recipient.rb
|
|
219
|
+
- lib/courier/models/put_tenant_template_request.rb
|
|
220
|
+
- lib/courier/models/put_tenant_template_response.rb
|
|
217
221
|
- lib/courier/models/recipient_preferences.rb
|
|
218
222
|
- lib/courier/models/request_archive_params.rb
|
|
219
223
|
- lib/courier/models/rule.rb
|
|
@@ -243,12 +247,16 @@ files:
|
|
|
243
247
|
- lib/courier/models/tenant_list_users_params.rb
|
|
244
248
|
- lib/courier/models/tenant_list_users_response.rb
|
|
245
249
|
- lib/courier/models/tenant_retrieve_params.rb
|
|
250
|
+
- lib/courier/models/tenant_template_input.rb
|
|
246
251
|
- lib/courier/models/tenant_update_params.rb
|
|
247
252
|
- lib/courier/models/tenants/preferences/item_delete_params.rb
|
|
248
253
|
- lib/courier/models/tenants/preferences/item_update_params.rb
|
|
249
254
|
- lib/courier/models/tenants/template_list_params.rb
|
|
250
255
|
- lib/courier/models/tenants/template_list_response.rb
|
|
256
|
+
- lib/courier/models/tenants/template_publish_params.rb
|
|
257
|
+
- lib/courier/models/tenants/template_replace_params.rb
|
|
251
258
|
- lib/courier/models/tenants/template_retrieve_params.rb
|
|
259
|
+
- lib/courier/models/tenants/templates/version_retrieve_params.rb
|
|
252
260
|
- lib/courier/models/text_style.rb
|
|
253
261
|
- lib/courier/models/token.rb
|
|
254
262
|
- lib/courier/models/translation_retrieve_params.rb
|
|
@@ -310,6 +318,7 @@ files:
|
|
|
310
318
|
- lib/courier/resources/tenants/preferences.rb
|
|
311
319
|
- lib/courier/resources/tenants/preferences/items.rb
|
|
312
320
|
- lib/courier/resources/tenants/templates.rb
|
|
321
|
+
- lib/courier/resources/tenants/templates/versions.rb
|
|
313
322
|
- lib/courier/resources/translations.rb
|
|
314
323
|
- lib/courier/resources/users.rb
|
|
315
324
|
- lib/courier/resources/users/preferences.rb
|
|
@@ -464,6 +473,8 @@ files:
|
|
|
464
473
|
- rbi/courier/models/pagerduty.rbi
|
|
465
474
|
- rbi/courier/models/pagerduty_recipient.rbi
|
|
466
475
|
- rbi/courier/models/paging.rbi
|
|
476
|
+
- rbi/courier/models/post_tenant_template_publish_request.rbi
|
|
477
|
+
- rbi/courier/models/post_tenant_template_publish_response.rbi
|
|
467
478
|
- rbi/courier/models/preference.rbi
|
|
468
479
|
- rbi/courier/models/preference_status.rbi
|
|
469
480
|
- rbi/courier/models/profile_create_params.rbi
|
|
@@ -481,6 +492,8 @@ files:
|
|
|
481
492
|
- rbi/courier/models/profiles/list_subscribe_params.rbi
|
|
482
493
|
- rbi/courier/models/profiles/list_subscribe_response.rbi
|
|
483
494
|
- rbi/courier/models/put_subscriptions_recipient.rbi
|
|
495
|
+
- rbi/courier/models/put_tenant_template_request.rbi
|
|
496
|
+
- rbi/courier/models/put_tenant_template_response.rbi
|
|
484
497
|
- rbi/courier/models/recipient_preferences.rbi
|
|
485
498
|
- rbi/courier/models/request_archive_params.rbi
|
|
486
499
|
- rbi/courier/models/rule.rbi
|
|
@@ -510,12 +523,16 @@ files:
|
|
|
510
523
|
- rbi/courier/models/tenant_list_users_params.rbi
|
|
511
524
|
- rbi/courier/models/tenant_list_users_response.rbi
|
|
512
525
|
- rbi/courier/models/tenant_retrieve_params.rbi
|
|
526
|
+
- rbi/courier/models/tenant_template_input.rbi
|
|
513
527
|
- rbi/courier/models/tenant_update_params.rbi
|
|
514
528
|
- rbi/courier/models/tenants/preferences/item_delete_params.rbi
|
|
515
529
|
- rbi/courier/models/tenants/preferences/item_update_params.rbi
|
|
516
530
|
- rbi/courier/models/tenants/template_list_params.rbi
|
|
517
531
|
- rbi/courier/models/tenants/template_list_response.rbi
|
|
532
|
+
- rbi/courier/models/tenants/template_publish_params.rbi
|
|
533
|
+
- rbi/courier/models/tenants/template_replace_params.rbi
|
|
518
534
|
- rbi/courier/models/tenants/template_retrieve_params.rbi
|
|
535
|
+
- rbi/courier/models/tenants/templates/version_retrieve_params.rbi
|
|
519
536
|
- rbi/courier/models/text_style.rbi
|
|
520
537
|
- rbi/courier/models/token.rbi
|
|
521
538
|
- rbi/courier/models/translation_retrieve_params.rbi
|
|
@@ -577,6 +594,7 @@ files:
|
|
|
577
594
|
- rbi/courier/resources/tenants/preferences.rbi
|
|
578
595
|
- rbi/courier/resources/tenants/preferences/items.rbi
|
|
579
596
|
- rbi/courier/resources/tenants/templates.rbi
|
|
597
|
+
- rbi/courier/resources/tenants/templates/versions.rbi
|
|
580
598
|
- rbi/courier/resources/translations.rbi
|
|
581
599
|
- rbi/courier/resources/users.rbi
|
|
582
600
|
- rbi/courier/resources/users/preferences.rbi
|
|
@@ -730,6 +748,8 @@ files:
|
|
|
730
748
|
- sig/courier/models/pagerduty.rbs
|
|
731
749
|
- sig/courier/models/pagerduty_recipient.rbs
|
|
732
750
|
- sig/courier/models/paging.rbs
|
|
751
|
+
- sig/courier/models/post_tenant_template_publish_request.rbs
|
|
752
|
+
- sig/courier/models/post_tenant_template_publish_response.rbs
|
|
733
753
|
- sig/courier/models/preference.rbs
|
|
734
754
|
- sig/courier/models/preference_status.rbs
|
|
735
755
|
- sig/courier/models/profile_create_params.rbs
|
|
@@ -747,6 +767,8 @@ files:
|
|
|
747
767
|
- sig/courier/models/profiles/list_subscribe_params.rbs
|
|
748
768
|
- sig/courier/models/profiles/list_subscribe_response.rbs
|
|
749
769
|
- sig/courier/models/put_subscriptions_recipient.rbs
|
|
770
|
+
- sig/courier/models/put_tenant_template_request.rbs
|
|
771
|
+
- sig/courier/models/put_tenant_template_response.rbs
|
|
750
772
|
- sig/courier/models/recipient_preferences.rbs
|
|
751
773
|
- sig/courier/models/request_archive_params.rbs
|
|
752
774
|
- sig/courier/models/rule.rbs
|
|
@@ -776,12 +798,16 @@ files:
|
|
|
776
798
|
- sig/courier/models/tenant_list_users_params.rbs
|
|
777
799
|
- sig/courier/models/tenant_list_users_response.rbs
|
|
778
800
|
- sig/courier/models/tenant_retrieve_params.rbs
|
|
801
|
+
- sig/courier/models/tenant_template_input.rbs
|
|
779
802
|
- sig/courier/models/tenant_update_params.rbs
|
|
780
803
|
- sig/courier/models/tenants/preferences/item_delete_params.rbs
|
|
781
804
|
- sig/courier/models/tenants/preferences/item_update_params.rbs
|
|
782
805
|
- sig/courier/models/tenants/template_list_params.rbs
|
|
783
806
|
- sig/courier/models/tenants/template_list_response.rbs
|
|
807
|
+
- sig/courier/models/tenants/template_publish_params.rbs
|
|
808
|
+
- sig/courier/models/tenants/template_replace_params.rbs
|
|
784
809
|
- sig/courier/models/tenants/template_retrieve_params.rbs
|
|
810
|
+
- sig/courier/models/tenants/templates/version_retrieve_params.rbs
|
|
785
811
|
- sig/courier/models/text_style.rbs
|
|
786
812
|
- sig/courier/models/token.rbs
|
|
787
813
|
- sig/courier/models/translation_retrieve_params.rbs
|
|
@@ -843,6 +869,7 @@ files:
|
|
|
843
869
|
- sig/courier/resources/tenants/preferences.rbs
|
|
844
870
|
- sig/courier/resources/tenants/preferences/items.rbs
|
|
845
871
|
- sig/courier/resources/tenants/templates.rbs
|
|
872
|
+
- sig/courier/resources/tenants/templates/versions.rbs
|
|
846
873
|
- sig/courier/resources/translations.rbs
|
|
847
874
|
- sig/courier/resources/users.rbs
|
|
848
875
|
- sig/courier/resources/users/preferences.rbs
|