sentdm 0.8.0 → 0.10.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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/internal/type/base_model.rb +5 -5
  5. data/lib/sentdm/models/api_response_of_contact.rb +3 -3
  6. data/lib/sentdm/models/api_response_of_profile_detail.rb +3 -3
  7. data/lib/sentdm/models/api_response_of_user.rb +3 -3
  8. data/lib/sentdm/models/api_response_template.rb +3 -3
  9. data/lib/sentdm/models/api_response_webhook.rb +3 -3
  10. data/lib/sentdm/models/contact_list_response.rb +3 -3
  11. data/lib/sentdm/models/{api_error.rb → error_detail.rb} +1 -1
  12. data/lib/sentdm/models/me_retrieve_response.rb +3 -3
  13. data/lib/sentdm/models/message_retrieve_activities_response.rb +3 -3
  14. data/lib/sentdm/models/message_retrieve_status_response.rb +3 -3
  15. data/lib/sentdm/models/message_send_response.rb +14 -13
  16. data/lib/sentdm/models/number_lookup_response.rb +3 -3
  17. data/lib/sentdm/models/profile_list_response.rb +3 -3
  18. data/lib/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rb +3 -3
  19. data/lib/sentdm/models/profiles/campaign_list_response.rb +3 -3
  20. data/lib/sentdm/models/template_list_response.rb +3 -3
  21. data/lib/sentdm/models/user_list_response.rb +3 -3
  22. data/lib/sentdm/models/webhook_list_event_types_response.rb +3 -3
  23. data/lib/sentdm/models/webhook_list_events_response.rb +3 -3
  24. data/lib/sentdm/models/webhook_list_response.rb +3 -3
  25. data/lib/sentdm/models/webhook_rotate_secret_response.rb +3 -3
  26. data/lib/sentdm/models/webhook_test_response.rb +3 -3
  27. data/lib/sentdm/models.rb +2 -2
  28. data/lib/sentdm/version.rb +1 -1
  29. data/lib/sentdm.rb +1 -1
  30. data/rbi/sentdm/models/api_response_of_contact.rbi +4 -4
  31. data/rbi/sentdm/models/api_response_of_profile_detail.rbi +4 -4
  32. data/rbi/sentdm/models/api_response_of_user.rbi +4 -4
  33. data/rbi/sentdm/models/api_response_template.rbi +4 -4
  34. data/rbi/sentdm/models/api_response_webhook.rbi +4 -4
  35. data/rbi/sentdm/models/contact_list_response.rbi +4 -4
  36. data/rbi/sentdm/models/{api_error.rbi → error_detail.rbi} +2 -2
  37. data/rbi/sentdm/models/me_retrieve_response.rbi +4 -4
  38. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +4 -4
  39. data/rbi/sentdm/models/message_retrieve_status_response.rbi +4 -4
  40. data/rbi/sentdm/models/message_send_response.rbi +19 -13
  41. data/rbi/sentdm/models/number_lookup_response.rbi +4 -4
  42. data/rbi/sentdm/models/profile_list_response.rbi +4 -4
  43. data/rbi/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbi +4 -4
  44. data/rbi/sentdm/models/profiles/campaign_list_response.rbi +4 -4
  45. data/rbi/sentdm/models/template_list_response.rbi +4 -4
  46. data/rbi/sentdm/models/user_list_response.rbi +4 -4
  47. data/rbi/sentdm/models/webhook_list_event_types_response.rbi +4 -4
  48. data/rbi/sentdm/models/webhook_list_events_response.rbi +4 -4
  49. data/rbi/sentdm/models/webhook_list_response.rbi +4 -4
  50. data/rbi/sentdm/models/webhook_rotate_secret_response.rbi +4 -4
  51. data/rbi/sentdm/models/webhook_test_response.rbi +4 -4
  52. data/rbi/sentdm/models.rbi +2 -2
  53. data/sig/sentdm/models/api_response_of_contact.rbs +4 -4
  54. data/sig/sentdm/models/api_response_of_profile_detail.rbs +4 -4
  55. data/sig/sentdm/models/api_response_of_user.rbs +4 -4
  56. data/sig/sentdm/models/api_response_template.rbs +4 -4
  57. data/sig/sentdm/models/api_response_webhook.rbs +4 -4
  58. data/sig/sentdm/models/contact_list_response.rbs +4 -4
  59. data/sig/sentdm/models/{api_error.rbs → error_detail.rbs} +2 -2
  60. data/sig/sentdm/models/me_retrieve_response.rbs +4 -4
  61. data/sig/sentdm/models/message_retrieve_activities_response.rbs +4 -4
  62. data/sig/sentdm/models/message_retrieve_status_response.rbs +4 -4
  63. data/sig/sentdm/models/message_send_response.rbs +15 -11
  64. data/sig/sentdm/models/number_lookup_response.rbs +4 -4
  65. data/sig/sentdm/models/profile_list_response.rbs +4 -4
  66. data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +4 -4
  67. data/sig/sentdm/models/profiles/campaign_list_response.rbs +4 -4
  68. data/sig/sentdm/models/template_list_response.rbs +4 -4
  69. data/sig/sentdm/models/user_list_response.rbs +4 -4
  70. data/sig/sentdm/models/webhook_list_event_types_response.rbs +4 -4
  71. data/sig/sentdm/models/webhook_list_events_response.rbs +4 -4
  72. data/sig/sentdm/models/webhook_list_response.rbs +4 -4
  73. data/sig/sentdm/models/webhook_rotate_secret_response.rbs +4 -4
  74. data/sig/sentdm/models/webhook_test_response.rbs +4 -4
  75. data/sig/sentdm/models.rbs +2 -2
  76. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 447a045280efe7da83cf429cdcccd358d54cab7bde54b7e017e194b398ed6333
4
- data.tar.gz: 6df56b895dfc8b2b118c8bccdabc9b87272a79c80f9f1749d27ff5537d97240a
3
+ metadata.gz: 8bdea85fb585f27cf40b23dfc368b50f8d2702504c4533ff45cd7d70013e088b
4
+ data.tar.gz: 30de895ae00547c9ef88c3cb1fda0549c95adb953d0b437ceda49217de411bdd
5
5
  SHA512:
6
- metadata.gz: '064029446763608a46bdb7e1be08b8075645ea22b42a954a259d9ba0ebdf5aecd39bc8a783d38e745ad41c8e18c018c90439b62ab2d9b750938def30983a6fed'
7
- data.tar.gz: 941fd2702a359e4d7ce7eee6b8e868980275fa7270457e3534fd1dfbb385d1b052c235aae138d9e93dcfc428c133960a9b29b47ad45bd257bc5649a6d0d2c94a
6
+ metadata.gz: 34128237aca4b88ec8e8f488398bcf35e78a6346392900f4a539cbaf90be6c186b2c0f418fe42330118eb2f15b00fce87770a1fecb3d803ca43222cb8f9f2f7e
7
+ data.tar.gz: 1c9946fbf8be62e62d7f101761f0992451e7df9cae5b6f66d8d78c94ab1a506284761445080f45b12a4316f564ab2e1028cff1a1e4b0748d77b1e2d7a2453e0e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.0 (2026-03-16)
4
+
5
+ Full Changelog: [v0.9.0...v0.10.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.9.0...v0.10.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([10ca37a](https://github.com/sentdm/sent-dm-ruby/commit/10ca37a59d73cdfa1b27243efb26c7a624474d1d))
10
+
11
+ ## 0.9.0 (2026-03-12)
12
+
13
+ Full Changelog: [v0.8.0...v0.9.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.8.0...v0.9.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** manual updates ([85587e2](https://github.com/sentdm/sent-dm-ruby/commit/85587e2b3c4ecce4b78886ffa3d5f6cd24565308))
18
+
3
19
  ## 0.8.0 (2026-03-12)
4
20
 
5
21
  Full Changelog: [v0.7.0...v0.8.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.7.0...v0.8.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "sentdm", "~> 0.8.0"
29
+ gem "sentdm", "~> 0.10.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -438,11 +438,11 @@ module Sentdm
438
438
  # @return [Hash{Symbol=>Object}]
439
439
  #
440
440
  # @example
441
- # # `api_error` is a `Sentdm::APIError`
442
- # api_error => {
443
- # code: code,
444
- # details: details,
445
- # doc_url: doc_url
441
+ # # `api_meta` is a `Sentdm::APIMeta`
442
+ # api_meta => {
443
+ # request_id: request_id,
444
+ # timestamp: timestamp,
445
+ # version: version
446
446
  # }
447
447
  def deconstruct_keys(keys)
448
448
  (keys || self.class.known_fields.keys)
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -36,7 +36,7 @@ module Sentdm
36
36
  #
37
37
  # @param data [Sentdm::Models::ContactResponse, nil] Contact response for v3 API
38
38
  #
39
- # @param error [Sentdm::Models::APIError, nil] Error information
39
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
40
40
  #
41
41
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
42
42
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::ProfileDetail, nil] Detailed profile response for v3 API
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::UserResponse, nil] User response for v3 API
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::Template, nil] Template response for v3 API
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::WebhookResponse, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::ContactListResponse::Data, nil] Paginated list of contacts response
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Sentdm
4
4
  module Models
5
- class APIError < Sentdm::Internal::Type::BaseModel
5
+ class ErrorDetail < Sentdm::Internal::Type::BaseModel
6
6
  # @!attribute code
7
7
  # Machine-readable error code (e.g., "RESOURCE_001")
8
8
  #
@@ -15,8 +15,8 @@ module Sentdm
15
15
  # @!attribute error
16
16
  # Error information
17
17
  #
18
- # @return [Sentdm::Models::APIError, nil]
19
- optional :error, -> { Sentdm::APIError }, nil?: true
18
+ # @return [Sentdm::Models::ErrorDetail, nil]
19
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
20
20
 
21
21
  # @!attribute meta
22
22
  # Request and response metadata
@@ -38,7 +38,7 @@ module Sentdm
38
38
  #
39
39
  # @param data [Sentdm::Models::MeRetrieveResponse::Data, nil] Account response for GET /v3/me endpoint.
40
40
  #
41
- # @param error [Sentdm::Models::APIError, nil] Error information
41
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
42
42
  #
43
43
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
44
44
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::MessageRetrieveActivitiesResponse::Data, nil] Response for GET /messages/{id}/activities
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::MessageRetrieveStatusResponse::Data, nil] Message response for v3 API — same shape as v2 with snake_case JSON conventions
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::MessageSendResponse::Data, nil] Response for the multi-recipient send message endpoint
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -41,12 +41,6 @@ module Sentdm
41
41
 
42
42
  # @see Sentdm::Models::MessageSendResponse#data
43
43
  class Data < Sentdm::Internal::Type::BaseModel
44
- # @!attribute body
45
- # Resolved template body text
46
- #
47
- # @return [String, nil]
48
- optional :body, String, nil?: true
49
-
50
44
  # @!attribute recipients
51
45
  # Per-recipient message results
52
46
  #
@@ -72,11 +66,9 @@ module Sentdm
72
66
  # @return [String, nil]
73
67
  optional :template_name, String
74
68
 
75
- # @!method initialize(body: nil, recipients: nil, status: nil, template_id: nil, template_name: nil)
69
+ # @!method initialize(recipients: nil, status: nil, template_id: nil, template_name: nil)
76
70
  # Response for the multi-recipient send message endpoint
77
71
  #
78
- # @param body [String, nil] Resolved template body text
79
- #
80
72
  # @param recipients [Array<Sentdm::Models::MessageSendResponse::Data::Recipient>] Per-recipient message results
81
73
  #
82
74
  # @param status [String] Overall request status (e.g. "accepted")
@@ -86,6 +78,13 @@ module Sentdm
86
78
  # @param template_name [String] Template display name
87
79
 
88
80
  class Recipient < Sentdm::Internal::Type::BaseModel
81
+ # @!attribute body
82
+ # Resolved template body text for this recipient's channel, or null for
83
+ # auto-detect
84
+ #
85
+ # @return [String, nil]
86
+ optional :body, String, nil?: true
87
+
89
88
  # @!attribute channel
90
89
  # Channel this message will be sent on (e.g. "sms", "whatsapp"), or null for
91
90
  # auto-detect
@@ -105,12 +104,14 @@ module Sentdm
105
104
  # @return [String, nil]
106
105
  optional :to, String
107
106
 
108
- # @!method initialize(channel: nil, message_id: nil, to: nil)
107
+ # @!method initialize(body: nil, channel: nil, message_id: nil, to: nil)
109
108
  # Some parameter documentations has been truncated, see
110
109
  # {Sentdm::Models::MessageSendResponse::Data::Recipient} for more details.
111
110
  #
112
111
  # Per-recipient result in the send message response
113
112
  #
113
+ # @param body [String, nil] Resolved template body text for this recipient's channel, or null for auto-detec
114
+ #
114
115
  # @param channel [String, nil] Channel this message will be sent on (e.g. "sms", "whatsapp"), or null for auto-
115
116
  #
116
117
  # @param message_id [String] Unique message identifier for tracking this recipient's message
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::NumberLookupResponse::Data, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::ProfileListResponse::Data, nil] List of profiles response
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -14,8 +14,8 @@ module Sentdm
14
14
  # @!attribute error
15
15
  # Error information
16
16
  #
17
- # @return [Sentdm::Models::APIError, nil]
18
- optional :error, -> { Sentdm::APIError }, nil?: true
17
+ # @return [Sentdm::Models::ErrorDetail, nil]
18
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
19
19
 
20
20
  # @!attribute meta
21
21
  # Request and response metadata
@@ -34,7 +34,7 @@ module Sentdm
34
34
  #
35
35
  # @param data [Sentdm::Models::Profiles::TcrCampaignWithUseCases, nil] The response data (null if error)
36
36
  #
37
- # @param error [Sentdm::Models::APIError, nil] Error information
37
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
38
38
  #
39
39
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
40
40
  #
@@ -16,8 +16,8 @@ module Sentdm
16
16
  # @!attribute error
17
17
  # Error information
18
18
  #
19
- # @return [Sentdm::Models::APIError, nil]
20
- optional :error, -> { Sentdm::APIError }, nil?: true
19
+ # @return [Sentdm::Models::ErrorDetail, nil]
20
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
21
21
 
22
22
  # @!attribute meta
23
23
  # Request and response metadata
@@ -36,7 +36,7 @@ module Sentdm
36
36
  #
37
37
  # @param data [Array<Sentdm::Models::Profiles::TcrCampaignWithUseCases>, nil] The response data (null if error)
38
38
  #
39
- # @param error [Sentdm::Models::APIError, nil] Error information
39
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
40
40
  #
41
41
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
42
42
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::TemplateListResponse::Data, nil] Paginated list of templates
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::UserListResponse::Data, nil] List of users response
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::WebhookListEventTypesResponse::Data, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::WebhookListEventsResponse::Data, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::WebhookListResponse::Data, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::WebhookRotateSecretResponse::Data, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
@@ -13,8 +13,8 @@ module Sentdm
13
13
  # @!attribute error
14
14
  # Error information
15
15
  #
16
- # @return [Sentdm::Models::APIError, nil]
17
- optional :error, -> { Sentdm::APIError }, nil?: true
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
18
 
19
19
  # @!attribute meta
20
20
  # Request and response metadata
@@ -33,7 +33,7 @@ module Sentdm
33
33
  #
34
34
  # @param data [Sentdm::Models::WebhookTestResponse::Data, nil] The response data (null if error)
35
35
  #
36
- # @param error [Sentdm::Models::APIError, nil] Error information
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
37
  #
38
38
  # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
39
  #
data/lib/sentdm/models.rb CHANGED
@@ -39,8 +39,6 @@ module Sentdm
39
39
  mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
40
40
  end
41
41
 
42
- APIError = Sentdm::Models::APIError
43
-
44
42
  APIMeta = Sentdm::Models::APIMeta
45
43
 
46
44
  APIResponseOfContact = Sentdm::Models::APIResponseOfContact
@@ -71,6 +69,8 @@ module Sentdm
71
69
 
72
70
  DestinationCountry = Sentdm::Models::DestinationCountry
73
71
 
72
+ ErrorDetail = Sentdm::Models::ErrorDetail
73
+
74
74
  MeRetrieveParams = Sentdm::Models::MeRetrieveParams
75
75
 
76
76
  MessageRetrieveActivitiesParams = Sentdm::Models::MessageRetrieveActivitiesParams
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.8.0"
4
+ VERSION = "0.10.0"
5
5
  end
data/lib/sentdm.rb CHANGED
@@ -54,7 +54,6 @@ require_relative "sentdm/internal/transport/pooled_net_requester"
54
54
  require_relative "sentdm/client"
55
55
  require_relative "sentdm/models/mutation_request"
56
56
  require_relative "sentdm/models/profiles/base_dto"
57
- require_relative "sentdm/models/api_error"
58
57
  require_relative "sentdm/models/api_meta"
59
58
  require_relative "sentdm/models/api_response_of_contact"
60
59
  require_relative "sentdm/models/api_response_of_profile_detail"
@@ -71,6 +70,7 @@ require_relative "sentdm/models/contact_response"
71
70
  require_relative "sentdm/models/contact_retrieve_params"
72
71
  require_relative "sentdm/models/contact_update_params"
73
72
  require_relative "sentdm/models/destination_country"
73
+ require_relative "sentdm/models/error_detail"
74
74
  require_relative "sentdm/models/me_retrieve_params"
75
75
  require_relative "sentdm/models/me_retrieve_response"
76
76
  require_relative "sentdm/models/message_retrieve_activities_params"
@@ -16,10 +16,10 @@ module Sentdm
16
16
  attr_writer :data
17
17
 
18
18
  # Error information
19
- sig { returns(T.nilable(Sentdm::APIError)) }
19
+ sig { returns(T.nilable(Sentdm::ErrorDetail)) }
20
20
  attr_reader :error
21
21
 
22
- sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
22
+ sig { params(error: T.nilable(Sentdm::ErrorDetail::OrHash)).void }
23
23
  attr_writer :error
24
24
 
25
25
  # Request and response metadata
@@ -40,7 +40,7 @@ module Sentdm
40
40
  sig do
41
41
  params(
42
42
  data: T.nilable(Sentdm::ContactResponse::OrHash),
43
- error: T.nilable(Sentdm::APIError::OrHash),
43
+ error: T.nilable(Sentdm::ErrorDetail::OrHash),
44
44
  meta: Sentdm::APIMeta::OrHash,
45
45
  success: T::Boolean
46
46
  ).returns(T.attached_class)
@@ -61,7 +61,7 @@ module Sentdm
61
61
  override.returns(
62
62
  {
63
63
  data: T.nilable(Sentdm::ContactResponse),
64
- error: T.nilable(Sentdm::APIError),
64
+ error: T.nilable(Sentdm::ErrorDetail),
65
65
  meta: Sentdm::APIMeta,
66
66
  success: T::Boolean
67
67
  }