trycourier 4.1.1 → 4.2.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: 8e4cbd3a31496565c8f183cc5d553fefabec5344ffc9fc0e25c0fc31f3619518
4
- data.tar.gz: ab8d64aaa03184998fd355fad664a232698c2267cccec97cd667ed8d1ee65d7b
3
+ metadata.gz: 962b553a90a69e25ca48e48bbd360827bbd7de7d9478257623d203cbc831f9e5
4
+ data.tar.gz: ca6b14e588e5eb0b12e941863d54756e5f349b6d0fe525a76fe6423e4e9ce6a9
5
5
  SHA512:
6
- metadata.gz: 7a36254fc31b5ef58fb5005fbcd2e6040c631410e6aa512f0640701c8550eb59c65fe1b1b43f383705c67ed9efc6b24e86ca55520f2292e061e6013f7dac0cb9
7
- data.tar.gz: 4545ced25d89bbd2fd7cafe88b05d11d1c0b7a8d0a25248d24fa904d89d9707bca7dc2082835f9b02a47cb1c09e286a5c83ee87f553c95edd2b122a4d6ec0dea
6
+ metadata.gz: 6ba6b7e09ed674beee73a8e08b06eab4c218134d08f7b7d468a3b7a355e319b64ef8088a9ee138792dac38809e44356e99914dc1624ecc0ab2d56ac2126fffd6
7
+ data.tar.gz: 77b0e63d9f11c12a7a416e5a5f9dd2041a9c57de9096f225ba9b518cd46afb6bfac9314598416de67344522b852baf0630c389b93f211327f2b883b1d0e850d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.0 (2025-12-08)
4
+
5
+ Full Changelog: [v4.1.1...v4.2.0](https://github.com/trycourier/courier-ruby/compare/v4.1.1...v4.2.0)
6
+
7
+ ### Features
8
+
9
+ * Add event_ids field to Notification schema ([cbb73f5](https://github.com/trycourier/courier-ruby/commit/cbb73f50ae03cabc7b2023b6ed337cec5e6b7ad8))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **client:** fix duplicate Go struct resulting from name derivations schema ([9e12a1e](https://github.com/trycourier/courier-ruby/commit/9e12a1ec6f4f230533c524e0c597159072664350))
15
+
3
16
  ## 4.1.1 (2025-12-02)
4
17
 
5
18
  Full Changelog: [v4.1.0...v4.1.1](https://github.com/trycourier/courier-ruby/compare/v4.1.0...v4.1.1)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "trycourier", "~> 4.1.1"
20
+ gem "trycourier", "~> 4.2.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -30,6 +30,12 @@ module Trycourier
30
30
  # @return [Integer]
31
31
  required :created_at, Integer
32
32
 
33
+ # @!attribute event_ids
34
+ # Array of event IDs associated with this notification
35
+ #
36
+ # @return [Array<String>]
37
+ required :event_ids, Trycourier::Internal::Type::ArrayOf[String]
38
+
33
39
  # @!attribute note
34
40
  #
35
41
  # @return [String]
@@ -60,14 +66,23 @@ module Trycourier
60
66
  # @return [String, nil]
61
67
  optional :title, String, nil?: true
62
68
 
63
- # @!method initialize(id:, created_at:, note:, routing:, topic_id:, updated_at:, tags: nil, title: nil)
69
+ # @!method initialize(id:, created_at:, event_ids:, note:, routing:, topic_id:, updated_at:, tags: nil, title: nil)
64
70
  # @param id [String]
71
+ #
65
72
  # @param created_at [Integer]
73
+ #
74
+ # @param event_ids [Array<String>] Array of event IDs associated with this notification
75
+ #
66
76
  # @param note [String]
77
+ #
67
78
  # @param routing [Trycourier::Models::MessageRouting]
79
+ #
68
80
  # @param topic_id [String]
81
+ #
69
82
  # @param updated_at [Integer]
83
+ #
70
84
  # @param tags [Trycourier::Models::NotificationListResponse::Result::Tags, nil]
85
+ #
71
86
  # @param title [String, nil]
72
87
 
73
88
  # @see Trycourier::Models::NotificationListResponse::Result#tags
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Trycourier
4
+ module Models
5
+ class ProfilePreferences < Trycourier::Internal::Type::BaseModel
6
+ # @!attribute notifications
7
+ #
8
+ # @return [Hash{Symbol=>Trycourier::Models::Preference}]
9
+ required :notifications, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }
10
+
11
+ # @!attribute categories
12
+ #
13
+ # @return [Hash{Symbol=>Trycourier::Models::Preference}, nil]
14
+ optional :categories, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }, nil?: true
15
+
16
+ # @!attribute template_id
17
+ #
18
+ # @return [String, nil]
19
+ optional :template_id, String, api_name: :templateId, nil?: true
20
+
21
+ # @!method initialize(notifications:, categories: nil, template_id: nil)
22
+ # @param notifications [Hash{Symbol=>Trycourier::Models::Preference}]
23
+ # @param categories [Hash{Symbol=>Trycourier::Models::Preference}, nil]
24
+ # @param template_id [String, nil]
25
+ end
26
+ end
27
+ end
@@ -46,8 +46,8 @@ module Trycourier
46
46
 
47
47
  # @!attribute preferences
48
48
  #
49
- # @return [Trycourier::Models::Recipient::Preferences, nil]
50
- optional :preferences, -> { Trycourier::Recipient::Preferences }, nil?: true
49
+ # @return [Trycourier::Models::ProfilePreferences, nil]
50
+ optional :preferences, -> { Trycourier::ProfilePreferences }, nil?: true
51
51
 
52
52
  # @!attribute tenant_id
53
53
  # The id of the tenant the user is associated with.
@@ -80,34 +80,11 @@ module Trycourier
80
80
  #
81
81
  # @param phone_number [String, nil] The user's phone number.
82
82
  #
83
- # @param preferences [Trycourier::Models::Recipient::Preferences, nil]
83
+ # @param preferences [Trycourier::Models::ProfilePreferences, nil]
84
84
  #
85
85
  # @param tenant_id [String, nil] The id of the tenant the user is associated with.
86
86
  #
87
87
  # @param user_id [String, nil] The user's unique identifier. Typically, this will match the user id of a user i
88
-
89
- # @see Trycourier::Models::Recipient#preferences
90
- class Preferences < Trycourier::Internal::Type::BaseModel
91
- # @!attribute notifications
92
- #
93
- # @return [Hash{Symbol=>Trycourier::Models::Preference}]
94
- required :notifications, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }
95
-
96
- # @!attribute categories
97
- #
98
- # @return [Hash{Symbol=>Trycourier::Models::Preference}, nil]
99
- optional :categories, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }, nil?: true
100
-
101
- # @!attribute template_id
102
- #
103
- # @return [String, nil]
104
- optional :template_id, String, api_name: :templateId, nil?: true
105
-
106
- # @!method initialize(notifications:, categories: nil, template_id: nil)
107
- # @param notifications [Hash{Symbol=>Trycourier::Models::Preference}]
108
- # @param categories [Hash{Symbol=>Trycourier::Models::Preference}, nil]
109
- # @param template_id [String, nil]
110
- end
111
88
  end
112
89
  end
113
90
  end
@@ -46,8 +46,8 @@ module Trycourier
46
46
 
47
47
  # @!attribute preferences
48
48
  #
49
- # @return [Trycourier::Models::UserRecipient::Preferences, nil]
50
- optional :preferences, -> { Trycourier::UserRecipient::Preferences }, nil?: true
49
+ # @return [Trycourier::Models::ProfilePreferences, nil]
50
+ optional :preferences, -> { Trycourier::ProfilePreferences }, nil?: true
51
51
 
52
52
  # @!attribute tenant_id
53
53
  # The id of the tenant the user is associated with.
@@ -80,34 +80,11 @@ module Trycourier
80
80
  #
81
81
  # @param phone_number [String, nil] The user's phone number.
82
82
  #
83
- # @param preferences [Trycourier::Models::UserRecipient::Preferences, nil]
83
+ # @param preferences [Trycourier::Models::ProfilePreferences, nil]
84
84
  #
85
85
  # @param tenant_id [String, nil] The id of the tenant the user is associated with.
86
86
  #
87
87
  # @param user_id [String, nil] The user's unique identifier. Typically, this will match the user id of a user i
88
-
89
- # @see Trycourier::Models::UserRecipient#preferences
90
- class Preferences < Trycourier::Internal::Type::BaseModel
91
- # @!attribute notifications
92
- #
93
- # @return [Hash{Symbol=>Trycourier::Models::Preference}]
94
- required :notifications, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }
95
-
96
- # @!attribute categories
97
- #
98
- # @return [Hash{Symbol=>Trycourier::Models::Preference}, nil]
99
- optional :categories, -> { Trycourier::Internal::Type::HashOf[Trycourier::Preference] }, nil?: true
100
-
101
- # @!attribute template_id
102
- #
103
- # @return [String, nil]
104
- optional :template_id, String, api_name: :templateId, nil?: true
105
-
106
- # @!method initialize(notifications:, categories: nil, template_id: nil)
107
- # @param notifications [Hash{Symbol=>Trycourier::Models::Preference}]
108
- # @param categories [Hash{Symbol=>Trycourier::Models::Preference}, nil]
109
- # @param template_id [String, nil]
110
- end
111
88
  end
112
89
  end
113
90
  end
@@ -207,6 +207,8 @@ module Trycourier
207
207
 
208
208
  ProfileDeleteParams = Trycourier::Models::ProfileDeleteParams
209
209
 
210
+ ProfilePreferences = Trycourier::Models::ProfilePreferences
211
+
210
212
  ProfileReplaceParams = Trycourier::Models::ProfileReplaceParams
211
213
 
212
214
  ProfileRetrieveParams = Trycourier::Models::ProfileRetrieveParams
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Trycourier
4
- VERSION = "4.1.1"
4
+ VERSION = "4.2.0"
5
5
  end
data/lib/trycourier.rb CHANGED
@@ -166,6 +166,7 @@ require_relative "trycourier/models/preference_status"
166
166
  require_relative "trycourier/models/profile_create_params"
167
167
  require_relative "trycourier/models/profile_create_response"
168
168
  require_relative "trycourier/models/profile_delete_params"
169
+ require_relative "trycourier/models/profile_preferences"
169
170
  require_relative "trycourier/models/profile_replace_params"
170
171
  require_relative "trycourier/models/profile_replace_response"
171
172
  require_relative "trycourier/models/profile_retrieve_params"
@@ -61,6 +61,10 @@ module Trycourier
61
61
  sig { returns(Integer) }
62
62
  attr_accessor :created_at
63
63
 
64
+ # Array of event IDs associated with this notification
65
+ sig { returns(T::Array[String]) }
66
+ attr_accessor :event_ids
67
+
64
68
  sig { returns(String) }
65
69
  attr_accessor :note
66
70
 
@@ -102,6 +106,7 @@ module Trycourier
102
106
  params(
103
107
  id: String,
104
108
  created_at: Integer,
109
+ event_ids: T::Array[String],
105
110
  note: String,
106
111
  routing: Trycourier::MessageRouting::OrHash,
107
112
  topic_id: String,
@@ -116,6 +121,8 @@ module Trycourier
116
121
  def self.new(
117
122
  id:,
118
123
  created_at:,
124
+ # Array of event IDs associated with this notification
125
+ event_ids:,
119
126
  note:,
120
127
  routing:,
121
128
  topic_id:,
@@ -130,6 +137,7 @@ module Trycourier
130
137
  {
131
138
  id: String,
132
139
  created_at: Integer,
140
+ event_ids: T::Array[String],
133
141
  note: String,
134
142
  routing: Trycourier::MessageRouting,
135
143
  topic_id: String,
@@ -0,0 +1,44 @@
1
+ # typed: strong
2
+
3
+ module Trycourier
4
+ module Models
5
+ class ProfilePreferences < Trycourier::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Trycourier::ProfilePreferences, Trycourier::Internal::AnyHash)
9
+ end
10
+
11
+ sig { returns(T::Hash[Symbol, Trycourier::Preference]) }
12
+ attr_accessor :notifications
13
+
14
+ sig { returns(T.nilable(T::Hash[Symbol, Trycourier::Preference])) }
15
+ attr_accessor :categories
16
+
17
+ sig { returns(T.nilable(String)) }
18
+ attr_accessor :template_id
19
+
20
+ sig do
21
+ params(
22
+ notifications: T::Hash[Symbol, Trycourier::Preference::OrHash],
23
+ categories:
24
+ T.nilable(T::Hash[Symbol, Trycourier::Preference::OrHash]),
25
+ template_id: T.nilable(String)
26
+ ).returns(T.attached_class)
27
+ end
28
+ def self.new(notifications:, categories: nil, template_id: nil)
29
+ end
30
+
31
+ sig do
32
+ override.returns(
33
+ {
34
+ notifications: T::Hash[Symbol, Trycourier::Preference],
35
+ categories: T.nilable(T::Hash[Symbol, Trycourier::Preference]),
36
+ template_id: T.nilable(String)
37
+ }
38
+ )
39
+ end
40
+ def to_hash
41
+ end
42
+ end
43
+ end
44
+ end
@@ -40,12 +40,12 @@ module Trycourier
40
40
  sig { returns(T.nilable(String)) }
41
41
  attr_accessor :phone_number
42
42
 
43
- sig { returns(T.nilable(Trycourier::Recipient::Preferences)) }
43
+ sig { returns(T.nilable(Trycourier::ProfilePreferences)) }
44
44
  attr_reader :preferences
45
45
 
46
46
  sig do
47
47
  params(
48
- preferences: T.nilable(Trycourier::Recipient::Preferences::OrHash)
48
+ preferences: T.nilable(Trycourier::ProfilePreferences::OrHash)
49
49
  ).void
50
50
  end
51
51
  attr_writer :preferences
@@ -68,7 +68,7 @@ module Trycourier
68
68
  list_id: T.nilable(String),
69
69
  locale: T.nilable(String),
70
70
  phone_number: T.nilable(String),
71
- preferences: T.nilable(Trycourier::Recipient::Preferences::OrHash),
71
+ preferences: T.nilable(Trycourier::ProfilePreferences::OrHash),
72
72
  tenant_id: T.nilable(String),
73
73
  user_id: T.nilable(String)
74
74
  ).returns(T.attached_class)
@@ -106,7 +106,7 @@ module Trycourier
106
106
  list_id: T.nilable(String),
107
107
  locale: T.nilable(String),
108
108
  phone_number: T.nilable(String),
109
- preferences: T.nilable(Trycourier::Recipient::Preferences),
109
+ preferences: T.nilable(Trycourier::ProfilePreferences),
110
110
  tenant_id: T.nilable(String),
111
111
  user_id: T.nilable(String)
112
112
  }
@@ -114,48 +114,6 @@ module Trycourier
114
114
  end
115
115
  def to_hash
116
116
  end
117
-
118
- class Preferences < Trycourier::Internal::Type::BaseModel
119
- OrHash =
120
- T.type_alias do
121
- T.any(
122
- Trycourier::Recipient::Preferences,
123
- Trycourier::Internal::AnyHash
124
- )
125
- end
126
-
127
- sig { returns(T::Hash[Symbol, Trycourier::Preference]) }
128
- attr_accessor :notifications
129
-
130
- sig { returns(T.nilable(T::Hash[Symbol, Trycourier::Preference])) }
131
- attr_accessor :categories
132
-
133
- sig { returns(T.nilable(String)) }
134
- attr_accessor :template_id
135
-
136
- sig do
137
- params(
138
- notifications: T::Hash[Symbol, Trycourier::Preference::OrHash],
139
- categories:
140
- T.nilable(T::Hash[Symbol, Trycourier::Preference::OrHash]),
141
- template_id: T.nilable(String)
142
- ).returns(T.attached_class)
143
- end
144
- def self.new(notifications:, categories: nil, template_id: nil)
145
- end
146
-
147
- sig do
148
- override.returns(
149
- {
150
- notifications: T::Hash[Symbol, Trycourier::Preference],
151
- categories: T.nilable(T::Hash[Symbol, Trycourier::Preference]),
152
- template_id: T.nilable(String)
153
- }
154
- )
155
- end
156
- def to_hash
157
- end
158
- end
159
117
  end
160
118
  end
161
119
  end
@@ -40,12 +40,12 @@ module Trycourier
40
40
  sig { returns(T.nilable(String)) }
41
41
  attr_accessor :phone_number
42
42
 
43
- sig { returns(T.nilable(Trycourier::UserRecipient::Preferences)) }
43
+ sig { returns(T.nilable(Trycourier::ProfilePreferences)) }
44
44
  attr_reader :preferences
45
45
 
46
46
  sig do
47
47
  params(
48
- preferences: T.nilable(Trycourier::UserRecipient::Preferences::OrHash)
48
+ preferences: T.nilable(Trycourier::ProfilePreferences::OrHash)
49
49
  ).void
50
50
  end
51
51
  attr_writer :preferences
@@ -68,8 +68,7 @@ module Trycourier
68
68
  list_id: T.nilable(String),
69
69
  locale: T.nilable(String),
70
70
  phone_number: T.nilable(String),
71
- preferences:
72
- T.nilable(Trycourier::UserRecipient::Preferences::OrHash),
71
+ preferences: T.nilable(Trycourier::ProfilePreferences::OrHash),
73
72
  tenant_id: T.nilable(String),
74
73
  user_id: T.nilable(String)
75
74
  ).returns(T.attached_class)
@@ -107,7 +106,7 @@ module Trycourier
107
106
  list_id: T.nilable(String),
108
107
  locale: T.nilable(String),
109
108
  phone_number: T.nilable(String),
110
- preferences: T.nilable(Trycourier::UserRecipient::Preferences),
109
+ preferences: T.nilable(Trycourier::ProfilePreferences),
111
110
  tenant_id: T.nilable(String),
112
111
  user_id: T.nilable(String)
113
112
  }
@@ -115,48 +114,6 @@ module Trycourier
115
114
  end
116
115
  def to_hash
117
116
  end
118
-
119
- class Preferences < Trycourier::Internal::Type::BaseModel
120
- OrHash =
121
- T.type_alias do
122
- T.any(
123
- Trycourier::UserRecipient::Preferences,
124
- Trycourier::Internal::AnyHash
125
- )
126
- end
127
-
128
- sig { returns(T::Hash[Symbol, Trycourier::Preference]) }
129
- attr_accessor :notifications
130
-
131
- sig { returns(T.nilable(T::Hash[Symbol, Trycourier::Preference])) }
132
- attr_accessor :categories
133
-
134
- sig { returns(T.nilable(String)) }
135
- attr_accessor :template_id
136
-
137
- sig do
138
- params(
139
- notifications: T::Hash[Symbol, Trycourier::Preference::OrHash],
140
- categories:
141
- T.nilable(T::Hash[Symbol, Trycourier::Preference::OrHash]),
142
- template_id: T.nilable(String)
143
- ).returns(T.attached_class)
144
- end
145
- def self.new(notifications:, categories: nil, template_id: nil)
146
- end
147
-
148
- sig do
149
- override.returns(
150
- {
151
- notifications: T::Hash[Symbol, Trycourier::Preference],
152
- categories: T.nilable(T::Hash[Symbol, Trycourier::Preference]),
153
- template_id: T.nilable(String)
154
- }
155
- )
156
- end
157
- def to_hash
158
- end
159
- end
160
117
  end
161
118
  end
162
119
  end
@@ -174,6 +174,8 @@ module Trycourier
174
174
 
175
175
  ProfileDeleteParams = Trycourier::Models::ProfileDeleteParams
176
176
 
177
+ ProfilePreferences = Trycourier::Models::ProfilePreferences
178
+
177
179
  ProfileReplaceParams = Trycourier::Models::ProfileReplaceParams
178
180
 
179
181
  ProfileRetrieveParams = Trycourier::Models::ProfileRetrieveParams
@@ -25,6 +25,7 @@ module Trycourier
25
25
  {
26
26
  id: String,
27
27
  created_at: Integer,
28
+ event_ids: ::Array[String],
28
29
  note: String,
29
30
  routing: Trycourier::MessageRouting,
30
31
  topic_id: String,
@@ -38,6 +39,8 @@ module Trycourier
38
39
 
39
40
  attr_accessor created_at: Integer
40
41
 
42
+ attr_accessor event_ids: ::Array[String]
43
+
41
44
  attr_accessor note: String
42
45
 
43
46
  attr_accessor routing: Trycourier::MessageRouting
@@ -53,6 +56,7 @@ module Trycourier
53
56
  def initialize: (
54
57
  id: String,
55
58
  created_at: Integer,
59
+ event_ids: ::Array[String],
56
60
  note: String,
57
61
  routing: Trycourier::MessageRouting,
58
62
  topic_id: String,
@@ -64,6 +68,7 @@ module Trycourier
64
68
  def to_hash: -> {
65
69
  id: String,
66
70
  created_at: Integer,
71
+ event_ids: ::Array[String],
67
72
  note: String,
68
73
  routing: Trycourier::MessageRouting,
69
74
  topic_id: String,
@@ -0,0 +1,30 @@
1
+ module Trycourier
2
+ module Models
3
+ type profile_preferences =
4
+ {
5
+ notifications: ::Hash[Symbol, Trycourier::Preference],
6
+ categories: ::Hash[Symbol, Trycourier::Preference]?,
7
+ template_id: String?
8
+ }
9
+
10
+ class ProfilePreferences < Trycourier::Internal::Type::BaseModel
11
+ attr_accessor notifications: ::Hash[Symbol, Trycourier::Preference]
12
+
13
+ attr_accessor categories: ::Hash[Symbol, Trycourier::Preference]?
14
+
15
+ attr_accessor template_id: String?
16
+
17
+ def initialize: (
18
+ notifications: ::Hash[Symbol, Trycourier::Preference],
19
+ ?categories: ::Hash[Symbol, Trycourier::Preference]?,
20
+ ?template_id: String?
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ notifications: ::Hash[Symbol, Trycourier::Preference],
25
+ categories: ::Hash[Symbol, Trycourier::Preference]?,
26
+ template_id: String?
27
+ }
28
+ end
29
+ end
30
+ end
@@ -9,7 +9,7 @@ module Trycourier
9
9
  list_id: String?,
10
10
  locale: String?,
11
11
  phone_number: String?,
12
- preferences: Trycourier::Recipient::Preferences?,
12
+ preferences: Trycourier::ProfilePreferences?,
13
13
  tenant_id: String?,
14
14
  user_id: String?
15
15
  }
@@ -29,7 +29,7 @@ module Trycourier
29
29
 
30
30
  attr_accessor phone_number: String?
31
31
 
32
- attr_accessor preferences: Trycourier::Recipient::Preferences?
32
+ attr_accessor preferences: Trycourier::ProfilePreferences?
33
33
 
34
34
  attr_accessor tenant_id: String?
35
35
 
@@ -43,7 +43,7 @@ module Trycourier
43
43
  ?list_id: String?,
44
44
  ?locale: String?,
45
45
  ?phone_number: String?,
46
- ?preferences: Trycourier::Recipient::Preferences?,
46
+ ?preferences: Trycourier::ProfilePreferences?,
47
47
  ?tenant_id: String?,
48
48
  ?user_id: String?
49
49
  ) -> void
@@ -56,37 +56,10 @@ module Trycourier
56
56
  list_id: String?,
57
57
  locale: String?,
58
58
  phone_number: String?,
59
- preferences: Trycourier::Recipient::Preferences?,
59
+ preferences: Trycourier::ProfilePreferences?,
60
60
  tenant_id: String?,
61
61
  user_id: String?
62
62
  }
63
-
64
- type preferences =
65
- {
66
- notifications: ::Hash[Symbol, Trycourier::Preference],
67
- categories: ::Hash[Symbol, Trycourier::Preference]?,
68
- template_id: String?
69
- }
70
-
71
- class Preferences < Trycourier::Internal::Type::BaseModel
72
- attr_accessor notifications: ::Hash[Symbol, Trycourier::Preference]
73
-
74
- attr_accessor categories: ::Hash[Symbol, Trycourier::Preference]?
75
-
76
- attr_accessor template_id: String?
77
-
78
- def initialize: (
79
- notifications: ::Hash[Symbol, Trycourier::Preference],
80
- ?categories: ::Hash[Symbol, Trycourier::Preference]?,
81
- ?template_id: String?
82
- ) -> void
83
-
84
- def to_hash: -> {
85
- notifications: ::Hash[Symbol, Trycourier::Preference],
86
- categories: ::Hash[Symbol, Trycourier::Preference]?,
87
- template_id: String?
88
- }
89
- end
90
63
  end
91
64
  end
92
65
  end
@@ -9,7 +9,7 @@ module Trycourier
9
9
  list_id: String?,
10
10
  locale: String?,
11
11
  phone_number: String?,
12
- preferences: Trycourier::UserRecipient::Preferences?,
12
+ preferences: Trycourier::ProfilePreferences?,
13
13
  tenant_id: String?,
14
14
  user_id: String?
15
15
  }
@@ -29,7 +29,7 @@ module Trycourier
29
29
 
30
30
  attr_accessor phone_number: String?
31
31
 
32
- attr_accessor preferences: Trycourier::UserRecipient::Preferences?
32
+ attr_accessor preferences: Trycourier::ProfilePreferences?
33
33
 
34
34
  attr_accessor tenant_id: String?
35
35
 
@@ -43,7 +43,7 @@ module Trycourier
43
43
  ?list_id: String?,
44
44
  ?locale: String?,
45
45
  ?phone_number: String?,
46
- ?preferences: Trycourier::UserRecipient::Preferences?,
46
+ ?preferences: Trycourier::ProfilePreferences?,
47
47
  ?tenant_id: String?,
48
48
  ?user_id: String?
49
49
  ) -> void
@@ -56,37 +56,10 @@ module Trycourier
56
56
  list_id: String?,
57
57
  locale: String?,
58
58
  phone_number: String?,
59
- preferences: Trycourier::UserRecipient::Preferences?,
59
+ preferences: Trycourier::ProfilePreferences?,
60
60
  tenant_id: String?,
61
61
  user_id: String?
62
62
  }
63
-
64
- type preferences =
65
- {
66
- notifications: ::Hash[Symbol, Trycourier::Preference],
67
- categories: ::Hash[Symbol, Trycourier::Preference]?,
68
- template_id: String?
69
- }
70
-
71
- class Preferences < Trycourier::Internal::Type::BaseModel
72
- attr_accessor notifications: ::Hash[Symbol, Trycourier::Preference]
73
-
74
- attr_accessor categories: ::Hash[Symbol, Trycourier::Preference]?
75
-
76
- attr_accessor template_id: String?
77
-
78
- def initialize: (
79
- notifications: ::Hash[Symbol, Trycourier::Preference],
80
- ?categories: ::Hash[Symbol, Trycourier::Preference]?,
81
- ?template_id: String?
82
- ) -> void
83
-
84
- def to_hash: -> {
85
- notifications: ::Hash[Symbol, Trycourier::Preference],
86
- categories: ::Hash[Symbol, Trycourier::Preference]?,
87
- template_id: String?
88
- }
89
- end
90
63
  end
91
64
  end
92
65
  end
@@ -167,6 +167,8 @@ module Trycourier
167
167
 
168
168
  class ProfileDeleteParams = Trycourier::Models::ProfileDeleteParams
169
169
 
170
+ class ProfilePreferences = Trycourier::Models::ProfilePreferences
171
+
170
172
  class ProfileReplaceParams = Trycourier::Models::ProfileReplaceParams
171
173
 
172
174
  class ProfileRetrieveParams = Trycourier::Models::ProfileRetrieveParams
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.1.1
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-02 00:00:00.000000000 Z
11
+ date: 2025-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -167,6 +167,7 @@ files:
167
167
  - lib/trycourier/models/profile_create_params.rb
168
168
  - lib/trycourier/models/profile_create_response.rb
169
169
  - lib/trycourier/models/profile_delete_params.rb
170
+ - lib/trycourier/models/profile_preferences.rb
170
171
  - lib/trycourier/models/profile_replace_params.rb
171
172
  - lib/trycourier/models/profile_replace_response.rb
172
173
  - lib/trycourier/models/profile_retrieve_params.rb
@@ -392,6 +393,7 @@ files:
392
393
  - rbi/trycourier/models/profile_create_params.rbi
393
394
  - rbi/trycourier/models/profile_create_response.rbi
394
395
  - rbi/trycourier/models/profile_delete_params.rbi
396
+ - rbi/trycourier/models/profile_preferences.rbi
395
397
  - rbi/trycourier/models/profile_replace_params.rbi
396
398
  - rbi/trycourier/models/profile_replace_response.rbi
397
399
  - rbi/trycourier/models/profile_retrieve_params.rbi
@@ -616,6 +618,7 @@ files:
616
618
  - sig/trycourier/models/profile_create_params.rbs
617
619
  - sig/trycourier/models/profile_create_response.rbs
618
620
  - sig/trycourier/models/profile_delete_params.rbs
621
+ - sig/trycourier/models/profile_preferences.rbs
619
622
  - sig/trycourier/models/profile_replace_params.rbs
620
623
  - sig/trycourier/models/profile_replace_response.rbs
621
624
  - sig/trycourier/models/profile_retrieve_params.rbs