zavudev 0.12.0 → 0.13.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: 17550e3e58db58719cdc2a8802e6c9002567e0415d2ed970324cc07efa240805
4
- data.tar.gz: 4030a97737932b7c184a40188c9a005ef52acc79465bc60590c7bfa44c22f877
3
+ metadata.gz: 7acd7e0349acb65eada647202880714e47e5b9cfcfa12583f77e27db11993f82
4
+ data.tar.gz: bf70c460648a96d443e2bd79b8be6a678306be02d38fdde537c186aec4ba77d3
5
5
  SHA512:
6
- metadata.gz: c1a8b5d82f24c1ebcb9c96cf117aa32f969a4fc5bb7d7343b2631e3af08dae6eeeccf5cb4ec63e5e42bdc6765b1c8a29dad659a9a880c552174f3981682ced5f
7
- data.tar.gz: 1d27ac9df2216472ad34c826d690f46bde83aacf5281ca9a9672575dd2741ad545e8ed61ae460fdbceb211e0fdbca7b3839d94814f1e1d48059a2fe23cfe3bc3
6
+ metadata.gz: 751db02e34b4d9766f38893a15353ebdca10307eec404418c8ea0a690c0c566f65d1e6fe5d25297872b17a877d0d13c5c230cfc0cd094445c4d97a6e54a12cce
7
+ data.tar.gz: 636bc3237e0a5048dc8f955d3335d23bd2c7bb45e894597bdc6c936386cb1b44599b0f5433b57b31f921d99cbacc0b748668667b63ce043f15cb0d198614cc32
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2026-06-07)
4
+
5
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/zavudev/sdk-ruby/compare/v0.12.0...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b59db6f](https://github.com/zavudev/sdk-ruby/commit/b59db6f514301863861cc3e0e782ef39e476dbd6))
10
+
3
11
  ## 0.12.0 (2026-05-28)
4
12
 
5
13
  Full Changelog: [v0.11.0...v0.12.0](https://github.com/zavudev/sdk-ruby/compare/v0.11.0...v0.12.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 "zavudev", "~> 0.12.0"
29
+ gem "zavudev", "~> 0.13.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -120,6 +120,41 @@ module Zavudev
120
120
  # @return [String, nil]
121
121
  optional :react_to_message_id, String, api_name: :reactToMessageId
122
122
 
123
+ # @!attribute reply_to_from
124
+ # Sender of the quoted message (phone number in E.164 format).
125
+ #
126
+ # @return [String, nil]
127
+ optional :reply_to_from, String, api_name: :replyToFrom
128
+
129
+ # @!attribute reply_to_message_id
130
+ # Zavu message ID of the quoted message this message replies to. Present on
131
+ # inbound messages that quote an earlier message. Omitted when the quoted message
132
+ # is not found in Zavu (e.g. an old or unknown message) — use
133
+ # replyToProviderMessageId in that case.
134
+ #
135
+ # @return [String, nil]
136
+ optional :reply_to_message_id, String, api_name: :replyToMessageId
137
+
138
+ # @!attribute reply_to_message_type
139
+ # Type of the quoted message (text, image, video, etc.).
140
+ #
141
+ # @return [String, nil]
142
+ optional :reply_to_message_type, String, api_name: :replyToMessageType
143
+
144
+ # @!attribute reply_to_provider_message_id
145
+ # Provider message ID (WhatsApp WAMID) of the quoted message. Present whenever an
146
+ # inbound message is a reply, even if the quoted message is not stored in Zavu.
147
+ #
148
+ # @return [String, nil]
149
+ optional :reply_to_provider_message_id, String, api_name: :replyToProviderMessageId
150
+
151
+ # @!attribute reply_to_text
152
+ # Truncated snippet of the quoted message's text, for display. Empty when the
153
+ # quoted message has no text (e.g. media).
154
+ #
155
+ # @return [String, nil]
156
+ optional :reply_to_text, String, api_name: :replyToText
157
+
123
158
  # @!attribute sections
124
159
  # Sections for list messages.
125
160
  #
@@ -174,7 +209,7 @@ module Zavudev
174
209
  # @return [Hash{Symbol=>String}, nil]
175
210
  optional :template_variables, Zavudev::Internal::Type::HashOf[String], api_name: :templateVariables
176
211
 
177
- # @!method initialize(buttons: nil, contacts: nil, cta_display_text: nil, cta_header_media_url: nil, cta_header_text: nil, cta_header_type: nil, cta_url: nil, emoji: nil, filename: nil, footer_text: nil, latitude: nil, list_button: nil, location_address: nil, location_name: nil, longitude: nil, media_id: nil, media_url: nil, mime_type: nil, react_to_message_id: nil, sections: nil, template_button_variables: nil, template_header_variables: nil, template_id: nil, template_variables: nil)
212
+ # @!method initialize(buttons: nil, contacts: nil, cta_display_text: nil, cta_header_media_url: nil, cta_header_text: nil, cta_header_type: nil, cta_url: nil, emoji: nil, filename: nil, footer_text: nil, latitude: nil, list_button: nil, location_address: nil, location_name: nil, longitude: nil, media_id: nil, media_url: nil, mime_type: nil, react_to_message_id: nil, reply_to_from: nil, reply_to_message_id: nil, reply_to_message_type: nil, reply_to_provider_message_id: nil, reply_to_text: nil, sections: nil, template_button_variables: nil, template_header_variables: nil, template_id: nil, template_variables: nil)
178
213
  # Some parameter documentations has been truncated, see
179
214
  # {Zavudev::Models::MessageContent} for more details.
180
215
  #
@@ -218,6 +253,16 @@ module Zavudev
218
253
  #
219
254
  # @param react_to_message_id [String] Message ID to react to.
220
255
  #
256
+ # @param reply_to_from [String] Sender of the quoted message (phone number in E.164 format).
257
+ #
258
+ # @param reply_to_message_id [String] Zavu message ID of the quoted message this message replies to. Present on inboun
259
+ #
260
+ # @param reply_to_message_type [String] Type of the quoted message (text, image, video, etc.).
261
+ #
262
+ # @param reply_to_provider_message_id [String] Provider message ID (WhatsApp WAMID) of the quoted message. Present whenever an
263
+ #
264
+ # @param reply_to_text [String] Truncated snippet of the quoted message's text, for display. Empty when the quot
265
+ #
221
266
  # @param sections [Array<Zavudev::Models::MessageContent::Section>] Sections for list messages.
222
267
  #
223
268
  # @param template_button_variables [Hash{Symbol=>String}] Variables for dynamic button placeholders (URL buttons and OTP buttons). Keys ar
@@ -18,7 +18,10 @@ module Zavudev
18
18
  # **Inbound events:**
19
19
  #
20
20
  # - `message.inbound`: New message received from a contact. Reactions are
21
- # delivered as `message.inbound` with `messageType='reaction'`
21
+ # delivered as `message.inbound` with `messageType='reaction'`. When the contact
22
+ # replied to (quoted) an earlier message, `data.content` carries the reply
23
+ # context: `replyToMessageId`, `replyToProviderMessageId`, `replyToFrom`,
24
+ # `replyToText`, and `replyToMessageType`.
22
25
  # - `message.unsupported`: Received a message type that is not supported
23
26
  #
24
27
  # **Broadcast events:**
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zavudev
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
@@ -156,6 +156,46 @@ module Zavudev
156
156
  sig { params(react_to_message_id: String).void }
157
157
  attr_writer :react_to_message_id
158
158
 
159
+ # Sender of the quoted message (phone number in E.164 format).
160
+ sig { returns(T.nilable(String)) }
161
+ attr_reader :reply_to_from
162
+
163
+ sig { params(reply_to_from: String).void }
164
+ attr_writer :reply_to_from
165
+
166
+ # Zavu message ID of the quoted message this message replies to. Present on
167
+ # inbound messages that quote an earlier message. Omitted when the quoted message
168
+ # is not found in Zavu (e.g. an old or unknown message) — use
169
+ # replyToProviderMessageId in that case.
170
+ sig { returns(T.nilable(String)) }
171
+ attr_reader :reply_to_message_id
172
+
173
+ sig { params(reply_to_message_id: String).void }
174
+ attr_writer :reply_to_message_id
175
+
176
+ # Type of the quoted message (text, image, video, etc.).
177
+ sig { returns(T.nilable(String)) }
178
+ attr_reader :reply_to_message_type
179
+
180
+ sig { params(reply_to_message_type: String).void }
181
+ attr_writer :reply_to_message_type
182
+
183
+ # Provider message ID (WhatsApp WAMID) of the quoted message. Present whenever an
184
+ # inbound message is a reply, even if the quoted message is not stored in Zavu.
185
+ sig { returns(T.nilable(String)) }
186
+ attr_reader :reply_to_provider_message_id
187
+
188
+ sig { params(reply_to_provider_message_id: String).void }
189
+ attr_writer :reply_to_provider_message_id
190
+
191
+ # Truncated snippet of the quoted message's text, for display. Empty when the
192
+ # quoted message has no text (e.g. media).
193
+ sig { returns(T.nilable(String)) }
194
+ attr_reader :reply_to_text
195
+
196
+ sig { params(reply_to_text: String).void }
197
+ attr_writer :reply_to_text
198
+
159
199
  # Sections for list messages.
160
200
  sig { returns(T.nilable(T::Array[Zavudev::MessageContent::Section])) }
161
201
  attr_reader :sections
@@ -237,6 +277,11 @@ module Zavudev
237
277
  media_url: String,
238
278
  mime_type: String,
239
279
  react_to_message_id: String,
280
+ reply_to_from: String,
281
+ reply_to_message_id: String,
282
+ reply_to_message_type: String,
283
+ reply_to_provider_message_id: String,
284
+ reply_to_text: String,
240
285
  sections: T::Array[Zavudev::MessageContent::Section::OrHash],
241
286
  template_button_variables: T::Hash[Symbol, String],
242
287
  template_header_variables: T::Hash[Symbol, String],
@@ -286,6 +331,21 @@ module Zavudev
286
331
  mime_type: nil,
287
332
  # Message ID to react to.
288
333
  react_to_message_id: nil,
334
+ # Sender of the quoted message (phone number in E.164 format).
335
+ reply_to_from: nil,
336
+ # Zavu message ID of the quoted message this message replies to. Present on
337
+ # inbound messages that quote an earlier message. Omitted when the quoted message
338
+ # is not found in Zavu (e.g. an old or unknown message) — use
339
+ # replyToProviderMessageId in that case.
340
+ reply_to_message_id: nil,
341
+ # Type of the quoted message (text, image, video, etc.).
342
+ reply_to_message_type: nil,
343
+ # Provider message ID (WhatsApp WAMID) of the quoted message. Present whenever an
344
+ # inbound message is a reply, even if the quoted message is not stored in Zavu.
345
+ reply_to_provider_message_id: nil,
346
+ # Truncated snippet of the quoted message's text, for display. Empty when the
347
+ # quoted message has no text (e.g. media).
348
+ reply_to_text: nil,
289
349
  # Sections for list messages.
290
350
  sections: nil,
291
351
  # Variables for dynamic button placeholders (URL buttons and OTP buttons). Keys
@@ -341,6 +401,11 @@ module Zavudev
341
401
  media_url: String,
342
402
  mime_type: String,
343
403
  react_to_message_id: String,
404
+ reply_to_from: String,
405
+ reply_to_message_id: String,
406
+ reply_to_message_type: String,
407
+ reply_to_provider_message_id: String,
408
+ reply_to_text: String,
344
409
  sections: T::Array[Zavudev::MessageContent::Section],
345
410
  template_button_variables: T::Hash[Symbol, String],
346
411
  template_header_variables: T::Hash[Symbol, String],
@@ -18,7 +18,10 @@ module Zavudev
18
18
  # **Inbound events:**
19
19
  #
20
20
  # - `message.inbound`: New message received from a contact. Reactions are
21
- # delivered as `message.inbound` with `messageType='reaction'`
21
+ # delivered as `message.inbound` with `messageType='reaction'`. When the contact
22
+ # replied to (quoted) an earlier message, `data.content` carries the reply
23
+ # context: `replyToMessageId`, `replyToProviderMessageId`, `replyToFrom`,
24
+ # `replyToText`, and `replyToMessageType`.
22
25
  # - `message.unsupported`: Received a message type that is not supported
23
26
  #
24
27
  # **Broadcast events:**
@@ -21,6 +21,11 @@ module Zavudev
21
21
  media_url: String,
22
22
  mime_type: String,
23
23
  react_to_message_id: String,
24
+ reply_to_from: String,
25
+ reply_to_message_id: String,
26
+ reply_to_message_type: String,
27
+ reply_to_provider_message_id: String,
28
+ reply_to_text: String,
24
29
  sections: ::Array[Zavudev::MessageContent::Section],
25
30
  template_button_variables: ::Hash[Symbol, String],
26
31
  template_header_variables: ::Hash[Symbol, String],
@@ -111,6 +116,26 @@ module Zavudev
111
116
 
112
117
  def react_to_message_id=: (String) -> String
113
118
 
119
+ attr_reader reply_to_from: String?
120
+
121
+ def reply_to_from=: (String) -> String
122
+
123
+ attr_reader reply_to_message_id: String?
124
+
125
+ def reply_to_message_id=: (String) -> String
126
+
127
+ attr_reader reply_to_message_type: String?
128
+
129
+ def reply_to_message_type=: (String) -> String
130
+
131
+ attr_reader reply_to_provider_message_id: String?
132
+
133
+ def reply_to_provider_message_id=: (String) -> String
134
+
135
+ attr_reader reply_to_text: String?
136
+
137
+ def reply_to_text=: (String) -> String
138
+
114
139
  attr_reader sections: ::Array[Zavudev::MessageContent::Section]?
115
140
 
116
141
  def sections=: (
@@ -159,6 +184,11 @@ module Zavudev
159
184
  ?media_url: String,
160
185
  ?mime_type: String,
161
186
  ?react_to_message_id: String,
187
+ ?reply_to_from: String,
188
+ ?reply_to_message_id: String,
189
+ ?reply_to_message_type: String,
190
+ ?reply_to_provider_message_id: String,
191
+ ?reply_to_text: String,
162
192
  ?sections: ::Array[Zavudev::MessageContent::Section],
163
193
  ?template_button_variables: ::Hash[Symbol, String],
164
194
  ?template_header_variables: ::Hash[Symbol, String],
@@ -186,6 +216,11 @@ module Zavudev
186
216
  media_url: String,
187
217
  mime_type: String,
188
218
  react_to_message_id: String,
219
+ reply_to_from: String,
220
+ reply_to_message_id: String,
221
+ reply_to_message_type: String,
222
+ reply_to_provider_message_id: String,
223
+ reply_to_text: String,
189
224
  sections: ::Array[Zavudev::MessageContent::Section],
190
225
  template_button_variables: ::Hash[Symbol, String],
191
226
  template_header_variables: ::Hash[Symbol, String],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zavudev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zavudev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-02 00:00:00.000000000 Z
11
+ date: 2026-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi