From 8f88bea75df6f3089c59fd5ff2524fef130284c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 14 May 2025 23:13:43 +0000 Subject: [PATCH 1/4] chore(ci): upload sdks to package manager --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ scripts/utils/upload-artifact.sh | 25 +++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100755 scripts/utils/upload-artifact.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64a77ef9..d3576973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh new file mode 100755 index 00000000..02cc037a --- /dev/null +++ b/scripts/utils/upload-artifact.sh @@ -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: npm install 'https://pkg.stainless.com/s/toddlzt-python/$SHA'\033[0m" +else + echo -e "\033[31mFailed to upload artifact.\033[0m" + exit 1 +fi From d75d40d8cf7b23a5188ea5761b3b0a961d1105dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 15 May 2025 12:30:33 +0000 Subject: [PATCH 2/4] chore(ci): fix installation instructions --- scripts/utils/upload-artifact.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index 02cc037a..2d01eaf7 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -18,7 +18,7 @@ UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \ 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: npm install 'https://pkg.stainless.com/s/toddlzt-python/$SHA'\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 From 9c52508ca3972d3c48bf0f1217a58e5d02c65c0c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 15 May 2025 21:35:24 +0000 Subject: [PATCH 3/4] feat(api): api update --- .stats.yml | 4 ++-- src/retell/types/call_list_params.py | 2 -- src/retell/types/phone_call_response.py | 7 ++++--- src/retell/types/web_call_response.py | 7 ++++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index b4e37de6..30033785 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/retell/types/call_list_params.py b/src/retell/types/call_list_params.py index 0e53a915..07aabbd8 100644 --- a/src/retell/types/call_list_params.py +++ b/src/retell/types/call_list_params.py @@ -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", diff --git a/src/retell/types/phone_call_response.py b/src/retell/types/phone_call_response.py index b22ecb02..0f070d24 100644 --- a/src/retell/types/phone_call_response.py +++ b/src/retell/types/phone_call_response.py @@ -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", @@ -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. diff --git a/src/retell/types/web_call_response.py b/src/retell/types/web_call_response.py index 95fc178e..991ebb42 100644 --- a/src/retell/types/web_call_response.py +++ b/src/retell/types/web_call_response.py @@ -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", @@ -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. From ecbc2bc2855bf50e12bb20471b370562a113066c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 15 May 2025 21:36:04 +0000 Subject: [PATCH 4/4] release: 4.30.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ pyproject.toml | 2 +- src/retell/_version.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1b159305..ba2c94bf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.29.0" + ".": "4.30.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 43a26893..4656c76f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index ed73b4f2..759cd47b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/retell/_version.py b/src/retell/_version.py index 6b864715..f8b21fac 100644 --- a/src/retell/_version.py +++ b/src/retell/_version.py @@ -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