trycourier 4.2.0 → 4.4.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/trycourier/models/bulk_create_job_params.rb +12 -3
  5. data/lib/trycourier/models/bulk_retrieve_job_response.rb +15 -3
  6. data/lib/trycourier/models/inbound_bulk_message.rb +79 -113
  7. data/lib/trycourier/models/inbound_bulk_message_user.rb +21 -6
  8. data/lib/trycourier/models/recipient.rb +26 -3
  9. data/lib/trycourier/models/send_message_params.rb +14 -1
  10. data/lib/trycourier/models/user_recipient.rb +26 -3
  11. data/lib/trycourier/models/users/token_list_response.rb +12 -2
  12. data/lib/trycourier/models.rb +0 -2
  13. data/lib/trycourier/resources/bulk.rb +17 -3
  14. data/lib/trycourier/resources/users/tokens.rb +2 -2
  15. data/lib/trycourier/version.rb +1 -1
  16. data/lib/trycourier.rb +0 -1
  17. data/rbi/trycourier/models/bulk_create_job_params.rbi +21 -20
  18. data/rbi/trycourier/models/bulk_retrieve_job_response.rbi +24 -9
  19. data/rbi/trycourier/models/inbound_bulk_message.rbi +97 -153
  20. data/rbi/trycourier/models/inbound_bulk_message_user.rbi +20 -7
  21. data/rbi/trycourier/models/recipient.rbi +46 -4
  22. data/rbi/trycourier/models/send_message_params.rbi +16 -1
  23. data/rbi/trycourier/models/user_recipient.rbi +47 -4
  24. data/rbi/trycourier/models/users/token_list_response.rbi +27 -5
  25. data/rbi/trycourier/models.rbi +0 -2
  26. data/rbi/trycourier/resources/bulk.rbi +22 -8
  27. data/rbi/trycourier/resources/users/tokens.rbi +1 -1
  28. data/sig/trycourier/models/bulk_create_job_params.rbs +4 -4
  29. data/sig/trycourier/models/bulk_retrieve_job_response.rbs +4 -4
  30. data/sig/trycourier/models/inbound_bulk_message.rbs +52 -99
  31. data/sig/trycourier/models/inbound_bulk_message_user.rbs +4 -6
  32. data/sig/trycourier/models/recipient.rbs +31 -4
  33. data/sig/trycourier/models/send_message_params.rbs +13 -3
  34. data/sig/trycourier/models/user_recipient.rbs +31 -4
  35. data/sig/trycourier/models/users/token_list_response.rbs +9 -2
  36. data/sig/trycourier/models.rbs +1 -3
  37. data/sig/trycourier/resources/bulk.rbs +1 -1
  38. data/sig/trycourier/resources/users/tokens.rbs +1 -1
  39. metadata +2 -5
  40. data/lib/trycourier/models/profile_preferences.rb +0 -27
  41. data/rbi/trycourier/models/profile_preferences.rbi +0 -44
  42. data/sig/trycourier/models/profile_preferences.rbs +0 -30
@@ -3,11 +3,33 @@
3
3
  module Trycourier
4
4
  module Models
5
5
  module Users
6
- TokenListResponse =
7
- T.let(
8
- Trycourier::Internal::Type::ArrayOf[Trycourier::Users::UserToken],
9
- Trycourier::Internal::Type::Converter
10
- )
6
+ class TokenListResponse < Trycourier::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Trycourier::Models::Users::TokenListResponse,
11
+ Trycourier::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig { returns(T::Array[Trycourier::Users::UserToken]) }
16
+ attr_accessor :tokens
17
+
18
+ # A list of tokens registered with the user.
19
+ sig do
20
+ params(
21
+ tokens: T::Array[Trycourier::Users::UserToken::OrHash]
22
+ ).returns(T.attached_class)
23
+ end
24
+ def self.new(tokens:)
25
+ end
26
+
27
+ sig do
28
+ override.returns({ tokens: T::Array[Trycourier::Users::UserToken] })
29
+ end
30
+ def to_hash
31
+ end
32
+ end
11
33
  end
12
34
  end
13
35
  end
@@ -174,8 +174,6 @@ module Trycourier
174
174
 
175
175
  ProfileDeleteParams = Trycourier::Models::ProfileDeleteParams
176
176
 
177
- ProfilePreferences = Trycourier::Models::ProfilePreferences
178
-
179
177
  ProfileReplaceParams = Trycourier::Models::ProfileReplaceParams
180
178
 
181
179
  ProfileRetrieveParams = Trycourier::Models::ProfileRetrieveParams
@@ -3,7 +3,11 @@
3
3
  module Trycourier
4
4
  module Resources
5
5
  class Bulk
6
- # Ingest user data into a Bulk Job
6
+ # Ingest user data into a Bulk Job.
7
+ #
8
+ # **Important**: For email-based bulk jobs, each user must include `profile.email`
9
+ # for provider routing to work correctly. The `to.email` field is not sufficient
10
+ # for email provider routing.
7
11
  sig do
8
12
  params(
9
13
  job_id: String,
@@ -19,18 +23,28 @@ module Trycourier
19
23
  )
20
24
  end
21
25
 
22
- # Create a bulk job
26
+ # Creates a new bulk job for sending messages to multiple recipients.
27
+ #
28
+ # **Required**: `message.event` (event ID or notification ID)
29
+ #
30
+ # **Optional (V2 format)**: `message.template` (notification ID) or
31
+ # `message.content` (Elemental content) can be provided to override the
32
+ # notification associated with the event.
23
33
  sig do
24
34
  params(
25
- message:
26
- T.any(
27
- Trycourier::InboundBulkMessage::InboundBulkTemplateMessage::OrHash,
28
- Trycourier::InboundBulkMessage::InboundBulkContentMessage::OrHash
29
- ),
35
+ message: Trycourier::InboundBulkMessage::OrHash,
30
36
  request_options: Trycourier::RequestOptions::OrHash
31
37
  ).returns(Trycourier::Models::BulkCreateJobResponse)
32
38
  end
33
- def create_job(message:, request_options: {})
39
+ def create_job(
40
+ # Bulk message definition. Supports two formats:
41
+ #
42
+ # - V1 format: Requires `event` field (event ID or notification ID)
43
+ # - V2 format: Optionally use `template` (notification ID) or `content` (Elemental
44
+ # content) in addition to `event`
45
+ message:,
46
+ request_options: {}
47
+ )
34
48
  end
35
49
 
36
50
  # Get Bulk Job Users
@@ -47,7 +47,7 @@ module Trycourier
47
47
  params(
48
48
  user_id: String,
49
49
  request_options: Trycourier::RequestOptions::OrHash
50
- ).returns(T::Array[Trycourier::Users::UserToken])
50
+ ).returns(Trycourier::Models::Users::TokenListResponse)
51
51
  end
52
52
  def list(
53
53
  # The user's ID. This can be any uniquely identifiable string.
@@ -1,22 +1,22 @@
1
1
  module Trycourier
2
2
  module Models
3
3
  type bulk_create_job_params =
4
- { message: Trycourier::Models::inbound_bulk_message }
4
+ { message: Trycourier::InboundBulkMessage }
5
5
  & Trycourier::Internal::Type::request_parameters
6
6
 
7
7
  class BulkCreateJobParams < Trycourier::Internal::Type::BaseModel
8
8
  extend Trycourier::Internal::Type::RequestParameters::Converter
9
9
  include Trycourier::Internal::Type::RequestParameters
10
10
 
11
- attr_accessor message: Trycourier::Models::inbound_bulk_message
11
+ attr_accessor message: Trycourier::InboundBulkMessage
12
12
 
13
13
  def initialize: (
14
- message: Trycourier::Models::inbound_bulk_message,
14
+ message: Trycourier::InboundBulkMessage,
15
15
  ?request_options: Trycourier::request_opts
16
16
  ) -> void
17
17
 
18
18
  def to_hash: -> {
19
- message: Trycourier::Models::inbound_bulk_message,
19
+ message: Trycourier::InboundBulkMessage,
20
20
  request_options: Trycourier::RequestOptions
21
21
  }
22
22
  end
@@ -14,7 +14,7 @@ module Trycourier
14
14
 
15
15
  type job =
16
16
  {
17
- definition: Trycourier::Models::inbound_bulk_message,
17
+ definition: Trycourier::InboundBulkMessage,
18
18
  enqueued: Integer,
19
19
  failures: Integer,
20
20
  received: Integer,
@@ -22,7 +22,7 @@ module Trycourier
22
22
  }
23
23
 
24
24
  class Job < Trycourier::Internal::Type::BaseModel
25
- attr_accessor definition: Trycourier::Models::inbound_bulk_message
25
+ attr_accessor definition: Trycourier::InboundBulkMessage
26
26
 
27
27
  attr_accessor enqueued: Integer
28
28
 
@@ -33,7 +33,7 @@ module Trycourier
33
33
  attr_accessor status: Trycourier::Models::BulkRetrieveJobResponse::Job::status
34
34
 
35
35
  def initialize: (
36
- definition: Trycourier::Models::inbound_bulk_message,
36
+ definition: Trycourier::InboundBulkMessage,
37
37
  enqueued: Integer,
38
38
  failures: Integer,
39
39
  received: Integer,
@@ -41,7 +41,7 @@ module Trycourier
41
41
  ) -> void
42
42
 
43
43
  def to_hash: -> {
44
- definition: Trycourier::Models::inbound_bulk_message,
44
+ definition: Trycourier::InboundBulkMessage,
45
45
  enqueued: Integer,
46
46
  failures: Integer,
47
47
  received: Integer,
@@ -1,106 +1,59 @@
1
1
  module Trycourier
2
2
  module Models
3
3
  type inbound_bulk_message =
4
- Trycourier::InboundBulkMessage::InboundBulkTemplateMessage
5
- | Trycourier::InboundBulkMessage::InboundBulkContentMessage
6
-
7
- module InboundBulkMessage
8
- extend Trycourier::Internal::Type::Union
9
-
10
- type inbound_bulk_template_message =
11
- {
12
- template: String,
13
- brand: String?,
14
- data: ::Hash[Symbol, top]?,
15
- event: String?,
16
- locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
17
- override: ::Hash[Symbol, top]?
18
- }
19
-
20
- class InboundBulkTemplateMessage < Trycourier::Internal::Type::BaseModel
21
- attr_accessor template: String
22
-
23
- attr_accessor brand: String?
24
-
25
- attr_accessor data: ::Hash[Symbol, top]?
26
-
27
- attr_accessor event: String?
28
-
29
- attr_accessor locale: ::Hash[Symbol, ::Hash[Symbol, top]]?
30
-
31
- attr_accessor override: ::Hash[Symbol, top]?
32
-
33
- def initialize: (
34
- template: String,
35
- ?brand: String?,
36
- ?data: ::Hash[Symbol, top]?,
37
- ?event: String?,
38
- ?locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
39
- ?override: ::Hash[Symbol, top]?
40
- ) -> void
41
-
42
- def to_hash: -> {
43
- template: String,
44
- brand: String?,
45
- data: ::Hash[Symbol, top]?,
46
- event: String?,
47
- locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
48
- override: ::Hash[Symbol, top]?
49
- }
50
- end
51
-
52
- type inbound_bulk_content_message =
53
- {
54
- content: Trycourier::Models::InboundBulkMessage::InboundBulkContentMessage::content,
55
- brand: String?,
56
- data: ::Hash[Symbol, top]?,
57
- event: String?,
58
- locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
59
- override: ::Hash[Symbol, top]?
60
- }
61
-
62
- class InboundBulkContentMessage < Trycourier::Internal::Type::BaseModel
63
- attr_accessor content: Trycourier::Models::InboundBulkMessage::InboundBulkContentMessage::content
64
-
65
- attr_accessor brand: String?
66
-
67
- attr_accessor data: ::Hash[Symbol, top]?
68
-
69
- attr_accessor event: String?
70
-
71
- attr_accessor locale: ::Hash[Symbol, ::Hash[Symbol, top]]?
72
-
73
- attr_accessor override: ::Hash[Symbol, top]?
74
-
75
- def initialize: (
76
- content: Trycourier::Models::InboundBulkMessage::InboundBulkContentMessage::content,
77
- ?brand: String?,
78
- ?data: ::Hash[Symbol, top]?,
79
- ?event: String?,
80
- ?locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
81
- ?override: ::Hash[Symbol, top]?
82
- ) -> void
83
-
84
- def to_hash: -> {
85
- content: Trycourier::Models::InboundBulkMessage::InboundBulkContentMessage::content,
86
- brand: String?,
87
- data: ::Hash[Symbol, top]?,
88
- event: String?,
89
- locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
90
- override: ::Hash[Symbol, top]?
91
- }
92
-
93
- type content =
94
- Trycourier::ElementalContentSugar | Trycourier::ElementalContent
95
-
96
- module Content
97
- extend Trycourier::Internal::Type::Union
98
-
99
- def self?.variants: -> ::Array[Trycourier::Models::InboundBulkMessage::InboundBulkContentMessage::content]
100
- end
4
+ {
5
+ event: String,
6
+ brand: String?,
7
+ content: Trycourier::Models::InboundBulkMessage::content?,
8
+ data: ::Hash[Symbol, top]?,
9
+ locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
10
+ override: ::Hash[Symbol, top]?,
11
+ template: String?
12
+ }
13
+
14
+ class InboundBulkMessage < Trycourier::Internal::Type::BaseModel
15
+ attr_accessor event: String
16
+
17
+ attr_accessor brand: String?
18
+
19
+ attr_accessor content: Trycourier::Models::InboundBulkMessage::content?
20
+
21
+ attr_accessor data: ::Hash[Symbol, top]?
22
+
23
+ attr_accessor locale: ::Hash[Symbol, ::Hash[Symbol, top]]?
24
+
25
+ attr_accessor override: ::Hash[Symbol, top]?
26
+
27
+ attr_accessor template: String?
28
+
29
+ def initialize: (
30
+ event: String,
31
+ ?brand: String?,
32
+ ?content: Trycourier::Models::InboundBulkMessage::content?,
33
+ ?data: ::Hash[Symbol, top]?,
34
+ ?locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
35
+ ?override: ::Hash[Symbol, top]?,
36
+ ?template: String?
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ event: String,
41
+ brand: String?,
42
+ content: Trycourier::Models::InboundBulkMessage::content?,
43
+ data: ::Hash[Symbol, top]?,
44
+ locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
45
+ override: ::Hash[Symbol, top]?,
46
+ template: String?
47
+ }
48
+
49
+ type content =
50
+ Trycourier::ElementalContentSugar | Trycourier::ElementalContent
51
+
52
+ module Content
53
+ extend Trycourier::Internal::Type::Union
54
+
55
+ def self?.variants: -> ::Array[Trycourier::Models::InboundBulkMessage::content]
101
56
  end
102
-
103
- def self?.variants: -> ::Array[Trycourier::Models::inbound_bulk_message]
104
57
  end
105
58
  end
106
59
  end
@@ -4,7 +4,7 @@ module Trycourier
4
4
  {
5
5
  data: top,
6
6
  preferences: Trycourier::RecipientPreferences?,
7
- profile: top,
7
+ profile: ::Hash[Symbol, top]?,
8
8
  recipient: String?,
9
9
  to: Trycourier::UserRecipient?
10
10
  }
@@ -16,9 +16,7 @@ module Trycourier
16
16
 
17
17
  attr_accessor preferences: Trycourier::RecipientPreferences?
18
18
 
19
- attr_reader profile: top?
20
-
21
- def profile=: (top) -> top
19
+ attr_accessor profile: ::Hash[Symbol, top]?
22
20
 
23
21
  attr_accessor recipient: String?
24
22
 
@@ -27,7 +25,7 @@ module Trycourier
27
25
  def initialize: (
28
26
  ?data: top,
29
27
  ?preferences: Trycourier::RecipientPreferences?,
30
- ?profile: top,
28
+ ?profile: ::Hash[Symbol, top]?,
31
29
  ?recipient: String?,
32
30
  ?to: Trycourier::UserRecipient?
33
31
  ) -> void
@@ -35,7 +33,7 @@ module Trycourier
35
33
  def to_hash: -> {
36
34
  data: top,
37
35
  preferences: Trycourier::RecipientPreferences?,
38
- profile: top,
36
+ profile: ::Hash[Symbol, top]?,
39
37
  recipient: String?,
40
38
  to: Trycourier::UserRecipient?
41
39
  }
@@ -9,7 +9,7 @@ module Trycourier
9
9
  list_id: String?,
10
10
  locale: String?,
11
11
  phone_number: String?,
12
- preferences: Trycourier::ProfilePreferences?,
12
+ preferences: Trycourier::Recipient::Preferences?,
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::ProfilePreferences?
32
+ attr_accessor preferences: Trycourier::Recipient::Preferences?
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::ProfilePreferences?,
46
+ ?preferences: Trycourier::Recipient::Preferences?,
47
47
  ?tenant_id: String?,
48
48
  ?user_id: String?
49
49
  ) -> void
@@ -56,10 +56,37 @@ module Trycourier
56
56
  list_id: String?,
57
57
  locale: String?,
58
58
  phone_number: String?,
59
- preferences: Trycourier::ProfilePreferences?,
59
+ preferences: Trycourier::Recipient::Preferences?,
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
63
90
  end
64
91
  end
65
92
  end
@@ -194,16 +194,26 @@ module Trycourier
194
194
  def self?.variants: -> ::Array[Trycourier::Models::SendMessageParams::Message::content]
195
195
  end
196
196
 
197
- type delay = { duration: Integer?, until_: String? }
197
+ type delay = { duration: Integer?, timezone: String?, until_: String? }
198
198
 
199
199
  class Delay < Trycourier::Internal::Type::BaseModel
200
200
  attr_accessor duration: Integer?
201
201
 
202
+ attr_accessor timezone: String?
203
+
202
204
  attr_accessor until_: String?
203
205
 
204
- def initialize: (?duration: Integer?, ?until_: String?) -> void
206
+ def initialize: (
207
+ ?duration: Integer?,
208
+ ?timezone: String?,
209
+ ?until_: String?
210
+ ) -> void
205
211
 
206
- def to_hash: -> { duration: Integer?, until_: String? }
212
+ def to_hash: -> {
213
+ duration: Integer?,
214
+ timezone: String?,
215
+ until_: String?
216
+ }
207
217
  end
208
218
 
209
219
  type expiry =
@@ -9,7 +9,7 @@ module Trycourier
9
9
  list_id: String?,
10
10
  locale: String?,
11
11
  phone_number: String?,
12
- preferences: Trycourier::ProfilePreferences?,
12
+ preferences: Trycourier::UserRecipient::Preferences?,
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::ProfilePreferences?
32
+ attr_accessor preferences: Trycourier::UserRecipient::Preferences?
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::ProfilePreferences?,
46
+ ?preferences: Trycourier::UserRecipient::Preferences?,
47
47
  ?tenant_id: String?,
48
48
  ?user_id: String?
49
49
  ) -> void
@@ -56,10 +56,37 @@ module Trycourier
56
56
  list_id: String?,
57
57
  locale: String?,
58
58
  phone_number: String?,
59
- preferences: Trycourier::ProfilePreferences?,
59
+ preferences: Trycourier::UserRecipient::Preferences?,
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
63
90
  end
64
91
  end
65
92
  end
@@ -1,9 +1,16 @@
1
1
  module Trycourier
2
2
  module Models
3
3
  module Users
4
- type token_list_response = ::Array[Trycourier::Users::UserToken]
4
+ type token_list_response =
5
+ { tokens: ::Array[Trycourier::Users::UserToken] }
5
6
 
6
- TokenListResponse: Trycourier::Internal::Type::Converter
7
+ class TokenListResponse < Trycourier::Internal::Type::BaseModel
8
+ attr_accessor tokens: ::Array[Trycourier::Users::UserToken]
9
+
10
+ def initialize: (tokens: ::Array[Trycourier::Users::UserToken]) -> void
11
+
12
+ def to_hash: -> { tokens: ::Array[Trycourier::Users::UserToken] }
13
+ end
7
14
  end
8
15
  end
9
16
  end
@@ -109,7 +109,7 @@ module Trycourier
109
109
 
110
110
  class Icons = Trycourier::Models::Icons
111
111
 
112
- module InboundBulkMessage = Trycourier::Models::InboundBulkMessage
112
+ class InboundBulkMessage = Trycourier::Models::InboundBulkMessage
113
113
 
114
114
  class InboundBulkMessageUser = Trycourier::Models::InboundBulkMessageUser
115
115
 
@@ -167,8 +167,6 @@ module Trycourier
167
167
 
168
168
  class ProfileDeleteParams = Trycourier::Models::ProfileDeleteParams
169
169
 
170
- class ProfilePreferences = Trycourier::Models::ProfilePreferences
171
-
172
170
  class ProfileReplaceParams = Trycourier::Models::ProfileReplaceParams
173
171
 
174
172
  class ProfileRetrieveParams = Trycourier::Models::ProfileRetrieveParams
@@ -8,7 +8,7 @@ module Trycourier
8
8
  ) -> nil
9
9
 
10
10
  def create_job: (
11
- message: Trycourier::Models::inbound_bulk_message,
11
+ message: Trycourier::InboundBulkMessage,
12
12
  ?request_options: Trycourier::request_opts
13
13
  ) -> Trycourier::Models::BulkCreateJobResponse
14
14
 
@@ -18,7 +18,7 @@ module Trycourier
18
18
  def list: (
19
19
  String user_id,
20
20
  ?request_options: Trycourier::request_opts
21
- ) -> Trycourier::Models::Users::token_list_response
21
+ ) -> Trycourier::Models::Users::TokenListResponse
22
22
 
23
23
  def delete: (
24
24
  String token,
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.2.0
4
+ version: 4.4.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-08 00:00:00.000000000 Z
11
+ date: 2025-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -167,7 +167,6 @@ 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
171
170
  - lib/trycourier/models/profile_replace_params.rb
172
171
  - lib/trycourier/models/profile_replace_response.rb
173
172
  - lib/trycourier/models/profile_retrieve_params.rb
@@ -393,7 +392,6 @@ files:
393
392
  - rbi/trycourier/models/profile_create_params.rbi
394
393
  - rbi/trycourier/models/profile_create_response.rbi
395
394
  - rbi/trycourier/models/profile_delete_params.rbi
396
- - rbi/trycourier/models/profile_preferences.rbi
397
395
  - rbi/trycourier/models/profile_replace_params.rbi
398
396
  - rbi/trycourier/models/profile_replace_response.rbi
399
397
  - rbi/trycourier/models/profile_retrieve_params.rbi
@@ -618,7 +616,6 @@ files:
618
616
  - sig/trycourier/models/profile_create_params.rbs
619
617
  - sig/trycourier/models/profile_create_response.rbs
620
618
  - sig/trycourier/models/profile_delete_params.rbs
621
- - sig/trycourier/models/profile_preferences.rbs
622
619
  - sig/trycourier/models/profile_replace_params.rbs
623
620
  - sig/trycourier/models/profile_replace_response.rbs
624
621
  - sig/trycourier/models/profile_retrieve_params.rbs
@@ -1,27 +0,0 @@
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