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
@@ -1,44 +0,0 @@
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
@@ -1,30 +0,0 @@
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