Skip to content

Commit b2b3ed9

Browse files
release: 4.6.2 (#70)
* chore(internal): regenerate SDK with no functional changes * chore: fix typo in descriptions * chore: remove custom code * chore(internal): regenerate SDK with no functional changes * release: 4.6.2 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent df498a5 commit b2b3ed9

53 files changed

Lines changed: 529 additions & 656 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.6.1"
2+
".": "4.6.2"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 78
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-b79e0eb1ab06f4076c48fa519e2b2ad792a0c483a5d017e43c938ca4c4be6988.yml
3-
openapi_spec_hash: cb3cc2c1145503e5737a880326857aa4
4-
config_hash: ff903e824043dc81aca51a0ce21896d6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-e3e54d99e2a73fd87519270f2685131050d342e86a4e96130247b854deae5c20.yml
3+
openapi_spec_hash: 897a3fbee24f24d021d6af0df480220c
4+
config_hash: 66a5c28bb74d78454456d9ce7d1c0a0c

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 4.6.2 (2026-01-14)
4+
5+
Full Changelog: [v4.6.1...v4.6.2](https://github.com/trycourier/courier-ruby/compare/v4.6.1...v4.6.2)
6+
7+
### Chores
8+
9+
* fix typo in descriptions ([620d8d1](https://github.com/trycourier/courier-ruby/commit/620d8d14300bc3ca8a7c53ba0e6475d251773f98))
10+
* **internal:** regenerate SDK with no functional changes ([258dc3c](https://github.com/trycourier/courier-ruby/commit/258dc3c812e714cb593afbbba68c4f64be184741))
11+
* **internal:** regenerate SDK with no functional changes ([87e9439](https://github.com/trycourier/courier-ruby/commit/87e943981b53c04bb806af69a3a5293c4ffa5f5b))
12+
* remove custom code ([7ada104](https://github.com/trycourier/courier-ruby/commit/7ada104121a203cfcc3bbc0d05bd818bfbbcf834))
13+
314
## 4.6.1 (2026-01-12)
415

516
Full Changelog: [v4.6.0...v4.6.1](https://github.com/trycourier/courier-ruby/compare/v4.6.0...v4.6.1)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
trycourier (4.6.1)
14+
trycourier (4.6.2)
1515
cgi
1616
connection_pool
1717

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Courier
189+
Copyright 2026 Courier
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "trycourier", "~> 4.6.1"
20+
gem "trycourier", "~> 4.6.2"
2121
```
2222

2323
<!-- x-release-please-end -->
@@ -221,25 +221,25 @@ courier.send_.message(**params)
221221
Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:
222222

223223
```ruby
224-
# :published
225-
puts(Trycourier::AutomationListParams::Version::PUBLISHED)
224+
# :AND
225+
puts(Trycourier::AudienceUpdateParams::Operator::AND)
226226

227-
# Revealed type: `T.all(Trycourier::AutomationListParams::Version, Symbol)`
228-
T.reveal_type(Trycourier::AutomationListParams::Version::PUBLISHED)
227+
# Revealed type: `T.all(Trycourier::AudienceUpdateParams::Operator, Symbol)`
228+
T.reveal_type(Trycourier::AudienceUpdateParams::Operator::AND)
229229
```
230230

231231
Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:
232232

233233
```ruby
234234
# Using the enum constants preserves the tagged type information:
235-
courier.automations.list(
236-
version: Trycourier::AutomationListParams::Version::PUBLISHED,
235+
courier.audiences.update(
236+
operator: Trycourier::AudienceUpdateParams::Operator::AND,
237237
#
238238
)
239239

240240
# Literal values are also permissible:
241-
courier.automations.list(
242-
version: :published,
241+
courier.audiences.update(
242+
operator: :AND,
243243
#
244244
)
245245
```

lib/trycourier.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
require_relative "trycourier/models/audience"
6868
require_relative "trycourier/models/audience_delete_params"
6969
require_relative "trycourier/models/audience_filter"
70+
require_relative "trycourier/models/audience_filter_config"
7071
require_relative "trycourier/models/audience_list_members_params"
7172
require_relative "trycourier/models/audience_list_members_response"
7273
require_relative "trycourier/models/audience_list_params"
@@ -128,7 +129,7 @@
128129
require_relative "trycourier/models/email_head"
129130
require_relative "trycourier/models/email_header"
130131
require_relative "trycourier/models/expo"
131-
require_relative "trycourier/models/filter"
132+
require_relative "trycourier/models/filter_config"
132133
require_relative "trycourier/models/icons"
133134
require_relative "trycourier/models/inbound_bulk_message"
134135
require_relative "trycourier/models/inbound_track_event_params"
@@ -167,7 +168,6 @@
167168
require_relative "trycourier/models/ms_teams_base_properties"
168169
require_relative "trycourier/models/ms_teams_recipient"
169170
require_relative "trycourier/models/multiple_tokens"
170-
require_relative "trycourier/models/nested_filter_config"
171171
require_relative "trycourier/models/notification_get_content"
172172
require_relative "trycourier/models/notification_list_params"
173173
require_relative "trycourier/models/notification_list_response"
@@ -214,7 +214,6 @@
214214
require_relative "trycourier/models/send_to_slack_channel"
215215
require_relative "trycourier/models/send_to_slack_email"
216216
require_relative "trycourier/models/send_to_slack_user_id"
217-
require_relative "trycourier/models/single_filter_config"
218217
require_relative "trycourier/models/slack"
219218
require_relative "trycourier/models/slack_base_properties"
220219
require_relative "trycourier/models/slack_recipient"

lib/trycourier/models.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ module Trycourier
5151

5252
AudienceFilter = Trycourier::Models::AudienceFilter
5353

54+
AudienceFilterConfig = Trycourier::Models::AudienceFilterConfig
55+
5456
AudienceListMembersParams = Trycourier::Models::AudienceListMembersParams
5557

5658
AudienceListParams = Trycourier::Models::AudienceListParams
@@ -163,7 +165,7 @@ module Trycourier
163165

164166
Expo = Trycourier::Models::Expo
165167

166-
Filter = Trycourier::Models::Filter
168+
FilterConfig = Trycourier::Models::FilterConfig
167169

168170
Icons = Trycourier::Models::Icons
169171

@@ -223,8 +225,6 @@ module Trycourier
223225

224226
MultipleTokens = Trycourier::Models::MultipleTokens
225227

226-
NestedFilterConfig = Trycourier::Models::NestedFilterConfig
227-
228228
NotificationGetContent = Trycourier::Models::NotificationGetContent
229229

230230
NotificationListParams = Trycourier::Models::NotificationListParams
@@ -287,8 +287,6 @@ module Trycourier
287287

288288
SendToSlackUserID = Trycourier::Models::SendToSlackUserID
289289

290-
SingleFilterConfig = Trycourier::Models::SingleFilterConfig
291-
292290
Slack = Trycourier::Models::Slack
293291

294292
SlackBaseProperties = Trycourier::Models::SlackBaseProperties

lib/trycourier/models/audience.rb

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ class Audience < Trycourier::Internal::Type::BaseModel
2121
# @return [String]
2222
required :description, String
2323

24-
# @!attribute filter
25-
# A single filter to use for filtering
26-
#
27-
# @return [Trycourier::Models::SingleFilterConfig, Trycourier::Models::NestedFilterConfig]
28-
required :filter, union: -> { Trycourier::Filter }
29-
3024
# @!attribute name
3125
# The name of the audience
3226
#
@@ -38,18 +32,48 @@ class Audience < Trycourier::Internal::Type::BaseModel
3832
# @return [String]
3933
required :updated_at, String
4034

41-
# @!method initialize(id:, created_at:, description:, filter:, name:, updated_at:)
35+
# @!attribute filter
36+
# Filter configuration for audience membership containing an array of filter rules
37+
#
38+
# @return [Trycourier::Models::AudienceFilterConfig, nil]
39+
optional :filter, -> { Trycourier::AudienceFilterConfig }, nil?: true
40+
41+
# @!attribute operator
42+
# The logical operator (AND/OR) for the top-level filter
43+
#
44+
# @return [Symbol, Trycourier::Models::Audience::Operator, nil]
45+
optional :operator, enum: -> { Trycourier::Audience::Operator }
46+
47+
# @!method initialize(id:, created_at:, description:, name:, updated_at:, filter: nil, operator: nil)
48+
# Some parameter documentations has been truncated, see
49+
# {Trycourier::Models::Audience} for more details.
50+
#
4251
# @param id [String] A unique identifier representing the audience_id
4352
#
4453
# @param created_at [String]
4554
#
4655
# @param description [String] A description of the audience
4756
#
48-
# @param filter [Trycourier::Models::SingleFilterConfig, Trycourier::Models::NestedFilterConfig] A single filter to use for filtering
49-
#
5057
# @param name [String] The name of the audience
5158
#
5259
# @param updated_at [String]
60+
#
61+
# @param filter [Trycourier::Models::AudienceFilterConfig, nil] Filter configuration for audience membership containing an array of filter rules
62+
#
63+
# @param operator [Symbol, Trycourier::Models::Audience::Operator] The logical operator (AND/OR) for the top-level filter
64+
65+
# The logical operator (AND/OR) for the top-level filter
66+
#
67+
# @see Trycourier::Models::Audience#operator
68+
module Operator
69+
extend Trycourier::Internal::Type::Enum
70+
71+
AND = :AND
72+
OR = :OR
73+
74+
# @!method self.values
75+
# @return [Array<Symbol>]
76+
end
5377
end
5478
end
5579
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# frozen_string_literal: true
2+
3+
module Trycourier
4+
module Models
5+
class AudienceFilterConfig < Trycourier::Internal::Type::BaseModel
6+
# @!attribute filters
7+
# Array of filter rules (single conditions or nested groups)
8+
#
9+
# @return [Array<Trycourier::Models::FilterConfig>]
10+
required :filters, -> { Trycourier::Internal::Type::ArrayOf[Trycourier::FilterConfig] }
11+
12+
# @!method initialize(filters:)
13+
# Filter configuration for audience membership containing an array of filter rules
14+
#
15+
# @param filters [Array<Trycourier::Models::FilterConfig>] Array of filter rules (single conditions or nested groups)
16+
end
17+
end
18+
end

0 commit comments

Comments
 (0)