sentdm 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9653d22f98877baff3a34f8d14b92e3dcbd99f7d26bce3ad530c31e71091ce6e
4
- data.tar.gz: 0014dd38851fe816f3c29e664e27e763af89a3668ab5733ed027c69e0bb9195d
3
+ metadata.gz: 8bdea85fb585f27cf40b23dfc368b50f8d2702504c4533ff45cd7d70013e088b
4
+ data.tar.gz: 30de895ae00547c9ef88c3cb1fda0549c95adb953d0b437ceda49217de411bdd
5
5
  SHA512:
6
- metadata.gz: ae34f4c5f40afb31033c0f959fc45b339b7ddb0ab8135053d0ed63ad9c04da56ea5fc87cbc5cbfa285780fb5a8975f745397b112c7f02d966f4563c61689636c
7
- data.tar.gz: 7890ca6f82bc05f1988c400ab5544424a041b5def9cdd5aeaa6b2577ebc8507b71e3f57cf2af1ced75363066cc04057aa0f85d5e8d9781a64bb1ba72b9301393
6
+ metadata.gz: 34128237aca4b88ec8e8f488398bcf35e78a6346392900f4a539cbaf90be6c186b2c0f418fe42330118eb2f15b00fce87770a1fecb3d803ca43222cb8f9f2f7e
7
+ data.tar.gz: 1c9946fbf8be62e62d7f101761f0992451e7df9cae5b6f66d8d78c94ab1a506284761445080f45b12a4316f564ab2e1028cff1a1e4b0748d77b1e2d7a2453e0e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 0.9.0 (2026-03-12)
4
12
 
5
13
  Full Changelog: [v0.8.0...v0.9.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.8.0...v0.9.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.9.0"
29
+ gem "sentdm", "~> 0.10.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.0"
5
5
  end
@@ -83,10 +83,6 @@ module Sentdm
83
83
  )
84
84
  end
85
85
 
86
- # Resolved template body text
87
- sig { returns(T.nilable(String)) }
88
- attr_accessor :body
89
-
90
86
  # Per-recipient message results
91
87
  sig do
92
88
  returns(
@@ -131,7 +127,6 @@ module Sentdm
131
127
  # Response for the multi-recipient send message endpoint
132
128
  sig do
133
129
  params(
134
- body: T.nilable(String),
135
130
  recipients:
136
131
  T::Array[
137
132
  Sentdm::Models::MessageSendResponse::Data::Recipient::OrHash
@@ -142,8 +137,6 @@ module Sentdm
142
137
  ).returns(T.attached_class)
143
138
  end
144
139
  def self.new(
145
- # Resolved template body text
146
- body: nil,
147
140
  # Per-recipient message results
148
141
  recipients: nil,
149
142
  # Overall request status (e.g. "accepted")
@@ -158,7 +151,6 @@ module Sentdm
158
151
  sig do
159
152
  override.returns(
160
153
  {
161
- body: T.nilable(String),
162
154
  recipients:
163
155
  T::Array[Sentdm::Models::MessageSendResponse::Data::Recipient],
164
156
  status: String,
@@ -179,6 +171,11 @@ module Sentdm
179
171
  )
180
172
  end
181
173
 
174
+ # Resolved template body text for this recipient's channel, or null for
175
+ # auto-detect
176
+ sig { returns(T.nilable(String)) }
177
+ attr_accessor :body
178
+
182
179
  # Channel this message will be sent on (e.g. "sms", "whatsapp"), or null for
183
180
  # auto-detect
184
181
  sig { returns(T.nilable(String)) }
@@ -201,12 +198,16 @@ module Sentdm
201
198
  # Per-recipient result in the send message response
202
199
  sig do
203
200
  params(
201
+ body: T.nilable(String),
204
202
  channel: T.nilable(String),
205
203
  message_id: String,
206
204
  to: String
207
205
  ).returns(T.attached_class)
208
206
  end
209
207
  def self.new(
208
+ # Resolved template body text for this recipient's channel, or null for
209
+ # auto-detect
210
+ body: nil,
210
211
  # Channel this message will be sent on (e.g. "sms", "whatsapp"), or null for
211
212
  # auto-detect
212
213
  channel: nil,
@@ -219,7 +220,12 @@ module Sentdm
219
220
 
220
221
  sig do
221
222
  override.returns(
222
- { channel: T.nilable(String), message_id: String, to: String }
223
+ {
224
+ body: T.nilable(String),
225
+ channel: T.nilable(String),
226
+ message_id: String,
227
+ to: String
228
+ }
223
229
  )
224
230
  end
225
231
  def to_hash
@@ -37,7 +37,6 @@ module Sentdm
37
37
 
38
38
  type data =
39
39
  {
40
- body: String?,
41
40
  recipients: ::Array[Sentdm::Models::MessageSendResponse::Data::Recipient],
42
41
  status: String,
43
42
  template_id: String,
@@ -45,8 +44,6 @@ module Sentdm
45
44
  }
46
45
 
47
46
  class Data < Sentdm::Internal::Type::BaseModel
48
- attr_accessor body: String?
49
-
50
47
  attr_reader recipients: ::Array[Sentdm::Models::MessageSendResponse::Data::Recipient]?
51
48
 
52
49
  def recipients=: (
@@ -66,7 +63,6 @@ module Sentdm
66
63
  def template_name=: (String) -> String
67
64
 
68
65
  def initialize: (
69
- ?body: String?,
70
66
  ?recipients: ::Array[Sentdm::Models::MessageSendResponse::Data::Recipient],
71
67
  ?status: String,
72
68
  ?template_id: String,
@@ -74,16 +70,18 @@ module Sentdm
74
70
  ) -> void
75
71
 
76
72
  def to_hash: -> {
77
- body: String?,
78
73
  recipients: ::Array[Sentdm::Models::MessageSendResponse::Data::Recipient],
79
74
  status: String,
80
75
  template_id: String,
81
76
  template_name: String
82
77
  }
83
78
 
84
- type recipient = { channel: String?, message_id: String, to: String }
79
+ type recipient =
80
+ { body: String?, channel: String?, message_id: String, to: String }
85
81
 
86
82
  class Recipient < Sentdm::Internal::Type::BaseModel
83
+ attr_accessor body: String?
84
+
87
85
  attr_accessor channel: String?
88
86
 
89
87
  attr_reader message_id: String?
@@ -95,12 +93,18 @@ module Sentdm
95
93
  def to=: (String) -> String
96
94
 
97
95
  def initialize: (
96
+ ?body: String?,
98
97
  ?channel: String?,
99
98
  ?message_id: String,
100
99
  ?to: String
101
100
  ) -> void
102
101
 
103
- def to_hash: -> { channel: String?, message_id: String, to: String }
102
+ def to_hash: -> {
103
+ body: String?,
104
+ channel: String?,
105
+ message_id: String,
106
+ to: String
107
+ }
104
108
  end
105
109
  end
106
110
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sent Dm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-12 00:00:00.000000000 Z
11
+ date: 2026-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi