trycourier 6.8.0 → 6.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ed0341a28ac90163c1d29bdd7011d64d8fb6296b449a6d1ce17170f05fbc013
4
- data.tar.gz: 884fc8993f5aadbd4250cd9d16d22c27792142dacd5ceae26d1679eab594e751
3
+ metadata.gz: 6b9fddd9ae2196561574c358366ddd7830227d3990aaa52e89858de7e6b84cd9
4
+ data.tar.gz: a8c10271062a26d1389aee6ba8a645c05f35261b4db2b713b37868ce6fc504ea
5
5
  SHA512:
6
- metadata.gz: 5f9ce02df1f3c0e222cbaeb03b6687fa3514a46226027d6850b3e168f1edfa390e5f7483044df2302bf606f85e90ea2d1e8b820da0dcf89f1137074f93bd819a
7
- data.tar.gz: 36d2bee02a55f61397c3a3a1d770423e1d1bbeef1dd126600f9f65e3b7ec11b997f4a5c2c71c3e655d3a1927f9d9680603ade9a324e7a505a37420a7e5961932
6
+ metadata.gz: 8d783b22c1f61fc844e696322372651dd2204b99c7a3d661d0223e64fb2e328bee79853279612d989540d92b2c97e82ca0f46a1ebc444020b855cadb9b0fa0dc
7
+ data.tar.gz: e351011729fe6a218f2730bc2f2e2d5b7f4e722c80d9416fe74b95159634e00562eec047035d84f43ef65cc2c6b0f1f91ffbf890da900e7fc630b164ea52bdf4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.9.0](https://github.com/trycourier/courier-ruby/compare/v6.8.0...v6.9.0) (2026-09-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** filter notification templates by tag [C-21172] ([#161](https://github.com/trycourier/courier-ruby/issues/161)) ([bfdfbb0](https://github.com/trycourier/courier-ruby/commit/bfdfbb07c95e0db41b3660a0b81789d4c4e779b3))
9
+
3
10
  ## [6.8.0](https://github.com/trycourier/courier-ruby/compare/v6.7.0...v6.8.0) (2026-09-23)
4
11
 
5
12
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ Add the gem to your `Gemfile`:
9
9
  <!-- x-release-please-start-version -->
10
10
 
11
11
  ```ruby
12
- gem "trycourier", "~> 6.8.0"
12
+ gem "trycourier", "~> 6.9.0"
13
13
  ```
14
14
 
15
15
  <!-- x-release-please-end -->
@@ -25,13 +25,26 @@ module Courier
25
25
  # @return [Boolean, nil]
26
26
  optional :notes, Courier::Internal::Type::Boolean, nil?: true
27
27
 
28
- # @!method initialize(cursor: nil, event_id: nil, notes: nil, request_options: {})
28
+ # @!attribute tags
29
+ # Comma-delimited list of tag names. Only templates carrying all of the listed
30
+ # tags are returned. Matching is case-insensitive. Filtering is applied before
31
+ # pagination.
32
+ #
33
+ # @return [String, nil]
34
+ optional :tags, String
35
+
36
+ # @!method initialize(cursor: nil, event_id: nil, notes: nil, tags: nil, request_options: {})
37
+ # Some parameter documentations has been truncated, see
38
+ # {Courier::Models::NotificationListParams} for more details.
39
+ #
29
40
  # @param cursor [String, nil] Opaque pagination cursor from a previous response. Omit for the first page.
30
41
  #
31
42
  # @param event_id [String] Filter to templates linked to this event map ID.
32
43
  #
33
44
  # @param notes [Boolean, nil] Include template notes in the response. Only applies to legacy templates.
34
45
  #
46
+ # @param tags [String] Comma-delimited list of tag names. Only templates carrying all of the listed tag
47
+ #
35
48
  # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}]
36
49
  end
37
50
  end
@@ -84,10 +84,13 @@ module Courier
84
84
  )
85
85
  end
86
86
 
87
+ # Some parameter documentations has been truncated, see
88
+ # {Courier::Models::NotificationListParams} for more details.
89
+ #
87
90
  # Lists the workspace's notification templates. Each carries a name, tags, brand,
88
91
  # routing, and its draft or published state.
89
92
  #
90
- # @overload list(cursor: nil, event_id: nil, notes: nil, request_options: {})
93
+ # @overload list(cursor: nil, event_id: nil, notes: nil, tags: nil, request_options: {})
91
94
  #
92
95
  # @param cursor [String, nil] Opaque pagination cursor from a previous response. Omit for the first page.
93
96
  #
@@ -95,6 +98,8 @@ module Courier
95
98
  #
96
99
  # @param notes [Boolean, nil] Include template notes in the response. Only applies to legacy templates.
97
100
  #
101
+ # @param tags [String] Comma-delimited list of tag names. Only templates carrying all of the listed tag
102
+ #
98
103
  # @param request_options [Courier::RequestOptions, Hash{Symbol=>Object}, nil]
99
104
  #
100
105
  # @return [Courier::Models::NotificationListResponse]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Courier
4
- VERSION = "6.8.0"
4
+ VERSION = "6.9.0"
5
5
  end
@@ -26,11 +26,21 @@ module Courier
26
26
  sig { returns(T.nilable(T::Boolean)) }
27
27
  attr_accessor :notes
28
28
 
29
+ # Comma-delimited list of tag names. Only templates carrying all of the listed
30
+ # tags are returned. Matching is case-insensitive. Filtering is applied before
31
+ # pagination.
32
+ sig { returns(T.nilable(String)) }
33
+ attr_reader :tags
34
+
35
+ sig { params(tags: String).void }
36
+ attr_writer :tags
37
+
29
38
  sig do
30
39
  params(
31
40
  cursor: T.nilable(String),
32
41
  event_id: String,
33
42
  notes: T.nilable(T::Boolean),
43
+ tags: String,
34
44
  request_options: Courier::RequestOptions::OrHash
35
45
  ).returns(T.attached_class)
36
46
  end
@@ -41,6 +51,10 @@ module Courier
41
51
  event_id: nil,
42
52
  # Include template notes in the response. Only applies to legacy templates.
43
53
  notes: nil,
54
+ # Comma-delimited list of tag names. Only templates carrying all of the listed
55
+ # tags are returned. Matching is case-insensitive. Filtering is applied before
56
+ # pagination.
57
+ tags: nil,
44
58
  request_options: {}
45
59
  )
46
60
  end
@@ -51,6 +65,7 @@ module Courier
51
65
  cursor: T.nilable(String),
52
66
  event_id: String,
53
67
  notes: T.nilable(T::Boolean),
68
+ tags: String,
54
69
  request_options: Courier::RequestOptions
55
70
  }
56
71
  )
@@ -80,6 +80,7 @@ module Courier
80
80
  cursor: T.nilable(String),
81
81
  event_id: String,
82
82
  notes: T.nilable(T::Boolean),
83
+ tags: String,
83
84
  request_options: Courier::RequestOptions::OrHash
84
85
  ).returns(Courier::Models::NotificationListResponse)
85
86
  end
@@ -90,6 +91,10 @@ module Courier
90
91
  event_id: nil,
91
92
  # Include template notes in the response. Only applies to legacy templates.
92
93
  notes: nil,
94
+ # Comma-delimited list of tag names. Only templates carrying all of the listed
95
+ # tags are returned. Matching is case-insensitive. Filtering is applied before
96
+ # pagination.
97
+ tags: nil,
93
98
  request_options: {}
94
99
  )
95
100
  end
@@ -1,7 +1,7 @@
1
1
  module Courier
2
2
  module Models
3
3
  type notification_list_params =
4
- { cursor: String?, event_id: String, notes: bool? }
4
+ { cursor: String?, event_id: String, notes: bool?, tags: String }
5
5
  & Courier::Internal::Type::request_parameters
6
6
 
7
7
  class NotificationListParams < Courier::Internal::Type::BaseModel
@@ -16,10 +16,15 @@ module Courier
16
16
 
17
17
  attr_accessor notes: bool?
18
18
 
19
+ attr_reader tags: String?
20
+
21
+ def tags=: (String) -> String
22
+
19
23
  def initialize: (
20
24
  ?cursor: String?,
21
25
  ?event_id: String,
22
26
  ?notes: bool?,
27
+ ?tags: String,
23
28
  ?request_options: Courier::request_opts
24
29
  ) -> void
25
30
 
@@ -27,6 +32,7 @@ module Courier
27
32
  cursor: String?,
28
33
  event_id: String,
29
34
  notes: bool?,
35
+ tags: String,
30
36
  request_options: Courier::RequestOptions
31
37
  }
32
38
  end
@@ -21,6 +21,7 @@ module Courier
21
21
  ?cursor: String?,
22
22
  ?event_id: String,
23
23
  ?notes: bool?,
24
+ ?tags: String,
24
25
  ?request_options: Courier::request_opts
25
26
  ) -> Courier::Models::NotificationListResponse
26
27
 
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: 6.8.0
4
+ version: 6.9.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-09-23 00:00:00.000000000 Z
11
+ date: 2026-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi