Skip to content
Merged
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.13.1"
".": "0.14.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zavu%2Fzavudev-632d79d39ef49ea571930f3e1c71d63145b23905126df2957d4eb61a309e9054.yml
openapi_spec_hash: 74d14877ffe27741c222a83646071717
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zavu%2Fzavudev-98523053ee0c81ccef4a170757e23736a319d88fd6063a58cf9cdedd8c55ffb8.yml
openapi_spec_hash: bb481265d390902f1ee3e1710e1a7c24
config_hash: ab9d47848e436f9b6b787afd062ff9a7
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.14.0 (2025-12-21)

Full Changelog: [v0.13.1...v0.14.0](https://github.com/zavudev/sdk-python/compare/v0.13.1...v0.14.0)

### Features

* **api:** api update ([6e140ca](https://github.com/zavudev/sdk-python/commit/6e140caf1465a60925fcf925c7e4ea39dad31916))


### Chores

* **internal:** add `--fix` argument to lint script ([24b14b7](https://github.com/zavudev/sdk-python/commit/24b14b78710431593ac3c6a2c31602c7c763bf2d))

## 0.13.1 (2025-12-18)

Full Changelog: [v0.13.0...v0.13.1](https://github.com/zavudev/sdk-python/compare/v0.13.0...v0.13.1)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "zavudev"
version = "0.13.1"
version = "0.14.0"
description = "The official Python library for the zavudev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
9 changes: 7 additions & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ set -e

cd "$(dirname "$0")/.."

echo "==> Running ruff"
uv run ruff check .
if [ "$1" = "--fix" ]; then
echo "==> Running ruff with --fix"
uv run ruff check . --fix
else
echo "==> Running ruff"
uv run ruff check .
fi

echo "==> Running pyright"
uv run pyright
Expand Down
2 changes: 1 addition & 1 deletion src/zavudev/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "zavudev"
__version__ = "0.13.1" # x-release-please-version
__version__ = "0.14.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/zavudev/resources/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def send(
to: str,
channel: Channel | Omit = omit,
content: MessageContentParam | Omit = omit,
fallback_enabled: bool | Omit = omit,
html_body: str | Omit = omit,
idempotency_key: str | Omit = omit,
message_type: MessageType | Omit = omit,
Expand Down Expand Up @@ -224,6 +225,8 @@ def send(

content: Additional content for non-text message types.

fallback_enabled: Whether to enable automatic fallback to SMS if WhatsApp fails. Defaults to true.

html_body: HTML body for email messages. If provided, email will be sent as multipart with
both text and HTML.

Expand Down Expand Up @@ -256,6 +259,7 @@ def send(
"to": to,
"channel": channel,
"content": content,
"fallback_enabled": fallback_enabled,
"html_body": html_body,
"idempotency_key": idempotency_key,
"message_type": message_type,
Expand Down Expand Up @@ -424,6 +428,7 @@ async def send(
to: str,
channel: Channel | Omit = omit,
content: MessageContentParam | Omit = omit,
fallback_enabled: bool | Omit = omit,
html_body: str | Omit = omit,
idempotency_key: str | Omit = omit,
message_type: MessageType | Omit = omit,
Expand Down Expand Up @@ -461,6 +466,8 @@ async def send(

content: Additional content for non-text message types.

fallback_enabled: Whether to enable automatic fallback to SMS if WhatsApp fails. Defaults to true.

html_body: HTML body for email messages. If provided, email will be sent as multipart with
both text and HTML.

Expand Down Expand Up @@ -493,6 +500,7 @@ async def send(
"to": to,
"channel": channel,
"content": content,
"fallback_enabled": fallback_enabled,
"html_body": html_body,
"idempotency_key": idempotency_key,
"message_type": message_type,
Expand Down
6 changes: 6 additions & 0 deletions src/zavudev/types/message_send_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class MessageSendParams(TypedDict, total=False):
content: MessageContentParam
"""Additional content for non-text message types."""

fallback_enabled: Annotated[bool, PropertyInfo(alias="fallbackEnabled")]
"""Whether to enable automatic fallback to SMS if WhatsApp fails.

Defaults to true.
"""

html_body: Annotated[str, PropertyInfo(alias="htmlBody")]
"""HTML body for email messages.

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def test_method_send_with_all_params(self, client: Zavudev) -> None:
"2": "ORD-12345",
},
},
fallback_enabled=True,
html_body="htmlBody",
idempotency_key="msg_01HZY4ZP7VQY2J3BRW7Z6G0QGE",
message_type="text",
Expand Down Expand Up @@ -452,6 +453,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncZavudev) ->
"2": "ORD-12345",
},
},
fallback_enabled=True,
html_body="htmlBody",
idempotency_key="msg_01HZY4ZP7VQY2J3BRW7Z6G0QGE",
message_type="text",
Expand Down