Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.21.0"
".": "0.22.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 183
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zavu/zavudev-5d75bbdcac3a0b0a8b798c0b4ef0dacfbc64ad4a20605489dc46dda7c8d1d8d8.yml
openapi_spec_hash: bb242cfd8cc43354412164c2dceae89c
config_hash: 261e1b852ca7f8364e4a283a3edd350a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zavu/zavudev-e6e18b26cd123fcd2dcaf3554352c9aa1aa890768d7928fa117382f0b4ca89aa.yml
openapi_spec_hash: 6bc9a1491dec8d8157477abeb4aa8f3c
config_hash: f6a05e2edf2cd1af3f762b8ac759b9a7
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.22.0 (2026-09-20)

Full Changelog: [v0.21.0...v0.22.0](https://github.com/zavudev/sdk-ruby/compare/v0.21.0...v0.22.0)

### Features

* **api:** api update ([d612f30](https://github.com/zavudev/sdk-ruby/commit/d612f30b8f678064e0ed3f325b570aee3e0d2265))
* **api:** api update ([5f2c068](https://github.com/zavudev/sdk-ruby/commit/5f2c06855f0fd716bda8fa691dc56aa2bc0f1844))
* **api:** api update ([39fe83b](https://github.com/zavudev/sdk-ruby/commit/39fe83bd5fc91daa66d34bab6a7fd06744623fa9))
* **api:** api update ([e8f7c92](https://github.com/zavudev/sdk-ruby/commit/e8f7c926be5debc22f30565bd603f400c9501076))
* **api:** api update ([827bce1](https://github.com/zavudev/sdk-ruby/commit/827bce1963625363e316b2d14e97895466eb0657))
* **api:** api update ([03fffc7](https://github.com/zavudev/sdk-ruby/commit/03fffc7f3f4f1ffa3ccefd6da911001c3b81e87d))
* **api:** api update ([b2e8ee7](https://github.com/zavudev/sdk-ruby/commit/b2e8ee71812c37479e29b8fa84b792a7424cfa2d))
* **api:** api update ([bf90d0e](https://github.com/zavudev/sdk-ruby/commit/bf90d0e31f2c22ed1df4ab7ca80b419d149ac6cb))
* **api:** api update ([5ef7668](https://github.com/zavudev/sdk-ruby/commit/5ef766844c3078b7c3a6930250ba4eb658028b26))
* **api:** api update ([dac4810](https://github.com/zavudev/sdk-ruby/commit/dac48101d0b462154984874cb60992ca2879807e))
* **api:** api update ([e9a5691](https://github.com/zavudev/sdk-ruby/commit/e9a56919080dd8e543f6b073f95bb25078fce358))

## 0.21.0 (2026-09-08)

Full Changelog: [v0.20.0...v0.21.0](https://github.com/zavudev/sdk-ruby/compare/v0.20.0...v0.21.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
zavudev (0.21.0)
zavudev (0.22.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "zavudev", "~> 0.21.0"
gem "zavudev", "~> 0.22.0"
```

<!-- x-release-please-end -->
Expand Down
42 changes: 29 additions & 13 deletions lib/zavudev/models/address_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ class AddressCreateParams < Zavudev::Internal::Type::BaseModel
# @return [String]
required :country_code, String, api_name: :countryCode

# @!attribute first_name
# First name of the person the address is registered to.
#
# @return [String]
required :first_name, String, api_name: :firstName

# @!attribute last_name
# Last name of the person the address is registered to.
#
# @return [String]
required :last_name, String, api_name: :lastName

# @!attribute locality
#
# @return [String]
Expand All @@ -33,6 +45,8 @@ class AddressCreateParams < Zavudev::Internal::Type::BaseModel
optional :administrative_area, String, api_name: :administrativeArea

# @!attribute business_name
# Business name, when the address belongs to a business. Defaults to the person's
# full name.
#
# @return [String, nil]
optional :business_name, String, api_name: :businessName
Expand All @@ -42,26 +56,28 @@ class AddressCreateParams < Zavudev::Internal::Type::BaseModel
# @return [String, nil]
optional :extended_address, String, api_name: :extendedAddress

# @!attribute first_name
#
# @return [String, nil]
optional :first_name, String, api_name: :firstName

# @!attribute last_name
# @!method initialize(country_code:, first_name:, last_name:, locality:, postal_code:, street_address:, administrative_area: nil, business_name: nil, extended_address: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Zavudev::Models::AddressCreateParams} for more details.
#
# @return [String, nil]
optional :last_name, String, api_name: :lastName

# @!method initialize(country_code:, locality:, postal_code:, street_address:, administrative_area: nil, business_name: nil, extended_address: nil, first_name: nil, last_name: nil, request_options: {})
# @param country_code [String]
#
# @param first_name [String] First name of the person the address is registered to.
#
# @param last_name [String] Last name of the person the address is registered to.
#
# @param locality [String]
#
# @param postal_code [String]
#
# @param street_address [String]
#
# @param administrative_area [String]
# @param business_name [String]
#
# @param business_name [String] Business name, when the address belongs to a business. Defaults to the person's
#
# @param extended_address [String]
# @param first_name [String]
# @param last_name [String]
#
# @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
end
end
Expand Down
17 changes: 15 additions & 2 deletions lib/zavudev/models/broadcast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Broadcast < Zavudev::Internal::Type::BaseModel
optional :content, -> { Zavudev::BroadcastContent }

# @!attribute delivered_count
# Recipients with confirmed delivery to the device.
#
# @return [Integer, nil]
optional :delivered_count, Integer, api_name: :deliveredCount
Expand Down Expand Up @@ -124,6 +125,13 @@ class Broadcast < Zavudev::Internal::Type::BaseModel
# @return [Integer, nil]
optional :sending_count, Integer, api_name: :sendingCount

# @!attribute sent_count
# Recipients whose message the provider accepted, without a confirmed delivery
# yet. Channels that never report delivery keep their recipients here.
#
# @return [Integer, nil]
optional :sent_count, Integer, api_name: :sentCount

# @!attribute started_at
#
# @return [Time, nil]
Expand All @@ -139,7 +147,10 @@ class Broadcast < Zavudev::Internal::Type::BaseModel
# @return [Time, nil]
optional :updated_at, Time, api_name: :updatedAt

# @!method initialize(id:, channel:, created_at:, message_type:, name:, status:, total_contacts:, actual_cost: nil, completed_at: nil, content: nil, delivered_count: nil, email_subject: nil, estimated_cost: nil, failed_count: nil, metadata: nil, pending_count: nil, reserved_amount: nil, review_attempts: nil, review_result: nil, scheduled_at: nil, sender_id: nil, sending_count: nil, started_at: nil, text: nil, updated_at: nil)
# @!method initialize(id:, channel:, created_at:, message_type:, name:, status:, total_contacts:, actual_cost: nil, completed_at: nil, content: nil, delivered_count: nil, email_subject: nil, estimated_cost: nil, failed_count: nil, metadata: nil, pending_count: nil, reserved_amount: nil, review_attempts: nil, review_result: nil, scheduled_at: nil, sender_id: nil, sending_count: nil, sent_count: nil, started_at: nil, text: nil, updated_at: nil)
# Some parameter documentations has been truncated, see
# {Zavudev::Models::Broadcast} for more details.
#
# @param id [String]
#
# @param channel [Symbol, Zavudev::Models::BroadcastChannel] Broadcast delivery channel. Use 'smart' for per-contact intelligent routing.
Expand All @@ -160,7 +171,7 @@ class Broadcast < Zavudev::Internal::Type::BaseModel
#
# @param content [Zavudev::Models::BroadcastContent] Content for non-text broadcast message types.
#
# @param delivered_count [Integer]
# @param delivered_count [Integer] Recipients with confirmed delivery to the device.
#
# @param email_subject [String]
#
Expand All @@ -184,6 +195,8 @@ class Broadcast < Zavudev::Internal::Type::BaseModel
#
# @param sending_count [Integer]
#
# @param sent_count [Integer] Recipients whose message the provider accepted, without a confirmed delivery yet
#
# @param started_at [Time]
#
# @param text [String]
Expand Down
13 changes: 13 additions & 0 deletions lib/zavudev/models/broadcast_contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ class BroadcastContact < Zavudev::Internal::Type::BaseModel
# @!attribute status
# Status of a contact within a broadcast.
#
# - `pending`, `queued`, `sending`: not handed to the provider yet.
# - `sent`: accepted by the provider; delivery is not confirmed yet. Channels that
# never report delivery leave the recipient here.
# - `delivered`: the channel confirmed delivery to the device. A WhatsApp read
# receipt also counts as delivered.
# - `failed`: not delivered. A recipient can move from `sent` or `delivered` to
# `failed` when the provider reports a failure late.
# - `skipped`: not sent, because the recipient opted out of the channel or the
# broadcast was cancelled before reaching it.
#
# @return [Symbol, Zavudev::Models::BroadcastContactStatus]
required :status, enum: -> { Zavudev::BroadcastContactStatus }

Expand Down Expand Up @@ -79,6 +89,9 @@ class BroadcastContact < Zavudev::Internal::Type::BaseModel
optional :template_variables, Zavudev::Internal::Type::HashOf[String], api_name: :templateVariables

# @!method initialize(id:, created_at:, recipient:, recipient_type:, status:, cost: nil, error_code: nil, error_message: nil, message_id: nil, processed_at: nil, template_button_variables: nil, template_header_variables: nil, template_variables: nil)
# Some parameter documentations has been truncated, see
# {Zavudev::Models::BroadcastContact} for more details.
#
# @param id [String]
#
# @param created_at [Time]
Expand Down
11 changes: 11 additions & 0 deletions lib/zavudev/models/broadcast_contact_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@
module Zavudev
module Models
# Status of a contact within a broadcast.
#
# - `pending`, `queued`, `sending`: not handed to the provider yet.
# - `sent`: accepted by the provider; delivery is not confirmed yet. Channels that
# never report delivery leave the recipient here.
# - `delivered`: the channel confirmed delivery to the device. A WhatsApp read
# receipt also counts as delivered.
# - `failed`: not delivered. A recipient can move from `sent` or `delivered` to
# `failed` when the provider reports a failure late.
# - `skipped`: not sent, because the recipient opted out of the channel or the
# broadcast was cancelled before reaching it.
module BroadcastContactStatus
extend Zavudev::Internal::Type::Enum

PENDING = :pending
QUEUED = :queued
SENDING = :sending
SENT = :sent
DELIVERED = :delivered
FAILED = :failed
SKIPPED = :skipped
Expand Down
14 changes: 11 additions & 3 deletions lib/zavudev/models/broadcast_progress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BroadcastProgress < Zavudev::Internal::Type::BaseModel
required :broadcast_id, String, api_name: :broadcastId

# @!attribute delivered
# Successfully delivered.
# Confirmed delivered to the device.
#
# @return [Integer]
required :delivered, Integer
Expand Down Expand Up @@ -80,15 +80,21 @@ class BroadcastProgress < Zavudev::Internal::Type::BaseModel
# @return [Float, nil]
optional :reserved_amount, Float, api_name: :reservedAmount, nil?: true

# @!attribute sent
# Accepted by the provider, delivery not confirmed yet.
#
# @return [Integer, nil]
optional :sent, Integer

# @!attribute started_at
#
# @return [Time, nil]
optional :started_at, Time, api_name: :startedAt

# @!method initialize(broadcast_id:, delivered:, failed:, pending:, percent_complete:, sending:, skipped:, status:, total:, actual_cost: nil, estimated_completion_at: nil, estimated_cost: nil, reserved_amount: nil, started_at: nil)
# @!method initialize(broadcast_id:, delivered:, failed:, pending:, percent_complete:, sending:, skipped:, status:, total:, actual_cost: nil, estimated_completion_at: nil, estimated_cost: nil, reserved_amount: nil, sent: nil, started_at: nil)
# @param broadcast_id [String]
#
# @param delivered [Integer] Successfully delivered.
# @param delivered [Integer] Confirmed delivered to the device.
#
# @param failed [Integer] Failed to deliver.
#
Expand All @@ -112,6 +118,8 @@ class BroadcastProgress < Zavudev::Internal::Type::BaseModel
#
# @param reserved_amount [Float, nil] Amount reserved from balance in USD.
#
# @param sent [Integer] Accepted by the provider, delivery not confirmed yet.
#
# @param started_at [Time]
end
end
Expand Down
13 changes: 13 additions & 0 deletions lib/zavudev/models/broadcasts/contact_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,23 @@ class ContactListParams < Zavudev::Internal::Type::BaseModel
# @!attribute status
# Status of a contact within a broadcast.
#
# - `pending`, `queued`, `sending`: not handed to the provider yet.
# - `sent`: accepted by the provider; delivery is not confirmed yet. Channels that
# never report delivery leave the recipient here.
# - `delivered`: the channel confirmed delivery to the device. A WhatsApp read
# receipt also counts as delivered.
# - `failed`: not delivered. A recipient can move from `sent` or `delivered` to
# `failed` when the provider reports a failure late.
# - `skipped`: not sent, because the recipient opted out of the channel or the
# broadcast was cancelled before reaching it.
#
# @return [Symbol, Zavudev::Models::BroadcastContactStatus, nil]
optional :status, enum: -> { Zavudev::BroadcastContactStatus }

# @!method initialize(broadcast_id:, cursor: nil, limit: nil, status: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Zavudev::Models::Broadcasts::ContactListParams} for more details.
#
# @param broadcast_id [String]
#
# @param cursor [String]
Expand Down
40 changes: 39 additions & 1 deletion lib/zavudev/models/number_10dlc/ten_dlc_brand.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ class TenDlcBrand < Zavudev::Internal::Type::BaseModel
# @!attribute status
# Status of a 10DLC brand registration.
#
# - `draft`: created, not yet submitted to the carrier.
# - `pending`: submitted, awaiting the carrier's answer.
# - `verified`: the carrier registered the brand AND verified the business behind
# it.
# - `unverified`: the carrier registered the brand but did not verify the business
# — the registration exists, the identity check did not pass or has not been
# resolved. Campaigns are allowed, with lower daily limits. Read
# `identityStatus` for the carrier's own wording.
# - `rejected`: refused by the carrier.
# - `failed`: the registration never reached the carrier; the fee is refunded.
#
# @return [Symbol, Zavudev::Models::Number10dlc::TenDlcBrand::Status]
required :status, enum: -> { Zavudev::Number10dlc::TenDlcBrand::Status }

Expand Down Expand Up @@ -119,6 +130,15 @@ class TenDlcBrand < Zavudev::Internal::Type::BaseModel
# @return [String, nil]
optional :first_name, String, api_name: :firstName, nil?: true

# @!attribute identity_status
# The carrier's raw identity verdict on the business, as the carrier spells it
# (`VERIFIED`, `VETTED_VERIFIED`, `SELF_DECLARED`, `UNVERIFIED`). Null while the
# identity has not been resolved — which is not the same as verified, and is why
# such a brand reports `status: unverified`.
#
# @return [String, nil]
optional :identity_status, String, api_name: :identityStatus, nil?: true

# @!attribute last_name
#
# @return [String, nil]
Expand Down Expand Up @@ -149,7 +169,10 @@ class TenDlcBrand < Zavudev::Internal::Type::BaseModel
# @return [String, nil]
optional :website, String, nil?: true

# @!method initialize(id:, city:, country:, created_at:, display_name:, email:, entity_type:, phone:, postal_code:, state:, status:, street:, updated_at:, vertical:, brand_relationship: nil, brand_score: nil, company_name: nil, ein: nil, failure_reason: nil, first_name: nil, last_name: nil, stock_exchange: nil, stock_symbol: nil, submitted_at: nil, verified_at: nil, website: nil)
# @!method initialize(id:, city:, country:, created_at:, display_name:, email:, entity_type:, phone:, postal_code:, state:, status:, street:, updated_at:, vertical:, brand_relationship: nil, brand_score: nil, company_name: nil, ein: nil, failure_reason: nil, first_name: nil, identity_status: nil, last_name: nil, stock_exchange: nil, stock_symbol: nil, submitted_at: nil, verified_at: nil, website: nil)
# Some parameter documentations has been truncated, see
# {Zavudev::Models::Number10dlc::TenDlcBrand} for more details.
#
# @param id [String]
#
# @param city [String]
Expand Down Expand Up @@ -190,6 +213,8 @@ class TenDlcBrand < Zavudev::Internal::Type::BaseModel
#
# @param first_name [String, nil]
#
# @param identity_status [String, nil] The carrier's raw identity verdict on the business, as the carrier spells it (`V
#
# @param last_name [String, nil]
#
# @param stock_exchange [String, nil]
Expand Down Expand Up @@ -220,14 +245,27 @@ module EntityType

# Status of a 10DLC brand registration.
#
# - `draft`: created, not yet submitted to the carrier.
# - `pending`: submitted, awaiting the carrier's answer.
# - `verified`: the carrier registered the brand AND verified the business behind
# it.
# - `unverified`: the carrier registered the brand but did not verify the business
# — the registration exists, the identity check did not pass or has not been
# resolved. Campaigns are allowed, with lower daily limits. Read
# `identityStatus` for the carrier's own wording.
# - `rejected`: refused by the carrier.
# - `failed`: the registration never reached the carrier; the fee is refunded.
#
# @see Zavudev::Models::Number10dlc::TenDlcBrand#status
module Status
extend Zavudev::Internal::Type::Enum

DRAFT = :draft
PENDING = :pending
VERIFIED = :verified
UNVERIFIED = :unverified
REJECTED = :rejected
FAILED = :failed

# @!method self.values
# @return [Array<Symbol>]
Expand Down
Loading
Loading