trycourier 4.6.0 → 4.6.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 +14 -0
- data/README.md +1 -1
- data/lib/trycourier/models/inbound_track_event_params.rb +2 -2
- data/lib/trycourier/models/nested_filter_config.rb +3 -3
- data/lib/trycourier/models/single_filter_config.rb +2 -2
- data/lib/trycourier/models/subscription_topic_new.rb +1 -1
- data/lib/trycourier/models.rb +0 -2
- data/lib/trycourier/resources/inbound.rb +1 -1
- data/lib/trycourier/resources/tenants/preferences/items.rb +2 -2
- data/lib/trycourier/version.rb +1 -1
- data/lib/trycourier.rb +0 -1
- data/rbi/trycourier/models/audience.rbi +1 -1
- data/rbi/trycourier/models/audience_update_params.rbi +1 -1
- data/rbi/trycourier/models/inbound_track_event_params.rbi +2 -2
- data/rbi/trycourier/models/nested_filter_config.rbi +3 -3
- data/rbi/trycourier/models/single_filter_config.rbi +2 -2
- data/rbi/trycourier/models/subscription_topic_new.rbi +2 -2
- data/rbi/trycourier/models.rbi +0 -2
- data/rbi/trycourier/resources/audiences.rbi +1 -1
- data/rbi/trycourier/resources/inbound.rbi +1 -1
- data/rbi/trycourier/resources/tenants/preferences/items.rbi +3 -3
- data/sig/trycourier/models/nested_filter_config.rbs +4 -4
- data/sig/trycourier/models.rbs +0 -2
- metadata +16 -5
- data/lib/trycourier/models/filter_config.rb +0 -19
- data/rbi/trycourier/models/filter_config.rbi +0 -19
- data/sig/trycourier/models/filter_config.rbs +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b1fdc15224e1cd62694ae96149bda9773629bf3ea3e38c5cb3b2bb7160f82ad
|
|
4
|
+
data.tar.gz: 89ef9a621a612c2fd119f4144d969083197541e3feadc9655589b4a85365bd53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bc2518f49488f33c7786df71a22f645dec81b232d89c4bc81d26046cf8fdc1c75574bc871990ceef949f3d5e869e6ac3e8e828b44d5602eb697c9dca56a48e6
|
|
7
|
+
data.tar.gz: cf2c95bc11c0aa43f66a6bc91ccaa208bfcf91547b0985f49824a44702582f3503da01dcf1d2026867b7078dda608b0a9746620db16abb1bd104c9a743e633e8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.6.1 (2026-01-12)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v4.6.0...v4.6.1](https://github.com/trycourier/courier-ruby/compare/v4.6.0...v4.6.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **types:** correct rules field type to Filter in NestedFilterConfig ([3c9897c](https://github.com/trycourier/courier-ruby/commit/3c9897c45406cf07f9981a953030c43c10f224c1))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** regenerate SDK with no functional changes ([a8e483c](https://github.com/trycourier/courier-ruby/commit/a8e483c224a1ae70128b7eb379e9356d68175d95))
|
|
15
|
+
* move `cgi` into dependencies for ruby 4 ([854537a](https://github.com/trycourier/courier-ruby/commit/854537a6a4127b10ac19f8cd43f412e54c776385))
|
|
16
|
+
|
|
3
17
|
## 4.6.0 (2026-01-08)
|
|
4
18
|
|
|
5
19
|
Full Changelog: [v4.5.0...v4.6.0](https://github.com/trycourier/courier-ruby/compare/v4.5.0...v4.6.0)
|
data/README.md
CHANGED
|
@@ -32,7 +32,7 @@ module Trycourier
|
|
|
32
32
|
required :type, enum: -> { Trycourier::InboundTrackEventParams::Type }
|
|
33
33
|
|
|
34
34
|
# @!attribute user_id
|
|
35
|
-
# The user id
|
|
35
|
+
# The user id associated with the track
|
|
36
36
|
#
|
|
37
37
|
# @return [String, nil]
|
|
38
38
|
optional :user_id, String, api_name: :userId, nil?: true
|
|
@@ -49,7 +49,7 @@ module Trycourier
|
|
|
49
49
|
#
|
|
50
50
|
# @param type [Symbol, Trycourier::Models::InboundTrackEventParams::Type]
|
|
51
51
|
#
|
|
52
|
-
# @param user_id [String, nil] The user id
|
|
52
|
+
# @param user_id [String, nil] The user id associated with the track
|
|
53
53
|
#
|
|
54
54
|
# @param request_options [Trycourier::RequestOptions, Hash{Symbol=>Object}]
|
|
55
55
|
|
|
@@ -11,13 +11,13 @@ module Trycourier
|
|
|
11
11
|
|
|
12
12
|
# @!attribute rules
|
|
13
13
|
#
|
|
14
|
-
# @return [Array<Trycourier::Models::
|
|
15
|
-
required :rules, -> { Trycourier::Internal::Type::ArrayOf[union: Trycourier::
|
|
14
|
+
# @return [Array<Trycourier::Models::Filter>]
|
|
15
|
+
required :rules, -> { Trycourier::Internal::Type::ArrayOf[union: Trycourier::Filter] }
|
|
16
16
|
|
|
17
17
|
# @!method initialize(operator:, rules:)
|
|
18
18
|
# @param operator [Symbol, Trycourier::Models::NestedFilterConfig::Operator] The operator to use for filtering
|
|
19
19
|
#
|
|
20
|
-
# @param rules [Array<Trycourier::Models::
|
|
20
|
+
# @param rules [Array<Trycourier::Models::Filter>]
|
|
21
21
|
|
|
22
22
|
# The operator to use for filtering
|
|
23
23
|
#
|
|
@@ -10,7 +10,7 @@ module Trycourier
|
|
|
10
10
|
required :operator, enum: -> { Trycourier::SingleFilterConfig::Operator }
|
|
11
11
|
|
|
12
12
|
# @!attribute path
|
|
13
|
-
# The
|
|
13
|
+
# The attribute name from profile whose value will be operated against the filter
|
|
14
14
|
# value
|
|
15
15
|
#
|
|
16
16
|
# @return [String]
|
|
@@ -28,7 +28,7 @@ module Trycourier
|
|
|
28
28
|
#
|
|
29
29
|
# @param operator [Symbol, Trycourier::Models::SingleFilterConfig::Operator] The operator to use for filtering
|
|
30
30
|
#
|
|
31
|
-
# @param path [String] The
|
|
31
|
+
# @param path [String] The attribute name from profile whose value will be operated against the filter
|
|
32
32
|
#
|
|
33
33
|
# @param value [String] The value to use for filtering
|
|
34
34
|
|
|
@@ -18,7 +18,7 @@ module Trycourier
|
|
|
18
18
|
|
|
19
19
|
# @!attribute has_custom_routing
|
|
20
20
|
# Override channel routing with custom preferences. This will override any
|
|
21
|
-
# template
|
|
21
|
+
# template preferences that are set, but a user can still customize their
|
|
22
22
|
# preferences
|
|
23
23
|
#
|
|
24
24
|
# @return [Boolean, nil]
|
data/lib/trycourier/models.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Trycourier
|
|
|
18
18
|
#
|
|
19
19
|
# @param type [Symbol, Trycourier::Models::InboundTrackEventParams::Type]
|
|
20
20
|
#
|
|
21
|
-
# @param user_id [String, nil] The user id
|
|
21
|
+
# @param user_id [String, nil] The user id associated with the track
|
|
22
22
|
#
|
|
23
23
|
# @param request_options [Trycourier::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
24
24
|
#
|
|
@@ -12,7 +12,7 @@ module Trycourier
|
|
|
12
12
|
#
|
|
13
13
|
# @overload update(topic_id, tenant_id:, status:, custom_routing: nil, has_custom_routing: nil, request_options: {})
|
|
14
14
|
#
|
|
15
|
-
# @param topic_id [String] Path param: Id
|
|
15
|
+
# @param topic_id [String] Path param: Id of the subscription topic you want to have a default preference f
|
|
16
16
|
#
|
|
17
17
|
# @param tenant_id [String] Path param: Id of the tenant to update the default preferences for.
|
|
18
18
|
#
|
|
@@ -46,7 +46,7 @@ module Trycourier
|
|
|
46
46
|
#
|
|
47
47
|
# @overload delete(topic_id, tenant_id:, request_options: {})
|
|
48
48
|
#
|
|
49
|
-
# @param topic_id [String] Id
|
|
49
|
+
# @param topic_id [String] Id of the subscription topic you want to have a default preference for.
|
|
50
50
|
#
|
|
51
51
|
# @param tenant_id [String] Id of the tenant to update the default preferences for.
|
|
52
52
|
#
|
data/lib/trycourier/version.rb
CHANGED
data/lib/trycourier.rb
CHANGED
|
@@ -129,7 +129,6 @@ require_relative "trycourier/models/email_head"
|
|
|
129
129
|
require_relative "trycourier/models/email_header"
|
|
130
130
|
require_relative "trycourier/models/expo"
|
|
131
131
|
require_relative "trycourier/models/filter"
|
|
132
|
-
require_relative "trycourier/models/filter_config"
|
|
133
132
|
require_relative "trycourier/models/icons"
|
|
134
133
|
require_relative "trycourier/models/inbound_bulk_message"
|
|
135
134
|
require_relative "trycourier/models/inbound_track_event_params"
|
|
@@ -30,7 +30,7 @@ module Trycourier
|
|
|
30
30
|
sig { returns(Trycourier::InboundTrackEventParams::Type::OrSymbol) }
|
|
31
31
|
attr_accessor :type
|
|
32
32
|
|
|
33
|
-
# The user id
|
|
33
|
+
# The user id associated with the track
|
|
34
34
|
sig { returns(T.nilable(String)) }
|
|
35
35
|
attr_accessor :user_id
|
|
36
36
|
|
|
@@ -53,7 +53,7 @@ module Trycourier
|
|
|
53
53
|
message_id:,
|
|
54
54
|
properties:,
|
|
55
55
|
type:,
|
|
56
|
-
# The user id
|
|
56
|
+
# The user id associated with the track
|
|
57
57
|
user_id: nil,
|
|
58
58
|
request_options: {}
|
|
59
59
|
)
|
|
@@ -12,13 +12,13 @@ module Trycourier
|
|
|
12
12
|
sig { returns(Trycourier::NestedFilterConfig::Operator::OrSymbol) }
|
|
13
13
|
attr_accessor :operator
|
|
14
14
|
|
|
15
|
-
sig { returns(T::Array[Trycourier::
|
|
15
|
+
sig { returns(T::Array[Trycourier::Filter]) }
|
|
16
16
|
attr_accessor :rules
|
|
17
17
|
|
|
18
18
|
sig do
|
|
19
19
|
params(
|
|
20
20
|
operator: Trycourier::NestedFilterConfig::Operator::OrSymbol,
|
|
21
|
-
rules: T::Array[Trycourier::
|
|
21
|
+
rules: T::Array[Trycourier::Filter]
|
|
22
22
|
).returns(T.attached_class)
|
|
23
23
|
end
|
|
24
24
|
def self.new(
|
|
@@ -32,7 +32,7 @@ module Trycourier
|
|
|
32
32
|
override.returns(
|
|
33
33
|
{
|
|
34
34
|
operator: Trycourier::NestedFilterConfig::Operator::OrSymbol,
|
|
35
|
-
rules: T::Array[Trycourier::
|
|
35
|
+
rules: T::Array[Trycourier::Filter]
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
end
|
|
@@ -12,7 +12,7 @@ module Trycourier
|
|
|
12
12
|
sig { returns(Trycourier::SingleFilterConfig::Operator::OrSymbol) }
|
|
13
13
|
attr_accessor :operator
|
|
14
14
|
|
|
15
|
-
# The
|
|
15
|
+
# The attribute name from profile whose value will be operated against the filter
|
|
16
16
|
# value
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :path
|
|
@@ -31,7 +31,7 @@ module Trycourier
|
|
|
31
31
|
def self.new(
|
|
32
32
|
# The operator to use for filtering
|
|
33
33
|
operator:,
|
|
34
|
-
# The
|
|
34
|
+
# The attribute name from profile whose value will be operated against the filter
|
|
35
35
|
# value
|
|
36
36
|
path:,
|
|
37
37
|
# The value to use for filtering
|
|
@@ -20,7 +20,7 @@ module Trycourier
|
|
|
20
20
|
attr_accessor :custom_routing
|
|
21
21
|
|
|
22
22
|
# Override channel routing with custom preferences. This will override any
|
|
23
|
-
# template
|
|
23
|
+
# template preferences that are set, but a user can still customize their
|
|
24
24
|
# preferences
|
|
25
25
|
sig { returns(T.nilable(T::Boolean)) }
|
|
26
26
|
attr_accessor :has_custom_routing
|
|
@@ -38,7 +38,7 @@ module Trycourier
|
|
|
38
38
|
# The default channels to send to this tenant when has_custom_routing is enabled
|
|
39
39
|
custom_routing: nil,
|
|
40
40
|
# Override channel routing with custom preferences. This will override any
|
|
41
|
-
# template
|
|
41
|
+
# template preferences that are set, but a user can still customize their
|
|
42
42
|
# preferences
|
|
43
43
|
has_custom_routing: nil
|
|
44
44
|
)
|
data/rbi/trycourier/models.rbi
CHANGED
|
@@ -20,7 +20,7 @@ module Trycourier
|
|
|
20
20
|
).void
|
|
21
21
|
end
|
|
22
22
|
def update(
|
|
23
|
-
# Path param: Id
|
|
23
|
+
# Path param: Id of the subscription topic you want to have a default preference
|
|
24
24
|
# for.
|
|
25
25
|
topic_id,
|
|
26
26
|
# Path param: Id of the tenant to update the default preferences for.
|
|
@@ -31,7 +31,7 @@ module Trycourier
|
|
|
31
31
|
# is enabled
|
|
32
32
|
custom_routing: nil,
|
|
33
33
|
# Body param: Override channel routing with custom preferences. This will override
|
|
34
|
-
# any template
|
|
34
|
+
# any template preferences that are set, but a user can still customize their
|
|
35
35
|
# preferences
|
|
36
36
|
has_custom_routing: nil,
|
|
37
37
|
request_options: {}
|
|
@@ -47,7 +47,7 @@ module Trycourier
|
|
|
47
47
|
).void
|
|
48
48
|
end
|
|
49
49
|
def delete(
|
|
50
|
-
# Id
|
|
50
|
+
# Id of the subscription topic you want to have a default preference for.
|
|
51
51
|
topic_id,
|
|
52
52
|
# Id of the tenant to update the default preferences for.
|
|
53
53
|
tenant_id:,
|
|
@@ -3,22 +3,22 @@ module Trycourier
|
|
|
3
3
|
type nested_filter_config =
|
|
4
4
|
{
|
|
5
5
|
operator: Trycourier::Models::NestedFilterConfig::operator,
|
|
6
|
-
rules: ::Array[Trycourier::Models::
|
|
6
|
+
rules: ::Array[Trycourier::Models::filter]
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
class NestedFilterConfig < Trycourier::Internal::Type::BaseModel
|
|
10
10
|
attr_accessor operator: Trycourier::Models::NestedFilterConfig::operator
|
|
11
11
|
|
|
12
|
-
attr_accessor rules: ::Array[Trycourier::Models::
|
|
12
|
+
attr_accessor rules: ::Array[Trycourier::Models::filter]
|
|
13
13
|
|
|
14
14
|
def initialize: (
|
|
15
15
|
operator: Trycourier::Models::NestedFilterConfig::operator,
|
|
16
|
-
rules: ::Array[Trycourier::Models::
|
|
16
|
+
rules: ::Array[Trycourier::Models::filter]
|
|
17
17
|
) -> void
|
|
18
18
|
|
|
19
19
|
def to_hash: -> {
|
|
20
20
|
operator: Trycourier::Models::NestedFilterConfig::operator,
|
|
21
|
-
rules: ::Array[Trycourier::Models::
|
|
21
|
+
rules: ::Array[Trycourier::Models::filter]
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
type operator =
|
data/sig/trycourier/models.rbs
CHANGED
|
@@ -125,8 +125,6 @@ module Trycourier
|
|
|
125
125
|
|
|
126
126
|
module Filter = Trycourier::Models::Filter
|
|
127
127
|
|
|
128
|
-
module FilterConfig = Trycourier::Models::FilterConfig
|
|
129
|
-
|
|
130
128
|
class Icons = Trycourier::Models::Icons
|
|
131
129
|
|
|
132
130
|
class InboundBulkMessage = Trycourier::Models::InboundBulkMessage
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trycourier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.6.
|
|
4
|
+
version: 4.6.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-01-
|
|
11
|
+
date: 2026-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: cgi
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: connection_pool
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -128,7 +142,6 @@ files:
|
|
|
128
142
|
- lib/trycourier/models/email_header.rb
|
|
129
143
|
- lib/trycourier/models/expo.rb
|
|
130
144
|
- lib/trycourier/models/filter.rb
|
|
131
|
-
- lib/trycourier/models/filter_config.rb
|
|
132
145
|
- lib/trycourier/models/icons.rb
|
|
133
146
|
- lib/trycourier/models/inbound_bulk_message.rb
|
|
134
147
|
- lib/trycourier/models/inbound_bulk_message_user.rb
|
|
@@ -397,7 +410,6 @@ files:
|
|
|
397
410
|
- rbi/trycourier/models/email_header.rbi
|
|
398
411
|
- rbi/trycourier/models/expo.rbi
|
|
399
412
|
- rbi/trycourier/models/filter.rbi
|
|
400
|
-
- rbi/trycourier/models/filter_config.rbi
|
|
401
413
|
- rbi/trycourier/models/icons.rbi
|
|
402
414
|
- rbi/trycourier/models/inbound_bulk_message.rbi
|
|
403
415
|
- rbi/trycourier/models/inbound_bulk_message_user.rbi
|
|
@@ -665,7 +677,6 @@ files:
|
|
|
665
677
|
- sig/trycourier/models/email_header.rbs
|
|
666
678
|
- sig/trycourier/models/expo.rbs
|
|
667
679
|
- sig/trycourier/models/filter.rbs
|
|
668
|
-
- sig/trycourier/models/filter_config.rbs
|
|
669
680
|
- sig/trycourier/models/icons.rbs
|
|
670
681
|
- sig/trycourier/models/inbound_bulk_message.rbs
|
|
671
682
|
- sig/trycourier/models/inbound_bulk_message_user.rbs
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Trycourier
|
|
4
|
-
module Models
|
|
5
|
-
# A single filter to use for filtering
|
|
6
|
-
module FilterConfig
|
|
7
|
-
extend Trycourier::Internal::Type::Union
|
|
8
|
-
|
|
9
|
-
# A single filter to use for filtering
|
|
10
|
-
variant -> { Trycourier::SingleFilterConfig }
|
|
11
|
-
|
|
12
|
-
# The operator to use for filtering
|
|
13
|
-
variant -> { Trycourier::NestedFilterConfig }
|
|
14
|
-
|
|
15
|
-
# @!method self.variants
|
|
16
|
-
# @return [Array(Trycourier::Models::SingleFilterConfig, Trycourier::Models::NestedFilterConfig)]
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Trycourier
|
|
4
|
-
module Models
|
|
5
|
-
# A single filter to use for filtering
|
|
6
|
-
module FilterConfig
|
|
7
|
-
extend Trycourier::Internal::Type::Union
|
|
8
|
-
|
|
9
|
-
Variants =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(Trycourier::SingleFilterConfig, Trycourier::NestedFilterConfig)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { override.returns(T::Array[Trycourier::FilterConfig::Variants]) }
|
|
15
|
-
def self.variants
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module Trycourier
|
|
2
|
-
module Models
|
|
3
|
-
type filter_config =
|
|
4
|
-
Trycourier::SingleFilterConfig | Trycourier::NestedFilterConfig
|
|
5
|
-
|
|
6
|
-
module FilterConfig
|
|
7
|
-
extend Trycourier::Internal::Type::Union
|
|
8
|
-
|
|
9
|
-
def self?.variants: -> ::Array[Trycourier::Models::filter_config]
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|