zavudev 0.17.0 → 0.18.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: 915682fb433dfff5f6a3067d70fa4802770a48c6955177ff08197ff776356ddc
4
- data.tar.gz: 4f0a420f38b36a96ff29b32c3918a1224ef77bc7ab5a3ee6ac57022fb722b406
3
+ metadata.gz: '0950796060af0403bdc55fe702c2ca0e1dccc89b62dad96f07fd2091c09a8e84'
4
+ data.tar.gz: '09a3b580f8bfcd5b9c1ebe6fc476c9ecca06a0a43b7bf902c4f4f143c80a5cf2'
5
5
  SHA512:
6
- metadata.gz: 03406dfe24ce80b30d357e7ee5a2d062d448c8749c6d2e02aa97ae99fa61797d547c6a35570b09ac77a13f397c227c64ff87142e12c14db4dcb013bd21658b13
7
- data.tar.gz: 99287b8f44be9a45d6c8f4ff99a63a423718762b7508a4d5b1d2455c2e775a2c0cdc818273537d09e22ca096cea1d8cc7f3fd893f5f1f0f942f491abe3a71fd0
6
+ metadata.gz: 2b0d38348c027224bcbb54238392f4f923e1b8d904f30048bdceca9bc0a0cc07794c34199c15b9ac9d853877afb02de7197623493e3472c27abc0db0d3f31ca3
7
+ data.tar.gz: 3f888722850154270aeb1d7dff45e8501f42f4d47293310f64b95a5f71b7892f39b9cc95e1a7bfd0faa58875244199f88a38f283bb0d74f09750de607b70cfd9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 (2026-07-15)
4
+
5
+ Full Changelog: [v0.17.0...v0.18.0](https://github.com/zavudev/sdk-ruby/compare/v0.17.0...v0.18.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([db82726](https://github.com/zavudev/sdk-ruby/commit/db827260153e42d059601f76e48b2e5f2ee43a90))
10
+ * **api:** api update ([adf15d6](https://github.com/zavudev/sdk-ruby/commit/adf15d6c01884e88620aa2402eebae2e06557e3f))
11
+
3
12
  ## 0.17.0 (2026-07-12)
4
13
 
5
14
  Full Changelog: [v0.16.0...v0.17.0](https://github.com/zavudev/sdk-ruby/compare/v0.16.0...v0.17.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.17.0"
29
+ gem "zavudev", "~> 0.18.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -9,10 +9,13 @@ module Zavudev
9
9
 
10
10
  # @!attribute to
11
11
  # Recipient phone number in E.164 format, email address, WhatsApp business-scoped
12
- # user ID (BSUID, e.g. `US.13491208655302741918`), or numeric chat ID (for
12
+ # user ID (BSUID, e.g. `US.13491208655302741918`), WhatsApp group JID
13
+ # (`<id>@g.us`, e.g. `120363000000000000@g.us`), or numeric chat ID (for
13
14
  # Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent via the
14
15
  # `recipient` field; use it to message a contact who adopted a username and whose
15
- # phone number is hidden.
16
+ # phone number is hidden. A group JID is only valid on the `whatsapp_alt` channel
17
+ # and supports text and media (image, video, audio, document, sticker, location,
18
+ # contact).
16
19
  #
17
20
  # @return [String]
18
21
  required :to, String
@@ -27,6 +27,12 @@ module Zavudev
27
27
  # Messenger; `null` for SMS and email). Compare it against the top-level
28
28
  # `timestamp` (when Zavu dispatched the webhook) to detect and ignore delayed
29
29
  # deliveries.
30
+ # - `message.status`: A contact posted a WhatsApp status/story (currently WhatsApp
31
+ # Alternative only). It is NOT a conversation message and never enters the inbox
32
+ # — it is delivered only if you subscribe to `message.status`. `data` carries
33
+ # `from` (the author in E.164), `messageType` (`text`, `image`, `video`,
34
+ # `audio`), `text` (caption/text when present), `mimetype` (for media stories),
35
+ # and `providerTimestamp`. Media bytes are not included.
30
36
  # - `message.unsupported`: Received a message type that is not supported
31
37
  #
32
38
  # **Broadcast events:**
@@ -59,6 +65,7 @@ module Zavudev
59
65
  MESSAGE_READ = :"message.read"
60
66
  MESSAGE_FAILED = :"message.failed"
61
67
  MESSAGE_INBOUND = :"message.inbound"
68
+ MESSAGE_STATUS = :"message.status"
62
69
  MESSAGE_UNSUPPORTED = :"message.unsupported"
63
70
  BROADCAST_STATUS_CHANGED = :"broadcast.status_changed"
64
71
  CONVERSATION_NEW = :"conversation.new"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zavudev
4
- VERSION = "0.17.0"
4
+ VERSION = "0.18.0"
5
5
  end
@@ -12,10 +12,13 @@ module Zavudev
12
12
  end
13
13
 
14
14
  # Recipient phone number in E.164 format, email address, WhatsApp business-scoped
15
- # user ID (BSUID, e.g. `US.13491208655302741918`), or numeric chat ID (for
15
+ # user ID (BSUID, e.g. `US.13491208655302741918`), WhatsApp group JID
16
+ # (`<id>@g.us`, e.g. `120363000000000000@g.us`), or numeric chat ID (for
16
17
  # Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent via the
17
18
  # `recipient` field; use it to message a contact who adopted a username and whose
18
- # phone number is hidden.
19
+ # phone number is hidden. A group JID is only valid on the `whatsapp_alt` channel
20
+ # and supports text and media (image, video, audio, document, sticker, location,
21
+ # contact).
19
22
  sig { returns(String) }
20
23
  attr_accessor :to
21
24
 
@@ -142,10 +145,13 @@ module Zavudev
142
145
  end
143
146
  def self.new(
144
147
  # Recipient phone number in E.164 format, email address, WhatsApp business-scoped
145
- # user ID (BSUID, e.g. `US.13491208655302741918`), or numeric chat ID (for
148
+ # user ID (BSUID, e.g. `US.13491208655302741918`), WhatsApp group JID
149
+ # (`<id>@g.us`, e.g. `120363000000000000@g.us`), or numeric chat ID (for
146
150
  # Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent via the
147
151
  # `recipient` field; use it to message a contact who adopted a username and whose
148
- # phone number is hidden.
152
+ # phone number is hidden. A group JID is only valid on the `whatsapp_alt` channel
153
+ # and supports text and media (image, video, audio, document, sticker, location,
154
+ # contact).
149
155
  to:,
150
156
  # Email attachments. Only supported when channel is 'email'. Maximum 40MB total
151
157
  # size.
@@ -27,6 +27,12 @@ module Zavudev
27
27
  # Messenger; `null` for SMS and email). Compare it against the top-level
28
28
  # `timestamp` (when Zavu dispatched the webhook) to detect and ignore delayed
29
29
  # deliveries.
30
+ # - `message.status`: A contact posted a WhatsApp status/story (currently WhatsApp
31
+ # Alternative only). It is NOT a conversation message and never enters the inbox
32
+ # — it is delivered only if you subscribe to `message.status`. `data` carries
33
+ # `from` (the author in E.164), `messageType` (`text`, `image`, `video`,
34
+ # `audio`), `text` (caption/text when present), `mimetype` (for media stories),
35
+ # and `providerTimestamp`. Media bytes are not included.
30
36
  # - `message.unsupported`: Received a message type that is not supported
31
37
  #
32
38
  # **Broadcast events:**
@@ -66,6 +72,8 @@ module Zavudev
66
72
  T.let(:"message.failed", Zavudev::WebhookEvent::TaggedSymbol)
67
73
  MESSAGE_INBOUND =
68
74
  T.let(:"message.inbound", Zavudev::WebhookEvent::TaggedSymbol)
75
+ MESSAGE_STATUS =
76
+ T.let(:"message.status", Zavudev::WebhookEvent::TaggedSymbol)
69
77
  MESSAGE_UNSUPPORTED =
70
78
  T.let(:"message.unsupported", Zavudev::WebhookEvent::TaggedSymbol)
71
79
  BROADCAST_STATUS_CHANGED =
@@ -96,10 +96,13 @@ module Zavudev
96
96
  end
97
97
  def send_(
98
98
  # Body param: Recipient phone number in E.164 format, email address, WhatsApp
99
- # business-scoped user ID (BSUID, e.g. `US.13491208655302741918`), or numeric chat
100
- # ID (for Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent
101
- # via the `recipient` field; use it to message a contact who adopted a username
102
- # and whose phone number is hidden.
99
+ # business-scoped user ID (BSUID, e.g. `US.13491208655302741918`), WhatsApp group
100
+ # JID (`<id>@g.us`, e.g. `120363000000000000@g.us`), or numeric chat ID (for
101
+ # Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent via the
102
+ # `recipient` field; use it to message a contact who adopted a username and whose
103
+ # phone number is hidden. A group JID is only valid on the `whatsapp_alt` channel
104
+ # and supports text and media (image, video, audio, document, sticker, location,
105
+ # contact).
103
106
  to:,
104
107
  # Body param: Email attachments. Only supported when channel is 'email'. Maximum
105
108
  # 40MB total size.
@@ -7,6 +7,7 @@ module Zavudev
7
7
  | :"message.read"
8
8
  | :"message.failed"
9
9
  | :"message.inbound"
10
+ | :"message.status"
10
11
  | :"message.unsupported"
11
12
  | :"broadcast.status_changed"
12
13
  | :"conversation.new"
@@ -24,6 +25,7 @@ module Zavudev
24
25
  MESSAGE_READ: :"message.read"
25
26
  MESSAGE_FAILED: :"message.failed"
26
27
  MESSAGE_INBOUND: :"message.inbound"
28
+ MESSAGE_STATUS: :"message.status"
27
29
  MESSAGE_UNSUPPORTED: :"message.unsupported"
28
30
  BROADCAST_STATUS_CHANGED: :"broadcast.status_changed"
29
31
  CONVERSATION_NEW: :"conversation.new"
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.17.0
4
+ version: 0.18.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-07-12 00:00:00.000000000 Z
11
+ date: 2026-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi