trycourier 4.26.1 → 4.26.2
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 +8 -0
- data/README.md +1 -1
- data/lib/courier/resources/broadcasts.rb +16 -9
- data/lib/courier/resources/bulk.rb +8 -3
- data/lib/courier/version.rb +1 -1
- data/rbi/courier/resources/broadcasts.rbi +26 -4
- data/rbi/courier/resources/bulk.rbi +8 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f62c9ba0ccf68a6be91bb13460ab3d7ed38815cd7d2827eba3f0b6c5460598b
|
|
4
|
+
data.tar.gz: 7d3026d94cc1db562eb020e2e145eacbb67bd5adeada9e29010e60143bdba7ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aed6dce51f5f53597c0b64f394f29cec87c693790996d74d7fc6aaac652a724fe31dda9c3068e0c355888349cf0cb2249db1f8c70126c6f4eea85af0c75c70e6
|
|
7
|
+
data.tar.gz: b2b494e23b204e033f15d79fe44aa38b601443a515915955c678770878268e68700793bd1542036c405a7e8b0cef24db72d4d33576dd73bdd94d295bc51fe148
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.26.2](https://github.com/trycourier/courier-ruby/compare/v4.26.1...v4.26.2) (2026-08-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Documentation
|
|
7
|
+
|
|
8
|
+
* **api:** describe every broadcast id path parameter ([#120](https://github.com/trycourier/courier-ruby/issues/120)) ([2f4031e](https://github.com/trycourier/courier-ruby/commit/2f4031e65786588609fcf21e8cc7b42b3813eed7))
|
|
9
|
+
* **api:** say what the bulk job endpoints return ([#122](https://github.com/trycourier/courier-ruby/issues/122)) ([e5f3d75](https://github.com/trycourier/courier-ruby/commit/e5f3d7576f1b682fa395d3d7ef05c7dfb69ea922))
|
|
10
|
+
|
|
3
11
|
## [4.26.1](https://github.com/trycourier/courier-ruby/compare/v4.26.0...v4.26.1) (2026-08-13)
|
|
4
12
|
|
|
5
13
|
|
data/README.md
CHANGED
|
@@ -35,7 +35,8 @@ module Courier
|
|
|
35
35
|
#
|
|
36
36
|
# @overload retrieve(broadcast_id, request_options: {})
|
|
37
37
|
#
|
|
38
|
-
# @param broadcast_id [String]
|
|
38
|
+
# @param broadcast_id [String] The broadcast to retrieve, identified by the `id` returned when it was created.
|
|
39
|
+
#
|
|
39
40
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
40
41
|
#
|
|
41
42
|
# @return [Courier::Models::Broadcast]
|
|
@@ -55,7 +56,7 @@ module Courier
|
|
|
55
56
|
#
|
|
56
57
|
# @overload update(broadcast_id, name:, request_options: {})
|
|
57
58
|
#
|
|
58
|
-
# @param broadcast_id [String]
|
|
59
|
+
# @param broadcast_id [String] The broadcast to rename.
|
|
59
60
|
#
|
|
60
61
|
# @param name [String] New human-readable name.
|
|
61
62
|
#
|
|
@@ -106,7 +107,8 @@ module Courier
|
|
|
106
107
|
#
|
|
107
108
|
# @overload archive(broadcast_id, request_options: {})
|
|
108
109
|
#
|
|
109
|
-
# @param broadcast_id [String]
|
|
110
|
+
# @param broadcast_id [String] The broadcast to archive.
|
|
111
|
+
#
|
|
110
112
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
111
113
|
#
|
|
112
114
|
# @return [Courier::Models::Broadcast]
|
|
@@ -126,7 +128,8 @@ module Courier
|
|
|
126
128
|
#
|
|
127
129
|
# @overload cancel(broadcast_id, request_options: {})
|
|
128
130
|
#
|
|
129
|
-
# @param broadcast_id [String]
|
|
131
|
+
# @param broadcast_id [String] The broadcast to cancel.
|
|
132
|
+
#
|
|
130
133
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
131
134
|
#
|
|
132
135
|
# @return [Courier::Models::Broadcast]
|
|
@@ -141,12 +144,16 @@ module Courier
|
|
|
141
144
|
)
|
|
142
145
|
end
|
|
143
146
|
|
|
147
|
+
# Some parameter documentations has been truncated, see
|
|
148
|
+
# {Courier::Models::BroadcastDuplicateParams} for more details.
|
|
149
|
+
#
|
|
144
150
|
# Duplicate a broadcast (and its template) into a new draft named "{source name}
|
|
145
151
|
# (copy)".
|
|
146
152
|
#
|
|
147
153
|
# @overload duplicate(broadcast_id, request_options: {})
|
|
148
154
|
#
|
|
149
|
-
# @param broadcast_id [String]
|
|
155
|
+
# @param broadcast_id [String] The broadcast to copy. The duplicate is created as a new draft and this broadcas
|
|
156
|
+
#
|
|
150
157
|
# @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
151
158
|
#
|
|
152
159
|
# @return [Courier::Models::Broadcast]
|
|
@@ -167,7 +174,7 @@ module Courier
|
|
|
167
174
|
#
|
|
168
175
|
# @overload put_content(broadcast_id, content:, state: nil, request_options: {})
|
|
169
176
|
#
|
|
170
|
-
# @param broadcast_id [String]
|
|
177
|
+
# @param broadcast_id [String] The broadcast whose content you want to replace.
|
|
171
178
|
#
|
|
172
179
|
# @param content [Courier::Models::NotificationContentPutRequest::Content] Elemental content payload. The server defaults `version` when omitted.
|
|
173
180
|
#
|
|
@@ -198,7 +205,7 @@ module Courier
|
|
|
198
205
|
#
|
|
199
206
|
# @overload retrieve_content(broadcast_id, version: nil, request_options: {})
|
|
200
207
|
#
|
|
201
|
-
# @param broadcast_id [String]
|
|
208
|
+
# @param broadcast_id [String] The broadcast whose content you want to read.
|
|
202
209
|
#
|
|
203
210
|
# @param version [String] Accepts `draft`, `published`, or a version string (e.g. `v001`). Defaults to `dr
|
|
204
211
|
#
|
|
@@ -228,7 +235,7 @@ module Courier
|
|
|
228
235
|
#
|
|
229
236
|
# @overload schedule(broadcast_id, recipient_id:, recipient_type:, scheduled_to:, timezone: nil, request_options: {})
|
|
230
237
|
#
|
|
231
|
-
# @param broadcast_id [String]
|
|
238
|
+
# @param broadcast_id [String] The broadcast to schedule.
|
|
232
239
|
#
|
|
233
240
|
# @param recipient_id [String] ID of the target list or audience.
|
|
234
241
|
#
|
|
@@ -259,7 +266,7 @@ module Courier
|
|
|
259
266
|
#
|
|
260
267
|
# @overload send_(broadcast_id, recipient_id:, recipient_type:, request_options: {})
|
|
261
268
|
#
|
|
262
|
-
# @param broadcast_id [String]
|
|
269
|
+
# @param broadcast_id [String] The broadcast to send.
|
|
263
270
|
#
|
|
264
271
|
# @param recipient_id [String] ID of the target list or audience.
|
|
265
272
|
#
|
|
@@ -65,7 +65,8 @@ module Courier
|
|
|
65
65
|
# Some parameter documentations has been truncated, see
|
|
66
66
|
# {Courier::Models::BulkListUsersParams} for more details.
|
|
67
67
|
#
|
|
68
|
-
#
|
|
68
|
+
# Returns the users ingested into a bulk job with paging, each carrying the status
|
|
69
|
+
# Courier recorded for it and the id of the message it produced.
|
|
69
70
|
#
|
|
70
71
|
# @overload list_users(job_id, cursor: nil, request_options: {})
|
|
71
72
|
#
|
|
@@ -90,7 +91,9 @@ module Courier
|
|
|
90
91
|
)
|
|
91
92
|
end
|
|
92
93
|
|
|
93
|
-
#
|
|
94
|
+
# Returns a bulk job's message definition, its status — CREATED, PROCESSING,
|
|
95
|
+
# COMPLETED, or ERROR — and running counts of users received, messages enqueued,
|
|
96
|
+
# and failures. Poll it to follow a job through to completion.
|
|
94
97
|
#
|
|
95
98
|
# @overload retrieve_job(job_id, request_options: {})
|
|
96
99
|
#
|
|
@@ -110,7 +113,9 @@ module Courier
|
|
|
110
113
|
)
|
|
111
114
|
end
|
|
112
115
|
|
|
113
|
-
#
|
|
116
|
+
# Starts processing a bulk job, sending to every user ingested into it. Returns
|
|
117
|
+
# 204 immediately; the job runs asynchronously, so poll the job to watch its
|
|
118
|
+
# status and counts.
|
|
114
119
|
#
|
|
115
120
|
# @overload run_job(job_id, request_options: {})
|
|
116
121
|
#
|
data/lib/courier/version.rb
CHANGED
|
@@ -31,7 +31,11 @@ module Courier
|
|
|
31
31
|
request_options: Courier::RequestOptions::OrHash
|
|
32
32
|
).returns(Courier::Broadcast)
|
|
33
33
|
end
|
|
34
|
-
def retrieve(
|
|
34
|
+
def retrieve(
|
|
35
|
+
# The broadcast to retrieve, identified by the `id` returned when it was created.
|
|
36
|
+
broadcast_id,
|
|
37
|
+
request_options: {}
|
|
38
|
+
)
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
# Update a broadcast's name. Content is edited via the broadcast's notification
|
|
@@ -44,6 +48,7 @@ module Courier
|
|
|
44
48
|
).returns(Courier::Broadcast)
|
|
45
49
|
end
|
|
46
50
|
def update(
|
|
51
|
+
# The broadcast to rename.
|
|
47
52
|
broadcast_id,
|
|
48
53
|
# New human-readable name.
|
|
49
54
|
name:,
|
|
@@ -77,7 +82,11 @@ module Courier
|
|
|
77
82
|
request_options: Courier::RequestOptions::OrHash
|
|
78
83
|
).returns(Courier::Broadcast)
|
|
79
84
|
end
|
|
80
|
-
def archive(
|
|
85
|
+
def archive(
|
|
86
|
+
# The broadcast to archive.
|
|
87
|
+
broadcast_id,
|
|
88
|
+
request_options: {}
|
|
89
|
+
)
|
|
81
90
|
end
|
|
82
91
|
|
|
83
92
|
# Cancel a broadcast's pending schedule, returning it to the draft state. Only
|
|
@@ -88,7 +97,11 @@ module Courier
|
|
|
88
97
|
request_options: Courier::RequestOptions::OrHash
|
|
89
98
|
).returns(Courier::Broadcast)
|
|
90
99
|
end
|
|
91
|
-
def cancel(
|
|
100
|
+
def cancel(
|
|
101
|
+
# The broadcast to cancel.
|
|
102
|
+
broadcast_id,
|
|
103
|
+
request_options: {}
|
|
104
|
+
)
|
|
92
105
|
end
|
|
93
106
|
|
|
94
107
|
# Duplicate a broadcast (and its template) into a new draft named "{source name}
|
|
@@ -99,7 +112,12 @@ module Courier
|
|
|
99
112
|
request_options: Courier::RequestOptions::OrHash
|
|
100
113
|
).returns(Courier::Broadcast)
|
|
101
114
|
end
|
|
102
|
-
def duplicate(
|
|
115
|
+
def duplicate(
|
|
116
|
+
# The broadcast to copy. The duplicate is created as a new draft and this
|
|
117
|
+
# broadcast is left unchanged.
|
|
118
|
+
broadcast_id,
|
|
119
|
+
request_options: {}
|
|
120
|
+
)
|
|
103
121
|
end
|
|
104
122
|
|
|
105
123
|
# Author the broadcast's content by replacing the draft elemental content of its
|
|
@@ -114,6 +132,7 @@ module Courier
|
|
|
114
132
|
).returns(Courier::NotificationContentMutationResponse)
|
|
115
133
|
end
|
|
116
134
|
def put_content(
|
|
135
|
+
# The broadcast whose content you want to replace.
|
|
117
136
|
broadcast_id,
|
|
118
137
|
# Elemental content payload. The server defaults `version` when omitted.
|
|
119
138
|
content:,
|
|
@@ -134,6 +153,7 @@ module Courier
|
|
|
134
153
|
).returns(Courier::NotificationContentGetResponse)
|
|
135
154
|
end
|
|
136
155
|
def retrieve_content(
|
|
156
|
+
# The broadcast whose content you want to read.
|
|
137
157
|
broadcast_id,
|
|
138
158
|
# Accepts `draft`, `published`, or a version string (e.g. `v001`). Defaults to
|
|
139
159
|
# `draft`.
|
|
@@ -157,6 +177,7 @@ module Courier
|
|
|
157
177
|
).returns(Courier::Broadcast)
|
|
158
178
|
end
|
|
159
179
|
def schedule(
|
|
180
|
+
# The broadcast to schedule.
|
|
160
181
|
broadcast_id,
|
|
161
182
|
# ID of the target list or audience.
|
|
162
183
|
recipient_id:,
|
|
@@ -183,6 +204,7 @@ module Courier
|
|
|
183
204
|
).returns(Courier::Broadcast)
|
|
184
205
|
end
|
|
185
206
|
def send_(
|
|
207
|
+
# The broadcast to send.
|
|
186
208
|
broadcast_id,
|
|
187
209
|
# ID of the target list or audience.
|
|
188
210
|
recipient_id:,
|
|
@@ -47,7 +47,8 @@ module Courier
|
|
|
47
47
|
)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
50
|
+
# Returns the users ingested into a bulk job with paging, each carrying the status
|
|
51
|
+
# Courier recorded for it and the id of the message it produced.
|
|
51
52
|
sig do
|
|
52
53
|
params(
|
|
53
54
|
job_id: String,
|
|
@@ -65,7 +66,9 @@ module Courier
|
|
|
65
66
|
)
|
|
66
67
|
end
|
|
67
68
|
|
|
68
|
-
#
|
|
69
|
+
# Returns a bulk job's message definition, its status — CREATED, PROCESSING,
|
|
70
|
+
# COMPLETED, or ERROR — and running counts of users received, messages enqueued,
|
|
71
|
+
# and failures. Poll it to follow a job through to completion.
|
|
69
72
|
sig do
|
|
70
73
|
params(
|
|
71
74
|
job_id: String,
|
|
@@ -79,7 +82,9 @@ module Courier
|
|
|
79
82
|
)
|
|
80
83
|
end
|
|
81
84
|
|
|
82
|
-
#
|
|
85
|
+
# Starts processing a bulk job, sending to every user ingested into it. Returns
|
|
86
|
+
# 204 immediately; the job runs asynchronously, so poll the job to watch its
|
|
87
|
+
# status and counts.
|
|
83
88
|
sig do
|
|
84
89
|
params(
|
|
85
90
|
job_id: String,
|
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.26.
|
|
4
|
+
version: 4.26.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Courier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|