From 89695929c97bc4ed66f673da4659305e73cb14d1 Mon Sep 17 00:00:00 2001 From: superchilled Date: Mon, 20 Jul 2026 10:39:39 +0100 Subject: [PATCH 1/7] Updating the Voice API Phone model to be more permissive of phone param input --- voice/src/vonage_voice/models/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voice/src/vonage_voice/models/common.py b/voice/src/vonage_voice/models/common.py index 99476fec..9fd880c4 100644 --- a/voice/src/vonage_voice/models/common.py +++ b/voice/src/vonage_voice/models/common.py @@ -9,10 +9,10 @@ class Phone(BaseModel): """Model for a phone number. Args: - number (PhoneNumber): The phone number. + number (str): The phone number. """ - number: PhoneNumber + number: str type: Channel = Channel.PHONE From 5ff0b864b628ea301b2dd03c830b94c15296c2a9 Mon Sep 17 00:00:00 2001 From: superchilled Date: Mon, 20 Jul 2026 10:41:47 +0100 Subject: [PATCH 2/7] Bumping patch version of Voice package --- voice/src/vonage_voice/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice/src/vonage_voice/_version.py b/voice/src/vonage_voice/_version.py index 77f1c8e6..51ed7c48 100644 --- a/voice/src/vonage_voice/_version.py +++ b/voice/src/vonage_voice/_version.py @@ -1 +1 @@ -__version__ = '1.5.0' +__version__ = '1.5.1' From 34066ec4d37dc223349778a19cf41ee66bf2f589 Mon Sep 17 00:00:00 2001 From: superchilled Date: Mon, 20 Jul 2026 10:54:51 +0100 Subject: [PATCH 3/7] Updating changelog --- voice/CHANGES.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voice/CHANGES.md b/voice/CHANGES.md index aae0ebd1..9ebe2c4a 100644 --- a/voice/CHANGES.md +++ b/voice/CHANGES.md @@ -1,3 +1,6 @@ +# 1.5.1 +- Updating the Voice API `Phone` model + # 1.5.0 - Add answer wehhook - Implement `Wait` NCCO action From c7abb61664d1d64e668fda6e89b384137c578017 Mon Sep 17 00:00:00 2001 From: superchilled Date: Mon, 20 Jul 2026 11:29:39 +0100 Subject: [PATCH 4/7] Updating pyproject.toml --- vonage/pyproject.toml | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/vonage/pyproject.toml b/vonage/pyproject.toml index c4097194..d009f59b 100644 --- a/vonage/pyproject.toml +++ b/vonage/pyproject.toml @@ -1,45 +1,17 @@ [project] name = "vonage" -dynamic = ["version"] +dynamic = [ "version",] description = "Python Server SDK for using Vonage APIs" readme = "README.md" requires-python = ">=3.9" -dependencies = [ - "vonage-account>=1.1.2", - "vonage-application>=2.0.2", - "vonage-http-client>=1.5.2", - "vonage-identity-insights>=1.0.0", - "vonage-messages>=1.7.1", - "vonage-network-auth>=1.0.2", - "vonage-network-sim-swap>=1.1.2", - "vonage-network-number-verification>=1.0.2", - "vonage-number-insight>=1.0.7", - "vonage-numbers>=1.0.5", - "vonage-sms>=1.2.0", - "vonage-subaccounts>=1.0.4", - "vonage-users>=1.2.2", - "vonage-utils>=1.1.4", - "vonage-verify>=2.2.0", - "vonage-verify-legacy>=1.1.0", - "vonage-video>=1.5.1", - "vonage-voice>=1.5.0", -] -classifiers = [ - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: Apache Software License", -] +dependencies = [ "vonage-account>=1.1.2", "vonage-application>=2.0.2", "vonage-http-client>=1.5.2", "vonage-identity-insights>=1.0.0", "vonage-messages>=1.7.1", "vonage-network-auth>=1.0.2", "vonage-network-sim-swap>=1.1.2", "vonage-network-number-verification>=1.0.2", "vonage-number-insight>=1.0.7", "vonage-numbers>=1.0.5", "vonage-sms>=1.2.0", "vonage-subaccounts>=1.0.4", "vonage-users>=1.2.2", "vonage-utils>=1.1.4", "vonage-verify>=2.2.0", "vonage-verify-legacy>=1.1.0", "vonage-video>=1.5.1", "vonage-voice>=1.5.1",] +classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "License :: OSI Approved :: Apache Software License",] [[project.authors]] name = "Vonage" email = "devrel@vonage.com" [build-system] -requires = ["setuptools>=61.0", "wheel"] +requires = [ "setuptools>=61.0", "wheel",] build-backend = "setuptools.build_meta" [project.urls] From 795eca9991678c12bb7063afdf0ce6487aee0890 Mon Sep 17 00:00:00 2001 From: superchilled Date: Mon, 20 Jul 2026 11:39:07 +0100 Subject: [PATCH 5/7] Bumping main package patch version and updating main changelog --- vonage/CHANGES.md | 4 ++++ vonage/src/vonage/_version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vonage/CHANGES.md b/vonage/CHANGES.md index 6c1b9c08..09796fb0 100644 --- a/vonage/CHANGES.md +++ b/vonage/CHANGES.md @@ -1,3 +1,7 @@ +# 4.8.2 +- Updates the Voice API `Phone` model to fix a type constraint bug + + # 4.8.1 - Fixes some Messages API validations diff --git a/vonage/src/vonage/_version.py b/vonage/src/vonage/_version.py index ec5ed27c..29fd62a7 100644 --- a/vonage/src/vonage/_version.py +++ b/vonage/src/vonage/_version.py @@ -1 +1 @@ -__version__ = '4.8.1' +__version__ = '4.8.2' From eac98a4e9f5db2edaa78aeb05917e3c963bbd32b Mon Sep 17 00:00:00 2001 From: superchilled Date: Mon, 20 Jul 2026 11:41:28 +0100 Subject: [PATCH 6/7] Linting --- voice/src/vonage_voice/models/common.py | 2 +- vonage/pyproject.toml | 36 ++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/voice/src/vonage_voice/models/common.py b/voice/src/vonage_voice/models/common.py index 9fd880c4..f68338c7 100644 --- a/voice/src/vonage_voice/models/common.py +++ b/voice/src/vonage_voice/models/common.py @@ -1,7 +1,7 @@ from typing import Literal, Optional from pydantic import BaseModel, Field -from vonage_utils.types import PhoneNumber, SipUri +from vonage_utils.types import SipUri from vonage_voice.models.enums import Channel diff --git a/vonage/pyproject.toml b/vonage/pyproject.toml index d009f59b..a98a6d82 100644 --- a/vonage/pyproject.toml +++ b/vonage/pyproject.toml @@ -1,17 +1,45 @@ [project] name = "vonage" -dynamic = [ "version",] +dynamic = ["version"] description = "Python Server SDK for using Vonage APIs" readme = "README.md" requires-python = ">=3.9" -dependencies = [ "vonage-account>=1.1.2", "vonage-application>=2.0.2", "vonage-http-client>=1.5.2", "vonage-identity-insights>=1.0.0", "vonage-messages>=1.7.1", "vonage-network-auth>=1.0.2", "vonage-network-sim-swap>=1.1.2", "vonage-network-number-verification>=1.0.2", "vonage-number-insight>=1.0.7", "vonage-numbers>=1.0.5", "vonage-sms>=1.2.0", "vonage-subaccounts>=1.0.4", "vonage-users>=1.2.2", "vonage-utils>=1.1.4", "vonage-verify>=2.2.0", "vonage-verify-legacy>=1.1.0", "vonage-video>=1.5.1", "vonage-voice>=1.5.1",] -classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "License :: OSI Approved :: Apache Software License",] +dependencies = [ + "vonage-account>=1.1.2", + "vonage-application>=2.0.2", + "vonage-http-client>=1.5.2", + "vonage-identity-insights>=1.0.0", + "vonage-messages>=1.7.1", + "vonage-network-auth>=1.0.2", + "vonage-network-sim-swap>=1.1.2", + "vonage-network-number-verification>=1.0.2", + "vonage-number-insight>=1.0.7", + "vonage-numbers>=1.0.5", + "vonage-sms>=1.2.0", + "vonage-subaccounts>=1.0.4", + "vonage-users>=1.2.2", + "vonage-utils>=1.1.4", + "vonage-verify>=2.2.0", + "vonage-verify-legacy>=1.1.0", + "vonage-video>=1.5.1", + "vonage-voice>=1.5.1", +] +classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "License :: OSI Approved :: Apache Software License", +] [[project.authors]] name = "Vonage" email = "devrel@vonage.com" [build-system] -requires = [ "setuptools>=61.0", "wheel",] +requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project.urls] From 44e2d4850cb22c6d2092b5d2b9130420a8a82fe7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:57:02 +0000 Subject: [PATCH 7/7] fix: pin pytest below 9.1 for Pants CI --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3cf935e8..cb722af2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pytest>=8.0.0 +pytest>=8.0.0,<9.1 requests>=2.31.0 responses>=0.24.1 pydantic>=2.9.2