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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
if: github.repository == 'stainless-sdks/toddlzt-python'
timeout-minutes: 10
name: upload
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

test:
timeout-minutes: 10
name: test
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.29.0"
".": "4.30.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: 34
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-101be623bbd5eca19cb36dd5a5f75052d04ef89578dfd03bf675a5323e43ca8b.yml
openapi_spec_hash: 5f06a39218b958f8973595f616d1586a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/retell%2Ftoddlzt-633b45cdafc58dc79176efac962c92d1ccd20ce82aebf4bb2ceae65954fbc9da.yml
openapi_spec_hash: ac81b4183a73b711bb9e646027f2998c
config_hash: 9d9a24bf8bb4553cbb30ce59eb910b2f
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 4.30.0 (2025-05-15)

Full Changelog: [v4.29.0...v4.30.0](https://github.com/RetellAI/retell-python-sdk/compare/v4.29.0...v4.30.0)

### Features

* **api:** api update ([9c52508](https://github.com/RetellAI/retell-python-sdk/commit/9c52508ca3972d3c48bf0f1217a58e5d02c65c0c))


### Chores

* **ci:** fix installation instructions ([d75d40d](https://github.com/RetellAI/retell-python-sdk/commit/d75d40d8cf7b23a5188ea5761b3b0a961d1105dd))
* **ci:** upload sdks to package manager ([8f88bea](https://github.com/RetellAI/retell-python-sdk/commit/8f88bea75df6f3089c59fd5ff2524fef130284c3))

## 4.29.0 (2025-05-14)

Full Changelog: [v4.28.0...v4.29.0](https://github.com/RetellAI/retell-python-sdk/compare/v4.28.0...v4.29.0)
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 = "retell-sdk"
version = "4.29.0"
version = "4.30.0"
description = "The official Python library for the retell API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
25 changes: 25 additions & 0 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -exuo pipefail

RESPONSE=$(curl -X POST "$URL" \
-H "Authorization: Bearer $AUTH" \
-H "Content-Type: application/json")

SIGNED_URL=$(echo "$RESPONSE" | jq -r '.url')

if [[ "$SIGNED_URL" == "null" ]]; then
echo -e "\033[31mFailed to get signed URL.\033[0m"
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/toddlzt-python/$SHA'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
fi
2 changes: 1 addition & 1 deletion src/retell/_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__ = "retell"
__version__ = "4.29.0" # x-release-please-version
__version__ = "4.30.0" # x-release-please-version
2 changes: 0 additions & 2 deletions src/retell/types/call_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ class FilterCriteria(TypedDict, total=False):
"error_llm_websocket_lost_connection",
"error_llm_websocket_runtime",
"error_llm_websocket_corrupt_payload",
"error_frontend_corrupted_payload",
"error_twilio",
"error_no_audio_received",
"error_asr",
"error_retell",
Expand Down
7 changes: 4 additions & 3 deletions src/retell/types/phone_call_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,6 @@ class PhoneCallResponse(BaseModel):
"error_llm_websocket_lost_connection",
"error_llm_websocket_runtime",
"error_llm_websocket_corrupt_payload",
"error_frontend_corrupted_payload",
"error_twilio",
"error_no_audio_received",
"error_asr",
"error_retell",
Expand All @@ -472,9 +470,12 @@ class PhoneCallResponse(BaseModel):
"""The reason for the disconnection of the call.

Read details desciption about reasons listed here at
[Disconnection Reason Doc](/get-started/debug-guide#disconnection-reason).
[Disconnection Reason Doc](/reliability/debug-call-disconnect#understanding-disconnection-reasons).
"""

duration_ms: Optional[int] = None
"""Duration of the call in milliseconds. Available after call ends."""

end_timestamp: Optional[int] = None
"""End timestamp (milliseconds since epoch) of the call.

Expand Down
7 changes: 4 additions & 3 deletions src/retell/types/web_call_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,6 @@ class WebCallResponse(BaseModel):
"error_llm_websocket_lost_connection",
"error_llm_websocket_runtime",
"error_llm_websocket_corrupt_payload",
"error_frontend_corrupted_payload",
"error_twilio",
"error_no_audio_received",
"error_asr",
"error_retell",
Expand All @@ -463,9 +461,12 @@ class WebCallResponse(BaseModel):
"""The reason for the disconnection of the call.

Read details desciption about reasons listed here at
[Disconnection Reason Doc](/get-started/debug-guide#disconnection-reason).
[Disconnection Reason Doc](/reliability/debug-call-disconnect#understanding-disconnection-reasons).
"""

duration_ms: Optional[int] = None
"""Duration of the call in milliseconds. Available after call ends."""

end_timestamp: Optional[int] = None
"""End timestamp (milliseconds since epoch) of the call.

Expand Down
Loading