diff --git a/.fern/metadata.json b/.fern/metadata.json index 08c52b77d..9fb874c62 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.112.0", + "cliVersion": "5.200.0", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "5.3.3", "generatorConfig": { @@ -8,6 +8,6 @@ }, "client_class_name": "Vapi" }, - "originGitCommit": "406e7e1ea2bdeb0ebcd01252883626f9a240ecf3", + "originGitCommit": "745569ce06e7f4cb1e812770a00cc3005e89e01c", "sdkVersion": "3.0.0" } \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock index 752b949dc..588dddf97 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -12,5 +12,157 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.3.3 -current_generation: 3c017311bff0f0f7a9051f6c0413ee7fee70a677 -patches: [] + - commit_sha: 4cd00ac8279ef4bc7c1f153a5ca3c74d7731d88a + tree_hash: 8dac262cb4b86dbf8415d11f529377a4e3dd0d03 + timestamp: 2026-11-07T10:34:38.077Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.3.3 +current_generation: 4cd00ac8279ef4bc7c1f153a5ca3c74d7731d88a +patches: + - id: patch-96355192 + content_hash: sha256:bcfb115bed13de11a66faed9755115d4054841a45958dea7707614541ce16566 + original_commit: 963551924c1ac253305a28111cda2a0393f3be0d + original_message: "fix: derive SDK request headers from installed version" + original_author: Amanda Martin <290842976+amanda-vapi@users.noreply.github.com> + base_generation: 4cd00ac8279ef4bc7c1f153a5ca3c74d7731d88a + files: + - src/vapi/core/client_wrapper.py + patch_content: | + diff --git a/src/vapi/core/client_wrapper.py b/src/vapi/core/client_wrapper.py + index a83c8a5..42df963 100644 + --- a/src/vapi/core/client_wrapper.py + +++ b/src/vapi/core/client_wrapper.py + @@ -3,6 +3,7 @@ + import typing + + import httpx + +from ..version import __version__ + from .http_client import AsyncHttpClient, HttpClient + from .logging import LogConfig, Logger + + @@ -27,12 +28,12 @@ class BaseClientWrapper: + import platform + + headers: typing.Dict[str, str] = { + - "User-Agent": "vapi_server_sdk/0.0.0.dev0", + + "User-Agent": f"vapi_server_sdk/{__version__}", + "X-Fern-Language": "Python", + "X-Fern-Runtime": f"python/{platform.python_version()}", + "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}", + "X-Fern-SDK-Name": "vapi_server_sdk", + - "X-Fern-SDK-Version": "0.0.0.dev0", + + "X-Fern-SDK-Version": __version__, + **(self.get_custom_headers() or {}), + } + headers["Authorization"] = f"Bearer {self._get_token()}" + theirs_snapshot: + src/vapi/core/client_wrapper.py: | + # This file was auto-generated by Fern from our API Definition. + + import typing + + import httpx + from ..version import __version__ + from .http_client import AsyncHttpClient, HttpClient + from .logging import LogConfig, Logger + + + class BaseClientWrapper: + def __init__( + self, + *, + token: typing.Union[str, typing.Callable[[], str]], + headers: typing.Optional[typing.Dict[str, str]] = None, + base_url: str, + timeout: typing.Optional[float] = None, + logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, + ): + self._token = token + self._headers = headers + self._base_url = base_url + self._timeout = timeout + self._logging = logging + + def get_headers(self) -> typing.Dict[str, str]: + import platform + + headers: typing.Dict[str, str] = { + "User-Agent": f"vapi_server_sdk/{__version__}", + "X-Fern-Language": "Python", + "X-Fern-Runtime": f"python/{platform.python_version()}", + "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}", + "X-Fern-SDK-Name": "vapi_server_sdk", + "X-Fern-SDK-Version": __version__, + **(self.get_custom_headers() or {}), + } + headers["Authorization"] = f"Bearer {self._get_token()}" + return headers + + def _get_token(self) -> str: + if isinstance(self._token, str): + return self._token + else: + return self._token() + + def get_custom_headers(self) -> typing.Optional[typing.Dict[str, str]]: + return self._headers + + def get_base_url(self) -> str: + return self._base_url + + def get_timeout(self) -> typing.Optional[float]: + return self._timeout + + + class SyncClientWrapper(BaseClientWrapper): + def __init__( + self, + *, + token: typing.Union[str, typing.Callable[[], str]], + headers: typing.Optional[typing.Dict[str, str]] = None, + base_url: str, + timeout: typing.Optional[float] = None, + logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, + httpx_client: httpx.Client, + ): + super().__init__(token=token, headers=headers, base_url=base_url, timeout=timeout, logging=logging) + self.httpx_client = HttpClient( + httpx_client=httpx_client, + base_headers=self.get_headers, + base_timeout=self.get_timeout, + base_url=self.get_base_url, + logging_config=self._logging, + ) + + + class AsyncClientWrapper(BaseClientWrapper): + def __init__( + self, + *, + token: typing.Union[str, typing.Callable[[], str]], + headers: typing.Optional[typing.Dict[str, str]] = None, + base_url: str, + timeout: typing.Optional[float] = None, + logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, + async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, + httpx_client: httpx.AsyncClient, + ): + super().__init__(token=token, headers=headers, base_url=base_url, timeout=timeout, logging=logging) + self._async_token = async_token + self.httpx_client = AsyncHttpClient( + httpx_client=httpx_client, + base_headers=self.get_headers, + base_timeout=self.get_timeout, + base_url=self.get_base_url, + async_base_headers=self.async_get_headers, + logging_config=self._logging, + ) + + async def async_get_headers(self) -> typing.Dict[str, str]: + headers = self.get_headers() + if self._async_token is not None: + token = await self._async_token() + headers["Authorization"] = f"Bearer {token}" + return headers + user_owned: true diff --git a/changelog.md b/changelog.md index 45c4645fa..74ba0b91f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## [3.0.0] - 2026-11-07 + ## 3.0.0 - Unreleased ### Breaking Changes diff --git a/poetry.lock b/poetry.lock index 1674163c3..d172522f3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,172 +13,172 @@ files = [ [[package]] name = "aiohttp" -version = "3.14.4" +version = "3.14.5" description = "Async http client/server framework (asyncio)" optional = true python-versions = ">=3.10" files = [ - {file = "aiohttp-3.14.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:dea3b3653c1d0d6babd8ce09cb9e5a7776864315d9cfb1c569f926389874a261"}, - {file = "aiohttp-3.14.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3099a389e5b5900fc79c6f613015ff3f8fa06a519744e6001cc68a31ba418cac"}, - {file = "aiohttp-3.14.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:70247156fc76e92919f9aacb820556cb30289a54784299a31714d030bb604d84"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fdf2d2a6ad402797422949f4a200a60d43e3a021695c8a7804aa1d5bbef22652"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ba835fad8d4b5eaea0d34f9461cf499737a720a5f8bc6768d2f6d98a1d3ba8b5"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0d4415ca5c9c8b24bc2f5733f870d4eab4929e680203559ba60131dd1a27852a"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f6757e02c2c2b0d7985f57be87cf4a7c5b35708f849e1feaea3f77656ddb9dff"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2a950bd8418ef54eccf5f9f517f08e37c1adab4bc50a470a0422ee1cc1032e29"}, - {file = "aiohttp-3.14.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:34cf6f2fe4fc1d7183e8cc0d8c48bbdda828a740bc372d8278126149714d343c"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:bc0fbe4f79c3b156d754dd062718ffe404c3b31ca878d9d2b88ecdbc72ef8369"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:d3d50a5a07a2b31a4369b86dd4a3acf3c2577c45091dbd5e884b198dec56480b"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:de15c46a63f46da881d219e44a04778c40114c756e5575b5ea38143b20eb3713"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:caa4c0fc9b25e8c679baac68337e9c00deb6baf6601fe6f07e8511469cc1ceba"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:3647f8c090632c70abb1e80826e4ee24faea3f895f0283b60e91a0b17aea5e34"}, - {file = "aiohttp-3.14.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3f3e8030169843fb652a60a3d32c206e03f260198aa398985a48b41cd7e42f0a"}, - {file = "aiohttp-3.14.4-cp310-cp310-win32.whl", hash = "sha256:a1205cbdddfca1428129bb6d23e0b292b09e681df951fa828145d83a63ffc0ca"}, - {file = "aiohttp-3.14.4-cp310-cp310-win_amd64.whl", hash = "sha256:e90980e0454a043f81b435309a089ac5deab883779557eb58d004f33990f61e4"}, - {file = "aiohttp-3.14.4-cp310-cp310-win_arm64.whl", hash = "sha256:e63eecf9a4b670a24055d5c0486128af16f83b02d9817abd685d3238940f8752"}, - {file = "aiohttp-3.14.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:eb0093ca0817019d539f0d27bdf98e823944e05bb7efd9d2337a45b92e4d1b06"}, - {file = "aiohttp-3.14.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f482dc9c8309801b4259dd218609d3dae0a7bcdedeac56d90500eabaa0c23465"}, - {file = "aiohttp-3.14.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:aa800bb7c1d00e166493931f2ddacb982db913292503dc2f4884db1f2bc5f105"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d90e4dae71b26597f6d1fd12af7d092ae67551edf0e524b73e0687214b79ee33"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5b681054b8c3b86aa6a0384b6ad7f5cb78dccbabab1f4a3a6793f98ad1378959"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6dfe80b41bcf8d80d2125fb99a171adeb86db2fcb35c1a68e0226acba0ba7f03"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:71e4a59c6a8c5a6ae8b0b696c32635913e8f526cc01448762eaf5a3c59df8a4f"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f887c3b7fb3058fc1ccd917f52078540c18d938d12018cb9edd64b6811d20c57"}, - {file = "aiohttp-3.14.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0da4525e9ba145a11617d2cd7e44fe1acaf471f9c72a0cad28e72879c1020fbb"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f7e8d3c5caa44fdbee3eba1aa1417aa58c74c95d4089fe3c451911117fcbb2f3"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:09092cf906c18c824b6b16881da5a89cc9cfa9b15344e496bcf880e9045bee33"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:dfd144837e92264878bba6d3a7ffa8206668b21e87748740afd45d193e48c87e"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9413cffe4e0d654b9b524f9c99dde8cbdb37e0ed9a2c4edd2e63adbac6b374e8"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:f50d719f97ba488dfb8e306cf8c8cc172ff0683ec0af53917b288229aa555ba5"}, - {file = "aiohttp-3.14.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:68ed4824d96b7afec1f3a8d7fba190fe282718041c5772e20298003e1e3e5d66"}, - {file = "aiohttp-3.14.4-cp311-cp311-win32.whl", hash = "sha256:d7a41d1427136828e6b11d3f3fd194d4357d5205a5b610be7ae07b1ba52ab974"}, - {file = "aiohttp-3.14.4-cp311-cp311-win_amd64.whl", hash = "sha256:2efbdb87e79d596325c4eefaef0f4495d701145e882351310ebc538e854dc7a3"}, - {file = "aiohttp-3.14.4-cp311-cp311-win_arm64.whl", hash = "sha256:ac6e6f90d9360e460c873f945f11dc8698db0a71fec6612823f1aaaab2c11faa"}, - {file = "aiohttp-3.14.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:55b0b335982b0db7117dff7f6a8e3aad43c4105f9e392ca04f9fc8d958a95cce"}, - {file = "aiohttp-3.14.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2d0d8e435582b0d53009dac99e26a3d2be932ed7c9dbfcfc70f3fce1cf943bd5"}, - {file = "aiohttp-3.14.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bf734016932d68e1324cfb638cac7a0866a83933a33badf15e836a7e24efb8c0"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:322e3d741b3133bcbb981a41d4f9b8ac3545c18de49c662c2b1f4e1c770b98ad"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15a3bb5f90a4e515071f3617a45dfe26560beb834a6b6e108cdf4bc9e9719ec3"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6c044e52df1a466af82cad3518c92ea80cc4ddcfea86966ff083bb34bab29bf4"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d613d7d51bf06fe9a5e3aab86ce06d835bb0ceb1a31ea9e8766df4a403ae62a6"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5e93ab6e6330dce40f5b43996f1fc5f2543296d263a5e4b59ff09e73870b7d8"}, - {file = "aiohttp-3.14.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:20134dc8e68c67e7478124d516449428684c0545b2d3faa575691c8bcbd56678"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f0daef5ef012369dddc391c61f604111424aa9a96313a69fb899018b09d1b01e"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:19290a108de0718b73bc69b86e788975c6a59855c671ebe2a98a07a6f968328f"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:1494877625baeffab669f4a25a09ec4eea721b49e35363081a2a8e4231fe141f"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a779ce4bf099ce4ad2cdfed62f1ca536d435f53237c54ff40172fddada24d1b5"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:0b4cec9fca876e2d4f4c6cb32b177390132d04618867689f43fefabf3f5c3980"}, - {file = "aiohttp-3.14.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:217707313e23aedde9bea67cf8365c7b138b549ae179121ef3f476cf67e3173a"}, - {file = "aiohttp-3.14.4-cp312-cp312-win32.whl", hash = "sha256:18a9fb9a3f6e6e63f4d27f9adeef313a2d3c69a84d31170a844623824e722534"}, - {file = "aiohttp-3.14.4-cp312-cp312-win_amd64.whl", hash = "sha256:69dcb02d33dfe415d5ee342cc63b7d320efcaf4b761701c7bd7bfb91c715481a"}, - {file = "aiohttp-3.14.4-cp312-cp312-win_arm64.whl", hash = "sha256:d36b0263e7c2fbf1750b9f35d4e7e48b0442d8c45e4a89e3e74168821fb014bb"}, - {file = "aiohttp-3.14.4-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:264b5a7568306590c44ae4a0237ad1715e35d447ea44ebf324e4c8fd9f78f67a"}, - {file = "aiohttp-3.14.4-cp313-cp313-android_24_x86_64.whl", hash = "sha256:17e5d7c7775d8dd8e894c7ef6ebfa26509de36868a9a6c7c4fcfaf6a1bf43d60"}, - {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e91dc8fe9cbd052d16f7f1267e285cf8bbac4d2194bd5741f05ef201c77ed09e"}, - {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8df6157d31703972aec9e3b93963f039ff06318301e30b007c3e941ff8a7ac42"}, - {file = "aiohttp-3.14.4-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:220912b351549dc736c59d104dc443fa615753102bb778a4e98f86e4d94bff6a"}, - {file = "aiohttp-3.14.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2efa42b39bb3f524d5eca3760639b584afdd1143a6b047fda29910ffb75e4993"}, - {file = "aiohttp-3.14.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7e7356059c8262d2c1fd95242e2b7b70fbc6eee3135bf470049cbec3e968b5b0"}, - {file = "aiohttp-3.14.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fac247d0cc956d732df1211ac2d8a9999ec8dc1a92a90401de9d52e4ead546f7"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e2eb0f8b03b4f2bd154ed8cf7c1a119a1ad04808c258bf58f90138c83b8c6d5"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7fbe827d27e0e369fd7bb88ceeaa5b46ea006e73e015b9dd77e3723a53162293"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a70387146d03af9f047c629b71aa27d9594b3b31ec4c9c91e1a73d0d8bf38e0e"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0d0934926fc65744e2fdd44ce68b2d79d5ee608a1e23f0596b35dd696519bb7c"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ff4b366510c733974adb7a4102c094e4a6308e6f369315a4cf14d2d0a619cf82"}, - {file = "aiohttp-3.14.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:85fac7c99e0ac3dcbd6ae1c33774e0603bfc732ddb967a6fce4a731103c1888e"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ef1e9c3b4a2300023a5dc865889ce532cfaf6798ba4ef78fbbefe738a9d23efa"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:97e65916588be0f952b3307aaa8460c0771fa98dbea2dd27dabc9f5d84d53c3b"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:840775cb39a9424f9edf142133a1192263ac5bd79117ad2a16602cef6a0c1e9d"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:54f9256430ca040d58affbd551513de13a5cff7d065204fc52b9a1b0af09a049"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:6112d5931bf12c776188cab81b82bbb17d86e2e1381f2ade6edc43e6b240f0cb"}, - {file = "aiohttp-3.14.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:facc6df39047c4732cbd885bb62e40df20885fcd709fc399e11f81b45ce0fff9"}, - {file = "aiohttp-3.14.4-cp313-cp313-win32.whl", hash = "sha256:7968634fa3a967a2bc0b9aeba1d5a1955501dcd7d0de44b96f7ebfb662797735"}, - {file = "aiohttp-3.14.4-cp313-cp313-win_amd64.whl", hash = "sha256:c0a894b0265d139cd4c2c8bd4643822cc289a4a5331e21e810881bd000ffb2dc"}, - {file = "aiohttp-3.14.4-cp313-cp313-win_arm64.whl", hash = "sha256:da16c3037178e72589d91de59536d271dffc92c2be2b47c38a45538cba54fd29"}, - {file = "aiohttp-3.14.4-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:749bfc43bb1df71bbe6ed215044d5412d786698fc5771d2037436ca49622f3c9"}, - {file = "aiohttp-3.14.4-cp314-cp314-android_24_x86_64.whl", hash = "sha256:c113e4b489d711f606ca278cd8dc89179746244ea841aa0638b1b134600afad0"}, - {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:50969522bc7022026a2c7968e67da5c789f6b716b988edac55dc630390efd5df"}, - {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:cbf92cd7a1c800cee244558dd5630abb45c1c1093ef7b0d546a99f526ff7a9eb"}, - {file = "aiohttp-3.14.4-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:fc76be08ff407fba717a769aff04ca1b4bf9ecfdcb5caadef84a563fdbbd146d"}, - {file = "aiohttp-3.14.4-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:9b416f995b68a921069e6ec61fa07f2ac3ff033d92e97a69f673af89f5bb954d"}, - {file = "aiohttp-3.14.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2c9585101cfca10e74a07cc0ef2bdc6d90616e6750926b20456f429d0608f740"}, - {file = "aiohttp-3.14.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3c4dcf611b095e7983421f49d01ffbed7ed574891533d606ea115fc23e7c4e90"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f8f61a9b5fa56c58e3441f9dc64137f786232d40fb89127190d0e0f84e1e5865"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d43e538dfc85b705fd832620d050970ef5613b3869a7169b44a554b9dab9eee9"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4135c4bb4b7682a7633fadc7170ea969d843f83aa7224e70111a20675105c985"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9055324f156a94fdf6dc9a825ae60f9a2947b88f591ea81ee80826633de62ae7"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fb22c8e4b60385a9b414c70c6e8b2d0f4b23ff7fc4bb572ceb58297b228169f1"}, - {file = "aiohttp-3.14.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3b6945559a260112742ed58cde2165488d2fc51aeea34afbaa99d9371b43e1b5"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8f4078a90b174f15efb2c8725e8720c40dbd3b2cf6350dbc085c964a938d9de7"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f433c5654e32f72de3ef074d715eb5c7604eb6d28a5c2f3c9e5056f20fe6b306"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:871035fe79c636b6bc126ed78df37d72b830dfc751612cb4b1040360edf2719f"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2617132524f66338f6c1d218cd16081576aefc40df4f2bcba338a99fbf67fec1"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d8bc326133272deee8ef337581550450e4bb735c0520be893b950a1f5baaf41a"}, - {file = "aiohttp-3.14.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3ec57223e261b7fa9979c12dbce009ca53439be76cac3af27f860d3e4b1d6f7a"}, - {file = "aiohttp-3.14.4-cp314-cp314-win32.whl", hash = "sha256:7242043e71fc449a19a47d92f4e9fd1e0ae8d3f88488982381f422bf6d651218"}, - {file = "aiohttp-3.14.4-cp314-cp314-win_amd64.whl", hash = "sha256:019587c7b3a44917dd61bcb312fd5c034f341dc9851b83e7b41b65e08b68ca0f"}, - {file = "aiohttp-3.14.4-cp314-cp314-win_arm64.whl", hash = "sha256:60dc71d38db0988f37e78f6ad4a010a2f6355cfac3fff5f130cf5ef2231f3f0d"}, - {file = "aiohttp-3.14.4-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:674f53ab9d2794e2dd767619a3384bf1006f8d075e43c19d449a645f8ff641c2"}, - {file = "aiohttp-3.14.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:6d243221f73e5ac546c2ed9255100423e4bc092b08b944f23498e8cf3096c26c"}, - {file = "aiohttp-3.14.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0daa016eb74e7888ed5f9ceec6eea3158999c1c4a115ef5cbe88baa8d924f94c"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:70c031a622aa20add05ebd234b90adaf6bf51c1c88cc305ec760721af83308c3"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7df363fa7c38945a896e12c69af4a1a56cbd4152791d9e41fd0bac396b72de38"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02a508ba5ad91c4d730523584c0adc65882274bba5e37c33bc2f475e37577256"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0cb3edece6fe6a944eaf97d803b88f606da6bc1600b1894c2969e78ffdc1fc29"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:21ce1223b461bcc5fb389a7204001578f1c0b85c2da60a84d915ebb021294245"}, - {file = "aiohttp-3.14.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35d5432f0dc1c8b71307e9112461b52f336da225e344283eec4779222c0a1dff"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d6ec364493057c118d08292f7cd60865965c209167d8657b45643a26aef77495"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:70492983b7aed9e61bda82fe1ce80bcba9199610886443133783a288638923c0"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:a77776673331577147e9d25cd7833a72e8891b47556336cff06ba1569e488b99"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:73799000dd6fd5247094fd8e6d3e1eb871e41aab5cc35dff9d9f654cd230bc24"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:27b370fb532e707e8c96d04fa0c96301fb7dba2d50aaca57f6c456cdfffec5bd"}, - {file = "aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:884e0d1c707b6217fee3080b9b4029eee7551af788ee761010df19be158414b7"}, - {file = "aiohttp-3.14.4-cp314-cp314t-win32.whl", hash = "sha256:f2e3d34edb151d3e27f93a8338e2da33e2c7261cd4c879ce5f5fe280cc190ea5"}, - {file = "aiohttp-3.14.4-cp314-cp314t-win_amd64.whl", hash = "sha256:88cf889e51092537fe44adfbff96c2a22d6479d6f92b97b3d413fbfd0a4decf4"}, - {file = "aiohttp-3.14.4-cp314-cp314t-win_arm64.whl", hash = "sha256:ca450c6d42fda7c0bfaf0e200f32f77c5f2c960a33be1e14d197c84588b7f5f6"}, - {file = "aiohttp-3.14.4-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:3b10799df72f66c30935bc661cb89e5ac2918debfc575e350e226fbaa846cbb7"}, - {file = "aiohttp-3.14.4-cp315-cp315-android_24_x86_64.whl", hash = "sha256:7ffd7f9dd39caccc6b2f68ec0339435ecad2b20f6ea2e2b3de91bbe464ac7137"}, - {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a0a7a227353f7693f73878ad14cd2623cafadd656ababcd20e2adfb7225172ea"}, - {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:1c43b6af8e4708e8b3812a9ee4f79895207e12d555b7f6d70deb838e0011e12d"}, - {file = "aiohttp-3.14.4-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:97416b2b997e5e9b817e322b2f0a89b76c54cde22471f51ac17ac15e10901ba0"}, - {file = "aiohttp-3.14.4-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:ee2a5aa31e507c17841d592364f2148393b17f83bc2766e9211e1eb31ea72a70"}, - {file = "aiohttp-3.14.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:5d5d9843c34866e986dd24eef713452609e304550c471320ce7b54b3cfb1391e"}, - {file = "aiohttp-3.14.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:efcbf93e31b52c21665b6ebc489eb6fdb0dfd86b592edc677b5cffdfa7b11677"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f1a79977794592dcf6485ed964ec2448db527a1bc0c72ec89663658dad3a739"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:515e7ac6d27509dc3ba2c35fb88970b00b9e7b07ee7cc947c8733dcd54ef5def"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:185154ffa3b54765b5de96f464f41cfa476f8815a03854ae5e0fe4d48fb06e9c"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6aece59f77959628a22cd2ffe48b102cda9611d680e090f204385b3998a1190f"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7205aa6589f1ad1306c6994ff2e1ab5efabacf938f9ffd7682fb225c197b06a"}, - {file = "aiohttp-3.14.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f38c7b3ce60d55ac0f2a9fd2edc194789d043fefea15cfb7dcb40b7d5f561146"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b0a1274ee4ee6203c15a341cce87f9f3df8151d5496047b3608bb62bd969cffc"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:69ce2407951516f413adf3132b88451eababd710ce631f83c81a9603a3640253"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:b84d3d057c60eb8e0c2b457a1203e868d82709d3f0c272a4975dfd88c2414939"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:4ecc84f69c9e217984f6877e832e4786a74567432c0bf2b7512919fbdfe18ade"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:878f2d7950238b2b0a8cbb88054444a125f0cfbc77f54c811aca0483132a9be3"}, - {file = "aiohttp-3.14.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6ff9d3a0e6935f1cb0a6685f9f4b3f0d3e406456d7a434a03cf309b8cd5d7a2e"}, - {file = "aiohttp-3.14.4-cp315-cp315-win32.whl", hash = "sha256:e07dfd7cd360f20be26dc2487ad4c7f21b0b39fdd593e9ebf37d2424ad52defb"}, - {file = "aiohttp-3.14.4-cp315-cp315-win_amd64.whl", hash = "sha256:921fc4f1ad549091bfc39cb5e93925b04f307f83517756a3111843851130efce"}, - {file = "aiohttp-3.14.4-cp315-cp315-win_arm64.whl", hash = "sha256:5be8af106f96fd625f6c264fa9faaaa9e0104089684d9015d2fa5b6eba6407c7"}, - {file = "aiohttp-3.14.4-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:e69727ec04a4608200ff32ec29478299df7657e2eb78c416ae338d0ca6662596"}, - {file = "aiohttp-3.14.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f8b658dd3ef2ebd7708b311ed96ff7cb5edaca001a30018a091504ef492bcb1c"}, - {file = "aiohttp-3.14.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3749e018123df1205161a73ba96d336e17e9cf6b947295e53a43571de420e7b1"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8f28a3c4fca436b2e594090e7cd22558f5e93a30ca18516c436de982da6fc25a"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e099aae21246992a1d84303ff262262d054c474e46cace33b0d5a69810c71877"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fafb521891e646d9cf5da89f01c75e7159d08be7254a024149630a698be28251"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1d385db2cd154bce0b3dd451cf2a52bec91ebb7be2c3a5d06b14b4391631d807"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ae8a244889d8a53549851bf595b9f382f64acca57e8762da1ecb26ba786828f7"}, - {file = "aiohttp-3.14.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:681dde68ff8d8d5e7d5abcad4feb45bfb457a218310c919825e21fc36cac3d0b"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b91a6441fcaed88ca7bca67726b189332df3ceb6ac0dfc98dcb9654bb723288c"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:f15dbbac49bc15eaff95c0b8166525c4050996af578c7be141e145f40ee2cf24"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:7abae043e87692d1c2adda1fab501bb0612d28c4a23eb082005c1e684f792dac"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:21f4624fb1051fc1aa10d57a636a80e829f7d0417462d6f1ce380b08fe1a904c"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:2e8dc3a0fdaf9d12b954d3d06cc4c355d91b17fb6c671715b593624ca4c379f8"}, - {file = "aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:1410b6f6e3d52ea7c02c950496522ce6e85d5543bf154bc80a6141e505251cfa"}, - {file = "aiohttp-3.14.4-cp315-cp315t-win32.whl", hash = "sha256:a65189a89f3e621f7c27a968b5131bbca29126e2b8517dc72b205747a39d4c96"}, - {file = "aiohttp-3.14.4-cp315-cp315t-win_amd64.whl", hash = "sha256:2b2c95f5f769eec92b552969db1f79ea0282058ce5131ed0f2fa540b4af3f14e"}, - {file = "aiohttp-3.14.4-cp315-cp315t-win_arm64.whl", hash = "sha256:54209fff79346ee1ef0d5cbf92fa80a5bb37396406bb4d932e5107f9c29b2d3f"}, - {file = "aiohttp-3.14.4-py3-none-any.whl", hash = "sha256:5c6758ba62aea282c537179cfc8474a90f2b5f7b089cc5ff66d8920d86a9bfdd"}, - {file = "aiohttp-3.14.4.tar.gz", hash = "sha256:831fc5bd39ec2517851e348f613ddb5447a47cf4b71cb09845af7ad7ed45d8f9"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ef692a24087a699c0a4a26af45e746e0c1eae2116f6d8a5ff91d8aae2b867b45"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1220353657ad49493551f089ce02f1a348fd57ffd585bfec77f2f3c4fe3a7346"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:330900acd0dc4cb8b27f9c127fbaad770964845338493e7906ae3822e82dbf8d"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0684952aeae1f5dbfe02d46039338513b94009baecd15d8e4098a357c4c4a2a6"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d94e44be379e569758fee8a9a58431cfc3c2598c708b92b1cfe96c66b4c94aef"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5af42135fdfebdadbc2bcd9c0842a48ccf0d62794c36a260b21dc4b94d1e0119"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f07fe3ac408d8b3f768be471dc3f56d43843c47d97c66120534467a15ead197"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f375db73a39f5cf83696d500e21a67f418dc9a988955756f254be8f03b7b3651"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8df7d481654ac96fe1ba9a02a9f67770fdd367823e0d5ef01b922725c4bd2cfa"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e95c8def4b81c5d68d5cf1f54c07acd7c0d2577af244e5b6da802120825737c6"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:f2ebb54b3f932210503072f09974b4fb574d823e497a944adfdcd140a6a00255"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:038c2c7e8caa26b6c8423779b5eaf1893904048a512c19b32fe841ffa5592b50"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:b7806e804889231b0e06469fd4a5c06313d1c0a3377322b6d9237fa5e0fe4167"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:9bab2045550c4fe0f7baf89574db1b455c195750702ba96fef1f16972b146617"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:96a2e584f0b9ed8f1fa33211397dcf67bb7069866402cb405d191c2f0defb9a3"}, + {file = "aiohttp-3.14.5-cp310-cp310-win32.whl", hash = "sha256:602c1e9b718a3275c580149f947e7fac65044c0a20e599553fb12e9700da9eca"}, + {file = "aiohttp-3.14.5-cp310-cp310-win_amd64.whl", hash = "sha256:bea559ad70218d230663e4210875735076a9bfea5994cef34a55a25faeaf2544"}, + {file = "aiohttp-3.14.5-cp310-cp310-win_arm64.whl", hash = "sha256:dca3fa8d8a0a26679862eccb0b1a9151b2b9f1cd2c212e7a6335778faaff5833"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d51db97c96384fbfcaf8f4c65922183a68b94f891c3c10c862ef5f6df2adbb1f"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae53924aa853a7a2ca20ed4142c7c6b56338e4d4cd999e2980075b9efc2e257a"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2c473a355f9239efcb72c92d5abfd8fcdb0cc78c8e9af607e72ca12dbb36593"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32e8fa6644e541fcd7e02430588c7fc93b602c1778ea0bc345505db76b61cfb4"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:579f97d5120f2971876d2ddca2968135f6944d00c44c3a6590ad7d86ca9b403f"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:24409db442e2fb6e766bc7f3943851a8381dec3098140e43bb2e843b79e31b12"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5e8f97c0488ffda3082766ac0f2c8150a9a58c4d05788330e479cfd449b37939"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50a195903119008fe9cc68710535eb37f556ffffd6a7759afe70a2c145587045"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0133c3c3b54a0bf1e71fa5c1ad95c93f07fd54e24ef1fe182f5122e1573d2bf1"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c172db893e516e1358e65a95ee20b7ce7173963eefe318b6ab2a2220688b999e"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:f2a7966bda23dd85051f1661ce0ace38d6890e05ec6c357ecae9d2479cba377e"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4887d130a7bbfed3a85493bb5a25e5b5b558d40c1d986dd16970d2bb26d63793"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:225c579c23b68b343cccea27a7e06e3bd8ec23a09c30b427eb3f1e4ca6239b20"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ab52d8f1fc1b64821c1fbad64a647ed6203627004059a6d1ed4f0858a1499703"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cb131d775a1573c1aee66656bd78b023577bbdb6cb8349a07773bd4f73e68a6e"}, + {file = "aiohttp-3.14.5-cp311-cp311-win32.whl", hash = "sha256:e87046c8ff77a8decdb6a41d8ab25824b47531b2da933aeab0c1e21c7acff329"}, + {file = "aiohttp-3.14.5-cp311-cp311-win_amd64.whl", hash = "sha256:6f275c11d1aa6d4c458e05a68be084efe3c55a113d99e3f46a318098e52948fc"}, + {file = "aiohttp-3.14.5-cp311-cp311-win_arm64.whl", hash = "sha256:b032a0023eb41d768ce77d83210ab2a3c389bc0b09313273c7e1eca48c10a755"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:df37b620684e19b5e25724412518ccafc3b1a49cdac706fdbd2f983fad943450"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ef60869969180ec2464f1349aff07138ae35ca2200f0946cb3552e49e8f301a8"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d079c0a0135c36e7beb6f1c88087c8f108dc5891cdd0b5eafa778421bda70ed2"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:abfda5cb094a829f7bc25216a32f7db2e85cc65bd59910f8e7b40b3d9b224764"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9cc882cf8619109583c906b4d4a85d6a111a98afa34b7a450d1e08118d016820"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7457580535e019e1247ea35d6a02bf081ad30c26d0cbc210c93f6c3ab67a0835"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c5ed596aedb9c42afd3fe0aae3117725378ac73d2cc5ddc735056fbdb96c5d02"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20f085697d7e911f1f73c43ed03fafbed1e7121797e2eb5428efa80398060584"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:74b0a9c8270f9b0a11410e124ff8d4f18bfc1f1837440ec84da5ae7b50927b5d"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:19e2ba471507c34f8252402ab50f5ab512398b9ea8c8f1cb26beb3f75793ba30"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d418ce2af40c6bb685b3f663e9e8de27cb0a22431d8e88a167348d7f01878073"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:70cb4008ac2ed1e0ca9e824deb4b53d3aa0d939109698ebf1e723a84337bd794"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a23fe35d776bc03cb495938b9594450d047e3bc08c5255315a82323e9cb7d2dd"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3e0eb43bed3c6801a6cee315195377789e90b2a72c2277a475b578535312488d"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be7dd397d64ca3e1869626fa9318aaebb54b7bf93bc72d7a205448d83e4f748"}, + {file = "aiohttp-3.14.5-cp312-cp312-win32.whl", hash = "sha256:eb324e2009fb54db30a071dad7caf6998ee2879c4704007efb244514dad1fec1"}, + {file = "aiohttp-3.14.5-cp312-cp312-win_amd64.whl", hash = "sha256:2cc38a4f2b516bef1714e690df87a0e043faf1a7693c82d860091684453d5111"}, + {file = "aiohttp-3.14.5-cp312-cp312-win_arm64.whl", hash = "sha256:a63afd1f757de949028387e65a7127b61ad0f775432dbb0e62816ae619fe69ac"}, + {file = "aiohttp-3.14.5-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:9ad7e6aa38c20da1be697874349c4c273c8a03b7887169665081706398d0439a"}, + {file = "aiohttp-3.14.5-cp313-cp313-android_24_x86_64.whl", hash = "sha256:f59c7673465908cbe506117176156c127f29f917677afceada34957179221d91"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b5416552740edf07234cc9437d0706f2acb67b93c198670b1a68e1b2b587dec"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:43351bdb5e4c3cb7d1772368e988534e869a74db7778079a83782c11c69535c7"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c8c4478bef6d57fcfda15dae461ea3c9f06aa7b257c58df3f2300174ccbb185a"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c2c30484dd1417ef98b51021ffa2cc0d7f3c78918adaaaab7e70817335ab3e02"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dab9ac5a67c8d1f070c00fa8fccb7cbd1b8dcc1a8d6b42f37540df9b3d4cc603"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e1cc2bfaee8c214f06080a7c7d5772419b8a1108e8e5349236189811823fb02a"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74efb69332b85675b1eabd760a8cfc2e2cf42c60607c66f88014c1bdfb40942d"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:42b5e616946dbaf505e2bff18c9af2cd4ef9e7ef300ee58a6e951a5b7cf147ae"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f9033b43f511f27547c557dcaba0177649e10a3725336ccd2cce0fdc1dc4850d"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15a310d3c71398e3d7bfc93a1a73fbe664315cd9e9016b8efc1cff85eeab7155"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1ffa3a523a36d8628f98c06492ae16a31a23d14c0b4ec721757b477319f656d6"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fb6a6e919bfb703227bc1ce6579281b84b1a2ba57deb9794dfdbec7dcd1e40c"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:43e1b7994a8b038125f722bff07492ef501110722c2727c408995d9fb864c421"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5f3e96071686755d9cd3600c3880183eb94b012178e92746d68101800f0ed8a3"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:cd88b01f3d37b7a2a34f91d98f14720206f1ea3d540843fab2d649dd5fb91fec"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f2ed8b64dc0c651c0f5a9c926777719770021251b8f336d97c4b80b660836ce1"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a9918e58faf62ba2c7147927d06057aec78f42475aff5048047ec47e7265a600"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:42f320d4a5b00b9af0bddcfec5407dc6f2d9816f006b2f79ebbaa31f16895df3"}, + {file = "aiohttp-3.14.5-cp313-cp313-win32.whl", hash = "sha256:3ae800a20947e2c2e53088047d021e6bf7d51560cc49f6a0737a1f79d2e3a13c"}, + {file = "aiohttp-3.14.5-cp313-cp313-win_amd64.whl", hash = "sha256:d05e94cdfe0d15d0206f970722d2554780ce562787b21b218b275447f8751319"}, + {file = "aiohttp-3.14.5-cp313-cp313-win_arm64.whl", hash = "sha256:f001b571ead90ca1770f1e616db255351a1703317f20374c361ef22f12c06d09"}, + {file = "aiohttp-3.14.5-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:939042d5cda21d41a6f512e7cc8b8e33a2aebff863352251da495fbd91b673b5"}, + {file = "aiohttp-3.14.5-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6da32b5ff3fd78d244e37300463434c7145162bfd2b6e9e915ab164da37f7343"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b438b73c38111818d0c9d6a5c2bfed8584c8e503a49ef085d70e874ec846738"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:755933b107ea7a6a9ac916f635a70595a5b1a32fac10a8ff0b9f2ab88555550c"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b3cc509327c7b27f6f4727a8830f4004f6df7766e179f2f4b8e54e65c0bec5d3"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7bd8ac754ebd6733a3e2a0dd1674c4d8ab086196803fd8dcd776f07b4e2607d9"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e724a7b6091f0b1ac064f9d1b15ff9ec52e6033a86cdae649e5f086e32a3c0db"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c32e26310cc10e547f53cd13d39a369034f69dcb7d749d5cb0e5f67bc196b6ba"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1eb8167961ec4dfcc8cb9dd50bd0ee72519f7ef496be95203e49e27b01618382"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c1d60eafd9c7e8e74abd03a5b00df44e7febfe6d9b89b559c0a6551eef0699d4"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:137351bf20bbed9a65e839f4a4452ac377389bdb2f2857d2acffef38f5e9f2d1"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fba47bc2c3d7303c3d027c6cf4d07626c37b1314ac81f5820c31032e0ca1f677"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94684b879ac1d71e4238850c99b62dc1b28d9086b156a2555f082010b85a865c"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56572c42e3ecd636de8d2c3dd54cf5fc939cb5c32eb56297f176a0d366fac622"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a95529a92a446db351675f4aab518feaf5e99842f63f5dd17160c2b74f382db3"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:3edbece0379b8b4aaa67619b8aa2399bb66fce372cd5911098a434ea77220aa0"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:56d9828f204331a5ca8850fcfe2bcce95a149f1f223f60cc7216e5524978e480"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:20064a177a070d789ee64a50b01a9161d3468e989baacfc6c714aa685c4b332f"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:81c2b3dfd56c62bee6108e4852d5970b4cf9086390b6983f52b666e878c1f115"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:09ec102b4b8c9a920275733bbc11fdbb615efe6f9231a06007c0218d336fb77a"}, + {file = "aiohttp-3.14.5-cp314-cp314-win32.whl", hash = "sha256:9c428eb2bd8817588d16a0ab898aa4eb5d141f896aa2b394cc79a4cf61d9a8e2"}, + {file = "aiohttp-3.14.5-cp314-cp314-win_amd64.whl", hash = "sha256:6f967dde489ca6a8c02d093ab245d2cbf50ccb5c36adf0188b17b0ca39d24b67"}, + {file = "aiohttp-3.14.5-cp314-cp314-win_arm64.whl", hash = "sha256:1d2d981b53dd09a319e3570ef8cc3bbc3ef86f5a7abef0f6b2bff3867db3a9e7"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:9ce66feae6ac65327379460380549bf1b8df8e17c4e25df2a2bcf168272e3bed"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:27c2322e03f66101acb09869ce1cf1efc04994ee95e1735b69827bf8c8b9d781"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff75a7537413a86e7cafe98e0e1d6e3dc4b15c6349896e7d5c6b881bfdb6d550"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c061aa954daaf57d2a4b8374f9fca621ef0e1b603584431c220c22458c59b6d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1612fa5857b37bf32e5c1eaeefb96e3b01e9c70679eec81f0934e8a600080863"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:adbeee7d6fd4cf5fe0aece2fb3edc4243615d3180430ba8149d01a90670cac99"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b2966998927d7bed9db12c0a4647b0c7b179755878fc9c357fe1ffd3e3b0c1a5"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e317e0fb6b16212c881d2205a7d87414c29acd69320b3aa6dce9d9c7b86fe4f"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50343c1757b4b6f6708eeaf24534b32f19dfb99fb1b762c00420867a62fc81e0"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:083673c7a94c3ea035caaa5ca04288bdb44887abfe1f5ba23294e6a4b03efd2d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2528cb4c6b92008c76ac9ac6298624069bb2db91ff4929905512d1d84485f658"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b1b8ece1e71132d2afba4dbc0c3d62c766e25165990b25db1196c04969eb3d84"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fce9523df31cea6284f3e2c479876750d7687cf671d7b25d32b19effc0e86441"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:09e0eb18c7e0c8777e2f9149de63799195b9b3ca1b5c81ba6f32f2c6b8628210"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6774814fd5c338e72ee0da5cbb9432816df450e69c019f72b5d29bdec2a1792d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win32.whl", hash = "sha256:33f706574e32c6e694f352a856e05caf18f7f2c871b3e87b41c55ea452b409ab"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5ba14a839fbe87cf7c12a6b5661c05f324a296eb8363141edb3944ba63d4c9d3"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win_arm64.whl", hash = "sha256:1061b364556e8172e8d46b0b183adeeb73e8c42d30ebc745591e1bd89acad52e"}, + {file = "aiohttp-3.14.5-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:788ecaa9c10533b786ce5ba70c4f2df78ad41819fd00a6c99d92b66f9a32e1da"}, + {file = "aiohttp-3.14.5-cp315-cp315-android_24_x86_64.whl", hash = "sha256:5c76f1802bab718a68ac3cce447160605c734551f95c67ae90fa1132b215cb29"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a6d02b4c38de03d9c7617813433e6a0fb6b522797974177d69d9dad431900833"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:20726f9782d5c2744c1c66255842d1d163bb3edcf768b8de25216bf47f7b6ccf"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:248d779ad720b49d4fb355720e60c9e5f444f95887bc16974fea48fc56c41789"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0a8ea271867e360ac985ae607f4a23ad9a38414b9aca1d49ec98839ae660e49f"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:823c910f046f23f4c713b8d99a2242dc65f591cb45ee86418fa11762a3c2963c"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9b42db919715e91eb76acf3bc492a9a7ccd8bd9adc6745c1412b689735269f14"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3112585250b199296c26ca6e0131640b6a8d01bab8b232d2eb3763ed469de11"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c147451b4a58e7050f7f7394e6c467867c84161560001f9ad4fb2d1446743946"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bf163cc701f3d4ac43ba7d97771bf5fd955220ef5500ef3ee847bc0ecfbf4ec1"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8d40ce41991e9d56fab4f5dc4a51fe59bc3b5c77c27f4b148963064d00232e8"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:276a4fc00b1d9ae492b802763a789c5b86328b989c5ea169f2faa447d6a11c7c"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50983e3be33d8c0942ab88cec3905b10602f64c469b20153c48c5d4e558dd016"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:16c8abd5bca220a47efe667d26f8460124c81810787e79ee87b242677563d9dd"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0790ec66fa4013e83c53b9025a45d454723da1a2fce28b3208c9b32d08af162f"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:cb11a971a3aea10f9b8373be628f1df932964fc6c6b174516d318a48c3ac4412"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:932ce7e694bbc29b2bf6f64f2343c27d148d4997c771d01bdade4639b6749ff4"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a7d470cf7b206e6359fc77b1b860632fde400d5a2ed59cd0181b93a686bc81ee"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6e1d8637cf73eebc92eba2e11d4cfff98a3b562f2505bd75bba766d908926e8d"}, + {file = "aiohttp-3.14.5-cp315-cp315-win32.whl", hash = "sha256:fbdc5ec49f9ca3cd24955cf3520b10a4d4c901ba2572094c84274e9e7eb30534"}, + {file = "aiohttp-3.14.5-cp315-cp315-win_amd64.whl", hash = "sha256:a9d3983bd6ab7aa1cfd573544ae98df9b6cb6912a5185a198263e024a636861d"}, + {file = "aiohttp-3.14.5-cp315-cp315-win_arm64.whl", hash = "sha256:e29347c142cf6e99e0dff5e2995ead1d50fa3b51bf37a7c726a7ccfe5419745a"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:9bf1d5dcc15204d9ec8b8ea4c18fd66e6b80e5de1f4ecbafb3a2f2740f8039d4"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:14f04769cfefe4734016a856a83af36133cd17779cef9ae817f812b8ba9d6d51"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6e4251c0ba4624a68a2c11471a1ac54c3306876c21f0ae86de085cc9241c8905"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4f5cf4dc72a71c4cfa9751b4950be22f733626670230d46e7d606592aa22d59"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dbf53ae2601b7fd5a93c3944deea3a78d40f495226d582c35ef7a433425ce2b2"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:657291433bf4dd3142f3abac495764cd47d0c7c92087751e6666c6447e65fcef"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e51a27980c3788e6e6b3325d694fdd4898087fa8a86b2763af77b39353da41e"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c7583cd3dfdc7dcc927835b4f6c7faae7ecc1ba3ca5879321621ae2e6f8e84"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6fdcd6af7e2e51d1ba1b4bea16e97b074bcb7b5dd0246a9d8201341bb28085a0"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c8859a013ae0de1074660992139a1a440df3e6b219b86cf0d3f11c2692bb4fe3"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:8966ecac808dd5f473c9c4cefd10cd3ffda71c18a4d3493b7c7d2ae1803bf2cc"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3093b72c215bda16ce961a6d073f6e71d46e022962a9d5d457c5d4d421c78b57"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:149fb56caf7acb67073126f675d0958d9c4b3125fcd3f6d4877df98aa8a97ce9"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:293d3ae7c6a0ed176a42e59a1b5fde825ead65c835360f734148e96729f928d2"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3f2dcc00191fd563e9075181a14ec31d7dd63223ced7582cc70a15a499de0c79"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win32.whl", hash = "sha256:7779cd97e61ebe583ec2f1c5616cdd038aa08a4453b1848c67842176d054948e"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win_amd64.whl", hash = "sha256:0e6f16f5e49c4b8267988c05ab07760d7064cea57d077c3d068d04b0fbb992cb"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win_arm64.whl", hash = "sha256:1aead151c3abbac6b32942e452020cb66d7efc099d253cc6c20f748e926c858b"}, + {file = "aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b"}, + {file = "aiohttp-3.14.5.tar.gz", hash = "sha256:5558a7f5a05af9ecf744af91e5baefc436f93c9333e656c27ec253f9a6bbe178"}, ] [package.dependencies] @@ -187,7 +187,7 @@ aiosignal = ">=1.4.0" async-timeout = {version = ">=4.0,<6.0", markers = "python_version < \"3.11\""} attrs = ">=17.3.0" frozenlist = ">=1.1.1" -multidict = ">=4.5,<7.0" +multidict = ">=4.5,<8.0" propcache = ">=0.2.0" typing_extensions = {version = ">=4.4", markers = "python_version < \"3.13\""} yarl = ">=1.25.1,<2.0" @@ -223,13 +223,13 @@ files = [ [[package]] name = "anyio" -version = "4.15.1" +version = "4.16.0" description = "High-level concurrency and networking framework on top of asyncio or Trio" optional = false python-versions = ">=3.10" files = [ - {file = "anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101"}, - {file = "anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94"}, + {file = "anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026"}, + {file = "anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb"}, ] [package.dependencies] @@ -275,13 +275,13 @@ files = [ [[package]] name = "certifi" -version = "2026.7.22" +version = "2026.10.23" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" files = [ - {file = "certifi-2026.7.22-py3-none-any.whl", hash = "sha256:62f22742b58a1a33014a2b6b706588a8d7e2a88ae7bd1a6ebe8c992928483775"}, - {file = "certifi-2026.7.22.tar.gz", hash = "sha256:741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55"}, + {file = "certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1"}, + {file = "certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd"}, ] [[package]] @@ -563,182 +563,182 @@ files = [ [[package]] name = "multidict" -version = "6.9.1" +version = "7.1.0" description = "multidict implementation" optional = true python-versions = ">=3.10" files = [ - {file = "multidict-6.9.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:aef74e9beabbd6c4aafc091dabff86d046ccf013ce1e4396c0fbb01b4cad9de8"}, - {file = "multidict-6.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1ca5ebe6d454f1e5496cf052386a559f1080bf2de75bf327ebca0a6003b79f19"}, - {file = "multidict-6.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02f6d0c4b70f783305e73f9944d8efe6be1022550f0974ba0ae9d8893c0350fa"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8050e75af7e4c6e2d5260b84eeedb618f3e452e66473432e085b5d1b81429299"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4736d350371337825cac1793c9f7c40701c32a03912548c2a7608e51679cbb96"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:02fe09dc197b8ae7e355371e51e5dce2f39060cd5a8badf94904527e23a3f188"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ad4528cdce058b684f75fad1faf4a6a6c992fe2f08376370ca66e4ce5916a84a"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8885e3808aedbd6725b921fb67dacaae0678933561ddd47c2b01315198c70e2e"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3b6e6840421c83ccb60398e333b44f910b0907bb409597685ab2eedd1e22eab"}, - {file = "multidict-6.9.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c9648ed33dc8179e4ec04bbc73bd7f0038e1e81217a69467f61f02a78bf07e88"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d9d6544790ba50438a9c1a903c3c4afb1ec8a7832db5518549275b40ef0dd4b1"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:1c9f3c25df6c9d3bbae4f6fd3f514b1c5c740a2110f56ccf36069c85417e289c"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:cf22b43f35b7dbb9f71e8ee2041b5c00029cdfc28ede3a2f31cf8906f9a6c126"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8ed78ccad4c7b421804f5d524b7740946a7ef75d89dc0dac52e9d7c24c472410"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:e3b1aa25f01238886a6baed9e13b9a9240ed344346c79ae280ae65e8603b21d5"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:bc94a68ea5e18f8e85dc6b522bcb53093f692c8eb62b4837ac047da73956cbe4"}, - {file = "multidict-6.9.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:73533644e1f69ea1164d56cc6505f564c6c44072b646b66d67df2d31fed0348c"}, - {file = "multidict-6.9.1-cp310-cp310-win32.whl", hash = "sha256:66987aa68b0f7c2a1cc5f388ca962b8ed92b10f79de38d6d0d8c716154f519d9"}, - {file = "multidict-6.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:a32b78c1e52ebd8e247bb68300b90b233300d8816faa008ed0713bc539fb6af0"}, - {file = "multidict-6.9.1-cp310-cp310-win_arm64.whl", hash = "sha256:ab64ace1a68682d191d9bedd9d4c939406ad86b1d9f628180410644249ad46c2"}, - {file = "multidict-6.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:910d4260512660484c0dc1588a316fbb35a40c081c36fc51d1225351af17cfe4"}, - {file = "multidict-6.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:33fa55b990f81c2927e01399ace0d18926c69d69baa8cdaa819424132fb97987"}, - {file = "multidict-6.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:369b5aa01b241cd3fea6890bdbb11a1425d87bf1515831500d518f4223e9d72c"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:803f8b575a71b1b299d677c28db0653459c79b5308874efec813f17b7457c7f1"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8a65621b98984a62e59403009591b8a5a7736273aefe1cab64cfb85b365cc07"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:13849a1d4f54c3809ae721e9e83ab28f5ea602f33660cb84eb6ef261eac706c1"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd9a137a4a9becda3094f3831cd026380f75f6855e051eefe4c73ade524f1cc3"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9ae9614c317c50836689ce2dfde07c05fe0b16378562e2221746c3913ede3c80"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8f1e362c9352b50ed120f001046fdbb80810c9d56580f4c3fc13bbe30823387"}, - {file = "multidict-6.9.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0dd655518f136febd96c05131a76a863e32fc2a1d7acd4e3c959e3ceb77d8345"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2c5d675da8f1cb5650271c8ad5e95c0a3e5a183c105e72d953b12877b1c8d0fd"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:658f90f49cf5af2441cad0a2b801c3ef520471989a1ec55bcb25b255b2ca8d2f"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:43124fe172ada86d03ac3c8dc8179091341f6724d5e5d5b160e1587e4cd3761b"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2f0adc22a4eb31e545221d93fc73a0f6a8cc2379d0f4309f71d1d17ba938b82"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7fc59e9ba821b220944ccfe0f89c9dc4745f6d097569992356eb03869f21e953"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:87cc632c88ee5dc80e12681047839304d98ee5c9a708d686505767001c9b8b9a"}, - {file = "multidict-6.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b828cf64d62dc09ac183f03c1aeedd164ade96a2ce4934109452edf29de1dd13"}, - {file = "multidict-6.9.1-cp311-cp311-win32.whl", hash = "sha256:2c1aeb92eea59d824f004341b26d5e4b47a8a441cf9726769b9a90abf9d0e08f"}, - {file = "multidict-6.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:5f89dad732280e7a10b74d40b91364f88e13c3f2c08c2ef83a8cd42f7a61af2e"}, - {file = "multidict-6.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:5800368526647146978389dfaa46da3356291e9f0fff9a4ef12e8c2bef964a0d"}, - {file = "multidict-6.9.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:29138fef49828542e859828107e42e50d0e587c513b7eb4b2d92bade2b0860fe"}, - {file = "multidict-6.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:19e31815d41cefc365489e591d105d2baceb2f65aa75d29471fbdbda8651e006"}, - {file = "multidict-6.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ed30be8918e18c8bed0a2e8b70639ecf02feb61ed00ca2e41cfcb2a50fa3f42"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:637f4ae36264bd7b8d9a60193acddc1d735ad52e8ed53a19931ea6d921fea8e5"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35fc236507fb1b3138f0af5ecd5f94ed752d4d6d826248eae425f86204013eea"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e58952f04772f59f11c6e007471449809a30165188669bca8fdb19dde40a8f24"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d35a4f1c63f07fbb8c8f9946dea98b21eddf6c57421585f71d91864be3ba2a24"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b5f8771aaaed7f80e84a4e471d2f29ab6721e4595075e54d03ae1ed951b2000a"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:976fd7689d69ec78d67d31d38d396d8adb562f7e8368279f76aed4aa451fa06d"}, - {file = "multidict-6.9.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:95052e8777a86bae87c0bd0b5ab22d809e3d1d02bf69e3e66ddda5ba75a05805"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1a8adfcaf96f587ab138476eaddef95f29b8a2a8a9afbfea8d2fd62180995d02"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1a53de2772cfb74559df2eb4456ec4eeb908435ec55a84b69370d9d745d62aa8"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f2ce963299d42fa3f22a90adc0fdf174792ffef5ff4c7ffb68260548fb05580"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5b30ddf7234e611ca877575b62840e6af5977f92f1f9d532eedbb05a44ff8004"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:63ada7ee2e9345695f9e9bc4c65d72222253f07b1ac94fd0e37555cc6f3c7f60"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c95601ed98fad3f6e2f8fe809c3b526b0fab31ef525e00a155e227f3d17f58a"}, - {file = "multidict-6.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c148e8b596000dd3e4bfe206e70f3e666be18d72032e0012555f2373c52e35d6"}, - {file = "multidict-6.9.1-cp312-cp312-win32.whl", hash = "sha256:f9dad513626a33670f17cddc6078e30e311f444c957e8dbfc5b2b4603c8b4edb"}, - {file = "multidict-6.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:a16a1dc8529f9e734a41c3b856f3eae7ebacdc061dde3f8a844e0c7889c97203"}, - {file = "multidict-6.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:361f7206cf341ba94fb015688f5c8b480f8e63bd58a4c14a48aeca7851a241cc"}, - {file = "multidict-6.9.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:d7bf9e43282d69561618e8a0ea33368d532ebef42f15c096f427090521dd74f3"}, - {file = "multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:03d47df72f084f757c1cb771188d5f4e3a805e4abc4d67e32509272343ae9382"}, - {file = "multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:6bc94fe17c3c56e5418f79515b786b101845f70609b0d19d0c1ba13448e5633a"}, - {file = "multidict-6.9.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8f2973bbd2bebd9d2e0cd6394c1292a1a19ccd56bdcbe1e174059f1a39be5b40"}, - {file = "multidict-6.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:de7738b8c0bb74c4cc16bbd7fb49fc2bcf6430dba11b3432cd52768ae40933e8"}, - {file = "multidict-6.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e5ccad4b7bac125722f48d6f862bed3b514d8526deea06316bb72f152cd30a7c"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a49ff5cdb33654cb7d6a3c377aa2a83ddefaa1db31eb10bcf3c180aa84f9af8a"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b22ff30006a2f28f8bff878fb93413cbe3a4d1fd517c28081d848c90e9cfd2c8"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3adf06c66041aa21eeb8a71e82379b74773298c8e6d3d839b151aae441a99b94"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:963a8d8f97057082679523d0fd4c53a38f86bc58cabe4556faef682ae53fa2fa"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b66ccc5c2cdd26e74fa5d4c29ffae424cc6148bf93ce574821783fb3b6d452c5"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fd79c521f6290c69125fa2b85fa65d9e657e6a8ffaf722dc881b926bef4aa5c"}, - {file = "multidict-6.9.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1d804e4caf5d5da37d6dac1325da5629ebef1e27a294c2b568b295814aa36c7b"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bb0d664505f4b112f384cffeee82e91e3f6448d8e574989479db4439b68cba05"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9e14d17773b1b3c758ff153659a1824608a0cb562c45f484b5ed8a433428444a"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:083735b7f395894e43adb278d5dae901448883a835ff8f1977e285fefdb10418"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b65121091567847a8cb520d364ab22ba90e00d3cc55fa9eb34bb439f0684bcd1"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ea999ae6e80e66ad5eea287860951b033d0104ca34d6d87c7b5125ebe0e12721"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:095d900c242e00fbe5f321ee072e7278b4153e78c5ce9c1efde167d62c1e4771"}, - {file = "multidict-6.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6441cc837aea58be7d9baef1b2383eb8311ab9303f500f99ac90b584cd78bb14"}, - {file = "multidict-6.9.1-cp313-cp313-win32.whl", hash = "sha256:9c4880d017555d70dea367dd49271830842d48e3891c2da97da7ce8c4abcee40"}, - {file = "multidict-6.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:ac51cd64bae51c462ea58ad2492c9b8209667a4ef60c45c4a304518b67598d5d"}, - {file = "multidict-6.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:37a9ebe00c698279213d56e6c64e1962ab1e092918270649b397cac3dc196ca4"}, - {file = "multidict-6.9.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:fc0dcb22fa9aeabfe3fa4e0430099acff985ec5d77a851382f76cc6146e780e5"}, - {file = "multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:024123f0ab402ab33828e24eb80fa8f25167d0d3783ba5f287e39ed741e6abf9"}, - {file = "multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:af1b5a92315048c3e36bbebfa7d4760a9c3e910bc4166f11b20d77d20d6bcfca"}, - {file = "multidict-6.9.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2483da477932ad1983d1d33c18bc3771c6fb00cfbaaed70a875fd547ef8e840"}, - {file = "multidict-6.9.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:db4d697b18b6ef5528b1f36bfa25072cd2a421869f5963bc0e92c8a34b9e2800"}, - {file = "multidict-6.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:854fd2f1bc6e8a56b89910b5cd7261a8b40f13ebb31572da985ce59c7da0886d"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:03731f6fc036180700c9dc2308205a48e5ca6f3ff03087739ab746f294022201"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:989261c5f1735a165f2e4e87cf6d5f17ab734fa18f9ad0383d5adfcdaefce701"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4c9e5d05b126b267ac048a89a0e2d9b48b1b648add62d4872906304a8590610"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9d0a21cf76153de8f2d96a877991d6bc59b9ab5180b949e50db73cc193b4a694"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e7386aa18d98d6b8af44b92173654ec469237fda35f8e8523e43b581a86f476a"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b69651732c64afb691e50cdc3387cae305e0eeff8804fe3e3ce203876494932a"}, - {file = "multidict-6.9.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1fee9a16d88a1c4865610de31ef5c666671020d7a81d1f510eaf3c97d00ebeba"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7814bbee202acd3bd240204c17d8b87a4c48c81064fd8674dbe527d94d5a4290"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:95f273bea318a194f656527ee2ed19494327bc500b8e87d9358e3222579aa28d"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:73bcafa21a78d0776b3ee7cd2a63c66f968eb7db8e8d594e32d7329950f6e828"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1a938761c77e0e6edb0c93d02f4e988d44a69e5195e5a3b893e5553311347132"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:37245ca4105386194dd1d292a6f2aae09bfe1bd7ac6f9ec25093e3cf8e9b143b"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f0700527dd5bfa8b7204b08330542f4f388899d3c14d885d8a368992e0eb562d"}, - {file = "multidict-6.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6b7e54fd883671d1a8810704851c044b7173287c552b9f5c3d9e0eb9f00ae194"}, - {file = "multidict-6.9.1-cp314-cp314-win32.whl", hash = "sha256:e81ae656b9935ac4528a71f96bb7a14d949778ed1897c573d3e7ebb9187f8841"}, - {file = "multidict-6.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:acddcac38adc8342ba48aba98896faa7928854bebb62542362138655b5367ee3"}, - {file = "multidict-6.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:32217133dddc58c927805cf6c0731d8144584176b768042ee886d51e71860bc9"}, - {file = "multidict-6.9.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0b2fb8c349d1103863750b5d8cb5ace766917f4b35f3d883c8f778853eaa9f76"}, - {file = "multidict-6.9.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:56d834b74c993a7d7cb2b8ab33a0d55c3e0d4a3d2f2da2808a4ad3d79189711b"}, - {file = "multidict-6.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:783ba7d845d79ce976afd9c1e91a4e5714671defa198ee789e8b23316083a485"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4d718fa1b5f0d0dd75e86fbbc5b0c93ea3a5d65216c85c61cd5d7cdddfe08455"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a313bad717dde740959d50850c315b75fd4eb0c5e6b4dc8535db0f1c369be125"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ef01d29fca550ab871fd99154f82c6472aacf8e7def272dfb07b460123850390"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f3bd290711c6e9486173a6ee7cd4e7f00c3971c7908c1ec1b6e5437c5e4c6f9"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:81cdc537e0a42e3c0170752fcadbe450246d5c3b4b7231d6eb9672456605ac94"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8b193bf7a443c97d81c47052f60c486071a4bdef4a573fa2514f920089414d45"}, - {file = "multidict-6.9.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7a0c98f6a636adf0d7edd60c61589eaf52d149239af754d0bfeb0effedba53a8"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6e6b7e3a1520c39a2772f414cd9ddf5995f77e4e823dfa1522af383addd465a3"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:ca65cced0d67a9039e93bcd98a369920e499bf98296844ff56ead01c9085321f"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:372c063f37480f62c1ae32dc3a1a0a5942b180c883f99789075a8a8ec3c4e709"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:827c92145b3b976b39430129c89d213b250dacbe5fce678e9a03940e6e848983"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:9b0124b9c17e9890f0819b2e7a5f65ec9a2f5aabd6c8e7ad090c1675cf70dee6"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:23136f5a564654eb61061ec6d5620a4c1ea32c8f552b65e9982a12b72bff601b"}, - {file = "multidict-6.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f2524ec55b3e65cbe235a8b3c36e2af3b635be02ed05e20c94e70c5c943c009e"}, - {file = "multidict-6.9.1-cp314-cp314t-win32.whl", hash = "sha256:35ba0263bae5dd3ad5aad767cc9afc01a8598c7dae30f1b3b2de98b1b32c28bd"}, - {file = "multidict-6.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:7c8d5882ba25ac0282258be435d8a05aa0cbcacfce15799154a338f847f159b9"}, - {file = "multidict-6.9.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ac348379cf4de5538a0a213be1532d289aa801ec5d267c5909446b9ea2f8e2c3"}, - {file = "multidict-6.9.1-cp315-cp315-android_24_x86_64.whl", hash = "sha256:f04551dce5a7db8c9659f2e4245494c182d0663b83661803e08d46bfcae5eda1"}, - {file = "multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c0c88085affd35c33e124e36930c5ad96aff9294ce195eaa0fd9cec962b64a82"}, - {file = "multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a8b75dd3d3638d9a19f23e84af4ffab3b8940422c0df2da2a77005ef5aa3d7ea"}, - {file = "multidict-6.9.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:006c4478de0a1876f4834e14255776286f09b9846b505fe63f67f9d173a9487c"}, - {file = "multidict-6.9.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2784090c30a586d5b45197bd9c32f87fb927216cde302f6cfd76d76577e90f08"}, - {file = "multidict-6.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7c708566da8014b120a64b1eb6d200c6c0c8cb36296383723cdb6fc82038270b"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:042fb0196047e786936a730bd302de83143950da45f2c16078da8f35e1cf7919"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a2212a0c842c723d919ea4a22a9296cb6b244b386e4e6ea92adfc7fbf3095519"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd882aa29bf402b62bf1fd7c19fd5df4b6528cf468a908864b39368572b662a9"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c57541034d12b215ab0a2bfa371d1a8a198da18176d0426c27105b9161a6862d"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d73fed4e37158ff00cd271871170b79e40138db51e625fd352fa17c6acb34f67"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:79da2491348b30810728050b4a8ec0416f85884125c2fd44655b3d01150d9c3e"}, - {file = "multidict-6.9.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b4da208a63434d21a3df64d29758e650fc4aa8cb05848554b76949c296539cca"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:877ca17fdcfdf5c397493a71e5ff97a87bb181417fe717fdadc77c08c09301ac"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:40aec5299e1ed71fbb988389059da381c3c1a60e0c649acceb2a35d9b128848e"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:4a409ccc42aefec904038695d5d7fd6d8f3af2721b7b6401d55135ec7d6d298e"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0a5769559e3312dd96731fbe15b4abb6033368ac1cad5a98dadd21946a4c7d6c"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:03fac50ddfd8302175b77863a015eccfae76767cda5506eef86df559ba861e1f"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:5ecace251ccfa705bf3d7d35c5032cf750f5c629809740405697bce5c118c4a4"}, - {file = "multidict-6.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ecc89dbd4155b2f8a47f4bbd89242a35ed15e8e0ec581cab5ac65fa38407329d"}, - {file = "multidict-6.9.1-cp315-cp315-win32.whl", hash = "sha256:a3ffe881246d28a862f1985824f484cb7361f44d6b99c4c620436ef56462f38d"}, - {file = "multidict-6.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:59c123d0e948d760a5f930f316cfefa07e8d632ab84327c0693ee6a88171154f"}, - {file = "multidict-6.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:31199204b3ced121ff5407a2c342326a5d27e3870abbf94bd80dbd2451b7bc8f"}, - {file = "multidict-6.9.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8879510a76940670517ea1cb589978da44b86e286ec3e50d664ef330817afce7"}, - {file = "multidict-6.9.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:aec65b53a07f580606593f877eefbb29a45939bfc0d3fe6e6d9f42b41b749f68"}, - {file = "multidict-6.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:14c56f73e78faa1f68bbb826197cd5871994e70e841b8590829c35912ece5c64"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:38c9986f9ce50c459b10de216a05f4bd7ed5ac63887d56e500a52bb464b861ce"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:15db6a102cbaf1949cf028ecf080aac76d20bcd29ad4e092574db6c6b7af78a5"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:bd82c4977196681a499bb6ca9e462afbc5c91c1c15b6a991dfbd72733fea4dd2"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb58ba73a3f96f9a3e46b1fab69929d7edbbddb3133ee74b5c3c54074a53c4f1"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7c6eecfab7ce4cd9487ff8ba936fe38cdfd68c04faf3d5c710363c6a8e695659"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c62e71e6289d78c0108d8aeb495f8bd3cad4bc1632fedddc9297ddf287ecc20"}, - {file = "multidict-6.9.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:539c2cd5fed0947c135cd7eabaaac55f48300dfa1de0f3ca4edb5efa6606f471"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3100d169ceb7bc8f05f89a6db11d1b21f119975fc26f29dc45a472e3569f0879"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:696477ad71385c4795e3b8e4cf10b0d2c28c2a1ca6a955e031cb1e62993e9ee3"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f5844e7befc707367807586f550fa97e23dcfef0728f02b98c7bc498a961a5df"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:abc7c2e4b47bfe6a9aea434d3fdebb9597ee636e914e92ba352f2068b9142f4c"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7ab379f95caee071a37cbd8be86d4c65accc651d391f9f97748fef006f38769c"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:557a4e1708df428ebe6c3081c83a273d275dad2446ce0d81fc648ac71afdb18d"}, - {file = "multidict-6.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:475d04d5192eba487a3e2f935976340baa24529046e9c1c9c7a3b7bf80445ae1"}, - {file = "multidict-6.9.1-cp315-cp315t-win32.whl", hash = "sha256:10083a8a0f4e1b26b599889e90b9802504ce5d3f7722f925bbb7ca47dd22a7c1"}, - {file = "multidict-6.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:e96ca64383efa107262ee3949f047af5ee4f1845ba09463466c04d35a83bd3ec"}, - {file = "multidict-6.9.1-cp315-cp315t-win_arm64.whl", hash = "sha256:501ed8b02a5990c67a91c732843609d43a6be1f7576fcdfc867331239f37fbd3"}, - {file = "multidict-6.9.1-py3-none-any.whl", hash = "sha256:7bf6478188f4e47bf5686e8a33da4ae28bf43b1b2528d9ee144d28492bfac60b"}, - {file = "multidict-6.9.1.tar.gz", hash = "sha256:0f06e60fa190aa7abd0914c2a766736fdc8e9f34878c4346338534b73d1b20e2"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:24ad4921135a1410d95b1f1504f4901e1c64cea680014ce2c3c7a825f4f259fc"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8b8429361241da973e594d15344a0989f44fd288ea58d33a6221fb7cc0daf27e"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5c6455f2c11daeee40665c67494cedb426f67dba7375710524071c0c56d739a6"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6120aab922bb3e15800b6655558cf8e0a5cc79518e954d457f064e5b3d5e9bf6"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:14b1ce8579a43dfc0e592d93fb1d63dea693e4977980ac4166f26d494cc7a358"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:71acdc6eded0f4b86b5e16c96314887cf2572a8eb5d8038b78583d0c0eb3aa1c"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b7cd1cb0b363cd43ebf499beca26d201dd8b89eee49fae60205c82ba13ee03a"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:dd8a6b3e8f9edb07fe671b02d8c3241c8b641fecce7eb1e36432db3e55e243da"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9a8c826caeb7c08264e0a556df1267531c6ed90cc70506e7e5f4119e2d09f3d7"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c44ced5e5168cdf677f0ae39900863bf2bda7d14a5e13502014005cfe040b8b4"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b57d4d7021bfd159db9f8f6f862a85a7a6027934643c512f028d6e5c60c4cbd2"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:7fac4250b37d994e3fe42b46ba3c8bfa1614d1d7d8cf1cf23f303099082a9565"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:966ae0588ac9959a040220063733b33f321d04eaf4e60349b42cd855d232202f"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:50acd7ee7096949b04482cd7720cb6b85eb9cd9dd5d7ffb6704bfda250261a22"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:ed6b7f402f3dabd1d72c798b96cf947005ddd796a5bea7b041bccbd517859a42"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:fadcc96cd6155f35e6d85845fa4fcd37b35885dc8fda77b9f851cdfa538194c1"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c6b67f08014bfc4aedc22cf6a21010c2530cd5fbeb655730406827fe196296be"}, + {file = "multidict-7.1.0-cp310-cp310-win32.whl", hash = "sha256:0604ff025497a050a2b2dcc4ae0e5cb6477c525e57b89825152c707e88d74d28"}, + {file = "multidict-7.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:36b14886aa3e0b8786ecdaa196374422c7b1c1dcc8764d02b2409f74d47914bc"}, + {file = "multidict-7.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:a2e575129c048bc286d696ed8e49ca148591768b2d77debcc6569f6fb64d0668"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:41ff3202cc23c800507777df5a4805b402f262b31008c60fdc652aeb6db2f278"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e50f7775b66c7802f4cb697e986c5acf30ec07301efee95b396c08114e890d67"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:85cb3ced4fa84949cee12bfe78208b6ece7baf3cbd242b26dcaf773efff8d206"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2128f3358335e0c83688ecb40c19d9d6606cd60784dfbf2e24e980ac2ba87b0d"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e2e718fa9d1d900decbc240a533d5d0baf0947ef464c78a8cd4fa32b4e8f590c"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ecc68f5e47bc6f6f889bbed5bc657b22bb2237ad9ccab8229cb5a0d64f4cb536"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5f21fda91bd6c34455bd5c312e42aa1334da46cdafb4c533ecd01e0f7f19250b"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7a90453a79423cd7145cc08fc92322dcd7aca4862258f533e03f473226d4b835"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c54ae1b89e582aa25f213cd8b5eac0bda1724e79299f486baeb3f562bbf82ca5"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7ff8dd079e7b5f3438332499233a2a5acfca0741fd0eb3d4ddba0c2d9bc04d19"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e4ef15d0a29fc2da67fe8ba2301ecabd6f8733696cc2bf0a0cf96a144a20328c"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:5fa296f14068538fced53c6eec86520a2ef3d3d27a0fb134640d03e067986d5f"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6ab323f0c5490abaf35a78563e1043c7a772eb86d93f359ecc0fd286d1cd3807"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:88ec4d16e9f58071c9896ea01c4da97cce9d01418fe844ff06eebb00e0a1386a"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9161eb81b8062da824426d3700d4b0d287f0cb0b05923713adfe3bd25e7937ac"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:c564d0758748f38aec56a6b98c6801a427b3a63f39b7cac538b2b2d18ca32740"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:c5e4a362a95b85301d262ef6bed06cc8e4a144ac7e2be874cb4c3c46ae89d754"}, + {file = "multidict-7.1.0-cp311-cp311-win32.whl", hash = "sha256:5d19bb1ec12e385c09215d5d53a243c060c7e8a0aacdba16d933e22902ee380d"}, + {file = "multidict-7.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:396ba9917fe489ec3a5942ae3e29e91324c8b9956f371f7e124c971c71379e7a"}, + {file = "multidict-7.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:b5ed78742502b8d90ff2816688d407a097c8b5cc6af4343fc5ad7a98df53a7cd"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ccfb950359a80de0fcd2030ad60ac1b1a861462de3e2ef746697c9256659af21"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:939d8cd2d8c35e3956f6bc858390b6ccb611e6152b4920d64ab5e98f3fcf39e4"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f8e95c95039eab6a2dad8c83c38ab87fc5431d28849e0c8a7e2a4e70ba38710d"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:05d12b4bac53abe0c65f3163af2b45894e2e1c0cc55493ac784d52a350047d88"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0e79ed92b1dece6bb57e9b46effd74d7a5d3d00187c85466d880ed184239a698"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fab380fcff8b3555eb2bd04304fa4330909a771a9a9b0dc07666cfc23148a711"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4b5c41e44da74383c924cc5d75ef0a268f301d69305b3c42bd17af685d55e412"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3dbaa7f7c2f0ca8578895fc61fb8c8e50ebb405dad8982f92f4343285c7a3fda"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed6b7705d49dd07e5e0dd5f5c873fc44047e92d714299b13245b5fecac49d01"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53daa47dd176db64bb35170e3d5d0ae2388c060121201883696278f055a0e70c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:542429c796430de924d03b68a6173bb6d79d5c4967d4e9a18de3e501cad55593"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:c44ca6d3cdf4cfcbcd4f928fdcbe87af5fd7319f6ad4169617b7fd6b4527c33c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:eb0228c809b2e7eb47921876050af0bc4214b351bad8d8112f70b6ed4288763c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:6ad60de1f4c702448fc8f1449f05e810f6b7957c08a5b3950c8a792dfb13b50a"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:f79def86aee67b5ba01b2565f1610f262bf88ae53c379f93e5fa29c50fe793be"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:248dabb89b5aa90b2f7e43e045f048f7e5392ec77b6446d80853ba7117d7bbdf"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0747a83e7ae617793181a4763ee8b84863cec5c0bbbde70c4394e4c0276c36de"}, + {file = "multidict-7.1.0-cp312-cp312-win32.whl", hash = "sha256:1df055e51fe7491120cc84f3362bd43db186be78d0e4c476acad45e435af9ffb"}, + {file = "multidict-7.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:10202ba98cfb3f7eb60da7ca87a2c458a69b7d0d6e4d4388cd6773ebbce89085"}, + {file = "multidict-7.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:0aa1ba3ff7cdda05a1242490612976b2ae1c90fc6200903ef8f53815dcb35c5d"}, + {file = "multidict-7.1.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:51d7f33be9a4a1a2801430846d72841deea0894eae8381a07e7d90e0f71b3c4b"}, + {file = "multidict-7.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:2a964dfeb2aba3663f0536c809aa1ff385f065e89fae57e883fb7edfb4067c2f"}, + {file = "multidict-7.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d02cd23b5af182a49d635ee72be38053767711987a9fd82625b16b93828a0d8c"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:0179698c3c913eb64f32397083747fad20ed0f0a2b7469a08cd1a8a95d14d90e"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ccf98ee859fe29f874ddd8e637f14ba59108a333492b521acb885a9095244a9c"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5fa1484f74d011addf2e5f5a0378ec41521989839a05d6051d8067d8ce732423"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1fed3d721f75c25a9fcdd0e362af53f4b20acbcdc63081112f85419ba0ce3444"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:df03e392cae1e05462918abbae06d6100f1e53f67db971ff0ac6c07d9edf7321"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:379f477b98a1e9a77ddc3ccaa8c709d3fb4a288ff54b96e171e637b55b4adbae"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:40f586bc8a084a3671ddcae9e5fbd3228a596bfb63d9f0380f153f9a65b69f08"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6e7f70d912a589e30290ed926f90ddbc3160998359cbad7c9ede1bcee481748c"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5129cc1f5fec6888e2db0be936dab67242e32c738811c8769aeea93aab4257a8"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1401caec21fd7f002e79ab6806bbfd1f54bb3de6d5e12bd91c6685dce16ad2be"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c81062e947f4b5a624135a843f6ac4b3c7fe6508300c9fb27347f022ba0c513d"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:c53be0dd676484a660acc56e4f1cd0dd74bc1255d12fa285e86a3fa9d5f22bf9"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:41e0c3350d08994ee8640c39884e16514e282f70ba40f5b2299582509a327774"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:abeec7a89d698aa1c9b4c36bd5e3c746faef0867076e6a2ca27fa5077c4ece26"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:23f6d325241b0db006ca2841309ed17622137e134930a740a8f1331ec4404791"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:034b0dc1b7fb8279599c5d8563f86abb4d2454735b06544ecab23c54572ad2bd"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5c8074ad4d67067c87bd0663dfda654f786336078c8fd7d2f6c1aa41de8494cc"}, + {file = "multidict-7.1.0-cp313-cp313-win32.whl", hash = "sha256:7b25c335fc53acf29d4d21dbc19fe39d2824201cdda0448623152cc5917bd259"}, + {file = "multidict-7.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:7de54b49e6da811b0321e412d14efdaa1ee0c0b6609296ea5b9022bc5b2bd843"}, + {file = "multidict-7.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:aeba2c750102051aa51e087c2ccbc79f2724a41c94168f8731e36f54c453551a"}, + {file = "multidict-7.1.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:128ea4142f81a79d430f3d0eb55206093e5eda03a12abbc7b03c34748ff6116b"}, + {file = "multidict-7.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:439a19f7fbbff232ce96682c57e27030b8ac3a4b8121484c94f04bf99d08bfff"}, + {file = "multidict-7.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8090c35199d6b7bc6426bb8bdaf341e64f295cc2624a1fda7860c0837f1acc03"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b7cc5333fcbfb27327d12612ed72322f221b61c2b69deb1155078c964f86e1a1"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:b0e0040b0d8dd89bd0af9ab18901981e344ffba68bb30b8eabb4eab6c303279b"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:33376418ab2846b931a72b36cfa16810befc4f49485d0b3f4dc054a4d6d00038"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1101aea5c3eb1d26e090b931c693488af0db9f3d52e68be8d4cdd807dad9841d"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f996b19ac89e0dae65821ce65f788619e4286f78c62d005ecd3b75b5d9c0892b"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e0d91a4bcb59ac0d7af0d8e0da737332e1b7fe6831e53e47819b1b5349d431b2"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e96d67914ddbf5466e4476a1cd7ff30a332cbab85ed895207acc3e58c979b6a7"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:170ba61761f59ab92afcc86ce5534a3f3d0b07c38b339b950a83213f22dd86ec"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:33389fe084e5426d9fd85d7d9ca91a29cd0d88a83c7c96e411aca49a3f9967bc"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:77024596b9046572c4e90b34c1ff212346756dc48933f90c53cf6e233660788d"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ff15531a376dc6f35984443fd1429e4b150c36ce27633e7cc52a9e5318546e20"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:544f2642a456fa264614e975d921540ee8c3b368b04d5aa1ddbec33241b13e08"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:08834fb8b20e1a985c70e8380a10940234b4162de62694458727330376e58b33"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b4908e17867930b7ac77f89a18dc67308c67c511f037d8580489be86fb585912"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:9b24e1f93b9b586ec03bc7bea1bf021ec90bf2528c729195028a3ca1c266b3f9"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5c93473d0d7cd9bbb370973a9679a62f381c7050d7dff4ad6aaa92e8650f5a79"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:bf14cfcc30b097583d698a6e2b8b68c9bcffab277c485d481881958360c2938d"}, + {file = "multidict-7.1.0-cp314-cp314-win32.whl", hash = "sha256:86bc779a0896e59e4be30a5be5cd6eeffd0b40b6f0e75e730218736b7bfc6f5c"}, + {file = "multidict-7.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:6c9fd50f636a8fa9cb6324cd3eac962fec2bc5bb432452a3b583583a1059acfc"}, + {file = "multidict-7.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:e6906aa4bc62cde2c8aeb8a99a7b4401b241e274ae7b11df67d863d61ab3d5de"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:fabfdd4cf97db033196b51af46b8a681d4785c2a66347f2a5af1b4bbb1182629"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:a177a0ee5cf19931dcaeb3f662bc562754cfa4f4ace2351d9da24a954ef7db94"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0ae91de396d5c4ac97cb24dbada3d5c91a51454781e0a70476b008f4e879e4f0"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:160bdb3520fdadcaa21e1b98aab2e011265070814ecab3804eb61674becbd400"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6c2144785e42527404bbd5cfd11981fee4abe59a22aded0e498eb711a831d3f3"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7d0b4fec6a8d02d7e95de5cfa913261820f1ce04bd4c0381924de0da523179b8"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:943a9bce22180ad0f4d32d1b402a0949a4ecfe5a1257b47f54a1b51981d81b86"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f76ceb623f7ff50df46ac57e1587c479d87a5766319c4f43d0c0a5158896afab"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:98beff85392ce435b28a0971ec21cade61ce8be8b632c9d855475a28ef92d31a"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:71196ebb8d523148e5975396a444de02367f204b53b14e26794c96b2be0ed742"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:35534b366410a36bb3d6f788691e37a76e4d1da48326b0ada3e5032580dd76af"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:b4674b12701c3fcbdf7f88b9e4479701c93bec5da9eb576140d5fcc0092990af"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0ead852a5e906a43fcb6784eeac480f6a67919a51d480c1f80d32ddf9d615475"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:afe36ca503c2ffe30fb6df82b20389fa3c4035b5d65888a61310921cf3ae91c5"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:a5f0bebb10aae010d3c9ee3abaf83ab2069c718457aea09c15532355dd7e061f"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:b9d9b7d72975521434368fe8aed3f6b522060bf271adabaa5ca6c87c0c08e168"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:274023bf952f849e0d05eba28a4c1f65f9796430d2b09ec16539386c0f76554c"}, + {file = "multidict-7.1.0-cp314-cp314t-win32.whl", hash = "sha256:7e0bfa161df365ba3c88899ee3b7c94755200967284bdedef8c1b8b43e2c0f2b"}, + {file = "multidict-7.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:34a35be8fb82d37087e8176aba907b9459f03d0e293c80f574c6337a436f4eaa"}, + {file = "multidict-7.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:d7dd46a8fcd7653c09ebe67eae9d4cb6636c7a905d9cbaf587dabcbd4eca6013"}, + {file = "multidict-7.1.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:852c921217f330b3e81a822647ebadeae7e42cf503ec1992d0bfbc90121c09fb"}, + {file = "multidict-7.1.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:cbec738d2ad551c6f70955d7eec95e339380ee1564e2afe86bfee05fed52ceec"}, + {file = "multidict-7.1.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a5f721a2437390ab69c10c6df5c142478d399af8dfb02e6d823cf2358e8a4748"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:99cf27791129d37e191ff013bfc29bf6631c29edb21680c00978567b91fc5d6b"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2ba6611fc93c4b169d0e0ea376ebf4b8a529933d1f5f2c2ec7d8f8b93ef58ec2"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:c45629c0049fbdef932dbe408ac2b271fdc8c7d9962ca31160f4a0fc3455fe4f"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cf606cfe3f67984b4064ac605d71e1eba12515fbabf5bd5a34a8952b8800dc66"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50fdfcb03be719d9573597b095b1175d2e9d0b30d065791dfd9fca727c499442"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a8bba9d1f6db4ef2a6ebfc937a65d36e80e3aada00b382eaf56fea8f639322d5"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:46d4af0afc6eb9867b3ae50605787c80b868e2f52eac3801246034925fe578b8"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5cc58ebb731200ddb64d55f1b345630fb5f7a8138cdbd242af9dce964a7cb03d"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4b87ad54e8d4adeb0a1f04889504d6ec7f04fb02609220810f51f1b6c66bc1cc"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:44f7e5dd83a615636b80182bdf446ece57ed61d5d51854acc5d9840631136d4e"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:9bc5e7f843d14a167cdc26fe2d22f6f3aa2feb57919cf3ff034262a57d8d95d0"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0631eb5f49f67de10bbdc3f64141326dbc62e8d319900966648381ce0845d8ca"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:d1b1b32f3c32f734dde8f36ac1df8e275e768a7b333241cd637cb2538628a4b4"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:159976f9c40f96e3fe0952b708846a43a76bacb114e9cc828816f5080bddd5ec"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:81a0e08c64dfdad27dab687b96f572b23bafa1999a39d1b6f70b3ddbb73e8bd0"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:4e11e7299079718c78f8147e7206c22fe35bab4466d38992420795288a0b8096"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:34d2ee98e15d5cfe782a431bc913fce3b58cf3fdb34fcb437aeb275cdf9007ab"}, + {file = "multidict-7.1.0-cp315-cp315-win32.whl", hash = "sha256:f376224572d1f5da1c871f969ab04765727f180e70d012d93e07bfc08442c64b"}, + {file = "multidict-7.1.0-cp315-cp315-win_amd64.whl", hash = "sha256:67fcf28db77b385820881521db7435e9f1c607cfaf07db6eb78aa9d1146bde86"}, + {file = "multidict-7.1.0-cp315-cp315-win_arm64.whl", hash = "sha256:c7aafa4dd2f702ee2198005d6cba4309c1e25ed1c201d77beddefa47411bead8"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:1348ddc076251cd542f4a99ccda4b7c1f8444e8ab489d3541a978ca5901c7c1f"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:9267bf8261a779abb2a6eab5f107f5db85b2d1745f2494081c731aaf28738ce3"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:8a844b8b1685f38a2e8b2f3213b286e2a7abfe67508381780a0d4599ac337c1c"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:18a447d46a3a2f1e61b365cbf5627db7030fdb707dad70c4f2760e5144166ecc"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:88811f890db240a1c82bf0bcd52973763707a552c8113ac3fcebca183afb2fa8"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a60b720c329c0007feae692b7bf91cf17b3f9bd3727be96cc6f9a3336651041b"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b117ed1cd1a23df0902461c38093408b95971833dcee629112acda25b603c8d0"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bbcae7a54050b7ad7bc7bf425ba63dea7d2cd31a92246ba787a2ce69a9b98dbc"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4cba2b0b9235fe10e12301d6b4cfba0f353fa668d635f6e988b03623c2cd42ba"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:535173fbcc3933d84f9929d49d7a59a0faec259ee07d07c34c7d2a980b4e3683"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:ea027bdeca1d7e498237634ee4e3a852e2723eef39996dec0ff0f77dff8a2336"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:507151e1e3dee95e9e8159e329aed4f75aa5205ecd6505a4f6be546890eafbe1"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9c10791e9f5ef132effc8fdce2009482c1cfb26618c5fc1b7952a47dd5eb632e"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:f16ac8af2804855d3cae5fc3c5ab609c9fd0fc8ecacd92579c05ed3c173396fd"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:b78de22bae456a976f33df34d598dfd16edc9a03df8f4cc8b7c17bdba4c97b4a"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:db77888081431aaa69f3fd3480891746ddce6c2a571f6201869a24e2f06cf423"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c39dfcaa0bf23443474c0cb58d8d8aea9529c1841d99654cb38e4dada7b1948a"}, + {file = "multidict-7.1.0-cp315-cp315t-win32.whl", hash = "sha256:16b21164797bde6f417066d02775975cc2e15ab8abf80efa55fe85e0b4894020"}, + {file = "multidict-7.1.0-cp315-cp315t-win_amd64.whl", hash = "sha256:55392202cb374dd1a1f89a8ce1586644870d9e936752059d053e576acc50bc89"}, + {file = "multidict-7.1.0-cp315-cp315t-win_arm64.whl", hash = "sha256:f979a077d1c0a9a36dd4fab0d3a36b8de7b593bf935e13df85a380395b2c11ad"}, + {file = "multidict-7.1.0-py3-none-any.whl", hash = "sha256:d9ef29cfd98e17085b4f91bba8fa1570bec6787d5c52ce653ed33a58785585d0"}, + {file = "multidict-7.1.0.tar.gz", hash = "sha256:61a4e5d81b8d4e4ad61964b230129e7a2b914793d96289029078fc9009f074ec"}, ] [package.dependencies] @@ -799,13 +799,13 @@ reports = ["lxml"] [[package]] name = "mypy-extensions" -version = "1.1.0" +version = "1.2.0" description = "Type system extensions for programs checked with the mypy type checker." optional = false -python-versions = ">=3.8" +python-versions = ">=3.10" files = [ - {file = "mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505"}, - {file = "mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558"}, + {file = "mypy_extensions-1.2.0-py3-none-any.whl", hash = "sha256:993e7a20aa5671eb41a7132cf555af30062da99729601601b9a8382b11cae768"}, + {file = "mypy_extensions-1.2.0.tar.gz", hash = "sha256:c6e275a07f1c2fc096b62940452d0eaa3f3af7de45d704787866240a7c6d5a51"}, ] [[package]] @@ -821,19 +821,15 @@ files = [ [[package]] name = "pluggy" -version = "1.6.0" +version = "1.7.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" files = [ - {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, - {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, + {file = "pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec"}, + {file = "pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8"}, ] -[package.extras] -dev = ["pre-commit", "tox"] -testing = ["coverage", "pytest", "pytest-benchmark"] - [[package]] name = "propcache" version = "0.5.4" @@ -1174,18 +1170,18 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests [[package]] name = "pytest-asyncio" -version = "1.4.0" +version = "1.4.1.post1" description = "Pytest support for asyncio" optional = false python-versions = ">=3.10" files = [ - {file = "pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1"}, - {file = "pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42"}, + {file = "pytest_asyncio-1.4.1.post1-py3-none-any.whl", hash = "sha256:0755e488cc0a2b9bd2eab7292cc6390d4cbb8390f1020745647bae5a708e0165"}, + {file = "pytest_asyncio-1.4.1.post1.tar.gz", hash = "sha256:f582d9ea4a1c082195abe8bd29a1fe106aeb1cd435e3dad2d3bc2749935c36a2"}, ] [package.dependencies] backports-asyncio-runner = {version = ">=1.1,<2", markers = "python_version < \"3.11\""} -pytest = ">=8.4,<10" +pytest = ">=8.4" typing-extensions = {version = ">=4.12", markers = "python_version < \"3.13\""} [package.extras] @@ -1340,13 +1336,13 @@ files = [ [[package]] name = "types-python-dateutil" -version = "2.9.0.20260807" +version = "2.9.0.20261104" description = "Typing stubs for python-dateutil" optional = false python-versions = ">=3.10" files = [ - {file = "types_python_dateutil-2.9.0.20260807-py3-none-any.whl", hash = "sha256:54aa3707350ed7a9cc0776fd2f6739679d6967d11b40150985e81edcb86df4db"}, - {file = "types_python_dateutil-2.9.0.20260807.tar.gz", hash = "sha256:e0b8a90d464c8684c66b7b8e4556d9074afdddcc56ca45323f0987134f9e7034"}, + {file = "types_python_dateutil-2.9.0.20261104-py3-none-any.whl", hash = "sha256:f6ee76c91c547716b4795373a53d4c07e8e06cf98384ecb89fcf134d212de2ad"}, + {file = "types_python_dateutil-2.9.0.20261104.tar.gz", hash = "sha256:5d0495702a5f7343741f5d842c531bcd1c941da8b4a85307d52ef43ba80252db"}, ] [[package]] @@ -1362,13 +1358,13 @@ files = [ [[package]] name = "typing-inspection" -version = "0.4.4" +version = "0.4.5" description = "Runtime typing introspection tools" optional = false python-versions = ">=3.10" files = [ - {file = "typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147"}, - {file = "typing_inspection-0.4.4.tar.gz", hash = "sha256:547274fa6b0a561ccf549cc9524b999a578e737d015d8709d021f9d0d13bea47"}, + {file = "typing_inspection-0.4.5-py3-none-any.whl", hash = "sha256:bc210535442b39e1bf2805e0c7a17dfd6a4ace760c84c7f7d16245d23a6b1c39"}, + {file = "typing_inspection-0.4.5.tar.gz", hash = "sha256:7f16c411e7930dc79596d42ab44672a3fe5f60eb34b781a1647e7872363120c7"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index 78d5eb139..0c3926dea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Operating System :: OS Independent", "Operating System :: POSIX", "Operating System :: MacOS", diff --git a/reference.md b/reference.md index a3ae052db..69b927a6f 100644 --- a/reference.md +++ b/reference.md @@ -202,65 +202,6 @@ client.assistants.create() - - - - -
client.assistants.assistant_controller_validate_background_sound_url(...) -> BackgroundSoundUrlValidationResult -
-
- -#### 🔌 Usage - -
-
- -
-
- -```python -from vapi import Vapi -from vapi.environment import VapiEnvironment - -client = Vapi( - token="", - environment=VapiEnvironment.DEFAULT, -) - -client.assistants.assistant_controller_validate_background_sound_url( - url="https://example.com/my-sound.mp3", -) - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**url:** `str` — This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. - -
-
- -
-
- -**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. - -
-
-
-
- -
@@ -575,6 +516,7 @@ This is the maximum number of seconds that the call will last. When the call rea **background_sound:** `typing.Optional[UpdateAssistantDtoBackgroundSound]` This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. +Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. @@ -655,11 +597,7 @@ If unspecified, it will hang up.
-**end_call_message:** `typing.Optional[str]` - -This is the message that the assistant will say if it ends the call. - -If unspecified, it will hang up without saying anything. +**end_call_message:** `typing.Optional[str]` — The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English.
@@ -1579,7 +1517,7 @@ To start a call with:
-**assistant:** `typing.Optional[CreateAssistantDto]` +**assistant:** `typing.Optional[TransientAssistantDto]` This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. @@ -2671,7 +2609,7 @@ This field is REQUIRED for chat creation.
-**assistant:** `typing.Optional[CreateAssistantDto]` — This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. +**assistant:** `typing.Optional[TransientAssistantDto]` — This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead.
@@ -2950,7 +2888,7 @@ This field is REQUIRED for chat creation.
-**assistant:** `typing.Optional[CreateAssistantDto]` — This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. +**assistant:** `typing.Optional[TransientAssistantDto]` — This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead.
@@ -4444,7 +4382,7 @@ client.sessions.create()
-**assistant:** `typing.Optional[CreateAssistantDto]` +**assistant:** `typing.Optional[TransientAssistantDto]` This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored. @@ -4760,7 +4698,7 @@ client.sessions.update(
-The append-only history of an assistant's allocations, newest first. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. +The append-only history of an assistant's allocations, newest first.
@@ -4855,7 +4793,7 @@ client.traffic_allocations.traffic_allocation_controller_find_all_paginated()
-Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. +Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident.
@@ -4960,7 +4898,7 @@ client.traffic_allocations.traffic_allocation_controller_create(
-The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. +The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured.
@@ -5017,6 +4955,114 @@ client.traffic_allocations.traffic_allocation_controller_latest_get(
+ + + + +
client.traffic_allocations.traffic_allocation_controller_metrics_get(...) -> TrafficTabMetricsDto +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Per-assistant-version call metrics over a time window: call counts, configured vs actual traffic share, duration, cost per minute, latency, ended reasons, a bucketed timeseries, and optional structured output aggregations. Calls with no assistant version are reported as an 'unversioned' row. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment +import datetime + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.traffic_allocations.traffic_allocation_controller_metrics_get( + assistant_id="assistantId", + from_=datetime.datetime.fromisoformat("2024-01-15T09:30:00+00:00"), + to=datetime.datetime.fromisoformat("2024-01-15T09:30:00+00:00"), +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**assistant_id:** `str` — The assistant whose per-version traffic metrics to return. + +
+
+ +
+
+ +**from:** `datetime.datetime` — Start of the metrics window (inclusive), ISO 8601 datetime. + +
+
+ +
+
+ +**to:** `datetime.datetime` — End of the metrics window (exclusive), ISO 8601 datetime. Must be later than from, and the window may hold at most 2000 buckets of the requested width. + +
+
+ +
+
+ +**bucket:** `typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket]` — Bucket size for the timeseries. Defaults to 'day'. + +
+
+ +
+
+ +**structured_output_ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Structured output ids to aggregate per version, as an array or a comma-separated string. At most 5. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ +
@@ -5033,7 +5079,7 @@ client.traffic_allocations.traffic_allocation_controller_latest_get(
-Returns a single allocation by id, including its targets and actor attribution. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. +Returns a single allocation by id, including its targets and actor attribution.
@@ -7643,7 +7689,8 @@ The result depends on the schema type: This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. -Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. +For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. +In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -8032,7 +8079,7 @@ Creates a personality, the AI tester's configuration used in simulations.
```python -from vapi import Vapi, CreateAssistantDto +from vapi import Vapi, TransientAssistantDto from vapi.environment import VapiEnvironment client = Vapi( @@ -8042,7 +8089,7 @@ client = Vapi( client.simulation_personalities.personality_controller_create( name="name", - assistant=CreateAssistantDto(), + assistant=TransientAssistantDto(), ) ``` @@ -8294,7 +8341,7 @@ client.simulation_personalities.personality_controller_update(
-**assistant:** `typing.Optional[CreateAssistantDto]` — Complete assistant replacement. Omitted credentials and redacted server secrets are preserved when their endpoint URL is unchanged. Send credentials: [] to clear credentials; omit a server container to remove it. +**assistant:** `typing.Optional[TransientAssistantDto]` — Complete assistant replacement. Omitted credentials and redacted server secrets are preserved when their endpoint URL is unchanged. Send credentials: [] to clear credentials; omit a server container to remove it.
@@ -8927,6 +8974,14 @@ client.simulation_runs.simulation_run_controller_find_all()
+**suite_id:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter by simulation suite ids + +
+
+ +
+
+ **status:** `typing.Optional[SimulationRunControllerFindAllRequestStatus]` — Filter by status
@@ -9140,6 +9195,22 @@ client.simulation_runs.simulation_run_controller_create(
+**idempotency_key:** `typing.Optional[str]` — Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists. + +
+
+ +
+
+ +**include_target_structured_outputs:** `typing.Optional[bool]` — Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges. + +
+
+ +
+
+ **iterations:** `typing.Optional[float]` — Number of times to run each simulation (default: 1)
@@ -9314,7 +9385,7 @@ client.simulation_runs.simulation_run_controller_cancel_group(
-
client.simulation_runs.simulation_run_controller_find_items(...) -> typing.List[SimulationRunItem] +
client.simulation_runs.simulation_run_controller_find_items(...) -> SimulationRunControllerFindItemsResponse
@@ -9771,7 +9842,7 @@ client.simulation_runs.simulation_run_controller_generate_suggestions(
## SimulationSuites -
client.simulation_suites.simulation_suite_controller_find_all(...) -> typing.List[SimulationSuite] +
client.simulation_suites.simulation_suite_controller_find_all(...) -> SimulationSuiteControllerFindAllResponse
@@ -9822,6 +9893,22 @@ client.simulation_suites.simulation_suite_controller_find_all()
+**assistant_id:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter by any assigned assistant ID. Supplying both assistant and squad filters requires both to match. + +
+
+ +
+
+ +**squad_id:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter by any assigned squad ID. Supplying both assistant and squad filters requires both to match. + +
+
+ +
+
+ **name:** `typing.Optional[str]` — Search by simulation suite name
@@ -10372,8 +10459,7 @@ Set to null to remove from folder.
-## Simulations -
client.simulations.simulation_generate_controller_generate(...) -> GenerateScenariosResponse +
client.simulation_suites.simulation_onboarding_controller_requirements_draft(...) -> SimulationOnboardingRequirementsDraftDto
@@ -10385,7 +10471,11 @@ Set to null to remove from folder.
-Generates scenarios for an assistant or squad by analyzing its configuration with AI. +Generate draft test requirements from an assistant's prompt, tools, and handoff configuration. The response includes numbered requirements describing expected behavior and open questions about behavior that needs clarification. Use this endpoint before generating a simulation suite. + +Review the requirements and resolve any open questions. To revise a draft, send it as `previousDraft` together with natural-language `feedback` describing the changes or answers. Once the requirements are ready, pass them to `POST /eval/simulation/onboarding/suite`. + +Requests can take up to 2 minutes. Each organization can draft requirements 60 times per UTC day, shared with the dashboard. A 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED` response means the daily limit has been reached. Wait until the limit resets at 00:00 UTC before retrying.
@@ -10408,7 +10498,9 @@ client = Vapi( environment=VapiEnvironment.DEFAULT, ) -client.simulations.simulation_generate_controller_generate() +client.simulation_suites.simulation_onboarding_controller_requirements_draft( + assistant_id="assistantId", +) ```
@@ -10424,7 +10516,15 @@ client.simulations.simulation_generate_controller_generate()
-**assistant_id:** `typing.Optional[str]` — ID of the assistant to generate scenarios for +**assistant_id:** `str` — Assistant to draft requirements for. + +
+
+ +
+
+ +**previous_draft:** `typing.Optional[SimulationOnboardingRequirementsDraftDto]` — The draft being revised, exactly as this endpoint returned it. Send it with `feedback`.
@@ -10432,7 +10532,7 @@ client.simulations.simulation_generate_controller_generate()
-**squad_id:** `typing.Optional[str]` — ID of the squad to generate scenarios for +**feedback:** `typing.Optional[str]` — Natural-language instructions for revising the requirements in `previousDraft`, including answers to open questions. Required when `previousDraft` is provided.
@@ -10452,7 +10552,7 @@ client.simulations.simulation_generate_controller_generate() -
client.simulations.simulation_controller_find_all(...) -> typing.List[Simulation] +
client.simulation_suites.simulation_onboarding_controller_suite_create(...) -> SimulationOnboardingSuiteViewDto
@@ -10464,7 +10564,18 @@ client.simulations.simulation_generate_controller_generate()
-Returns the simulations for the authenticated organization. +Generate and save a simulation suite from reviewed test requirements, and assign it to an assistant. First draft requirements with `POST /eval/simulation/onboarding/requirements`. The response includes the saved suite, its simulations, and requirement coverage, including any gaps. + +Requests can take up to 3 minutes. Set a client timeout of at least 200 seconds. + +Use a unique `idempotencyKey` for each suite generation request. Retrying with the same key does not create a duplicate suite: +- On a timeout or a 5xx (502, 504, 524), retry with the same key. You get the saved suite, a 409 while it is still generating, or a fresh generation if the first one never saved. +- On a 409 `SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS`, the first request is still generating. Wait `Retry-After` seconds (15) and retry with the same key. +- On a 409 `SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED`, the key was used for a different assistant or requirements. Send a new key. + +Review the generated simulations and coverage gaps. Revise the suite with `PATCH /eval/simulation/onboarding/suite/{suiteId}`, then run it with `POST /eval/simulation/run`. + +Each organization can generate 20 suites per UTC day, shared with the dashboard, and 2 at a time. A retry that returns a saved suite does not count toward these limits. On a 429 `SIMULATION_ONBOARDING_CONCURRENCY_LIMITED`, wait `Retry-After` seconds (30) before retrying. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying.
@@ -10479,7 +10590,7 @@ Returns the simulations for the authenticated organization.
```python -from vapi import Vapi +from vapi import Vapi, SimulationOnboardingRequirementDto from vapi.environment import VapiEnvironment client = Vapi( @@ -10487,7 +10598,16 @@ client = Vapi( environment=VapiEnvironment.DEFAULT, ) -client.simulations.simulation_controller_find_all() +client.simulation_suites.simulation_onboarding_controller_suite_create( + assistant_id="assistantId", + idempotency_key="idempotencyKey", + requirements=[ + SimulationOnboardingRequirementDto( + id="id", + text="text", + ) + ], +) ```
@@ -10503,7 +10623,7 @@ client.simulations.simulation_controller_find_all()
-**id_any:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Return only simulations matching the provided ids +**assistant_id:** `str` — Assistant the suite tests and is assigned to.
@@ -10511,7 +10631,7 @@ client.simulations.simulation_controller_find_all()
-**standalone_only:** `typing.Optional[bool]` — Only include simulations that are not part of a suite +**idempotency_key:** `str` — A unique key for this suite generation request. Retrying with the same key returns the saved suite, or a 409 while generation is in progress. Use a new key for a different assistant or requirements.
@@ -10519,7 +10639,7 @@ client.simulations.simulation_controller_find_all()
-**page:** `typing.Optional[float]` — This is the page number to return. Defaults to 1. +**requirements:** `typing.List[SimulationOnboardingRequirementDto]` — The reviewed test requirements to generate simulations for, from the requirements draft. Each requirement must have a unique id.
@@ -10527,64 +10647,264 @@ client.simulations.simulation_controller_find_all()
-**sort_order:** `typing.Optional[SimulationControllerFindAllRequestSortOrder]` — This is the sort order for pagination. Defaults to 'DESC'. +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
- -
-
- -**sort_by:** `typing.Optional[SimulationControllerFindAllRequestSortBy]` — This is the column to sort by. Defaults to 'createdAt'. -
-
-
-**limit:** `typing.Optional[float]` — This is the maximum number of items to return. Defaults to 100. -
+
+
client.simulation_suites.simulation_onboarding_controller_suite_update(...) -> SimulationOnboardingSuiteViewDto
-**created_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than the specified value. - -
-
+#### 📝 Description
-**created_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than the specified value. - -
-
-
-**created_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than or equal to the specified value. - -
-
+Revise a suite created by `POST /eval/simulation/onboarding/suite`. Remove simulations, rewrite scenarios using natural-language instructions, or set `retryFailed` to regenerate scenarios that failed or exceeded generation limits. The response includes the updated suite and requirement coverage. -
-
+Requests can take up to 2 minutes. -**created_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than or equal to the specified value. - +Send a new `patchKey` for each edit. Replaying an applied key changes nothing and returns the current suite, with `failedEditSimulationIds` listing the simulations that edit could not rewrite, so retry a timeout or a 5xx with the same key. A suite remembers its last 50 keys, so never reuse one. + +Each organization can make 60 edits per UTC day, shared with the dashboard. Requests that only remove simulations and replays of applied edits do not count toward this limit. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying.
- -
-
- -**updated_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than the specified value. - +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.simulation_suites.simulation_onboarding_controller_suite_update( + suite_id="suiteId", + patch_key="patchKey", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**suite_id:** `str` + +
+
+ +
+
+ +**patch_key:** `str` — A new key for each edit. Replaying an applied key changes nothing and returns the current suite. A suite remembers its last 50 keys, so never reuse one. + +
+
+ +
+
+ +**remove_simulation_ids:** `typing.Optional[typing.List[str]]` — Simulations to take out of the suite. They are unlinked, not deleted. + +
+
+ +
+
+ +**edits:** `typing.Optional[typing.List[SimulationOnboardingSuiteEditDto]]` — Simulations to rewrite in place, at most one edit per simulation: put every change for a simulation in one instruction. + +
+
+ +
+
+ +**retry_failed:** `typing.Optional[bool]` — Regenerate the scenarios that failed or did not fit when the suite was generated. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + + + +
+ +## Simulations +
client.simulations.simulation_controller_find_all(...) -> typing.List[Simulation] +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns the simulations for the authenticated organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.simulations.simulation_controller_find_all() + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id_any:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Return only simulations matching the provided ids + +
+
+ +
+
+ +**standalone_only:** `typing.Optional[bool]` — Only include simulations that are not part of a suite + +
+
+ +
+
+ +**page:** `typing.Optional[float]` — This is the page number to return. Defaults to 1. + +
+
+ +
+
+ +**sort_order:** `typing.Optional[SimulationControllerFindAllRequestSortOrder]` — This is the sort order for pagination. Defaults to 'DESC'. + +
+
+ +
+
+ +**sort_by:** `typing.Optional[SimulationControllerFindAllRequestSortBy]` — This is the column to sort by. Defaults to 'createdAt'. + +
+
+ +
+
+ +**limit:** `typing.Optional[float]` — This is the maximum number of items to return. Defaults to 100. + +
+
+ +
+
+ +**created_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than the specified value. + +
+
+ +
+
+ +**created_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than the specified value. + +
+
+ +
+
+ +**created_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**created_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than the specified value. +
@@ -13657,6 +13977,706 @@ client.observability_scorecard.scorecard_controller_create(
+
+
+
+ +## GuardrailRules +
client.guardrail_rules.guardrail_rules_controller_list(...) -> typing.List[GuardrailRule] +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.guardrail_rules.guardrail_rules_controller_list() + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**limit:** `typing.Optional[float]` — Positive bounded list size, matching the shared library reader. + +
+
+ +
+
+ +**search:** `typing.Optional[str]` — Case-insensitive name or identifier fragment; omitted means all resources. + +
+
+ +
+
+ +**pack_id:** `typing.Optional[str]` — Limits rules to a pack in the authenticated organization without per-member requests. + +
+
+ +
+
+ +**created_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than the specified value. + +
+
+ +
+
+ +**created_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than the specified value. + +
+
+ +
+
+ +**created_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**created_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than the specified value. + +
+
+ +
+
+ +**updated_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than the specified value. + +
+
+ +
+
+ +**updated_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than or equal to the specified value. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.guardrail_rules.guardrail_rules_controller_paginated(...) -> GuardrailRulesPage +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.guardrail_rules.guardrail_rules_controller_paginated() + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**limit:** `typing.Optional[float]` + +
+
+ +
+
+ +**search:** `typing.Optional[str]` — Case-insensitive name or identifier fragment; omitted means all resources. + +
+
+ +
+
+ +**pack_id:** `typing.Optional[str]` — Limits rules to a pack in the authenticated organization without per-member requests. + +
+
+ +
+
+ +**sort_by:** `typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy]` — Only persisted creation order is supported, with the ID as a stable tie-breaker. + +
+
+ +
+
+ +**created_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than the specified value. + +
+
+ +
+
+ +**created_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than the specified value. + +
+
+ +
+
+ +**created_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**created_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than the specified value. + +
+
+ +
+
+ +**updated_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than the specified value. + +
+
+ +
+
+ +**updated_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than or equal to the specified value. + +
+
+ +
+
+ +**page:** `typing.Optional[float]` — A safe integer page; the reader also validates the computed offset. + +
+
+ +
+
+ +**sort_order:** `typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder]` — This is the sort order for pagination. Defaults to 'DESC'. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.guardrail_rules.guardrail_rules_controller_find(...) -> GuardrailRule +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.guardrail_rules.guardrail_rules_controller_find( + id="id", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `str` — The unique identifier for the resource. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +## GuardrailPacks +
client.guardrail_packs.guardrail_packs_controller_list(...) -> typing.List[GuardrailPack] +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.guardrail_packs.guardrail_packs_controller_list() + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**limit:** `typing.Optional[float]` — Positive bounded list size, matching the shared library reader. + +
+
+ +
+
+ +**search:** `typing.Optional[str]` — Case-insensitive name or identifier fragment; omitted means all resources. + +
+
+ +
+
+ +**created_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than the specified value. + +
+
+ +
+
+ +**created_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than the specified value. + +
+
+ +
+
+ +**created_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**created_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than the specified value. + +
+
+ +
+
+ +**updated_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than the specified value. + +
+
+ +
+
+ +**updated_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than or equal to the specified value. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.guardrail_packs.guardrail_packs_controller_paginated(...) -> GuardrailPacksPage +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.guardrail_packs.guardrail_packs_controller_paginated() + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**limit:** `typing.Optional[float]` + +
+
+ +
+
+ +**search:** `typing.Optional[str]` — Case-insensitive name or identifier fragment; omitted means all resources. + +
+
+ +
+
+ +**sort_by:** `typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy]` — Only persisted creation order is supported, with the ID as a stable tie-breaker. + +
+
+ +
+
+ +**created_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than the specified value. + +
+
+ +
+
+ +**created_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than the specified value. + +
+
+ +
+
+ +**created_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**created_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the createdAt is less than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_gt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than the specified value. + +
+
+ +
+
+ +**updated_at_lt:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than the specified value. + +
+
+ +
+
+ +**updated_at_ge:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is greater than or equal to the specified value. + +
+
+ +
+
+ +**updated_at_le:** `typing.Optional[datetime.datetime]` — This will return items where the updatedAt is less than or equal to the specified value. + +
+
+ +
+
+ +**page:** `typing.Optional[float]` — A safe integer page; the reader also validates the computed offset. + +
+
+ +
+
+ +**sort_order:** `typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder]` — This is the sort order for pagination. Defaults to 'DESC'. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.guardrail_packs.guardrail_packs_controller_find(...) -> GuardrailPack +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from vapi import Vapi +from vapi.environment import VapiEnvironment + +client = Vapi( + token="", + environment=VapiEnvironment.DEFAULT, +) + +client.guardrail_packs.guardrail_packs_controller_find( + id="id", +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `str` — The unique identifier for the resource. + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ +
diff --git a/src/vapi/__init__.py b/src/vapi/__init__.py index 23c1dd3b1..bc78fe3ae 100644 --- a/src/vapi/__init__.py +++ b/src/vapi/__init__.py @@ -31,6 +31,7 @@ AnthropicBedrockModel, AnthropicBedrockModelFallbackModelsItem, AnthropicBedrockModelModel, + AnthropicBedrockModelReasoningEffort, AnthropicBedrockModelToolsItem, AnthropicBedrockModelToolsItem_ApiRequest, AnthropicBedrockModelToolsItem_Bash, @@ -59,6 +60,7 @@ AnthropicCredentialProvider, AnthropicModel, AnthropicModelModel, + AnthropicModelReasoningEffort, AnthropicModelToolsItem, AnthropicModelToolsItem_ApiRequest, AnthropicModelToolsItem_Bash, @@ -176,6 +178,7 @@ AssistantCredentialsItem_Openrouter, AssistantCredentialsItem_PerplexityAi, AssistantCredentialsItem_Playht, + AssistantCredentialsItem_Reson8, AssistantCredentialsItem_RimeAi, AssistantCredentialsItem_Runpod, AssistantCredentialsItem_S3, @@ -240,6 +243,7 @@ AssistantDraftCredentialsItem_Openrouter, AssistantDraftCredentialsItem_PerplexityAi, AssistantDraftCredentialsItem_Playht, + AssistantDraftCredentialsItem_Reson8, AssistantDraftCredentialsItem_RimeAi, AssistantDraftCredentialsItem_Runpod, AssistantDraftCredentialsItem_S3, @@ -290,6 +294,7 @@ AssistantDraftTranscriber_Gladia, AssistantDraftTranscriber_Google, AssistantDraftTranscriber_Openai, + AssistantDraftTranscriber_Reson8, AssistantDraftTranscriber_Soniox, AssistantDraftTranscriber_Speechmatics, AssistantDraftTranscriber_Talkscriber, @@ -312,17 +317,16 @@ AssistantDraftVoice_RimeAi, AssistantDraftVoice_Sesame, AssistantDraftVoice_SmallestAi, - AssistantDraftVoice_Tavus, AssistantDraftVoice_Vapi, AssistantDraftVoice_Wellsaid, AssistantDraftVoice_Xai, AssistantDraftVoicemailDetection, AssistantDraftVoicemailDetectionZero, AssistantFirstMessageMode, - AssistantHookAssistantSpeechInterrupted, - AssistantHookCallEnding, - AssistantHookCustomerSpeechInterrupted, AssistantHooksItem, + AssistantManagedConflictResponseDto, + AssistantManagedConflictResponseDtoError, + AssistantManagedVapiAgentsDto, AssistantMessage, AssistantMessageEvaluationContinuePlan, AssistantMessageJudgePlanAi, @@ -398,6 +402,7 @@ AssistantOverridesCredentialsItem_Openrouter, AssistantOverridesCredentialsItem_PerplexityAi, AssistantOverridesCredentialsItem_Playht, + AssistantOverridesCredentialsItem_Reson8, AssistantOverridesCredentialsItem_RimeAi, AssistantOverridesCredentialsItem_Runpod, AssistantOverridesCredentialsItem_S3, @@ -470,6 +475,7 @@ AssistantOverridesTranscriber_Gladia, AssistantOverridesTranscriber_Google, AssistantOverridesTranscriber_Openai, + AssistantOverridesTranscriber_Reson8, AssistantOverridesTranscriber_Soniox, AssistantOverridesTranscriber_Speechmatics, AssistantOverridesTranscriber_Talkscriber, @@ -492,7 +498,6 @@ AssistantOverridesVoice_RimeAi, AssistantOverridesVoice_Sesame, AssistantOverridesVoice_SmallestAi, - AssistantOverridesVoice_Tavus, AssistantOverridesVoice_Vapi, AssistantOverridesVoice_Wellsaid, AssistantOverridesVoice_Xai, @@ -500,7 +505,6 @@ AssistantOverridesVoicemailDetectionZero, AssistantPaginatedResponse, AssistantPinnedConflictResponseDto, - AssistantPinnedConflictResponseDtoError, AssistantServerMessagesItem, AssistantSpeechWordAlignmentTiming, AssistantSpeechWordProgressTiming, @@ -515,12 +519,12 @@ AssistantTranscriber_Gladia, AssistantTranscriber_Google, AssistantTranscriber_Openai, + AssistantTranscriber_Reson8, AssistantTranscriber_Soniox, AssistantTranscriber_Speechmatics, AssistantTranscriber_Talkscriber, AssistantTranscriber_Vapi, AssistantTranscriber_Xai, - AssistantUserEditable, AssistantVersion, AssistantVersionBackgroundSound, AssistantVersionBackgroundSoundZero, @@ -566,6 +570,7 @@ AssistantVersionCredentialsItem_Openrouter, AssistantVersionCredentialsItem_PerplexityAi, AssistantVersionCredentialsItem_Playht, + AssistantVersionCredentialsItem_Reson8, AssistantVersionCredentialsItem_RimeAi, AssistantVersionCredentialsItem_Runpod, AssistantVersionCredentialsItem_S3, @@ -616,6 +621,7 @@ AssistantVersionTranscriber_Gladia, AssistantVersionTranscriber_Google, AssistantVersionTranscriber_Openai, + AssistantVersionTranscriber_Reson8, AssistantVersionTranscriber_Soniox, AssistantVersionTranscriber_Speechmatics, AssistantVersionTranscriber_Talkscriber, @@ -638,7 +644,6 @@ AssistantVersionVoice_RimeAi, AssistantVersionVoice_Sesame, AssistantVersionVoice_SmallestAi, - AssistantVersionVoice_Tavus, AssistantVersionVoice_Vapi, AssistantVersionVoice_Wellsaid, AssistantVersionVoice_Xai, @@ -661,7 +666,6 @@ AssistantVoice_RimeAi, AssistantVoice_Sesame, AssistantVoice_SmallestAi, - AssistantVoice_Tavus, AssistantVoice_Vapi, AssistantVoice_Wellsaid, AssistantVoice_Xai, @@ -765,6 +769,49 @@ CallDestination_Number, CallDestination_Sip, CallEndedReason, + CallHealthDashboardAffectedCallDto, + CallHealthDashboardAffectedCallDtoCallAvailability, + CallHealthDashboardAffectedCallsResponseDto, + CallHealthDashboardApiErrorDto, + CallHealthDashboardAssignmentCoverageDto, + CallHealthDashboardAssistantGoalsDto, + CallHealthDashboardAssistantGoalsResponseDto, + CallHealthDashboardAssistantListResponseDto, + CallHealthDashboardAssistantOverviewDto, + CallHealthDashboardAssistantReferenceDto, + CallHealthDashboardAssistantSummaryResponseDto, + CallHealthDashboardClassificationCoverageDto, + CallHealthDashboardCoverageDto, + CallHealthDashboardDiscoveryCoverageDto, + CallHealthDashboardFacetsDto, + CallHealthDashboardFacetsDtoStatusesItem, + CallHealthDashboardGoalDailyDto, + CallHealthDashboardGoalDefinitionDto, + CallHealthDashboardGoalGapsDto, + CallHealthDashboardGoalOptionDto, + CallHealthDashboardGoalSummaryDto, + CallHealthDashboardIntakeCoverageDto, + CallHealthDashboardIntakeCoverageDtoDeliveryMode, + CallHealthDashboardIntakeCoverageDtoEndToEndCoverage, + CallHealthDashboardIssueActivityDto, + CallHealthDashboardIssueActivityDtoAction, + CallHealthDashboardIssueActivityListResponseDto, + CallHealthDashboardIssueCoverageDto, + CallHealthDashboardIssueCoverageDtoState, + CallHealthDashboardIssueDailyDto, + CallHealthDashboardIssueDefinitionDto, + CallHealthDashboardIssueDetailResponseDto, + CallHealthDashboardIssueListResponseDto, + CallHealthDashboardIssueReferenceDto, + CallHealthDashboardIssueReferenceDtoStatus, + CallHealthDashboardIssueSummaryDto, + CallHealthDashboardIssueSummaryDtoStatus, + CallHealthDashboardSeriesPageDto, + CallHealthDashboardSweepCoverageDto, + CallHealthDashboardSweepCoverageDtoState, + CallHealthDashboardTriageRequestDto, + CallHealthDashboardTriageRequestDtoAction, + CallHealthDashboardWindowDto, CallHookAssistantSpeechInterrupted, CallHookAssistantSpeechInterruptedDoItem, CallHookAssistantSpeechInterruptedDoItem_MessageAdd, @@ -1211,6 +1258,7 @@ ConversationNodeTranscriber_Gladia, ConversationNodeTranscriber_Google, ConversationNodeTranscriber_Openai, + ConversationNodeTranscriber_Reson8, ConversationNodeTranscriber_Soniox, ConversationNodeTranscriber_Speechmatics, ConversationNodeTranscriber_Talkscriber, @@ -1233,7 +1281,6 @@ ConversationNodeVoice_RimeAi, ConversationNodeVoice_Sesame, ConversationNodeVoice_SmallestAi, - ConversationNodeVoice_Tavus, ConversationNodeVoice_Vapi, ConversationNodeVoice_Wellsaid, ConversationNodeVoice_Xai, @@ -1298,6 +1345,7 @@ CreateAssistantDraftDtoCredentialsItem_Openrouter, CreateAssistantDraftDtoCredentialsItem_PerplexityAi, CreateAssistantDraftDtoCredentialsItem_Playht, + CreateAssistantDraftDtoCredentialsItem_Reson8, CreateAssistantDraftDtoCredentialsItem_RimeAi, CreateAssistantDraftDtoCredentialsItem_Runpod, CreateAssistantDraftDtoCredentialsItem_S3, @@ -1346,6 +1394,7 @@ CreateAssistantDraftDtoTranscriber_Gladia, CreateAssistantDraftDtoTranscriber_Google, CreateAssistantDraftDtoTranscriber_Openai, + CreateAssistantDraftDtoTranscriber_Reson8, CreateAssistantDraftDtoTranscriber_Soniox, CreateAssistantDraftDtoTranscriber_Speechmatics, CreateAssistantDraftDtoTranscriber_Talkscriber, @@ -1368,7 +1417,6 @@ CreateAssistantDraftDtoVoice_RimeAi, CreateAssistantDraftDtoVoice_Sesame, CreateAssistantDraftDtoVoice_SmallestAi, - CreateAssistantDraftDtoVoice_Tavus, CreateAssistantDraftDtoVoice_Vapi, CreateAssistantDraftDtoVoice_Wellsaid, CreateAssistantDraftDtoVoice_Xai, @@ -1419,6 +1467,7 @@ CreateAssistantDtoCredentialsItem_Openrouter, CreateAssistantDtoCredentialsItem_PerplexityAi, CreateAssistantDtoCredentialsItem_Playht, + CreateAssistantDtoCredentialsItem_Reson8, CreateAssistantDtoCredentialsItem_RimeAi, CreateAssistantDtoCredentialsItem_Runpod, CreateAssistantDtoCredentialsItem_S3, @@ -1467,6 +1516,7 @@ CreateAssistantDtoTranscriber_Gladia, CreateAssistantDtoTranscriber_Google, CreateAssistantDtoTranscriber_Openai, + CreateAssistantDtoTranscriber_Reson8, CreateAssistantDtoTranscriber_Soniox, CreateAssistantDtoTranscriber_Speechmatics, CreateAssistantDtoTranscriber_Talkscriber, @@ -1489,7 +1539,6 @@ CreateAssistantDtoVoice_RimeAi, CreateAssistantDtoVoice_Sesame, CreateAssistantDtoVoice_SmallestAi, - CreateAssistantDtoVoice_Tavus, CreateAssistantDtoVoice_Vapi, CreateAssistantDtoVoice_Wellsaid, CreateAssistantDtoVoice_Xai, @@ -1703,6 +1752,7 @@ CreateQueryToolDtoMessagesItem_RequestFailed, CreateQueryToolDtoMessagesItem_RequestResponseDelayed, CreateQueryToolDtoMessagesItem_RequestStart, + CreateReson8CredentialDto, CreateRimeAiCredentialDto, CreateRunpodCredentialDto, CreateS3CompatibleCredentialDto, @@ -1875,6 +1925,7 @@ CreateVonagePhoneNumberDtoHooksItem_CallEnding, CreateVonagePhoneNumberDtoHooksItem_CallRinging, CreateWebCallDto, + CreateWebCallDtoVideoRecordingStartMode, CreateWebChatDto, CreateWebChatDtoInput, CreateWebChatDtoInputOneItem, @@ -1929,6 +1980,7 @@ CreateWorkflowDtoCredentialsItem_Openrouter, CreateWorkflowDtoCredentialsItem_PerplexityAi, CreateWorkflowDtoCredentialsItem_Playht, + CreateWorkflowDtoCredentialsItem_Reson8, CreateWorkflowDtoCredentialsItem_RimeAi, CreateWorkflowDtoCredentialsItem_Runpod, CreateWorkflowDtoCredentialsItem_S3, @@ -1966,6 +2018,7 @@ CreateWorkflowDtoTranscriber_Gladia, CreateWorkflowDtoTranscriber_Google, CreateWorkflowDtoTranscriber_Openai, + CreateWorkflowDtoTranscriber_Reson8, CreateWorkflowDtoTranscriber_Soniox, CreateWorkflowDtoTranscriber_Speechmatics, CreateWorkflowDtoTranscriber_Talkscriber, @@ -1988,7 +2041,6 @@ CreateWorkflowDtoVoice_RimeAi, CreateWorkflowDtoVoice_Sesame, CreateWorkflowDtoVoice_SmallestAi, - CreateWorkflowDtoVoice_Tavus, CreateWorkflowDtoVoice_Vapi, CreateWorkflowDtoVoice_Wellsaid, CreateWorkflowDtoVoice_Xai, @@ -2150,6 +2202,7 @@ Eval, EvalAnthropicModel, EvalAnthropicModelModel, + EvalAnthropicModelReasoningEffort, EvalCustomModel, EvalGoogleModel, EvalGoogleModelModel, @@ -2203,7 +2256,6 @@ ExportSessionDtoFormat, ExportSessionDtoSortBy, ExportSessionDtoSortOrder, - FailedEdgeCondition, FallbackAssemblyAiTranscriber, FallbackAssemblyAiTranscriberLanguage, FallbackAssemblyAiTranscriberLanguageCodesItem, @@ -2224,8 +2276,6 @@ FallbackCustomTranscriber, FallbackCustomVoice, FallbackDeepgramTranscriber, - FallbackDeepgramTranscriberLanguage, - FallbackDeepgramTranscriberModel, FallbackDeepgramTranscriberRedactionItem, FallbackDeepgramVoice, FallbackDeepgramVoiceId, @@ -2266,7 +2316,6 @@ FallbackMinimaxVoiceProvider, FallbackMinimaxVoiceRegion, FallbackMinimaxVoiceSubtitleType, - FallbackNeetsVoice, FallbackNeuphonicVoice, FallbackNeuphonicVoiceModel, FallbackOpenAiTranscriber, @@ -2293,7 +2342,6 @@ FallbackPlanVoicesItem_RimeAi, FallbackPlanVoicesItem_Sesame, FallbackPlanVoicesItem_SmallestAi, - FallbackPlanVoicesItem_Tavus, FallbackPlanVoicesItem_Vapi, FallbackPlanVoicesItem_Wellsaid, FallbackPlanVoicesItem_Xai, @@ -2303,6 +2351,9 @@ FallbackPlayHtVoiceIdEnum, FallbackPlayHtVoiceLanguage, FallbackPlayHtVoiceModel, + FallbackReson8Transcriber, + FallbackReson8TranscriberFillerMode, + FallbackReson8TranscriberModel, FallbackRimeAiVoice, FallbackRimeAiVoiceId, FallbackRimeAiVoiceIdEnum, @@ -2328,8 +2379,6 @@ FallbackTalkscriberTranscriberLanguage, FallbackTalkscriberTranscriberModel, FallbackTavusVoice, - FallbackTavusVoiceVoiceId, - FallbackTavusVoiceVoiceIdZero, FallbackTranscriberPlan, FallbackTranscriberPlanTranscribersItem, FallbackTranscriberPlanTranscribersItem_11Labs, @@ -2341,6 +2390,7 @@ FallbackTranscriberPlanTranscribersItem_Gladia, FallbackTranscriberPlanTranscribersItem_Google, FallbackTranscriberPlanTranscribersItem_Openai, + FallbackTranscriberPlanTranscribersItem_Reson8, FallbackTranscriberPlanTranscribersItem_Soniox, FallbackTranscriberPlanTranscribersItem_Speechmatics, FallbackTranscriberPlanTranscribersItem_Talkscriber, @@ -2385,7 +2435,6 @@ FormatPlanReplacementsItem_Regex, FourierDenoisingPlan, FunctionCall, - FunctionCallAssistantHookAction, FunctionCallHookAction, FunctionCallHookActionMessagesItem, FunctionCallHookActionMessagesItem_RequestComplete, @@ -2413,6 +2462,7 @@ GeminiMultimodalLivePrebuiltVoiceConfigVoiceName, GeminiMultimodalLiveSpeechConfig, GeminiMultimodalLiveVoiceConfig, + GenerateScenariosDto, GenerateScenariosResponse, GeneratedScenario, GeneratedScenarioCategory, @@ -2432,6 +2482,8 @@ GetTrafficAllocationLatestDto, GetTrafficAllocationPaginatedDto, GetTrafficAllocationPaginatedDtoSortOrder, + GetTrafficTabMetricsDto, + GetTrafficTabMetricsDtoBucket, GhlTool, GhlToolMessagesItem, GhlToolMessagesItem_RequestComplete, @@ -2518,6 +2570,13 @@ GoHighLevelCredentialProvider, GoHighLevelMcpCredential, GoHighLevelMcpCredentialProvider, + GoalEvaluationCurrentBatchRequestDto, + GoalEvaluationCurrentBatchResponseDto, + GoalEvaluationCurrentCallRequestDto, + GoalEvaluationCurrentCallResponseDto, + GoalEvaluationCurrentDto, + GoalEvaluationCurrentDtoGoalOutcome, + GoalEvaluationCurrentDtoProcessingState, GoogleCalendarCheckAvailabilityTool, GoogleCalendarCheckAvailabilityToolMessagesItem, GoogleCalendarCheckAvailabilityToolMessagesItem_RequestComplete, @@ -2626,6 +2685,23 @@ GroupConditionConditionsItem_Liquid, GroupConditionConditionsItem_Regex, GroupConditionOperator, + GuardrailAuthoring, + GuardrailAuthoringMode, + GuardrailEscalateAction, + GuardrailEscalateActionType, + GuardrailFixedResponseAction, + GuardrailFixedResponseActionType, + GuardrailPack, + GuardrailPacksPage, + GuardrailRedirectAction, + GuardrailRedirectActionType, + GuardrailRule, + GuardrailRuleAction, + GuardrailRuleActionZero, + GuardrailRuleActionZero_Fixed, + GuardrailRuleActionZero_Redirect, + GuardrailRuleSensitivity, + GuardrailRulesPage, HandoffDestinationAssistant, HandoffDestinationAssistantContextEngineeringPlan, HandoffDestinationAssistantContextEngineeringPlan_All, @@ -2799,7 +2875,6 @@ LmntVoiceId, LmntVoiceIdEnum, LmntVoiceLanguage, - LogicEdgeCondition, MakeCredential, MakeCredentialProvider, MakeTool, @@ -2876,13 +2951,13 @@ MistralCredential, MistralCredentialProvider, ModelCost, + ModelCostServiceTierBreakdown, ModelDeprecationNotice, ModelDeprecationNoticeReplacementStatus, Monitor, MonitorPlan, MonitorResult, Mono, - NeetsVoice, NeuphonicCredential, NeuphonicCredentialProvider, NeuphonicVoice, @@ -3111,7 +3186,6 @@ RecordingConsentPlanStayOnLineVoice_RimeAi, RecordingConsentPlanStayOnLineVoice_Sesame, RecordingConsentPlanStayOnLineVoice_SmallestAi, - RecordingConsentPlanStayOnLineVoice_Tavus, RecordingConsentPlanStayOnLineVoice_Vapi, RecordingConsentPlanStayOnLineVoice_Wellsaid, RecordingConsentPlanStayOnLineVoice_Xai, @@ -3134,7 +3208,6 @@ RecordingConsentPlanVerbalVoice_RimeAi, RecordingConsentPlanVerbalVoice_Sesame, RecordingConsentPlanVerbalVoice_SmallestAi, - RecordingConsentPlanVerbalVoice_Tavus, RecordingConsentPlanVerbalVoice_Vapi, RecordingConsentPlanVerbalVoice_Wellsaid, RecordingConsentPlanVerbalVoice_Xai, @@ -3162,6 +3235,11 @@ RelayTargetOptions, RelayTargetOptionsType, RelayTargetSquad, + Reson8Credential, + Reson8CredentialProvider, + Reson8Transcriber, + Reson8TranscriberFillerMode, + Reson8TranscriberModel, ResponseCompletedEvent, ResponseCompletedEventType, ResponseErrorEvent, @@ -3194,13 +3272,11 @@ S3CompatibleStorageCredentialProvider, S3Credential, S3CredentialProvider, - SayAssistantHookAction, SayHookAction, SayHookActionExact, SayHookActionPrompt, SayHookActionPromptOneItem, SayPhoneNumberHookAction, - SbcConfiguration, Scenario, ScenarioHooksItem, ScenarioHooksItem_SimulationRunEnded, @@ -3520,6 +3596,8 @@ ServerMessageVoiceRequestPhoneNumber_Vapi, ServerMessageVoiceRequestPhoneNumber_Vonage, ServerMessageVoiceRequestType, + ServiceUnavailableErrorBody, + ServiceUnavailableErrorBodyError, SesameVoice, SesameVoiceModel, Session, @@ -3540,6 +3618,22 @@ SimulationHookInclude, SimulationHookWebhookAction, SimulationHookWebhookActionType, + SimulationOnboardingCoverageGapDto, + SimulationOnboardingCoverageGapDtoReason, + SimulationOnboardingErrorDto, + SimulationOnboardingErrorDtoCode, + SimulationOnboardingOpenQuestionDto, + SimulationOnboardingRequirementDto, + SimulationOnboardingRequirementDtoTag, + SimulationOnboardingRequirementsDraftDto, + SimulationOnboardingSuiteCoverageDto, + SimulationOnboardingSuiteDocsDto, + SimulationOnboardingSuiteEditDto, + SimulationOnboardingSuiteRefDto, + SimulationOnboardingSuiteSimulationDto, + SimulationOnboardingSuiteViewDto, + SimulationOnboardingToolGapDto, + SimulationOnboardingToolGapDtoReason, SimulationRun, SimulationRunConfiguration, SimulationRunItem, @@ -3553,7 +3647,11 @@ SimulationRunItemImprovements, SimulationRunItemMetadata, SimulationRunItemResults, + SimulationRunItemResultsSkippedStructuredOutputsValue, + SimulationRunItemResultsSkippedStructuredOutputsValueReason, + SimulationRunItemResultsStructuredOutputsValue, SimulationRunItemStatus, + SimulationRunItemsPaginatedResponse, SimulationRunListItem, SimulationRunListItemSimulationsItem, SimulationRunListItemSimulationsItem_Simulation, @@ -3584,6 +3682,7 @@ SimulationSuite, SimulationSuiteTargetAssignment, SimulationSuiteTargetAssignmentTargetType, + SimulationSuitesPaginatedResponse, SipAuthentication, SipRequestTool, SipRequestToolBody, @@ -3710,8 +3809,6 @@ TavusCredential, TavusCredentialProvider, TavusVoice, - TavusVoiceVoiceId, - TavusVoiceVoiceIdZero, TelnyxPhoneNumber, TelnyxPhoneNumberFallbackDestination, TelnyxPhoneNumberFallbackDestination_Number, @@ -3943,10 +4040,24 @@ TrafficAllocationLatestResponseDto, TrafficAllocationPaginatedResponse, TrafficAllocationStaleConflictResponseDto, - TrafficAllocationStaleConflictResponseDtoError, TrafficAllocationTarget, TrafficAllocationVersionConflictResponseDto, TrafficAllocationVersionConflictResponseDtoError, + TrafficTabCostBreakdownPerMinuteDto, + TrafficTabCostPerMinuteDto, + TrafficTabDurationSecondsDto, + TrafficTabEndedReasonCountDto, + TrafficTabLatencyMsDto, + TrafficTabLatencyStatsDto, + TrafficTabMetricsDto, + TrafficTabMetricsWindowDto, + TrafficTabMetricsWindowDtoBucket, + TrafficTabStructuredOutputDto, + TrafficTabStructuredOutputDtoType, + TrafficTabStructuredOutputNumericDto, + TrafficTabStructuredOutputValueCountDto, + TrafficTabTimeseriesPointDto, + TrafficTabVersionMetricsDto, TranscriberCost, TranscriptPlan, TranscriptWordConfidence, @@ -3962,7 +4073,7 @@ TransferAssistantBackgroundSound, TransferAssistantBackgroundSoundZero, TransferAssistantFirstMessageMode, - TransferAssistantHookAction, + TransferAssistantHooksItem, TransferAssistantModel, TransferAssistantModelProvider, TransferAssistantTranscriber, @@ -3975,6 +4086,7 @@ TransferAssistantTranscriber_Gladia, TransferAssistantTranscriber_Google, TransferAssistantTranscriber_Openai, + TransferAssistantTranscriber_Reson8, TransferAssistantTranscriber_Soniox, TransferAssistantTranscriber_Speechmatics, TransferAssistantTranscriber_Talkscriber, @@ -3997,7 +4109,6 @@ TransferAssistantVoice_RimeAi, TransferAssistantVoice_Sesame, TransferAssistantVoice_SmallestAi, - TransferAssistantVoice_Tavus, TransferAssistantVoice_Vapi, TransferAssistantVoice_Wellsaid, TransferAssistantVoice_Xai, @@ -4051,6 +4162,128 @@ TransferSuccessfulToolUserEditableMessagesItem_RequestResponseDelayed, TransferSuccessfulToolUserEditableMessagesItem_RequestStart, TransferSuccessfulToolUserEditableType, + TransientAssistantDto, + TransientAssistantDtoBackgroundSound, + TransientAssistantDtoBackgroundSoundZero, + TransientAssistantDtoClientMessagesItem, + TransientAssistantDtoCredentialsItem, + TransientAssistantDtoCredentialsItem_11Labs, + TransientAssistantDtoCredentialsItem_Anthropic, + TransientAssistantDtoCredentialsItem_AnthropicBedrock, + TransientAssistantDtoCredentialsItem_Anyscale, + TransientAssistantDtoCredentialsItem_AssemblyAi, + TransientAssistantDtoCredentialsItem_Azure, + TransientAssistantDtoCredentialsItem_AzureOpenai, + TransientAssistantDtoCredentialsItem_ByoSipTrunk, + TransientAssistantDtoCredentialsItem_Cartesia, + TransientAssistantDtoCredentialsItem_Cerebras, + TransientAssistantDtoCredentialsItem_Cloudflare, + TransientAssistantDtoCredentialsItem_CustomCredential, + TransientAssistantDtoCredentialsItem_CustomLlm, + TransientAssistantDtoCredentialsItem_DeepSeek, + TransientAssistantDtoCredentialsItem_Deepgram, + TransientAssistantDtoCredentialsItem_Deepinfra, + TransientAssistantDtoCredentialsItem_Email, + TransientAssistantDtoCredentialsItem_Gcp, + TransientAssistantDtoCredentialsItem_GhlOauth2Authorization, + TransientAssistantDtoCredentialsItem_Gladia, + TransientAssistantDtoCredentialsItem_Gohighlevel, + TransientAssistantDtoCredentialsItem_Google, + TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization, + TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client, + TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization, + TransientAssistantDtoCredentialsItem_Groq, + TransientAssistantDtoCredentialsItem_Hume, + TransientAssistantDtoCredentialsItem_InflectionAi, + TransientAssistantDtoCredentialsItem_Inworld, + TransientAssistantDtoCredentialsItem_Langfuse, + TransientAssistantDtoCredentialsItem_Lmnt, + TransientAssistantDtoCredentialsItem_Make, + TransientAssistantDtoCredentialsItem_Microsoft, + TransientAssistantDtoCredentialsItem_Minimax, + TransientAssistantDtoCredentialsItem_Mistral, + TransientAssistantDtoCredentialsItem_Neuphonic, + TransientAssistantDtoCredentialsItem_Openai, + TransientAssistantDtoCredentialsItem_Openrouter, + TransientAssistantDtoCredentialsItem_PerplexityAi, + TransientAssistantDtoCredentialsItem_Playht, + TransientAssistantDtoCredentialsItem_Reson8, + TransientAssistantDtoCredentialsItem_RimeAi, + TransientAssistantDtoCredentialsItem_Runpod, + TransientAssistantDtoCredentialsItem_S3, + TransientAssistantDtoCredentialsItem_S3Compatible, + TransientAssistantDtoCredentialsItem_SlackOauth2Authorization, + TransientAssistantDtoCredentialsItem_SlackWebhook, + TransientAssistantDtoCredentialsItem_SmallestAi, + TransientAssistantDtoCredentialsItem_Soniox, + TransientAssistantDtoCredentialsItem_Speechmatics, + TransientAssistantDtoCredentialsItem_Supabase, + TransientAssistantDtoCredentialsItem_Tavus, + TransientAssistantDtoCredentialsItem_TogetherAi, + TransientAssistantDtoCredentialsItem_Twilio, + TransientAssistantDtoCredentialsItem_Vonage, + TransientAssistantDtoCredentialsItem_Webhook, + TransientAssistantDtoCredentialsItem_Wellsaid, + TransientAssistantDtoCredentialsItem_Xai, + TransientAssistantDtoFirstMessageMode, + TransientAssistantDtoHooksItem, + TransientAssistantDtoModel, + TransientAssistantDtoModel_Anthropic, + TransientAssistantDtoModel_AnthropicBedrock, + TransientAssistantDtoModel_Anyscale, + TransientAssistantDtoModel_Cerebras, + TransientAssistantDtoModel_CustomLlm, + TransientAssistantDtoModel_DeepSeek, + TransientAssistantDtoModel_Deepinfra, + TransientAssistantDtoModel_Google, + TransientAssistantDtoModel_Groq, + TransientAssistantDtoModel_InflectionAi, + TransientAssistantDtoModel_Minimax, + TransientAssistantDtoModel_Openai, + TransientAssistantDtoModel_Openrouter, + TransientAssistantDtoModel_PerplexityAi, + TransientAssistantDtoModel_TogetherAi, + TransientAssistantDtoModel_Vapi, + TransientAssistantDtoModel_Xai, + TransientAssistantDtoServerMessagesItem, + TransientAssistantDtoTranscriber, + TransientAssistantDtoTranscriber_11Labs, + TransientAssistantDtoTranscriber_AssemblyAi, + TransientAssistantDtoTranscriber_Azure, + TransientAssistantDtoTranscriber_Cartesia, + TransientAssistantDtoTranscriber_CustomTranscriber, + TransientAssistantDtoTranscriber_Deepgram, + TransientAssistantDtoTranscriber_Gladia, + TransientAssistantDtoTranscriber_Google, + TransientAssistantDtoTranscriber_Openai, + TransientAssistantDtoTranscriber_Reson8, + TransientAssistantDtoTranscriber_Soniox, + TransientAssistantDtoTranscriber_Speechmatics, + TransientAssistantDtoTranscriber_Talkscriber, + TransientAssistantDtoTranscriber_Vapi, + TransientAssistantDtoTranscriber_Xai, + TransientAssistantDtoVoice, + TransientAssistantDtoVoice_11Labs, + TransientAssistantDtoVoice_Azure, + TransientAssistantDtoVoice_Cartesia, + TransientAssistantDtoVoice_CustomVoice, + TransientAssistantDtoVoice_Deepgram, + TransientAssistantDtoVoice_Hume, + TransientAssistantDtoVoice_Inworld, + TransientAssistantDtoVoice_Lmnt, + TransientAssistantDtoVoice_Microsoft, + TransientAssistantDtoVoice_Minimax, + TransientAssistantDtoVoice_Neuphonic, + TransientAssistantDtoVoice_Openai, + TransientAssistantDtoVoice_Playht, + TransientAssistantDtoVoice_RimeAi, + TransientAssistantDtoVoice_Sesame, + TransientAssistantDtoVoice_SmallestAi, + TransientAssistantDtoVoice_Vapi, + TransientAssistantDtoVoice_Wellsaid, + TransientAssistantDtoVoice_Xai, + TransientAssistantDtoVoicemailDetection, + TransientAssistantDtoVoicemailDetectionZero, TransientTwilioPhoneNumber, TransientTwilioPhoneNumberFallbackDestination, TransientTwilioPhoneNumberFallbackDestination_Number, @@ -4147,6 +4380,7 @@ UpdateAssistantDraftDtoCredentialsItem_Openrouter, UpdateAssistantDraftDtoCredentialsItem_PerplexityAi, UpdateAssistantDraftDtoCredentialsItem_Playht, + UpdateAssistantDraftDtoCredentialsItem_Reson8, UpdateAssistantDraftDtoCredentialsItem_RimeAi, UpdateAssistantDraftDtoCredentialsItem_Runpod, UpdateAssistantDraftDtoCredentialsItem_S3, @@ -4195,6 +4429,7 @@ UpdateAssistantDraftDtoTranscriber_Gladia, UpdateAssistantDraftDtoTranscriber_Google, UpdateAssistantDraftDtoTranscriber_Openai, + UpdateAssistantDraftDtoTranscriber_Reson8, UpdateAssistantDraftDtoTranscriber_Soniox, UpdateAssistantDraftDtoTranscriber_Speechmatics, UpdateAssistantDraftDtoTranscriber_Talkscriber, @@ -4217,7 +4452,6 @@ UpdateAssistantDraftDtoVoice_RimeAi, UpdateAssistantDraftDtoVoice_Sesame, UpdateAssistantDraftDtoVoice_SmallestAi, - UpdateAssistantDraftDtoVoice_Tavus, UpdateAssistantDraftDtoVoice_Vapi, UpdateAssistantDraftDtoVoice_Wellsaid, UpdateAssistantDraftDtoVoice_Xai, @@ -4457,6 +4691,8 @@ UpdateQueryToolDtoMessagesItem_RequestFailed, UpdateQueryToolDtoMessagesItem_RequestResponseDelayed, UpdateQueryToolDtoMessagesItem_RequestStart, + UpdateReson8CredentialDto, + UpdateReson8CredentialDtoProvider, UpdateRimeAiCredentialDto, UpdateRimeAiCredentialDtoProvider, UpdateRunpodCredentialDto, @@ -4664,6 +4900,7 @@ UpdateWorkflowDtoCredentialsItem_Openrouter, UpdateWorkflowDtoCredentialsItem_PerplexityAi, UpdateWorkflowDtoCredentialsItem_Playht, + UpdateWorkflowDtoCredentialsItem_Reson8, UpdateWorkflowDtoCredentialsItem_RimeAi, UpdateWorkflowDtoCredentialsItem_Runpod, UpdateWorkflowDtoCredentialsItem_S3, @@ -4701,6 +4938,7 @@ UpdateWorkflowDtoTranscriber_Gladia, UpdateWorkflowDtoTranscriber_Google, UpdateWorkflowDtoTranscriber_Openai, + UpdateWorkflowDtoTranscriber_Reson8, UpdateWorkflowDtoTranscriber_Soniox, UpdateWorkflowDtoTranscriber_Speechmatics, UpdateWorkflowDtoTranscriber_Talkscriber, @@ -4723,7 +4961,6 @@ UpdateWorkflowDtoVoice_RimeAi, UpdateWorkflowDtoVoice_Sesame, UpdateWorkflowDtoVoice_SmallestAi, - UpdateWorkflowDtoVoice_Tavus, UpdateWorkflowDtoVoice_Vapi, UpdateWorkflowDtoVoice_Wellsaid, UpdateWorkflowDtoVoice_Xai, @@ -4731,10 +4968,13 @@ UpdateWorkflowDtoVoicemailDetectionZero, UpdateXAiCredentialDto, UpdateXAiCredentialDtoProvider, - User, UserMessage, UserMessageConfidenceSource, UserMessageMetadata, + UserWithRole, + UserWithRoleRole, + UserWithRoleRoleZero, + ValidateBackgroundSoundUrlDto, VapiCost, VapiCostSubType, VapiModel, @@ -4888,6 +5128,7 @@ WorkflowCredentialsItem_Openrouter, WorkflowCredentialsItem_PerplexityAi, WorkflowCredentialsItem_Playht, + WorkflowCredentialsItem_Reson8, WorkflowCredentialsItem_RimeAi, WorkflowCredentialsItem_Runpod, WorkflowCredentialsItem_S3, @@ -4921,6 +5162,7 @@ WorkflowNodesItem_Tool, WorkflowOpenAiModel, WorkflowOpenAiModelModel, + WorkflowOpenAiModelReasoningEffort, WorkflowOverrides, WorkflowTranscriber, WorkflowTranscriber_11Labs, @@ -4932,6 +5174,7 @@ WorkflowTranscriber_Gladia, WorkflowTranscriber_Google, WorkflowTranscriber_Openai, + WorkflowTranscriber_Reson8, WorkflowTranscriber_Soniox, WorkflowTranscriber_Speechmatics, WorkflowTranscriber_Talkscriber, @@ -4981,6 +5224,7 @@ WorkflowUserEditableCredentialsItem_Openrouter, WorkflowUserEditableCredentialsItem_PerplexityAi, WorkflowUserEditableCredentialsItem_Playht, + WorkflowUserEditableCredentialsItem_Reson8, WorkflowUserEditableCredentialsItem_RimeAi, WorkflowUserEditableCredentialsItem_Runpod, WorkflowUserEditableCredentialsItem_S3, @@ -5018,6 +5262,7 @@ WorkflowUserEditableTranscriber_Gladia, WorkflowUserEditableTranscriber_Google, WorkflowUserEditableTranscriber_Openai, + WorkflowUserEditableTranscriber_Reson8, WorkflowUserEditableTranscriber_Soniox, WorkflowUserEditableTranscriber_Speechmatics, WorkflowUserEditableTranscriber_Talkscriber, @@ -5040,7 +5285,6 @@ WorkflowUserEditableVoice_RimeAi, WorkflowUserEditableVoice_Sesame, WorkflowUserEditableVoice_SmallestAi, - WorkflowUserEditableVoice_Tavus, WorkflowUserEditableVoice_Vapi, WorkflowUserEditableVoice_Wellsaid, WorkflowUserEditableVoice_Xai, @@ -5063,7 +5307,6 @@ WorkflowVoice_RimeAi, WorkflowVoice_Sesame, WorkflowVoice_SmallestAi, - WorkflowVoice_Tavus, WorkflowVoice_Vapi, WorkflowVoice_Wellsaid, WorkflowVoice_Xai, @@ -5107,14 +5350,18 @@ XssSecurityFilterType, ) from .errors import ( + BadGatewayError, BadRequestError, ConflictError, ForbiddenError, + GatewayTimeoutError, InternalServerError, NotFoundError, PaymentRequiredError, ServiceUnavailableError, + TooManyRequestsError, UnauthorizedError, + UnprocessableEntityError, ) from . import ( analytics, @@ -5125,6 +5372,8 @@ chats, eval, files, + guardrail_packs, + guardrail_rules, insight, knowledge_bases_v_2, observability_scorecard, @@ -5187,6 +5436,7 @@ UpdateAssistantDtoCredentialsItem_Openrouter, UpdateAssistantDtoCredentialsItem_PerplexityAi, UpdateAssistantDtoCredentialsItem_Playht, + UpdateAssistantDtoCredentialsItem_Reson8, UpdateAssistantDtoCredentialsItem_RimeAi, UpdateAssistantDtoCredentialsItem_Runpod, UpdateAssistantDtoCredentialsItem_S3, @@ -5235,6 +5485,7 @@ UpdateAssistantDtoTranscriber_Gladia, UpdateAssistantDtoTranscriber_Google, UpdateAssistantDtoTranscriber_Openai, + UpdateAssistantDtoTranscriber_Reson8, UpdateAssistantDtoTranscriber_Soniox, UpdateAssistantDtoTranscriber_Speechmatics, UpdateAssistantDtoTranscriber_Talkscriber, @@ -5257,7 +5508,6 @@ UpdateAssistantDtoVoice_RimeAi, UpdateAssistantDtoVoice_Sesame, UpdateAssistantDtoVoice_SmallestAi, - UpdateAssistantDtoVoice_Tavus, UpdateAssistantDtoVoice_Vapi, UpdateAssistantDtoVoice_Wellsaid, UpdateAssistantDtoVoice_Xai, @@ -5315,6 +5565,14 @@ UpdateEvalDtoType, ) from .files import CreateFilesRequestPurpose, ListFilesRequestPurpose + from .guardrail_packs import ( + GuardrailPacksControllerPaginatedRequestSortBy, + GuardrailPacksControllerPaginatedRequestSortOrder, + ) + from .guardrail_rules import ( + GuardrailRulesControllerPaginatedRequestSortBy, + GuardrailRulesControllerPaginatedRequestSortOrder, + ) from .insight import ( InsightControllerCreateRequest, InsightControllerCreateRequest_Bar, @@ -5446,6 +5704,7 @@ SimulationRunControllerFindItemsRequestSortBy, SimulationRunControllerFindItemsRequestSortOrder, SimulationRunControllerFindItemsRequestStatus, + SimulationRunControllerFindItemsResponse, ) from .simulation_scenarios import ( ScenarioControllerFindAllRequestSortBy, @@ -5457,6 +5716,7 @@ from .simulation_suites import ( SimulationSuiteControllerFindAllRequestSortBy, SimulationSuiteControllerFindAllRequestSortOrder, + SimulationSuiteControllerFindAllResponse, ) from .simulations import SimulationControllerFindAllRequestSortBy, SimulationControllerFindAllRequestSortOrder from .structured_outputs import ( @@ -5660,6 +5920,7 @@ from .traffic_allocations import ( CreateTrafficAllocationDtoAllocationIntent, TrafficAllocationControllerFindAllPaginatedRequestSortOrder, + TrafficAllocationControllerMetricsGetRequestBucket, ) from .version import __version__ _dynamic_imports: typing.Dict[str, str] = { @@ -5687,6 +5948,7 @@ "AnthropicBedrockModel": ".types", "AnthropicBedrockModelFallbackModelsItem": ".types", "AnthropicBedrockModelModel": ".types", + "AnthropicBedrockModelReasoningEffort": ".types", "AnthropicBedrockModelToolsItem": ".types", "AnthropicBedrockModelToolsItem_ApiRequest": ".types", "AnthropicBedrockModelToolsItem_Bash": ".types", @@ -5715,6 +5977,7 @@ "AnthropicCredentialProvider": ".types", "AnthropicModel": ".types", "AnthropicModelModel": ".types", + "AnthropicModelReasoningEffort": ".types", "AnthropicModelToolsItem": ".types", "AnthropicModelToolsItem_ApiRequest": ".types", "AnthropicModelToolsItem_Bash": ".types", @@ -5832,6 +6095,7 @@ "AssistantCredentialsItem_Openrouter": ".types", "AssistantCredentialsItem_PerplexityAi": ".types", "AssistantCredentialsItem_Playht": ".types", + "AssistantCredentialsItem_Reson8": ".types", "AssistantCredentialsItem_RimeAi": ".types", "AssistantCredentialsItem_Runpod": ".types", "AssistantCredentialsItem_S3": ".types", @@ -5896,6 +6160,7 @@ "AssistantDraftCredentialsItem_Openrouter": ".types", "AssistantDraftCredentialsItem_PerplexityAi": ".types", "AssistantDraftCredentialsItem_Playht": ".types", + "AssistantDraftCredentialsItem_Reson8": ".types", "AssistantDraftCredentialsItem_RimeAi": ".types", "AssistantDraftCredentialsItem_Runpod": ".types", "AssistantDraftCredentialsItem_S3": ".types", @@ -5946,6 +6211,7 @@ "AssistantDraftTranscriber_Gladia": ".types", "AssistantDraftTranscriber_Google": ".types", "AssistantDraftTranscriber_Openai": ".types", + "AssistantDraftTranscriber_Reson8": ".types", "AssistantDraftTranscriber_Soniox": ".types", "AssistantDraftTranscriber_Speechmatics": ".types", "AssistantDraftTranscriber_Talkscriber": ".types", @@ -5968,17 +6234,16 @@ "AssistantDraftVoice_RimeAi": ".types", "AssistantDraftVoice_Sesame": ".types", "AssistantDraftVoice_SmallestAi": ".types", - "AssistantDraftVoice_Tavus": ".types", "AssistantDraftVoice_Vapi": ".types", "AssistantDraftVoice_Wellsaid": ".types", "AssistantDraftVoice_Xai": ".types", "AssistantDraftVoicemailDetection": ".types", "AssistantDraftVoicemailDetectionZero": ".types", "AssistantFirstMessageMode": ".types", - "AssistantHookAssistantSpeechInterrupted": ".types", - "AssistantHookCallEnding": ".types", - "AssistantHookCustomerSpeechInterrupted": ".types", "AssistantHooksItem": ".types", + "AssistantManagedConflictResponseDto": ".types", + "AssistantManagedConflictResponseDtoError": ".types", + "AssistantManagedVapiAgentsDto": ".types", "AssistantMessage": ".types", "AssistantMessageEvaluationContinuePlan": ".types", "AssistantMessageJudgePlanAi": ".types", @@ -6054,6 +6319,7 @@ "AssistantOverridesCredentialsItem_Openrouter": ".types", "AssistantOverridesCredentialsItem_PerplexityAi": ".types", "AssistantOverridesCredentialsItem_Playht": ".types", + "AssistantOverridesCredentialsItem_Reson8": ".types", "AssistantOverridesCredentialsItem_RimeAi": ".types", "AssistantOverridesCredentialsItem_Runpod": ".types", "AssistantOverridesCredentialsItem_S3": ".types", @@ -6126,6 +6392,7 @@ "AssistantOverridesTranscriber_Gladia": ".types", "AssistantOverridesTranscriber_Google": ".types", "AssistantOverridesTranscriber_Openai": ".types", + "AssistantOverridesTranscriber_Reson8": ".types", "AssistantOverridesTranscriber_Soniox": ".types", "AssistantOverridesTranscriber_Speechmatics": ".types", "AssistantOverridesTranscriber_Talkscriber": ".types", @@ -6148,7 +6415,6 @@ "AssistantOverridesVoice_RimeAi": ".types", "AssistantOverridesVoice_Sesame": ".types", "AssistantOverridesVoice_SmallestAi": ".types", - "AssistantOverridesVoice_Tavus": ".types", "AssistantOverridesVoice_Vapi": ".types", "AssistantOverridesVoice_Wellsaid": ".types", "AssistantOverridesVoice_Xai": ".types", @@ -6156,7 +6422,6 @@ "AssistantOverridesVoicemailDetectionZero": ".types", "AssistantPaginatedResponse": ".types", "AssistantPinnedConflictResponseDto": ".types", - "AssistantPinnedConflictResponseDtoError": ".types", "AssistantServerMessagesItem": ".types", "AssistantSpeechWordAlignmentTiming": ".types", "AssistantSpeechWordProgressTiming": ".types", @@ -6171,12 +6436,12 @@ "AssistantTranscriber_Gladia": ".types", "AssistantTranscriber_Google": ".types", "AssistantTranscriber_Openai": ".types", + "AssistantTranscriber_Reson8": ".types", "AssistantTranscriber_Soniox": ".types", "AssistantTranscriber_Speechmatics": ".types", "AssistantTranscriber_Talkscriber": ".types", "AssistantTranscriber_Vapi": ".types", "AssistantTranscriber_Xai": ".types", - "AssistantUserEditable": ".types", "AssistantVersion": ".types", "AssistantVersionBackgroundSound": ".types", "AssistantVersionBackgroundSoundZero": ".types", @@ -6222,6 +6487,7 @@ "AssistantVersionCredentialsItem_Openrouter": ".types", "AssistantVersionCredentialsItem_PerplexityAi": ".types", "AssistantVersionCredentialsItem_Playht": ".types", + "AssistantVersionCredentialsItem_Reson8": ".types", "AssistantVersionCredentialsItem_RimeAi": ".types", "AssistantVersionCredentialsItem_Runpod": ".types", "AssistantVersionCredentialsItem_S3": ".types", @@ -6272,6 +6538,7 @@ "AssistantVersionTranscriber_Gladia": ".types", "AssistantVersionTranscriber_Google": ".types", "AssistantVersionTranscriber_Openai": ".types", + "AssistantVersionTranscriber_Reson8": ".types", "AssistantVersionTranscriber_Soniox": ".types", "AssistantVersionTranscriber_Speechmatics": ".types", "AssistantVersionTranscriber_Talkscriber": ".types", @@ -6294,7 +6561,6 @@ "AssistantVersionVoice_RimeAi": ".types", "AssistantVersionVoice_Sesame": ".types", "AssistantVersionVoice_SmallestAi": ".types", - "AssistantVersionVoice_Tavus": ".types", "AssistantVersionVoice_Vapi": ".types", "AssistantVersionVoice_Wellsaid": ".types", "AssistantVersionVoice_Xai": ".types", @@ -6317,7 +6583,6 @@ "AssistantVoice_RimeAi": ".types", "AssistantVoice_Sesame": ".types", "AssistantVoice_SmallestAi": ".types", - "AssistantVoice_Tavus": ".types", "AssistantVoice_Vapi": ".types", "AssistantVoice_Wellsaid": ".types", "AssistantVoice_Xai": ".types", @@ -6353,6 +6618,7 @@ "BackgroundSoundUrlValidationResultReason": ".types", "BackgroundSpeechDenoisingPlan": ".types", "BackoffPlan": ".types", + "BadGatewayError": ".errors", "BadRequestError": ".errors", "BarInsight": ".types", "BarInsightFromCallTable": ".types", @@ -6425,6 +6691,49 @@ "CallDestination_Number": ".types", "CallDestination_Sip": ".types", "CallEndedReason": ".types", + "CallHealthDashboardAffectedCallDto": ".types", + "CallHealthDashboardAffectedCallDtoCallAvailability": ".types", + "CallHealthDashboardAffectedCallsResponseDto": ".types", + "CallHealthDashboardApiErrorDto": ".types", + "CallHealthDashboardAssignmentCoverageDto": ".types", + "CallHealthDashboardAssistantGoalsDto": ".types", + "CallHealthDashboardAssistantGoalsResponseDto": ".types", + "CallHealthDashboardAssistantListResponseDto": ".types", + "CallHealthDashboardAssistantOverviewDto": ".types", + "CallHealthDashboardAssistantReferenceDto": ".types", + "CallHealthDashboardAssistantSummaryResponseDto": ".types", + "CallHealthDashboardClassificationCoverageDto": ".types", + "CallHealthDashboardCoverageDto": ".types", + "CallHealthDashboardDiscoveryCoverageDto": ".types", + "CallHealthDashboardFacetsDto": ".types", + "CallHealthDashboardFacetsDtoStatusesItem": ".types", + "CallHealthDashboardGoalDailyDto": ".types", + "CallHealthDashboardGoalDefinitionDto": ".types", + "CallHealthDashboardGoalGapsDto": ".types", + "CallHealthDashboardGoalOptionDto": ".types", + "CallHealthDashboardGoalSummaryDto": ".types", + "CallHealthDashboardIntakeCoverageDto": ".types", + "CallHealthDashboardIntakeCoverageDtoDeliveryMode": ".types", + "CallHealthDashboardIntakeCoverageDtoEndToEndCoverage": ".types", + "CallHealthDashboardIssueActivityDto": ".types", + "CallHealthDashboardIssueActivityDtoAction": ".types", + "CallHealthDashboardIssueActivityListResponseDto": ".types", + "CallHealthDashboardIssueCoverageDto": ".types", + "CallHealthDashboardIssueCoverageDtoState": ".types", + "CallHealthDashboardIssueDailyDto": ".types", + "CallHealthDashboardIssueDefinitionDto": ".types", + "CallHealthDashboardIssueDetailResponseDto": ".types", + "CallHealthDashboardIssueListResponseDto": ".types", + "CallHealthDashboardIssueReferenceDto": ".types", + "CallHealthDashboardIssueReferenceDtoStatus": ".types", + "CallHealthDashboardIssueSummaryDto": ".types", + "CallHealthDashboardIssueSummaryDtoStatus": ".types", + "CallHealthDashboardSeriesPageDto": ".types", + "CallHealthDashboardSweepCoverageDto": ".types", + "CallHealthDashboardSweepCoverageDtoState": ".types", + "CallHealthDashboardTriageRequestDto": ".types", + "CallHealthDashboardTriageRequestDtoAction": ".types", + "CallHealthDashboardWindowDto": ".types", "CallHookAssistantSpeechInterrupted": ".types", "CallHookAssistantSpeechInterruptedDoItem": ".types", "CallHookAssistantSpeechInterruptedDoItem_MessageAdd": ".types", @@ -6880,6 +7189,7 @@ "ConversationNodeTranscriber_Gladia": ".types", "ConversationNodeTranscriber_Google": ".types", "ConversationNodeTranscriber_Openai": ".types", + "ConversationNodeTranscriber_Reson8": ".types", "ConversationNodeTranscriber_Soniox": ".types", "ConversationNodeTranscriber_Speechmatics": ".types", "ConversationNodeTranscriber_Talkscriber": ".types", @@ -6902,7 +7212,6 @@ "ConversationNodeVoice_RimeAi": ".types", "ConversationNodeVoice_Sesame": ".types", "ConversationNodeVoice_SmallestAi": ".types", - "ConversationNodeVoice_Tavus": ".types", "ConversationNodeVoice_Vapi": ".types", "ConversationNodeVoice_Wellsaid": ".types", "ConversationNodeVoice_Xai": ".types", @@ -6967,6 +7276,7 @@ "CreateAssistantDraftDtoCredentialsItem_Openrouter": ".types", "CreateAssistantDraftDtoCredentialsItem_PerplexityAi": ".types", "CreateAssistantDraftDtoCredentialsItem_Playht": ".types", + "CreateAssistantDraftDtoCredentialsItem_Reson8": ".types", "CreateAssistantDraftDtoCredentialsItem_RimeAi": ".types", "CreateAssistantDraftDtoCredentialsItem_Runpod": ".types", "CreateAssistantDraftDtoCredentialsItem_S3": ".types", @@ -7015,6 +7325,7 @@ "CreateAssistantDraftDtoTranscriber_Gladia": ".types", "CreateAssistantDraftDtoTranscriber_Google": ".types", "CreateAssistantDraftDtoTranscriber_Openai": ".types", + "CreateAssistantDraftDtoTranscriber_Reson8": ".types", "CreateAssistantDraftDtoTranscriber_Soniox": ".types", "CreateAssistantDraftDtoTranscriber_Speechmatics": ".types", "CreateAssistantDraftDtoTranscriber_Talkscriber": ".types", @@ -7037,7 +7348,6 @@ "CreateAssistantDraftDtoVoice_RimeAi": ".types", "CreateAssistantDraftDtoVoice_Sesame": ".types", "CreateAssistantDraftDtoVoice_SmallestAi": ".types", - "CreateAssistantDraftDtoVoice_Tavus": ".types", "CreateAssistantDraftDtoVoice_Vapi": ".types", "CreateAssistantDraftDtoVoice_Wellsaid": ".types", "CreateAssistantDraftDtoVoice_Xai": ".types", @@ -7088,6 +7398,7 @@ "CreateAssistantDtoCredentialsItem_Openrouter": ".types", "CreateAssistantDtoCredentialsItem_PerplexityAi": ".types", "CreateAssistantDtoCredentialsItem_Playht": ".types", + "CreateAssistantDtoCredentialsItem_Reson8": ".types", "CreateAssistantDtoCredentialsItem_RimeAi": ".types", "CreateAssistantDtoCredentialsItem_Runpod": ".types", "CreateAssistantDtoCredentialsItem_S3": ".types", @@ -7136,6 +7447,7 @@ "CreateAssistantDtoTranscriber_Gladia": ".types", "CreateAssistantDtoTranscriber_Google": ".types", "CreateAssistantDtoTranscriber_Openai": ".types", + "CreateAssistantDtoTranscriber_Reson8": ".types", "CreateAssistantDtoTranscriber_Soniox": ".types", "CreateAssistantDtoTranscriber_Speechmatics": ".types", "CreateAssistantDtoTranscriber_Talkscriber": ".types", @@ -7158,7 +7470,6 @@ "CreateAssistantDtoVoice_RimeAi": ".types", "CreateAssistantDtoVoice_Sesame": ".types", "CreateAssistantDtoVoice_SmallestAi": ".types", - "CreateAssistantDtoVoice_Tavus": ".types", "CreateAssistantDtoVoice_Vapi": ".types", "CreateAssistantDtoVoice_Wellsaid": ".types", "CreateAssistantDtoVoice_Xai": ".types", @@ -7401,6 +7712,7 @@ "CreateQueryToolDtoMessagesItem_RequestFailed": ".types", "CreateQueryToolDtoMessagesItem_RequestResponseDelayed": ".types", "CreateQueryToolDtoMessagesItem_RequestStart": ".types", + "CreateReson8CredentialDto": ".types", "CreateResponseChatsResponse": ".chats", "CreateRimeAiCredentialDto": ".types", "CreateRunpodCredentialDto": ".types", @@ -7633,6 +7945,7 @@ "CreateVonagePhoneNumberDtoHooksItem_CallEnding": ".types", "CreateVonagePhoneNumberDtoHooksItem_CallRinging": ".types", "CreateWebCallDto": ".types", + "CreateWebCallDtoVideoRecordingStartMode": ".types", "CreateWebChatDto": ".types", "CreateWebChatDtoInput": ".types", "CreateWebChatDtoInputOneItem": ".types", @@ -7687,6 +8000,7 @@ "CreateWorkflowDtoCredentialsItem_Openrouter": ".types", "CreateWorkflowDtoCredentialsItem_PerplexityAi": ".types", "CreateWorkflowDtoCredentialsItem_Playht": ".types", + "CreateWorkflowDtoCredentialsItem_Reson8": ".types", "CreateWorkflowDtoCredentialsItem_RimeAi": ".types", "CreateWorkflowDtoCredentialsItem_Runpod": ".types", "CreateWorkflowDtoCredentialsItem_S3": ".types", @@ -7724,6 +8038,7 @@ "CreateWorkflowDtoTranscriber_Gladia": ".types", "CreateWorkflowDtoTranscriber_Google": ".types", "CreateWorkflowDtoTranscriber_Openai": ".types", + "CreateWorkflowDtoTranscriber_Reson8": ".types", "CreateWorkflowDtoTranscriber_Soniox": ".types", "CreateWorkflowDtoTranscriber_Speechmatics": ".types", "CreateWorkflowDtoTranscriber_Talkscriber": ".types", @@ -7746,7 +8061,6 @@ "CreateWorkflowDtoVoice_RimeAi": ".types", "CreateWorkflowDtoVoice_Sesame": ".types", "CreateWorkflowDtoVoice_SmallestAi": ".types", - "CreateWorkflowDtoVoice_Tavus": ".types", "CreateWorkflowDtoVoice_Vapi": ".types", "CreateWorkflowDtoVoice_Wellsaid": ".types", "CreateWorkflowDtoVoice_Xai": ".types", @@ -7942,6 +8256,7 @@ "Eval": ".types", "EvalAnthropicModel": ".types", "EvalAnthropicModelModel": ".types", + "EvalAnthropicModelReasoningEffort": ".types", "EvalControllerGetPaginatedRequestSortBy": ".eval", "EvalControllerGetPaginatedRequestSortOrder": ".eval", "EvalControllerGetRunsPaginatedRequestSortBy": ".eval", @@ -7999,7 +8314,6 @@ "ExportSessionDtoFormat": ".types", "ExportSessionDtoSortBy": ".types", "ExportSessionDtoSortOrder": ".types", - "FailedEdgeCondition": ".types", "FallbackAssemblyAiTranscriber": ".types", "FallbackAssemblyAiTranscriberLanguage": ".types", "FallbackAssemblyAiTranscriberLanguageCodesItem": ".types", @@ -8020,8 +8334,6 @@ "FallbackCustomTranscriber": ".types", "FallbackCustomVoice": ".types", "FallbackDeepgramTranscriber": ".types", - "FallbackDeepgramTranscriberLanguage": ".types", - "FallbackDeepgramTranscriberModel": ".types", "FallbackDeepgramTranscriberRedactionItem": ".types", "FallbackDeepgramVoice": ".types", "FallbackDeepgramVoiceId": ".types", @@ -8062,7 +8374,6 @@ "FallbackMinimaxVoiceProvider": ".types", "FallbackMinimaxVoiceRegion": ".types", "FallbackMinimaxVoiceSubtitleType": ".types", - "FallbackNeetsVoice": ".types", "FallbackNeuphonicVoice": ".types", "FallbackNeuphonicVoiceModel": ".types", "FallbackOpenAiTranscriber": ".types", @@ -8089,7 +8400,6 @@ "FallbackPlanVoicesItem_RimeAi": ".types", "FallbackPlanVoicesItem_Sesame": ".types", "FallbackPlanVoicesItem_SmallestAi": ".types", - "FallbackPlanVoicesItem_Tavus": ".types", "FallbackPlanVoicesItem_Vapi": ".types", "FallbackPlanVoicesItem_Wellsaid": ".types", "FallbackPlanVoicesItem_Xai": ".types", @@ -8099,6 +8409,9 @@ "FallbackPlayHtVoiceIdEnum": ".types", "FallbackPlayHtVoiceLanguage": ".types", "FallbackPlayHtVoiceModel": ".types", + "FallbackReson8Transcriber": ".types", + "FallbackReson8TranscriberFillerMode": ".types", + "FallbackReson8TranscriberModel": ".types", "FallbackRimeAiVoice": ".types", "FallbackRimeAiVoiceId": ".types", "FallbackRimeAiVoiceIdEnum": ".types", @@ -8124,8 +8437,6 @@ "FallbackTalkscriberTranscriberLanguage": ".types", "FallbackTalkscriberTranscriberModel": ".types", "FallbackTavusVoice": ".types", - "FallbackTavusVoiceVoiceId": ".types", - "FallbackTavusVoiceVoiceIdZero": ".types", "FallbackTranscriberPlan": ".types", "FallbackTranscriberPlanTranscribersItem": ".types", "FallbackTranscriberPlanTranscribersItem_11Labs": ".types", @@ -8137,6 +8448,7 @@ "FallbackTranscriberPlanTranscribersItem_Gladia": ".types", "FallbackTranscriberPlanTranscribersItem_Google": ".types", "FallbackTranscriberPlanTranscribersItem_Openai": ".types", + "FallbackTranscriberPlanTranscribersItem_Reson8": ".types", "FallbackTranscriberPlanTranscribersItem_Soniox": ".types", "FallbackTranscriberPlanTranscribersItem_Speechmatics": ".types", "FallbackTranscriberPlanTranscribersItem_Talkscriber": ".types", @@ -8182,7 +8494,6 @@ "FormatPlanReplacementsItem_Regex": ".types", "FourierDenoisingPlan": ".types", "FunctionCall": ".types", - "FunctionCallAssistantHookAction": ".types", "FunctionCallHookAction": ".types", "FunctionCallHookActionMessagesItem": ".types", "FunctionCallHookActionMessagesItem_RequestComplete": ".types", @@ -8203,6 +8514,7 @@ "FunctionToolWithToolCallMessagesItem_RequestFailed": ".types", "FunctionToolWithToolCallMessagesItem_RequestResponseDelayed": ".types", "FunctionToolWithToolCallMessagesItem_RequestStart": ".types", + "GatewayTimeoutError": ".errors", "GcpCredential": ".types", "GcpCredentialProvider": ".types", "GcpKey": ".types", @@ -8210,6 +8522,7 @@ "GeminiMultimodalLivePrebuiltVoiceConfigVoiceName": ".types", "GeminiMultimodalLiveSpeechConfig": ".types", "GeminiMultimodalLiveVoiceConfig": ".types", + "GenerateScenariosDto": ".types", "GenerateScenariosResponse": ".types", "GeneratedScenario": ".types", "GeneratedScenarioCategory": ".types", @@ -8261,6 +8574,8 @@ "GetTrafficAllocationLatestDto": ".types", "GetTrafficAllocationPaginatedDto": ".types", "GetTrafficAllocationPaginatedDtoSortOrder": ".types", + "GetTrafficTabMetricsDto": ".types", + "GetTrafficTabMetricsDtoBucket": ".types", "GhlTool": ".types", "GhlToolMessagesItem": ".types", "GhlToolMessagesItem_RequestComplete": ".types", @@ -8347,6 +8662,13 @@ "GoHighLevelCredentialProvider": ".types", "GoHighLevelMcpCredential": ".types", "GoHighLevelMcpCredentialProvider": ".types", + "GoalEvaluationCurrentBatchRequestDto": ".types", + "GoalEvaluationCurrentBatchResponseDto": ".types", + "GoalEvaluationCurrentCallRequestDto": ".types", + "GoalEvaluationCurrentCallResponseDto": ".types", + "GoalEvaluationCurrentDto": ".types", + "GoalEvaluationCurrentDtoGoalOutcome": ".types", + "GoalEvaluationCurrentDtoProcessingState": ".types", "GoogleCalendarCheckAvailabilityTool": ".types", "GoogleCalendarCheckAvailabilityToolMessagesItem": ".types", "GoogleCalendarCheckAvailabilityToolMessagesItem_RequestComplete": ".types", @@ -8455,6 +8777,27 @@ "GroupConditionConditionsItem_Liquid": ".types", "GroupConditionConditionsItem_Regex": ".types", "GroupConditionOperator": ".types", + "GuardrailAuthoring": ".types", + "GuardrailAuthoringMode": ".types", + "GuardrailEscalateAction": ".types", + "GuardrailEscalateActionType": ".types", + "GuardrailFixedResponseAction": ".types", + "GuardrailFixedResponseActionType": ".types", + "GuardrailPack": ".types", + "GuardrailPacksControllerPaginatedRequestSortBy": ".guardrail_packs", + "GuardrailPacksControllerPaginatedRequestSortOrder": ".guardrail_packs", + "GuardrailPacksPage": ".types", + "GuardrailRedirectAction": ".types", + "GuardrailRedirectActionType": ".types", + "GuardrailRule": ".types", + "GuardrailRuleAction": ".types", + "GuardrailRuleActionZero": ".types", + "GuardrailRuleActionZero_Fixed": ".types", + "GuardrailRuleActionZero_Redirect": ".types", + "GuardrailRuleSensitivity": ".types", + "GuardrailRulesControllerPaginatedRequestSortBy": ".guardrail_rules", + "GuardrailRulesControllerPaginatedRequestSortOrder": ".guardrail_rules", + "GuardrailRulesPage": ".types", "HandoffDestinationAssistant": ".types", "HandoffDestinationAssistantContextEngineeringPlan": ".types", "HandoffDestinationAssistantContextEngineeringPlan_All": ".types", @@ -8703,7 +9046,6 @@ "LmntVoiceId": ".types", "LmntVoiceIdEnum": ".types", "LmntVoiceLanguage": ".types", - "LogicEdgeCondition": ".types", "MakeCredential": ".types", "MakeCredentialProvider": ".types", "MakeTool": ".types", @@ -8780,13 +9122,13 @@ "MistralCredential": ".types", "MistralCredentialProvider": ".types", "ModelCost": ".types", + "ModelCostServiceTierBreakdown": ".types", "ModelDeprecationNotice": ".types", "ModelDeprecationNoticeReplacementStatus": ".types", "Monitor": ".types", "MonitorPlan": ".types", "MonitorResult": ".types", "Mono": ".types", - "NeetsVoice": ".types", "NeuphonicCredential": ".types", "NeuphonicCredentialProvider": ".types", "NeuphonicVoice": ".types", @@ -9035,7 +9377,6 @@ "RecordingConsentPlanStayOnLineVoice_RimeAi": ".types", "RecordingConsentPlanStayOnLineVoice_Sesame": ".types", "RecordingConsentPlanStayOnLineVoice_SmallestAi": ".types", - "RecordingConsentPlanStayOnLineVoice_Tavus": ".types", "RecordingConsentPlanStayOnLineVoice_Vapi": ".types", "RecordingConsentPlanStayOnLineVoice_Wellsaid": ".types", "RecordingConsentPlanStayOnLineVoice_Xai": ".types", @@ -9058,7 +9399,6 @@ "RecordingConsentPlanVerbalVoice_RimeAi": ".types", "RecordingConsentPlanVerbalVoice_Sesame": ".types", "RecordingConsentPlanVerbalVoice_SmallestAi": ".types", - "RecordingConsentPlanVerbalVoice_Tavus": ".types", "RecordingConsentPlanVerbalVoice_Vapi": ".types", "RecordingConsentPlanVerbalVoice_Wellsaid": ".types", "RecordingConsentPlanVerbalVoice_Xai": ".types", @@ -9086,6 +9426,11 @@ "RelayTargetOptions": ".types", "RelayTargetOptionsType": ".types", "RelayTargetSquad": ".types", + "Reson8Credential": ".types", + "Reson8CredentialProvider": ".types", + "Reson8Transcriber": ".types", + "Reson8TranscriberFillerMode": ".types", + "Reson8TranscriberModel": ".types", "ResponseCompletedEvent": ".types", "ResponseCompletedEventType": ".types", "ResponseErrorEvent": ".types", @@ -9118,13 +9463,11 @@ "S3CompatibleStorageCredentialProvider": ".types", "S3Credential": ".types", "S3CredentialProvider": ".types", - "SayAssistantHookAction": ".types", "SayHookAction": ".types", "SayHookActionExact": ".types", "SayHookActionPrompt": ".types", "SayHookActionPromptOneItem": ".types", "SayPhoneNumberHookAction": ".types", - "SbcConfiguration": ".types", "Scenario": ".types", "ScenarioControllerFindAllRequestSortBy": ".simulation_scenarios", "ScenarioControllerFindAllRequestSortOrder": ".simulation_scenarios", @@ -9449,6 +9792,8 @@ "ServerMessageVoiceRequestPhoneNumber_Vonage": ".types", "ServerMessageVoiceRequestType": ".types", "ServiceUnavailableError": ".errors", + "ServiceUnavailableErrorBody": ".types", + "ServiceUnavailableErrorBodyError": ".types", "SesameVoice": ".types", "SesameVoiceModel": ".types", "Session": ".types", @@ -9471,6 +9816,22 @@ "SimulationHookInclude": ".types", "SimulationHookWebhookAction": ".types", "SimulationHookWebhookActionType": ".types", + "SimulationOnboardingCoverageGapDto": ".types", + "SimulationOnboardingCoverageGapDtoReason": ".types", + "SimulationOnboardingErrorDto": ".types", + "SimulationOnboardingErrorDtoCode": ".types", + "SimulationOnboardingOpenQuestionDto": ".types", + "SimulationOnboardingRequirementDto": ".types", + "SimulationOnboardingRequirementDtoTag": ".types", + "SimulationOnboardingRequirementsDraftDto": ".types", + "SimulationOnboardingSuiteCoverageDto": ".types", + "SimulationOnboardingSuiteDocsDto": ".types", + "SimulationOnboardingSuiteEditDto": ".types", + "SimulationOnboardingSuiteRefDto": ".types", + "SimulationOnboardingSuiteSimulationDto": ".types", + "SimulationOnboardingSuiteViewDto": ".types", + "SimulationOnboardingToolGapDto": ".types", + "SimulationOnboardingToolGapDtoReason": ".types", "SimulationRun": ".types", "SimulationRunConfiguration": ".types", "SimulationRunControllerFindAllRequestFilterStatus": ".simulation_runs", @@ -9482,6 +9843,7 @@ "SimulationRunControllerFindItemsRequestSortBy": ".simulation_runs", "SimulationRunControllerFindItemsRequestSortOrder": ".simulation_runs", "SimulationRunControllerFindItemsRequestStatus": ".simulation_runs", + "SimulationRunControllerFindItemsResponse": ".simulation_runs", "SimulationRunItem": ".types", "SimulationRunItemCallMetadata": ".types", "SimulationRunItemCallMonitor": ".types", @@ -9493,7 +9855,11 @@ "SimulationRunItemImprovements": ".types", "SimulationRunItemMetadata": ".types", "SimulationRunItemResults": ".types", + "SimulationRunItemResultsSkippedStructuredOutputsValue": ".types", + "SimulationRunItemResultsSkippedStructuredOutputsValueReason": ".types", + "SimulationRunItemResultsStructuredOutputsValue": ".types", "SimulationRunItemStatus": ".types", + "SimulationRunItemsPaginatedResponse": ".types", "SimulationRunListItem": ".types", "SimulationRunListItemSimulationsItem": ".types", "SimulationRunListItemSimulationsItem_Simulation": ".types", @@ -9524,8 +9890,10 @@ "SimulationSuite": ".types", "SimulationSuiteControllerFindAllRequestSortBy": ".simulation_suites", "SimulationSuiteControllerFindAllRequestSortOrder": ".simulation_suites", + "SimulationSuiteControllerFindAllResponse": ".simulation_suites", "SimulationSuiteTargetAssignment": ".types", "SimulationSuiteTargetAssignmentTargetType": ".types", + "SimulationSuitesPaginatedResponse": ".types", "SipAuthentication": ".types", "SipRequestTool": ".types", "SipRequestToolBody": ".types", @@ -9656,8 +10024,6 @@ "TavusCredential": ".types", "TavusCredentialProvider": ".types", "TavusVoice": ".types", - "TavusVoiceVoiceId": ".types", - "TavusVoiceVoiceIdZero": ".types", "TelnyxPhoneNumber": ".types", "TelnyxPhoneNumberFallbackDestination": ".types", "TelnyxPhoneNumberFallbackDestination_Number": ".types", @@ -9786,6 +10152,7 @@ "Token": ".types", "TokenRestrictions": ".types", "TokenTag": ".types", + "TooManyRequestsError": ".errors", "ToolCall": ".types", "ToolCallFunction": ".types", "ToolCallHookAction": ".types", @@ -9887,13 +10254,28 @@ "TrafficAllocationActorType": ".types", "TrafficAllocationAllocationIntent": ".types", "TrafficAllocationControllerFindAllPaginatedRequestSortOrder": ".traffic_allocations", + "TrafficAllocationControllerMetricsGetRequestBucket": ".traffic_allocations", "TrafficAllocationLatestResponseDto": ".types", "TrafficAllocationPaginatedResponse": ".types", "TrafficAllocationStaleConflictResponseDto": ".types", - "TrafficAllocationStaleConflictResponseDtoError": ".types", "TrafficAllocationTarget": ".types", "TrafficAllocationVersionConflictResponseDto": ".types", "TrafficAllocationVersionConflictResponseDtoError": ".types", + "TrafficTabCostBreakdownPerMinuteDto": ".types", + "TrafficTabCostPerMinuteDto": ".types", + "TrafficTabDurationSecondsDto": ".types", + "TrafficTabEndedReasonCountDto": ".types", + "TrafficTabLatencyMsDto": ".types", + "TrafficTabLatencyStatsDto": ".types", + "TrafficTabMetricsDto": ".types", + "TrafficTabMetricsWindowDto": ".types", + "TrafficTabMetricsWindowDtoBucket": ".types", + "TrafficTabStructuredOutputDto": ".types", + "TrafficTabStructuredOutputDtoType": ".types", + "TrafficTabStructuredOutputNumericDto": ".types", + "TrafficTabStructuredOutputValueCountDto": ".types", + "TrafficTabTimeseriesPointDto": ".types", + "TrafficTabVersionMetricsDto": ".types", "TranscriberCost": ".types", "TranscriptPlan": ".types", "TranscriptWordConfidence": ".types", @@ -9909,7 +10291,7 @@ "TransferAssistantBackgroundSound": ".types", "TransferAssistantBackgroundSoundZero": ".types", "TransferAssistantFirstMessageMode": ".types", - "TransferAssistantHookAction": ".types", + "TransferAssistantHooksItem": ".types", "TransferAssistantModel": ".types", "TransferAssistantModelProvider": ".types", "TransferAssistantTranscriber": ".types", @@ -9922,6 +10304,7 @@ "TransferAssistantTranscriber_Gladia": ".types", "TransferAssistantTranscriber_Google": ".types", "TransferAssistantTranscriber_Openai": ".types", + "TransferAssistantTranscriber_Reson8": ".types", "TransferAssistantTranscriber_Soniox": ".types", "TransferAssistantTranscriber_Speechmatics": ".types", "TransferAssistantTranscriber_Talkscriber": ".types", @@ -9944,7 +10327,6 @@ "TransferAssistantVoice_RimeAi": ".types", "TransferAssistantVoice_Sesame": ".types", "TransferAssistantVoice_SmallestAi": ".types", - "TransferAssistantVoice_Tavus": ".types", "TransferAssistantVoice_Vapi": ".types", "TransferAssistantVoice_Wellsaid": ".types", "TransferAssistantVoice_Xai": ".types", @@ -9998,6 +10380,128 @@ "TransferSuccessfulToolUserEditableMessagesItem_RequestResponseDelayed": ".types", "TransferSuccessfulToolUserEditableMessagesItem_RequestStart": ".types", "TransferSuccessfulToolUserEditableType": ".types", + "TransientAssistantDto": ".types", + "TransientAssistantDtoBackgroundSound": ".types", + "TransientAssistantDtoBackgroundSoundZero": ".types", + "TransientAssistantDtoClientMessagesItem": ".types", + "TransientAssistantDtoCredentialsItem": ".types", + "TransientAssistantDtoCredentialsItem_11Labs": ".types", + "TransientAssistantDtoCredentialsItem_Anthropic": ".types", + "TransientAssistantDtoCredentialsItem_AnthropicBedrock": ".types", + "TransientAssistantDtoCredentialsItem_Anyscale": ".types", + "TransientAssistantDtoCredentialsItem_AssemblyAi": ".types", + "TransientAssistantDtoCredentialsItem_Azure": ".types", + "TransientAssistantDtoCredentialsItem_AzureOpenai": ".types", + "TransientAssistantDtoCredentialsItem_ByoSipTrunk": ".types", + "TransientAssistantDtoCredentialsItem_Cartesia": ".types", + "TransientAssistantDtoCredentialsItem_Cerebras": ".types", + "TransientAssistantDtoCredentialsItem_Cloudflare": ".types", + "TransientAssistantDtoCredentialsItem_CustomCredential": ".types", + "TransientAssistantDtoCredentialsItem_CustomLlm": ".types", + "TransientAssistantDtoCredentialsItem_DeepSeek": ".types", + "TransientAssistantDtoCredentialsItem_Deepgram": ".types", + "TransientAssistantDtoCredentialsItem_Deepinfra": ".types", + "TransientAssistantDtoCredentialsItem_Email": ".types", + "TransientAssistantDtoCredentialsItem_Gcp": ".types", + "TransientAssistantDtoCredentialsItem_GhlOauth2Authorization": ".types", + "TransientAssistantDtoCredentialsItem_Gladia": ".types", + "TransientAssistantDtoCredentialsItem_Gohighlevel": ".types", + "TransientAssistantDtoCredentialsItem_Google": ".types", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization": ".types", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client": ".types", + "TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization": ".types", + "TransientAssistantDtoCredentialsItem_Groq": ".types", + "TransientAssistantDtoCredentialsItem_Hume": ".types", + "TransientAssistantDtoCredentialsItem_InflectionAi": ".types", + "TransientAssistantDtoCredentialsItem_Inworld": ".types", + "TransientAssistantDtoCredentialsItem_Langfuse": ".types", + "TransientAssistantDtoCredentialsItem_Lmnt": ".types", + "TransientAssistantDtoCredentialsItem_Make": ".types", + "TransientAssistantDtoCredentialsItem_Microsoft": ".types", + "TransientAssistantDtoCredentialsItem_Minimax": ".types", + "TransientAssistantDtoCredentialsItem_Mistral": ".types", + "TransientAssistantDtoCredentialsItem_Neuphonic": ".types", + "TransientAssistantDtoCredentialsItem_Openai": ".types", + "TransientAssistantDtoCredentialsItem_Openrouter": ".types", + "TransientAssistantDtoCredentialsItem_PerplexityAi": ".types", + "TransientAssistantDtoCredentialsItem_Playht": ".types", + "TransientAssistantDtoCredentialsItem_Reson8": ".types", + "TransientAssistantDtoCredentialsItem_RimeAi": ".types", + "TransientAssistantDtoCredentialsItem_Runpod": ".types", + "TransientAssistantDtoCredentialsItem_S3": ".types", + "TransientAssistantDtoCredentialsItem_S3Compatible": ".types", + "TransientAssistantDtoCredentialsItem_SlackOauth2Authorization": ".types", + "TransientAssistantDtoCredentialsItem_SlackWebhook": ".types", + "TransientAssistantDtoCredentialsItem_SmallestAi": ".types", + "TransientAssistantDtoCredentialsItem_Soniox": ".types", + "TransientAssistantDtoCredentialsItem_Speechmatics": ".types", + "TransientAssistantDtoCredentialsItem_Supabase": ".types", + "TransientAssistantDtoCredentialsItem_Tavus": ".types", + "TransientAssistantDtoCredentialsItem_TogetherAi": ".types", + "TransientAssistantDtoCredentialsItem_Twilio": ".types", + "TransientAssistantDtoCredentialsItem_Vonage": ".types", + "TransientAssistantDtoCredentialsItem_Webhook": ".types", + "TransientAssistantDtoCredentialsItem_Wellsaid": ".types", + "TransientAssistantDtoCredentialsItem_Xai": ".types", + "TransientAssistantDtoFirstMessageMode": ".types", + "TransientAssistantDtoHooksItem": ".types", + "TransientAssistantDtoModel": ".types", + "TransientAssistantDtoModel_Anthropic": ".types", + "TransientAssistantDtoModel_AnthropicBedrock": ".types", + "TransientAssistantDtoModel_Anyscale": ".types", + "TransientAssistantDtoModel_Cerebras": ".types", + "TransientAssistantDtoModel_CustomLlm": ".types", + "TransientAssistantDtoModel_DeepSeek": ".types", + "TransientAssistantDtoModel_Deepinfra": ".types", + "TransientAssistantDtoModel_Google": ".types", + "TransientAssistantDtoModel_Groq": ".types", + "TransientAssistantDtoModel_InflectionAi": ".types", + "TransientAssistantDtoModel_Minimax": ".types", + "TransientAssistantDtoModel_Openai": ".types", + "TransientAssistantDtoModel_Openrouter": ".types", + "TransientAssistantDtoModel_PerplexityAi": ".types", + "TransientAssistantDtoModel_TogetherAi": ".types", + "TransientAssistantDtoModel_Vapi": ".types", + "TransientAssistantDtoModel_Xai": ".types", + "TransientAssistantDtoServerMessagesItem": ".types", + "TransientAssistantDtoTranscriber": ".types", + "TransientAssistantDtoTranscriber_11Labs": ".types", + "TransientAssistantDtoTranscriber_AssemblyAi": ".types", + "TransientAssistantDtoTranscriber_Azure": ".types", + "TransientAssistantDtoTranscriber_Cartesia": ".types", + "TransientAssistantDtoTranscriber_CustomTranscriber": ".types", + "TransientAssistantDtoTranscriber_Deepgram": ".types", + "TransientAssistantDtoTranscriber_Gladia": ".types", + "TransientAssistantDtoTranscriber_Google": ".types", + "TransientAssistantDtoTranscriber_Openai": ".types", + "TransientAssistantDtoTranscriber_Reson8": ".types", + "TransientAssistantDtoTranscriber_Soniox": ".types", + "TransientAssistantDtoTranscriber_Speechmatics": ".types", + "TransientAssistantDtoTranscriber_Talkscriber": ".types", + "TransientAssistantDtoTranscriber_Vapi": ".types", + "TransientAssistantDtoTranscriber_Xai": ".types", + "TransientAssistantDtoVoice": ".types", + "TransientAssistantDtoVoice_11Labs": ".types", + "TransientAssistantDtoVoice_Azure": ".types", + "TransientAssistantDtoVoice_Cartesia": ".types", + "TransientAssistantDtoVoice_CustomVoice": ".types", + "TransientAssistantDtoVoice_Deepgram": ".types", + "TransientAssistantDtoVoice_Hume": ".types", + "TransientAssistantDtoVoice_Inworld": ".types", + "TransientAssistantDtoVoice_Lmnt": ".types", + "TransientAssistantDtoVoice_Microsoft": ".types", + "TransientAssistantDtoVoice_Minimax": ".types", + "TransientAssistantDtoVoice_Neuphonic": ".types", + "TransientAssistantDtoVoice_Openai": ".types", + "TransientAssistantDtoVoice_Playht": ".types", + "TransientAssistantDtoVoice_RimeAi": ".types", + "TransientAssistantDtoVoice_Sesame": ".types", + "TransientAssistantDtoVoice_SmallestAi": ".types", + "TransientAssistantDtoVoice_Vapi": ".types", + "TransientAssistantDtoVoice_Wellsaid": ".types", + "TransientAssistantDtoVoice_Xai": ".types", + "TransientAssistantDtoVoicemailDetection": ".types", + "TransientAssistantDtoVoicemailDetectionZero": ".types", "TransientTwilioPhoneNumber": ".types", "TransientTwilioPhoneNumberFallbackDestination": ".types", "TransientTwilioPhoneNumberFallbackDestination_Number": ".types", @@ -10031,6 +10535,7 @@ "TwilioVoicemailDetectionPlanProvider": ".types", "TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem": ".types", "UnauthorizedError": ".errors", + "UnprocessableEntityError": ".errors", "UpdateAnthropicBedrockCredentialDto": ".types", "UpdateAnthropicBedrockCredentialDtoAuthenticationPlan": ".types", "UpdateAnthropicBedrockCredentialDtoAuthenticationPlan_AwsIam": ".types", @@ -10095,6 +10600,7 @@ "UpdateAssistantDraftDtoCredentialsItem_Openrouter": ".types", "UpdateAssistantDraftDtoCredentialsItem_PerplexityAi": ".types", "UpdateAssistantDraftDtoCredentialsItem_Playht": ".types", + "UpdateAssistantDraftDtoCredentialsItem_Reson8": ".types", "UpdateAssistantDraftDtoCredentialsItem_RimeAi": ".types", "UpdateAssistantDraftDtoCredentialsItem_Runpod": ".types", "UpdateAssistantDraftDtoCredentialsItem_S3": ".types", @@ -10143,6 +10649,7 @@ "UpdateAssistantDraftDtoTranscriber_Gladia": ".types", "UpdateAssistantDraftDtoTranscriber_Google": ".types", "UpdateAssistantDraftDtoTranscriber_Openai": ".types", + "UpdateAssistantDraftDtoTranscriber_Reson8": ".types", "UpdateAssistantDraftDtoTranscriber_Soniox": ".types", "UpdateAssistantDraftDtoTranscriber_Speechmatics": ".types", "UpdateAssistantDraftDtoTranscriber_Talkscriber": ".types", @@ -10165,7 +10672,6 @@ "UpdateAssistantDraftDtoVoice_RimeAi": ".types", "UpdateAssistantDraftDtoVoice_Sesame": ".types", "UpdateAssistantDraftDtoVoice_SmallestAi": ".types", - "UpdateAssistantDraftDtoVoice_Tavus": ".types", "UpdateAssistantDraftDtoVoice_Vapi": ".types", "UpdateAssistantDraftDtoVoice_Wellsaid": ".types", "UpdateAssistantDraftDtoVoice_Xai": ".types", @@ -10215,6 +10721,7 @@ "UpdateAssistantDtoCredentialsItem_Openrouter": ".assistants", "UpdateAssistantDtoCredentialsItem_PerplexityAi": ".assistants", "UpdateAssistantDtoCredentialsItem_Playht": ".assistants", + "UpdateAssistantDtoCredentialsItem_Reson8": ".assistants", "UpdateAssistantDtoCredentialsItem_RimeAi": ".assistants", "UpdateAssistantDtoCredentialsItem_Runpod": ".assistants", "UpdateAssistantDtoCredentialsItem_S3": ".assistants", @@ -10263,6 +10770,7 @@ "UpdateAssistantDtoTranscriber_Gladia": ".assistants", "UpdateAssistantDtoTranscriber_Google": ".assistants", "UpdateAssistantDtoTranscriber_Openai": ".assistants", + "UpdateAssistantDtoTranscriber_Reson8": ".assistants", "UpdateAssistantDtoTranscriber_Soniox": ".assistants", "UpdateAssistantDtoTranscriber_Speechmatics": ".assistants", "UpdateAssistantDtoTranscriber_Talkscriber": ".assistants", @@ -10285,7 +10793,6 @@ "UpdateAssistantDtoVoice_RimeAi": ".assistants", "UpdateAssistantDtoVoice_Sesame": ".assistants", "UpdateAssistantDtoVoice_SmallestAi": ".assistants", - "UpdateAssistantDtoVoice_Tavus": ".assistants", "UpdateAssistantDtoVoice_Vapi": ".assistants", "UpdateAssistantDtoVoice_Wellsaid": ".assistants", "UpdateAssistantDtoVoice_Xai": ".assistants", @@ -10540,6 +11047,8 @@ "UpdateQueryToolDtoMessagesItem_RequestFailed": ".types", "UpdateQueryToolDtoMessagesItem_RequestResponseDelayed": ".types", "UpdateQueryToolDtoMessagesItem_RequestStart": ".types", + "UpdateReson8CredentialDto": ".types", + "UpdateReson8CredentialDtoProvider": ".types", "UpdateRimeAiCredentialDto": ".types", "UpdateRimeAiCredentialDtoProvider": ".types", "UpdateRunpodCredentialDto": ".types", @@ -10814,6 +11323,7 @@ "UpdateWorkflowDtoCredentialsItem_Openrouter": ".types", "UpdateWorkflowDtoCredentialsItem_PerplexityAi": ".types", "UpdateWorkflowDtoCredentialsItem_Playht": ".types", + "UpdateWorkflowDtoCredentialsItem_Reson8": ".types", "UpdateWorkflowDtoCredentialsItem_RimeAi": ".types", "UpdateWorkflowDtoCredentialsItem_Runpod": ".types", "UpdateWorkflowDtoCredentialsItem_S3": ".types", @@ -10851,6 +11361,7 @@ "UpdateWorkflowDtoTranscriber_Gladia": ".types", "UpdateWorkflowDtoTranscriber_Google": ".types", "UpdateWorkflowDtoTranscriber_Openai": ".types", + "UpdateWorkflowDtoTranscriber_Reson8": ".types", "UpdateWorkflowDtoTranscriber_Soniox": ".types", "UpdateWorkflowDtoTranscriber_Speechmatics": ".types", "UpdateWorkflowDtoTranscriber_Talkscriber": ".types", @@ -10873,7 +11384,6 @@ "UpdateWorkflowDtoVoice_RimeAi": ".types", "UpdateWorkflowDtoVoice_Sesame": ".types", "UpdateWorkflowDtoVoice_SmallestAi": ".types", - "UpdateWorkflowDtoVoice_Tavus": ".types", "UpdateWorkflowDtoVoice_Vapi": ".types", "UpdateWorkflowDtoVoice_Wellsaid": ".types", "UpdateWorkflowDtoVoice_Xai": ".types", @@ -10881,10 +11391,13 @@ "UpdateWorkflowDtoVoicemailDetectionZero": ".types", "UpdateXAiCredentialDto": ".types", "UpdateXAiCredentialDtoProvider": ".types", - "User": ".types", "UserMessage": ".types", "UserMessageConfidenceSource": ".types", "UserMessageMetadata": ".types", + "UserWithRole": ".types", + "UserWithRoleRole": ".types", + "UserWithRoleRoleZero": ".types", + "ValidateBackgroundSoundUrlDto": ".types", "Vapi": ".client", "VapiCost": ".types", "VapiCostSubType": ".types", @@ -11040,6 +11553,7 @@ "WorkflowCredentialsItem_Openrouter": ".types", "WorkflowCredentialsItem_PerplexityAi": ".types", "WorkflowCredentialsItem_Playht": ".types", + "WorkflowCredentialsItem_Reson8": ".types", "WorkflowCredentialsItem_RimeAi": ".types", "WorkflowCredentialsItem_Runpod": ".types", "WorkflowCredentialsItem_S3": ".types", @@ -11073,6 +11587,7 @@ "WorkflowNodesItem_Tool": ".types", "WorkflowOpenAiModel": ".types", "WorkflowOpenAiModelModel": ".types", + "WorkflowOpenAiModelReasoningEffort": ".types", "WorkflowOverrides": ".types", "WorkflowTranscriber": ".types", "WorkflowTranscriber_11Labs": ".types", @@ -11084,6 +11599,7 @@ "WorkflowTranscriber_Gladia": ".types", "WorkflowTranscriber_Google": ".types", "WorkflowTranscriber_Openai": ".types", + "WorkflowTranscriber_Reson8": ".types", "WorkflowTranscriber_Soniox": ".types", "WorkflowTranscriber_Speechmatics": ".types", "WorkflowTranscriber_Talkscriber": ".types", @@ -11133,6 +11649,7 @@ "WorkflowUserEditableCredentialsItem_Openrouter": ".types", "WorkflowUserEditableCredentialsItem_PerplexityAi": ".types", "WorkflowUserEditableCredentialsItem_Playht": ".types", + "WorkflowUserEditableCredentialsItem_Reson8": ".types", "WorkflowUserEditableCredentialsItem_RimeAi": ".types", "WorkflowUserEditableCredentialsItem_Runpod": ".types", "WorkflowUserEditableCredentialsItem_S3": ".types", @@ -11170,6 +11687,7 @@ "WorkflowUserEditableTranscriber_Gladia": ".types", "WorkflowUserEditableTranscriber_Google": ".types", "WorkflowUserEditableTranscriber_Openai": ".types", + "WorkflowUserEditableTranscriber_Reson8": ".types", "WorkflowUserEditableTranscriber_Soniox": ".types", "WorkflowUserEditableTranscriber_Speechmatics": ".types", "WorkflowUserEditableTranscriber_Talkscriber": ".types", @@ -11192,7 +11710,6 @@ "WorkflowUserEditableVoice_RimeAi": ".types", "WorkflowUserEditableVoice_Sesame": ".types", "WorkflowUserEditableVoice_SmallestAi": ".types", - "WorkflowUserEditableVoice_Tavus": ".types", "WorkflowUserEditableVoice_Vapi": ".types", "WorkflowUserEditableVoice_Wellsaid": ".types", "WorkflowUserEditableVoice_Xai": ".types", @@ -11215,7 +11732,6 @@ "WorkflowVoice_RimeAi": ".types", "WorkflowVoice_Sesame": ".types", "WorkflowVoice_SmallestAi": ".types", - "WorkflowVoice_Tavus": ".types", "WorkflowVoice_Vapi": ".types", "WorkflowVoice_Wellsaid": ".types", "WorkflowVoice_Xai": ".types", @@ -11266,6 +11782,8 @@ "chats": ".chats", "eval": ".eval", "files": ".files", + "guardrail_packs": ".guardrail_packs", + "guardrail_rules": ".guardrail_rules", "insight": ".insight", "knowledge_bases_v_2": ".knowledge_bases_v_2", "observability_scorecard": ".observability_scorecard", @@ -11330,6 +11848,7 @@ def __dir__(): "AnthropicBedrockModel", "AnthropicBedrockModelFallbackModelsItem", "AnthropicBedrockModelModel", + "AnthropicBedrockModelReasoningEffort", "AnthropicBedrockModelToolsItem", "AnthropicBedrockModelToolsItem_ApiRequest", "AnthropicBedrockModelToolsItem_Bash", @@ -11358,6 +11877,7 @@ def __dir__(): "AnthropicCredentialProvider", "AnthropicModel", "AnthropicModelModel", + "AnthropicModelReasoningEffort", "AnthropicModelToolsItem", "AnthropicModelToolsItem_ApiRequest", "AnthropicModelToolsItem_Bash", @@ -11475,6 +11995,7 @@ def __dir__(): "AssistantCredentialsItem_Openrouter", "AssistantCredentialsItem_PerplexityAi", "AssistantCredentialsItem_Playht", + "AssistantCredentialsItem_Reson8", "AssistantCredentialsItem_RimeAi", "AssistantCredentialsItem_Runpod", "AssistantCredentialsItem_S3", @@ -11539,6 +12060,7 @@ def __dir__(): "AssistantDraftCredentialsItem_Openrouter", "AssistantDraftCredentialsItem_PerplexityAi", "AssistantDraftCredentialsItem_Playht", + "AssistantDraftCredentialsItem_Reson8", "AssistantDraftCredentialsItem_RimeAi", "AssistantDraftCredentialsItem_Runpod", "AssistantDraftCredentialsItem_S3", @@ -11589,6 +12111,7 @@ def __dir__(): "AssistantDraftTranscriber_Gladia", "AssistantDraftTranscriber_Google", "AssistantDraftTranscriber_Openai", + "AssistantDraftTranscriber_Reson8", "AssistantDraftTranscriber_Soniox", "AssistantDraftTranscriber_Speechmatics", "AssistantDraftTranscriber_Talkscriber", @@ -11611,17 +12134,16 @@ def __dir__(): "AssistantDraftVoice_RimeAi", "AssistantDraftVoice_Sesame", "AssistantDraftVoice_SmallestAi", - "AssistantDraftVoice_Tavus", "AssistantDraftVoice_Vapi", "AssistantDraftVoice_Wellsaid", "AssistantDraftVoice_Xai", "AssistantDraftVoicemailDetection", "AssistantDraftVoicemailDetectionZero", "AssistantFirstMessageMode", - "AssistantHookAssistantSpeechInterrupted", - "AssistantHookCallEnding", - "AssistantHookCustomerSpeechInterrupted", "AssistantHooksItem", + "AssistantManagedConflictResponseDto", + "AssistantManagedConflictResponseDtoError", + "AssistantManagedVapiAgentsDto", "AssistantMessage", "AssistantMessageEvaluationContinuePlan", "AssistantMessageJudgePlanAi", @@ -11697,6 +12219,7 @@ def __dir__(): "AssistantOverridesCredentialsItem_Openrouter", "AssistantOverridesCredentialsItem_PerplexityAi", "AssistantOverridesCredentialsItem_Playht", + "AssistantOverridesCredentialsItem_Reson8", "AssistantOverridesCredentialsItem_RimeAi", "AssistantOverridesCredentialsItem_Runpod", "AssistantOverridesCredentialsItem_S3", @@ -11769,6 +12292,7 @@ def __dir__(): "AssistantOverridesTranscriber_Gladia", "AssistantOverridesTranscriber_Google", "AssistantOverridesTranscriber_Openai", + "AssistantOverridesTranscriber_Reson8", "AssistantOverridesTranscriber_Soniox", "AssistantOverridesTranscriber_Speechmatics", "AssistantOverridesTranscriber_Talkscriber", @@ -11791,7 +12315,6 @@ def __dir__(): "AssistantOverridesVoice_RimeAi", "AssistantOverridesVoice_Sesame", "AssistantOverridesVoice_SmallestAi", - "AssistantOverridesVoice_Tavus", "AssistantOverridesVoice_Vapi", "AssistantOverridesVoice_Wellsaid", "AssistantOverridesVoice_Xai", @@ -11799,7 +12322,6 @@ def __dir__(): "AssistantOverridesVoicemailDetectionZero", "AssistantPaginatedResponse", "AssistantPinnedConflictResponseDto", - "AssistantPinnedConflictResponseDtoError", "AssistantServerMessagesItem", "AssistantSpeechWordAlignmentTiming", "AssistantSpeechWordProgressTiming", @@ -11814,12 +12336,12 @@ def __dir__(): "AssistantTranscriber_Gladia", "AssistantTranscriber_Google", "AssistantTranscriber_Openai", + "AssistantTranscriber_Reson8", "AssistantTranscriber_Soniox", "AssistantTranscriber_Speechmatics", "AssistantTranscriber_Talkscriber", "AssistantTranscriber_Vapi", "AssistantTranscriber_Xai", - "AssistantUserEditable", "AssistantVersion", "AssistantVersionBackgroundSound", "AssistantVersionBackgroundSoundZero", @@ -11865,6 +12387,7 @@ def __dir__(): "AssistantVersionCredentialsItem_Openrouter", "AssistantVersionCredentialsItem_PerplexityAi", "AssistantVersionCredentialsItem_Playht", + "AssistantVersionCredentialsItem_Reson8", "AssistantVersionCredentialsItem_RimeAi", "AssistantVersionCredentialsItem_Runpod", "AssistantVersionCredentialsItem_S3", @@ -11915,6 +12438,7 @@ def __dir__(): "AssistantVersionTranscriber_Gladia", "AssistantVersionTranscriber_Google", "AssistantVersionTranscriber_Openai", + "AssistantVersionTranscriber_Reson8", "AssistantVersionTranscriber_Soniox", "AssistantVersionTranscriber_Speechmatics", "AssistantVersionTranscriber_Talkscriber", @@ -11937,7 +12461,6 @@ def __dir__(): "AssistantVersionVoice_RimeAi", "AssistantVersionVoice_Sesame", "AssistantVersionVoice_SmallestAi", - "AssistantVersionVoice_Tavus", "AssistantVersionVoice_Vapi", "AssistantVersionVoice_Wellsaid", "AssistantVersionVoice_Xai", @@ -11960,7 +12483,6 @@ def __dir__(): "AssistantVoice_RimeAi", "AssistantVoice_Sesame", "AssistantVoice_SmallestAi", - "AssistantVoice_Tavus", "AssistantVoice_Vapi", "AssistantVoice_Wellsaid", "AssistantVoice_Xai", @@ -11996,6 +12518,7 @@ def __dir__(): "BackgroundSoundUrlValidationResultReason", "BackgroundSpeechDenoisingPlan", "BackoffPlan", + "BadGatewayError", "BadRequestError", "BarInsight", "BarInsightFromCallTable", @@ -12068,6 +12591,49 @@ def __dir__(): "CallDestination_Number", "CallDestination_Sip", "CallEndedReason", + "CallHealthDashboardAffectedCallDto", + "CallHealthDashboardAffectedCallDtoCallAvailability", + "CallHealthDashboardAffectedCallsResponseDto", + "CallHealthDashboardApiErrorDto", + "CallHealthDashboardAssignmentCoverageDto", + "CallHealthDashboardAssistantGoalsDto", + "CallHealthDashboardAssistantGoalsResponseDto", + "CallHealthDashboardAssistantListResponseDto", + "CallHealthDashboardAssistantOverviewDto", + "CallHealthDashboardAssistantReferenceDto", + "CallHealthDashboardAssistantSummaryResponseDto", + "CallHealthDashboardClassificationCoverageDto", + "CallHealthDashboardCoverageDto", + "CallHealthDashboardDiscoveryCoverageDto", + "CallHealthDashboardFacetsDto", + "CallHealthDashboardFacetsDtoStatusesItem", + "CallHealthDashboardGoalDailyDto", + "CallHealthDashboardGoalDefinitionDto", + "CallHealthDashboardGoalGapsDto", + "CallHealthDashboardGoalOptionDto", + "CallHealthDashboardGoalSummaryDto", + "CallHealthDashboardIntakeCoverageDto", + "CallHealthDashboardIntakeCoverageDtoDeliveryMode", + "CallHealthDashboardIntakeCoverageDtoEndToEndCoverage", + "CallHealthDashboardIssueActivityDto", + "CallHealthDashboardIssueActivityDtoAction", + "CallHealthDashboardIssueActivityListResponseDto", + "CallHealthDashboardIssueCoverageDto", + "CallHealthDashboardIssueCoverageDtoState", + "CallHealthDashboardIssueDailyDto", + "CallHealthDashboardIssueDefinitionDto", + "CallHealthDashboardIssueDetailResponseDto", + "CallHealthDashboardIssueListResponseDto", + "CallHealthDashboardIssueReferenceDto", + "CallHealthDashboardIssueReferenceDtoStatus", + "CallHealthDashboardIssueSummaryDto", + "CallHealthDashboardIssueSummaryDtoStatus", + "CallHealthDashboardSeriesPageDto", + "CallHealthDashboardSweepCoverageDto", + "CallHealthDashboardSweepCoverageDtoState", + "CallHealthDashboardTriageRequestDto", + "CallHealthDashboardTriageRequestDtoAction", + "CallHealthDashboardWindowDto", "CallHookAssistantSpeechInterrupted", "CallHookAssistantSpeechInterruptedDoItem", "CallHookAssistantSpeechInterruptedDoItem_MessageAdd", @@ -12523,6 +13089,7 @@ def __dir__(): "ConversationNodeTranscriber_Gladia", "ConversationNodeTranscriber_Google", "ConversationNodeTranscriber_Openai", + "ConversationNodeTranscriber_Reson8", "ConversationNodeTranscriber_Soniox", "ConversationNodeTranscriber_Speechmatics", "ConversationNodeTranscriber_Talkscriber", @@ -12545,7 +13112,6 @@ def __dir__(): "ConversationNodeVoice_RimeAi", "ConversationNodeVoice_Sesame", "ConversationNodeVoice_SmallestAi", - "ConversationNodeVoice_Tavus", "ConversationNodeVoice_Vapi", "ConversationNodeVoice_Wellsaid", "ConversationNodeVoice_Xai", @@ -12610,6 +13176,7 @@ def __dir__(): "CreateAssistantDraftDtoCredentialsItem_Openrouter", "CreateAssistantDraftDtoCredentialsItem_PerplexityAi", "CreateAssistantDraftDtoCredentialsItem_Playht", + "CreateAssistantDraftDtoCredentialsItem_Reson8", "CreateAssistantDraftDtoCredentialsItem_RimeAi", "CreateAssistantDraftDtoCredentialsItem_Runpod", "CreateAssistantDraftDtoCredentialsItem_S3", @@ -12658,6 +13225,7 @@ def __dir__(): "CreateAssistantDraftDtoTranscriber_Gladia", "CreateAssistantDraftDtoTranscriber_Google", "CreateAssistantDraftDtoTranscriber_Openai", + "CreateAssistantDraftDtoTranscriber_Reson8", "CreateAssistantDraftDtoTranscriber_Soniox", "CreateAssistantDraftDtoTranscriber_Speechmatics", "CreateAssistantDraftDtoTranscriber_Talkscriber", @@ -12680,7 +13248,6 @@ def __dir__(): "CreateAssistantDraftDtoVoice_RimeAi", "CreateAssistantDraftDtoVoice_Sesame", "CreateAssistantDraftDtoVoice_SmallestAi", - "CreateAssistantDraftDtoVoice_Tavus", "CreateAssistantDraftDtoVoice_Vapi", "CreateAssistantDraftDtoVoice_Wellsaid", "CreateAssistantDraftDtoVoice_Xai", @@ -12731,6 +13298,7 @@ def __dir__(): "CreateAssistantDtoCredentialsItem_Openrouter", "CreateAssistantDtoCredentialsItem_PerplexityAi", "CreateAssistantDtoCredentialsItem_Playht", + "CreateAssistantDtoCredentialsItem_Reson8", "CreateAssistantDtoCredentialsItem_RimeAi", "CreateAssistantDtoCredentialsItem_Runpod", "CreateAssistantDtoCredentialsItem_S3", @@ -12779,6 +13347,7 @@ def __dir__(): "CreateAssistantDtoTranscriber_Gladia", "CreateAssistantDtoTranscriber_Google", "CreateAssistantDtoTranscriber_Openai", + "CreateAssistantDtoTranscriber_Reson8", "CreateAssistantDtoTranscriber_Soniox", "CreateAssistantDtoTranscriber_Speechmatics", "CreateAssistantDtoTranscriber_Talkscriber", @@ -12801,7 +13370,6 @@ def __dir__(): "CreateAssistantDtoVoice_RimeAi", "CreateAssistantDtoVoice_Sesame", "CreateAssistantDtoVoice_SmallestAi", - "CreateAssistantDtoVoice_Tavus", "CreateAssistantDtoVoice_Vapi", "CreateAssistantDtoVoice_Wellsaid", "CreateAssistantDtoVoice_Xai", @@ -13044,6 +13612,7 @@ def __dir__(): "CreateQueryToolDtoMessagesItem_RequestFailed", "CreateQueryToolDtoMessagesItem_RequestResponseDelayed", "CreateQueryToolDtoMessagesItem_RequestStart", + "CreateReson8CredentialDto", "CreateResponseChatsResponse", "CreateRimeAiCredentialDto", "CreateRunpodCredentialDto", @@ -13276,6 +13845,7 @@ def __dir__(): "CreateVonagePhoneNumberDtoHooksItem_CallEnding", "CreateVonagePhoneNumberDtoHooksItem_CallRinging", "CreateWebCallDto", + "CreateWebCallDtoVideoRecordingStartMode", "CreateWebChatDto", "CreateWebChatDtoInput", "CreateWebChatDtoInputOneItem", @@ -13330,6 +13900,7 @@ def __dir__(): "CreateWorkflowDtoCredentialsItem_Openrouter", "CreateWorkflowDtoCredentialsItem_PerplexityAi", "CreateWorkflowDtoCredentialsItem_Playht", + "CreateWorkflowDtoCredentialsItem_Reson8", "CreateWorkflowDtoCredentialsItem_RimeAi", "CreateWorkflowDtoCredentialsItem_Runpod", "CreateWorkflowDtoCredentialsItem_S3", @@ -13367,6 +13938,7 @@ def __dir__(): "CreateWorkflowDtoTranscriber_Gladia", "CreateWorkflowDtoTranscriber_Google", "CreateWorkflowDtoTranscriber_Openai", + "CreateWorkflowDtoTranscriber_Reson8", "CreateWorkflowDtoTranscriber_Soniox", "CreateWorkflowDtoTranscriber_Speechmatics", "CreateWorkflowDtoTranscriber_Talkscriber", @@ -13389,7 +13961,6 @@ def __dir__(): "CreateWorkflowDtoVoice_RimeAi", "CreateWorkflowDtoVoice_Sesame", "CreateWorkflowDtoVoice_SmallestAi", - "CreateWorkflowDtoVoice_Tavus", "CreateWorkflowDtoVoice_Vapi", "CreateWorkflowDtoVoice_Wellsaid", "CreateWorkflowDtoVoice_Xai", @@ -13585,6 +14156,7 @@ def __dir__(): "Eval", "EvalAnthropicModel", "EvalAnthropicModelModel", + "EvalAnthropicModelReasoningEffort", "EvalControllerGetPaginatedRequestSortBy", "EvalControllerGetPaginatedRequestSortOrder", "EvalControllerGetRunsPaginatedRequestSortBy", @@ -13642,7 +14214,6 @@ def __dir__(): "ExportSessionDtoFormat", "ExportSessionDtoSortBy", "ExportSessionDtoSortOrder", - "FailedEdgeCondition", "FallbackAssemblyAiTranscriber", "FallbackAssemblyAiTranscriberLanguage", "FallbackAssemblyAiTranscriberLanguageCodesItem", @@ -13663,8 +14234,6 @@ def __dir__(): "FallbackCustomTranscriber", "FallbackCustomVoice", "FallbackDeepgramTranscriber", - "FallbackDeepgramTranscriberLanguage", - "FallbackDeepgramTranscriberModel", "FallbackDeepgramTranscriberRedactionItem", "FallbackDeepgramVoice", "FallbackDeepgramVoiceId", @@ -13705,7 +14274,6 @@ def __dir__(): "FallbackMinimaxVoiceProvider", "FallbackMinimaxVoiceRegion", "FallbackMinimaxVoiceSubtitleType", - "FallbackNeetsVoice", "FallbackNeuphonicVoice", "FallbackNeuphonicVoiceModel", "FallbackOpenAiTranscriber", @@ -13732,7 +14300,6 @@ def __dir__(): "FallbackPlanVoicesItem_RimeAi", "FallbackPlanVoicesItem_Sesame", "FallbackPlanVoicesItem_SmallestAi", - "FallbackPlanVoicesItem_Tavus", "FallbackPlanVoicesItem_Vapi", "FallbackPlanVoicesItem_Wellsaid", "FallbackPlanVoicesItem_Xai", @@ -13742,6 +14309,9 @@ def __dir__(): "FallbackPlayHtVoiceIdEnum", "FallbackPlayHtVoiceLanguage", "FallbackPlayHtVoiceModel", + "FallbackReson8Transcriber", + "FallbackReson8TranscriberFillerMode", + "FallbackReson8TranscriberModel", "FallbackRimeAiVoice", "FallbackRimeAiVoiceId", "FallbackRimeAiVoiceIdEnum", @@ -13767,8 +14337,6 @@ def __dir__(): "FallbackTalkscriberTranscriberLanguage", "FallbackTalkscriberTranscriberModel", "FallbackTavusVoice", - "FallbackTavusVoiceVoiceId", - "FallbackTavusVoiceVoiceIdZero", "FallbackTranscriberPlan", "FallbackTranscriberPlanTranscribersItem", "FallbackTranscriberPlanTranscribersItem_11Labs", @@ -13780,6 +14348,7 @@ def __dir__(): "FallbackTranscriberPlanTranscribersItem_Gladia", "FallbackTranscriberPlanTranscribersItem_Google", "FallbackTranscriberPlanTranscribersItem_Openai", + "FallbackTranscriberPlanTranscribersItem_Reson8", "FallbackTranscriberPlanTranscribersItem_Soniox", "FallbackTranscriberPlanTranscribersItem_Speechmatics", "FallbackTranscriberPlanTranscribersItem_Talkscriber", @@ -13825,7 +14394,6 @@ def __dir__(): "FormatPlanReplacementsItem_Regex", "FourierDenoisingPlan", "FunctionCall", - "FunctionCallAssistantHookAction", "FunctionCallHookAction", "FunctionCallHookActionMessagesItem", "FunctionCallHookActionMessagesItem_RequestComplete", @@ -13846,6 +14414,7 @@ def __dir__(): "FunctionToolWithToolCallMessagesItem_RequestFailed", "FunctionToolWithToolCallMessagesItem_RequestResponseDelayed", "FunctionToolWithToolCallMessagesItem_RequestStart", + "GatewayTimeoutError", "GcpCredential", "GcpCredentialProvider", "GcpKey", @@ -13853,6 +14422,7 @@ def __dir__(): "GeminiMultimodalLivePrebuiltVoiceConfigVoiceName", "GeminiMultimodalLiveSpeechConfig", "GeminiMultimodalLiveVoiceConfig", + "GenerateScenariosDto", "GenerateScenariosResponse", "GeneratedScenario", "GeneratedScenarioCategory", @@ -13904,6 +14474,8 @@ def __dir__(): "GetTrafficAllocationLatestDto", "GetTrafficAllocationPaginatedDto", "GetTrafficAllocationPaginatedDtoSortOrder", + "GetTrafficTabMetricsDto", + "GetTrafficTabMetricsDtoBucket", "GhlTool", "GhlToolMessagesItem", "GhlToolMessagesItem_RequestComplete", @@ -13990,6 +14562,13 @@ def __dir__(): "GoHighLevelCredentialProvider", "GoHighLevelMcpCredential", "GoHighLevelMcpCredentialProvider", + "GoalEvaluationCurrentBatchRequestDto", + "GoalEvaluationCurrentBatchResponseDto", + "GoalEvaluationCurrentCallRequestDto", + "GoalEvaluationCurrentCallResponseDto", + "GoalEvaluationCurrentDto", + "GoalEvaluationCurrentDtoGoalOutcome", + "GoalEvaluationCurrentDtoProcessingState", "GoogleCalendarCheckAvailabilityTool", "GoogleCalendarCheckAvailabilityToolMessagesItem", "GoogleCalendarCheckAvailabilityToolMessagesItem_RequestComplete", @@ -14098,6 +14677,27 @@ def __dir__(): "GroupConditionConditionsItem_Liquid", "GroupConditionConditionsItem_Regex", "GroupConditionOperator", + "GuardrailAuthoring", + "GuardrailAuthoringMode", + "GuardrailEscalateAction", + "GuardrailEscalateActionType", + "GuardrailFixedResponseAction", + "GuardrailFixedResponseActionType", + "GuardrailPack", + "GuardrailPacksControllerPaginatedRequestSortBy", + "GuardrailPacksControllerPaginatedRequestSortOrder", + "GuardrailPacksPage", + "GuardrailRedirectAction", + "GuardrailRedirectActionType", + "GuardrailRule", + "GuardrailRuleAction", + "GuardrailRuleActionZero", + "GuardrailRuleActionZero_Fixed", + "GuardrailRuleActionZero_Redirect", + "GuardrailRuleSensitivity", + "GuardrailRulesControllerPaginatedRequestSortBy", + "GuardrailRulesControllerPaginatedRequestSortOrder", + "GuardrailRulesPage", "HandoffDestinationAssistant", "HandoffDestinationAssistantContextEngineeringPlan", "HandoffDestinationAssistantContextEngineeringPlan_All", @@ -14346,7 +14946,6 @@ def __dir__(): "LmntVoiceId", "LmntVoiceIdEnum", "LmntVoiceLanguage", - "LogicEdgeCondition", "MakeCredential", "MakeCredentialProvider", "MakeTool", @@ -14423,13 +15022,13 @@ def __dir__(): "MistralCredential", "MistralCredentialProvider", "ModelCost", + "ModelCostServiceTierBreakdown", "ModelDeprecationNotice", "ModelDeprecationNoticeReplacementStatus", "Monitor", "MonitorPlan", "MonitorResult", "Mono", - "NeetsVoice", "NeuphonicCredential", "NeuphonicCredentialProvider", "NeuphonicVoice", @@ -14678,7 +15277,6 @@ def __dir__(): "RecordingConsentPlanStayOnLineVoice_RimeAi", "RecordingConsentPlanStayOnLineVoice_Sesame", "RecordingConsentPlanStayOnLineVoice_SmallestAi", - "RecordingConsentPlanStayOnLineVoice_Tavus", "RecordingConsentPlanStayOnLineVoice_Vapi", "RecordingConsentPlanStayOnLineVoice_Wellsaid", "RecordingConsentPlanStayOnLineVoice_Xai", @@ -14701,7 +15299,6 @@ def __dir__(): "RecordingConsentPlanVerbalVoice_RimeAi", "RecordingConsentPlanVerbalVoice_Sesame", "RecordingConsentPlanVerbalVoice_SmallestAi", - "RecordingConsentPlanVerbalVoice_Tavus", "RecordingConsentPlanVerbalVoice_Vapi", "RecordingConsentPlanVerbalVoice_Wellsaid", "RecordingConsentPlanVerbalVoice_Xai", @@ -14729,6 +15326,11 @@ def __dir__(): "RelayTargetOptions", "RelayTargetOptionsType", "RelayTargetSquad", + "Reson8Credential", + "Reson8CredentialProvider", + "Reson8Transcriber", + "Reson8TranscriberFillerMode", + "Reson8TranscriberModel", "ResponseCompletedEvent", "ResponseCompletedEventType", "ResponseErrorEvent", @@ -14761,13 +15363,11 @@ def __dir__(): "S3CompatibleStorageCredentialProvider", "S3Credential", "S3CredentialProvider", - "SayAssistantHookAction", "SayHookAction", "SayHookActionExact", "SayHookActionPrompt", "SayHookActionPromptOneItem", "SayPhoneNumberHookAction", - "SbcConfiguration", "Scenario", "ScenarioControllerFindAllRequestSortBy", "ScenarioControllerFindAllRequestSortOrder", @@ -15092,6 +15692,8 @@ def __dir__(): "ServerMessageVoiceRequestPhoneNumber_Vonage", "ServerMessageVoiceRequestType", "ServiceUnavailableError", + "ServiceUnavailableErrorBody", + "ServiceUnavailableErrorBodyError", "SesameVoice", "SesameVoiceModel", "Session", @@ -15114,6 +15716,22 @@ def __dir__(): "SimulationHookInclude", "SimulationHookWebhookAction", "SimulationHookWebhookActionType", + "SimulationOnboardingCoverageGapDto", + "SimulationOnboardingCoverageGapDtoReason", + "SimulationOnboardingErrorDto", + "SimulationOnboardingErrorDtoCode", + "SimulationOnboardingOpenQuestionDto", + "SimulationOnboardingRequirementDto", + "SimulationOnboardingRequirementDtoTag", + "SimulationOnboardingRequirementsDraftDto", + "SimulationOnboardingSuiteCoverageDto", + "SimulationOnboardingSuiteDocsDto", + "SimulationOnboardingSuiteEditDto", + "SimulationOnboardingSuiteRefDto", + "SimulationOnboardingSuiteSimulationDto", + "SimulationOnboardingSuiteViewDto", + "SimulationOnboardingToolGapDto", + "SimulationOnboardingToolGapDtoReason", "SimulationRun", "SimulationRunConfiguration", "SimulationRunControllerFindAllRequestFilterStatus", @@ -15125,6 +15743,7 @@ def __dir__(): "SimulationRunControllerFindItemsRequestSortBy", "SimulationRunControllerFindItemsRequestSortOrder", "SimulationRunControllerFindItemsRequestStatus", + "SimulationRunControllerFindItemsResponse", "SimulationRunItem", "SimulationRunItemCallMetadata", "SimulationRunItemCallMonitor", @@ -15136,7 +15755,11 @@ def __dir__(): "SimulationRunItemImprovements", "SimulationRunItemMetadata", "SimulationRunItemResults", + "SimulationRunItemResultsSkippedStructuredOutputsValue", + "SimulationRunItemResultsSkippedStructuredOutputsValueReason", + "SimulationRunItemResultsStructuredOutputsValue", "SimulationRunItemStatus", + "SimulationRunItemsPaginatedResponse", "SimulationRunListItem", "SimulationRunListItemSimulationsItem", "SimulationRunListItemSimulationsItem_Simulation", @@ -15167,8 +15790,10 @@ def __dir__(): "SimulationSuite", "SimulationSuiteControllerFindAllRequestSortBy", "SimulationSuiteControllerFindAllRequestSortOrder", + "SimulationSuiteControllerFindAllResponse", "SimulationSuiteTargetAssignment", "SimulationSuiteTargetAssignmentTargetType", + "SimulationSuitesPaginatedResponse", "SipAuthentication", "SipRequestTool", "SipRequestToolBody", @@ -15299,8 +15924,6 @@ def __dir__(): "TavusCredential", "TavusCredentialProvider", "TavusVoice", - "TavusVoiceVoiceId", - "TavusVoiceVoiceIdZero", "TelnyxPhoneNumber", "TelnyxPhoneNumberFallbackDestination", "TelnyxPhoneNumberFallbackDestination_Number", @@ -15429,6 +16052,7 @@ def __dir__(): "Token", "TokenRestrictions", "TokenTag", + "TooManyRequestsError", "ToolCall", "ToolCallFunction", "ToolCallHookAction", @@ -15530,13 +16154,28 @@ def __dir__(): "TrafficAllocationActorType", "TrafficAllocationAllocationIntent", "TrafficAllocationControllerFindAllPaginatedRequestSortOrder", + "TrafficAllocationControllerMetricsGetRequestBucket", "TrafficAllocationLatestResponseDto", "TrafficAllocationPaginatedResponse", "TrafficAllocationStaleConflictResponseDto", - "TrafficAllocationStaleConflictResponseDtoError", "TrafficAllocationTarget", "TrafficAllocationVersionConflictResponseDto", "TrafficAllocationVersionConflictResponseDtoError", + "TrafficTabCostBreakdownPerMinuteDto", + "TrafficTabCostPerMinuteDto", + "TrafficTabDurationSecondsDto", + "TrafficTabEndedReasonCountDto", + "TrafficTabLatencyMsDto", + "TrafficTabLatencyStatsDto", + "TrafficTabMetricsDto", + "TrafficTabMetricsWindowDto", + "TrafficTabMetricsWindowDtoBucket", + "TrafficTabStructuredOutputDto", + "TrafficTabStructuredOutputDtoType", + "TrafficTabStructuredOutputNumericDto", + "TrafficTabStructuredOutputValueCountDto", + "TrafficTabTimeseriesPointDto", + "TrafficTabVersionMetricsDto", "TranscriberCost", "TranscriptPlan", "TranscriptWordConfidence", @@ -15552,7 +16191,7 @@ def __dir__(): "TransferAssistantBackgroundSound", "TransferAssistantBackgroundSoundZero", "TransferAssistantFirstMessageMode", - "TransferAssistantHookAction", + "TransferAssistantHooksItem", "TransferAssistantModel", "TransferAssistantModelProvider", "TransferAssistantTranscriber", @@ -15565,6 +16204,7 @@ def __dir__(): "TransferAssistantTranscriber_Gladia", "TransferAssistantTranscriber_Google", "TransferAssistantTranscriber_Openai", + "TransferAssistantTranscriber_Reson8", "TransferAssistantTranscriber_Soniox", "TransferAssistantTranscriber_Speechmatics", "TransferAssistantTranscriber_Talkscriber", @@ -15587,7 +16227,6 @@ def __dir__(): "TransferAssistantVoice_RimeAi", "TransferAssistantVoice_Sesame", "TransferAssistantVoice_SmallestAi", - "TransferAssistantVoice_Tavus", "TransferAssistantVoice_Vapi", "TransferAssistantVoice_Wellsaid", "TransferAssistantVoice_Xai", @@ -15641,6 +16280,128 @@ def __dir__(): "TransferSuccessfulToolUserEditableMessagesItem_RequestResponseDelayed", "TransferSuccessfulToolUserEditableMessagesItem_RequestStart", "TransferSuccessfulToolUserEditableType", + "TransientAssistantDto", + "TransientAssistantDtoBackgroundSound", + "TransientAssistantDtoBackgroundSoundZero", + "TransientAssistantDtoClientMessagesItem", + "TransientAssistantDtoCredentialsItem", + "TransientAssistantDtoCredentialsItem_11Labs", + "TransientAssistantDtoCredentialsItem_Anthropic", + "TransientAssistantDtoCredentialsItem_AnthropicBedrock", + "TransientAssistantDtoCredentialsItem_Anyscale", + "TransientAssistantDtoCredentialsItem_AssemblyAi", + "TransientAssistantDtoCredentialsItem_Azure", + "TransientAssistantDtoCredentialsItem_AzureOpenai", + "TransientAssistantDtoCredentialsItem_ByoSipTrunk", + "TransientAssistantDtoCredentialsItem_Cartesia", + "TransientAssistantDtoCredentialsItem_Cerebras", + "TransientAssistantDtoCredentialsItem_Cloudflare", + "TransientAssistantDtoCredentialsItem_CustomCredential", + "TransientAssistantDtoCredentialsItem_CustomLlm", + "TransientAssistantDtoCredentialsItem_DeepSeek", + "TransientAssistantDtoCredentialsItem_Deepgram", + "TransientAssistantDtoCredentialsItem_Deepinfra", + "TransientAssistantDtoCredentialsItem_Email", + "TransientAssistantDtoCredentialsItem_Gcp", + "TransientAssistantDtoCredentialsItem_GhlOauth2Authorization", + "TransientAssistantDtoCredentialsItem_Gladia", + "TransientAssistantDtoCredentialsItem_Gohighlevel", + "TransientAssistantDtoCredentialsItem_Google", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client", + "TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization", + "TransientAssistantDtoCredentialsItem_Groq", + "TransientAssistantDtoCredentialsItem_Hume", + "TransientAssistantDtoCredentialsItem_InflectionAi", + "TransientAssistantDtoCredentialsItem_Inworld", + "TransientAssistantDtoCredentialsItem_Langfuse", + "TransientAssistantDtoCredentialsItem_Lmnt", + "TransientAssistantDtoCredentialsItem_Make", + "TransientAssistantDtoCredentialsItem_Microsoft", + "TransientAssistantDtoCredentialsItem_Minimax", + "TransientAssistantDtoCredentialsItem_Mistral", + "TransientAssistantDtoCredentialsItem_Neuphonic", + "TransientAssistantDtoCredentialsItem_Openai", + "TransientAssistantDtoCredentialsItem_Openrouter", + "TransientAssistantDtoCredentialsItem_PerplexityAi", + "TransientAssistantDtoCredentialsItem_Playht", + "TransientAssistantDtoCredentialsItem_Reson8", + "TransientAssistantDtoCredentialsItem_RimeAi", + "TransientAssistantDtoCredentialsItem_Runpod", + "TransientAssistantDtoCredentialsItem_S3", + "TransientAssistantDtoCredentialsItem_S3Compatible", + "TransientAssistantDtoCredentialsItem_SlackOauth2Authorization", + "TransientAssistantDtoCredentialsItem_SlackWebhook", + "TransientAssistantDtoCredentialsItem_SmallestAi", + "TransientAssistantDtoCredentialsItem_Soniox", + "TransientAssistantDtoCredentialsItem_Speechmatics", + "TransientAssistantDtoCredentialsItem_Supabase", + "TransientAssistantDtoCredentialsItem_Tavus", + "TransientAssistantDtoCredentialsItem_TogetherAi", + "TransientAssistantDtoCredentialsItem_Twilio", + "TransientAssistantDtoCredentialsItem_Vonage", + "TransientAssistantDtoCredentialsItem_Webhook", + "TransientAssistantDtoCredentialsItem_Wellsaid", + "TransientAssistantDtoCredentialsItem_Xai", + "TransientAssistantDtoFirstMessageMode", + "TransientAssistantDtoHooksItem", + "TransientAssistantDtoModel", + "TransientAssistantDtoModel_Anthropic", + "TransientAssistantDtoModel_AnthropicBedrock", + "TransientAssistantDtoModel_Anyscale", + "TransientAssistantDtoModel_Cerebras", + "TransientAssistantDtoModel_CustomLlm", + "TransientAssistantDtoModel_DeepSeek", + "TransientAssistantDtoModel_Deepinfra", + "TransientAssistantDtoModel_Google", + "TransientAssistantDtoModel_Groq", + "TransientAssistantDtoModel_InflectionAi", + "TransientAssistantDtoModel_Minimax", + "TransientAssistantDtoModel_Openai", + "TransientAssistantDtoModel_Openrouter", + "TransientAssistantDtoModel_PerplexityAi", + "TransientAssistantDtoModel_TogetherAi", + "TransientAssistantDtoModel_Vapi", + "TransientAssistantDtoModel_Xai", + "TransientAssistantDtoServerMessagesItem", + "TransientAssistantDtoTranscriber", + "TransientAssistantDtoTranscriber_11Labs", + "TransientAssistantDtoTranscriber_AssemblyAi", + "TransientAssistantDtoTranscriber_Azure", + "TransientAssistantDtoTranscriber_Cartesia", + "TransientAssistantDtoTranscriber_CustomTranscriber", + "TransientAssistantDtoTranscriber_Deepgram", + "TransientAssistantDtoTranscriber_Gladia", + "TransientAssistantDtoTranscriber_Google", + "TransientAssistantDtoTranscriber_Openai", + "TransientAssistantDtoTranscriber_Reson8", + "TransientAssistantDtoTranscriber_Soniox", + "TransientAssistantDtoTranscriber_Speechmatics", + "TransientAssistantDtoTranscriber_Talkscriber", + "TransientAssistantDtoTranscriber_Vapi", + "TransientAssistantDtoTranscriber_Xai", + "TransientAssistantDtoVoice", + "TransientAssistantDtoVoice_11Labs", + "TransientAssistantDtoVoice_Azure", + "TransientAssistantDtoVoice_Cartesia", + "TransientAssistantDtoVoice_CustomVoice", + "TransientAssistantDtoVoice_Deepgram", + "TransientAssistantDtoVoice_Hume", + "TransientAssistantDtoVoice_Inworld", + "TransientAssistantDtoVoice_Lmnt", + "TransientAssistantDtoVoice_Microsoft", + "TransientAssistantDtoVoice_Minimax", + "TransientAssistantDtoVoice_Neuphonic", + "TransientAssistantDtoVoice_Openai", + "TransientAssistantDtoVoice_Playht", + "TransientAssistantDtoVoice_RimeAi", + "TransientAssistantDtoVoice_Sesame", + "TransientAssistantDtoVoice_SmallestAi", + "TransientAssistantDtoVoice_Vapi", + "TransientAssistantDtoVoice_Wellsaid", + "TransientAssistantDtoVoice_Xai", + "TransientAssistantDtoVoicemailDetection", + "TransientAssistantDtoVoicemailDetectionZero", "TransientTwilioPhoneNumber", "TransientTwilioPhoneNumberFallbackDestination", "TransientTwilioPhoneNumberFallbackDestination_Number", @@ -15674,6 +16435,7 @@ def __dir__(): "TwilioVoicemailDetectionPlanProvider", "TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem", "UnauthorizedError", + "UnprocessableEntityError", "UpdateAnthropicBedrockCredentialDto", "UpdateAnthropicBedrockCredentialDtoAuthenticationPlan", "UpdateAnthropicBedrockCredentialDtoAuthenticationPlan_AwsIam", @@ -15738,6 +16500,7 @@ def __dir__(): "UpdateAssistantDraftDtoCredentialsItem_Openrouter", "UpdateAssistantDraftDtoCredentialsItem_PerplexityAi", "UpdateAssistantDraftDtoCredentialsItem_Playht", + "UpdateAssistantDraftDtoCredentialsItem_Reson8", "UpdateAssistantDraftDtoCredentialsItem_RimeAi", "UpdateAssistantDraftDtoCredentialsItem_Runpod", "UpdateAssistantDraftDtoCredentialsItem_S3", @@ -15786,6 +16549,7 @@ def __dir__(): "UpdateAssistantDraftDtoTranscriber_Gladia", "UpdateAssistantDraftDtoTranscriber_Google", "UpdateAssistantDraftDtoTranscriber_Openai", + "UpdateAssistantDraftDtoTranscriber_Reson8", "UpdateAssistantDraftDtoTranscriber_Soniox", "UpdateAssistantDraftDtoTranscriber_Speechmatics", "UpdateAssistantDraftDtoTranscriber_Talkscriber", @@ -15808,7 +16572,6 @@ def __dir__(): "UpdateAssistantDraftDtoVoice_RimeAi", "UpdateAssistantDraftDtoVoice_Sesame", "UpdateAssistantDraftDtoVoice_SmallestAi", - "UpdateAssistantDraftDtoVoice_Tavus", "UpdateAssistantDraftDtoVoice_Vapi", "UpdateAssistantDraftDtoVoice_Wellsaid", "UpdateAssistantDraftDtoVoice_Xai", @@ -15858,6 +16621,7 @@ def __dir__(): "UpdateAssistantDtoCredentialsItem_Openrouter", "UpdateAssistantDtoCredentialsItem_PerplexityAi", "UpdateAssistantDtoCredentialsItem_Playht", + "UpdateAssistantDtoCredentialsItem_Reson8", "UpdateAssistantDtoCredentialsItem_RimeAi", "UpdateAssistantDtoCredentialsItem_Runpod", "UpdateAssistantDtoCredentialsItem_S3", @@ -15906,6 +16670,7 @@ def __dir__(): "UpdateAssistantDtoTranscriber_Gladia", "UpdateAssistantDtoTranscriber_Google", "UpdateAssistantDtoTranscriber_Openai", + "UpdateAssistantDtoTranscriber_Reson8", "UpdateAssistantDtoTranscriber_Soniox", "UpdateAssistantDtoTranscriber_Speechmatics", "UpdateAssistantDtoTranscriber_Talkscriber", @@ -15928,7 +16693,6 @@ def __dir__(): "UpdateAssistantDtoVoice_RimeAi", "UpdateAssistantDtoVoice_Sesame", "UpdateAssistantDtoVoice_SmallestAi", - "UpdateAssistantDtoVoice_Tavus", "UpdateAssistantDtoVoice_Vapi", "UpdateAssistantDtoVoice_Wellsaid", "UpdateAssistantDtoVoice_Xai", @@ -16183,6 +16947,8 @@ def __dir__(): "UpdateQueryToolDtoMessagesItem_RequestFailed", "UpdateQueryToolDtoMessagesItem_RequestResponseDelayed", "UpdateQueryToolDtoMessagesItem_RequestStart", + "UpdateReson8CredentialDto", + "UpdateReson8CredentialDtoProvider", "UpdateRimeAiCredentialDto", "UpdateRimeAiCredentialDtoProvider", "UpdateRunpodCredentialDto", @@ -16457,6 +17223,7 @@ def __dir__(): "UpdateWorkflowDtoCredentialsItem_Openrouter", "UpdateWorkflowDtoCredentialsItem_PerplexityAi", "UpdateWorkflowDtoCredentialsItem_Playht", + "UpdateWorkflowDtoCredentialsItem_Reson8", "UpdateWorkflowDtoCredentialsItem_RimeAi", "UpdateWorkflowDtoCredentialsItem_Runpod", "UpdateWorkflowDtoCredentialsItem_S3", @@ -16494,6 +17261,7 @@ def __dir__(): "UpdateWorkflowDtoTranscriber_Gladia", "UpdateWorkflowDtoTranscriber_Google", "UpdateWorkflowDtoTranscriber_Openai", + "UpdateWorkflowDtoTranscriber_Reson8", "UpdateWorkflowDtoTranscriber_Soniox", "UpdateWorkflowDtoTranscriber_Speechmatics", "UpdateWorkflowDtoTranscriber_Talkscriber", @@ -16516,7 +17284,6 @@ def __dir__(): "UpdateWorkflowDtoVoice_RimeAi", "UpdateWorkflowDtoVoice_Sesame", "UpdateWorkflowDtoVoice_SmallestAi", - "UpdateWorkflowDtoVoice_Tavus", "UpdateWorkflowDtoVoice_Vapi", "UpdateWorkflowDtoVoice_Wellsaid", "UpdateWorkflowDtoVoice_Xai", @@ -16524,10 +17291,13 @@ def __dir__(): "UpdateWorkflowDtoVoicemailDetectionZero", "UpdateXAiCredentialDto", "UpdateXAiCredentialDtoProvider", - "User", "UserMessage", "UserMessageConfidenceSource", "UserMessageMetadata", + "UserWithRole", + "UserWithRoleRole", + "UserWithRoleRoleZero", + "ValidateBackgroundSoundUrlDto", "Vapi", "VapiCost", "VapiCostSubType", @@ -16683,6 +17453,7 @@ def __dir__(): "WorkflowCredentialsItem_Openrouter", "WorkflowCredentialsItem_PerplexityAi", "WorkflowCredentialsItem_Playht", + "WorkflowCredentialsItem_Reson8", "WorkflowCredentialsItem_RimeAi", "WorkflowCredentialsItem_Runpod", "WorkflowCredentialsItem_S3", @@ -16716,6 +17487,7 @@ def __dir__(): "WorkflowNodesItem_Tool", "WorkflowOpenAiModel", "WorkflowOpenAiModelModel", + "WorkflowOpenAiModelReasoningEffort", "WorkflowOverrides", "WorkflowTranscriber", "WorkflowTranscriber_11Labs", @@ -16727,6 +17499,7 @@ def __dir__(): "WorkflowTranscriber_Gladia", "WorkflowTranscriber_Google", "WorkflowTranscriber_Openai", + "WorkflowTranscriber_Reson8", "WorkflowTranscriber_Soniox", "WorkflowTranscriber_Speechmatics", "WorkflowTranscriber_Talkscriber", @@ -16776,6 +17549,7 @@ def __dir__(): "WorkflowUserEditableCredentialsItem_Openrouter", "WorkflowUserEditableCredentialsItem_PerplexityAi", "WorkflowUserEditableCredentialsItem_Playht", + "WorkflowUserEditableCredentialsItem_Reson8", "WorkflowUserEditableCredentialsItem_RimeAi", "WorkflowUserEditableCredentialsItem_Runpod", "WorkflowUserEditableCredentialsItem_S3", @@ -16813,6 +17587,7 @@ def __dir__(): "WorkflowUserEditableTranscriber_Gladia", "WorkflowUserEditableTranscriber_Google", "WorkflowUserEditableTranscriber_Openai", + "WorkflowUserEditableTranscriber_Reson8", "WorkflowUserEditableTranscriber_Soniox", "WorkflowUserEditableTranscriber_Speechmatics", "WorkflowUserEditableTranscriber_Talkscriber", @@ -16835,7 +17610,6 @@ def __dir__(): "WorkflowUserEditableVoice_RimeAi", "WorkflowUserEditableVoice_Sesame", "WorkflowUserEditableVoice_SmallestAi", - "WorkflowUserEditableVoice_Tavus", "WorkflowUserEditableVoice_Vapi", "WorkflowUserEditableVoice_Wellsaid", "WorkflowUserEditableVoice_Xai", @@ -16858,7 +17632,6 @@ def __dir__(): "WorkflowVoice_RimeAi", "WorkflowVoice_Sesame", "WorkflowVoice_SmallestAi", - "WorkflowVoice_Tavus", "WorkflowVoice_Vapi", "WorkflowVoice_Wellsaid", "WorkflowVoice_Xai", @@ -16909,6 +17682,8 @@ def __dir__(): "chats", "eval", "files", + "guardrail_packs", + "guardrail_rules", "insight", "knowledge_bases_v_2", "observability_scorecard", diff --git a/src/vapi/assistants/__init__.py b/src/vapi/assistants/__init__.py index aff22f3d2..989b8ea76 100644 --- a/src/vapi/assistants/__init__.py +++ b/src/vapi/assistants/__init__.py @@ -51,6 +51,7 @@ UpdateAssistantDtoCredentialsItem_Openrouter, UpdateAssistantDtoCredentialsItem_PerplexityAi, UpdateAssistantDtoCredentialsItem_Playht, + UpdateAssistantDtoCredentialsItem_Reson8, UpdateAssistantDtoCredentialsItem_RimeAi, UpdateAssistantDtoCredentialsItem_Runpod, UpdateAssistantDtoCredentialsItem_S3, @@ -99,6 +100,7 @@ UpdateAssistantDtoTranscriber_Gladia, UpdateAssistantDtoTranscriber_Google, UpdateAssistantDtoTranscriber_Openai, + UpdateAssistantDtoTranscriber_Reson8, UpdateAssistantDtoTranscriber_Soniox, UpdateAssistantDtoTranscriber_Speechmatics, UpdateAssistantDtoTranscriber_Talkscriber, @@ -121,7 +123,6 @@ UpdateAssistantDtoVoice_RimeAi, UpdateAssistantDtoVoice_Sesame, UpdateAssistantDtoVoice_SmallestAi, - UpdateAssistantDtoVoice_Tavus, UpdateAssistantDtoVoice_Vapi, UpdateAssistantDtoVoice_Wellsaid, UpdateAssistantDtoVoice_Xai, @@ -173,6 +174,7 @@ "UpdateAssistantDtoCredentialsItem_Openrouter": ".types", "UpdateAssistantDtoCredentialsItem_PerplexityAi": ".types", "UpdateAssistantDtoCredentialsItem_Playht": ".types", + "UpdateAssistantDtoCredentialsItem_Reson8": ".types", "UpdateAssistantDtoCredentialsItem_RimeAi": ".types", "UpdateAssistantDtoCredentialsItem_Runpod": ".types", "UpdateAssistantDtoCredentialsItem_S3": ".types", @@ -221,6 +223,7 @@ "UpdateAssistantDtoTranscriber_Gladia": ".types", "UpdateAssistantDtoTranscriber_Google": ".types", "UpdateAssistantDtoTranscriber_Openai": ".types", + "UpdateAssistantDtoTranscriber_Reson8": ".types", "UpdateAssistantDtoTranscriber_Soniox": ".types", "UpdateAssistantDtoTranscriber_Speechmatics": ".types", "UpdateAssistantDtoTranscriber_Talkscriber": ".types", @@ -243,7 +246,6 @@ "UpdateAssistantDtoVoice_RimeAi": ".types", "UpdateAssistantDtoVoice_Sesame": ".types", "UpdateAssistantDtoVoice_SmallestAi": ".types", - "UpdateAssistantDtoVoice_Tavus": ".types", "UpdateAssistantDtoVoice_Vapi": ".types", "UpdateAssistantDtoVoice_Wellsaid": ".types", "UpdateAssistantDtoVoice_Xai": ".types", @@ -318,6 +320,7 @@ def __dir__(): "UpdateAssistantDtoCredentialsItem_Openrouter", "UpdateAssistantDtoCredentialsItem_PerplexityAi", "UpdateAssistantDtoCredentialsItem_Playht", + "UpdateAssistantDtoCredentialsItem_Reson8", "UpdateAssistantDtoCredentialsItem_RimeAi", "UpdateAssistantDtoCredentialsItem_Runpod", "UpdateAssistantDtoCredentialsItem_S3", @@ -366,6 +369,7 @@ def __dir__(): "UpdateAssistantDtoTranscriber_Gladia", "UpdateAssistantDtoTranscriber_Google", "UpdateAssistantDtoTranscriber_Openai", + "UpdateAssistantDtoTranscriber_Reson8", "UpdateAssistantDtoTranscriber_Soniox", "UpdateAssistantDtoTranscriber_Speechmatics", "UpdateAssistantDtoTranscriber_Talkscriber", @@ -388,7 +392,6 @@ def __dir__(): "UpdateAssistantDtoVoice_RimeAi", "UpdateAssistantDtoVoice_Sesame", "UpdateAssistantDtoVoice_SmallestAi", - "UpdateAssistantDtoVoice_Tavus", "UpdateAssistantDtoVoice_Vapi", "UpdateAssistantDtoVoice_Wellsaid", "UpdateAssistantDtoVoice_Xai", diff --git a/src/vapi/assistants/client.py b/src/vapi/assistants/client.py index 9c0d40326..63fb503d0 100644 --- a/src/vapi/assistants/client.py +++ b/src/vapi/assistants/client.py @@ -8,7 +8,6 @@ from ..types.analysis_plan import AnalysisPlan from ..types.artifact_plan import ArtifactPlan from ..types.assistant import Assistant -from ..types.background_sound_url_validation_result import BackgroundSoundUrlValidationResult from ..types.background_speech_denoising_plan import BackgroundSpeechDenoisingPlan from ..types.compliance_plan import CompliancePlan from ..types.create_assistant_dto_background_sound import CreateAssistantDtoBackgroundSound @@ -221,6 +220,7 @@ def create( background_sound : typing.Optional[CreateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -253,9 +253,7 @@ def create( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -379,39 +377,6 @@ def create( ) return _response.data - def assistant_controller_validate_background_sound_url( - self, *, url: str, request_options: typing.Optional[RequestOptions] = None - ) -> BackgroundSoundUrlValidationResult: - """ - Parameters - ---------- - url : str - This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BackgroundSoundUrlValidationResult - - - Examples - -------- - from vapi import Vapi - - client = Vapi( - token="YOUR_TOKEN", - ) - client.assistants.assistant_controller_validate_background_sound_url( - url="https://example.com/my-sound.mp3", - ) - """ - _response = self._raw_client.assistant_controller_validate_background_sound_url( - url=url, request_options=request_options - ) - return _response.data - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Assistant: """ Returns the assistant identified by its ID. @@ -563,6 +528,7 @@ def update( background_sound : typing.Optional[UpdateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -595,9 +561,7 @@ def update( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -910,6 +874,7 @@ async def create( background_sound : typing.Optional[CreateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -942,9 +907,7 @@ async def create( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -1076,47 +1039,6 @@ async def main() -> None: ) return _response.data - async def assistant_controller_validate_background_sound_url( - self, *, url: str, request_options: typing.Optional[RequestOptions] = None - ) -> BackgroundSoundUrlValidationResult: - """ - Parameters - ---------- - url : str - This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - BackgroundSoundUrlValidationResult - - - Examples - -------- - import asyncio - - from vapi import AsyncVapi - - client = AsyncVapi( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.assistants.assistant_controller_validate_background_sound_url( - url="https://example.com/my-sound.mp3", - ) - - - asyncio.run(main()) - """ - _response = await self._raw_client.assistant_controller_validate_background_sound_url( - url=url, request_options=request_options - ) - return _response.data - async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Assistant: """ Returns the assistant identified by its ID. @@ -1284,6 +1206,7 @@ async def update( background_sound : typing.Optional[UpdateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -1316,9 +1239,7 @@ async def update( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. diff --git a/src/vapi/assistants/raw_client.py b/src/vapi/assistants/raw_client.py index 84d7ba9d5..90d19c930 100644 --- a/src/vapi/assistants/raw_client.py +++ b/src/vapi/assistants/raw_client.py @@ -17,7 +17,6 @@ from ..types.analysis_plan import AnalysisPlan from ..types.artifact_plan import ArtifactPlan from ..types.assistant import Assistant -from ..types.background_sound_url_validation_result import BackgroundSoundUrlValidationResult from ..types.background_speech_denoising_plan import BackgroundSpeechDenoisingPlan from ..types.compliance_plan import CompliancePlan from ..types.create_assistant_dto_background_sound import CreateAssistantDtoBackgroundSound @@ -231,6 +230,7 @@ def create( background_sound : typing.Optional[CreateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -263,9 +263,7 @@ def create( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -442,54 +440,6 @@ def create( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - def assistant_controller_validate_background_sound_url( - self, *, url: str, request_options: typing.Optional[RequestOptions] = None - ) -> HttpResponse[BackgroundSoundUrlValidationResult]: - """ - Parameters - ---------- - url : str - This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[BackgroundSoundUrlValidationResult] - - """ - _response = self._client_wrapper.httpx_client.request( - "assistant/background-sound/validate", - method="POST", - json={ - "url": url, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BackgroundSoundUrlValidationResult, - construct_type( - type_=BackgroundSoundUrlValidationResult, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Assistant]: """ Returns the assistant identified by its ID. @@ -672,6 +622,7 @@ def update( background_sound : typing.Optional[UpdateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -704,9 +655,7 @@ def update( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -877,6 +826,17 @@ def update( ), ) return HttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -1065,6 +1025,7 @@ async def create( background_sound : typing.Optional[CreateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -1097,9 +1058,7 @@ async def create( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -1276,54 +1235,6 @@ async def create( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - async def assistant_controller_validate_background_sound_url( - self, *, url: str, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[BackgroundSoundUrlValidationResult]: - """ - Parameters - ---------- - url : str - This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[BackgroundSoundUrlValidationResult] - - """ - _response = await self._client_wrapper.httpx_client.request( - "assistant/background-sound/validate", - method="POST", - json={ - "url": url, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - BackgroundSoundUrlValidationResult, - construct_type( - type_=BackgroundSoundUrlValidationResult, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - async def get( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[Assistant]: @@ -1510,6 +1421,7 @@ async def update( background_sound : typing.Optional[UpdateAssistantDtoBackgroundSound] This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + Bundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'. You can also provide a custom sound by providing a URL to an audio file. model_output_in_messages_enabled : typing.Optional[bool] @@ -1542,9 +1454,7 @@ async def update( If unspecified, it will hang up. end_call_message : typing.Optional[str] - This is the message that the assistant will say if it ends the call. - - If unspecified, it will hang up without saying anything. + The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber's language. When an assistant hook runs `endCall`, this field isn't used and the assistant says "Goodbye" in English. end_call_phrases : typing.Optional[typing.Sequence[str]] This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive. @@ -1715,6 +1625,17 @@ async def update( ), ) return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/vapi/assistants/types/__init__.py b/src/vapi/assistants/types/__init__.py index 3ae7aa71b..094d87be5 100644 --- a/src/vapi/assistants/types/__init__.py +++ b/src/vapi/assistants/types/__init__.py @@ -51,6 +51,7 @@ UpdateAssistantDtoCredentialsItem_Openrouter, UpdateAssistantDtoCredentialsItem_PerplexityAi, UpdateAssistantDtoCredentialsItem_Playht, + UpdateAssistantDtoCredentialsItem_Reson8, UpdateAssistantDtoCredentialsItem_RimeAi, UpdateAssistantDtoCredentialsItem_Runpod, UpdateAssistantDtoCredentialsItem_S3, @@ -103,6 +104,7 @@ UpdateAssistantDtoTranscriber_Gladia, UpdateAssistantDtoTranscriber_Google, UpdateAssistantDtoTranscriber_Openai, + UpdateAssistantDtoTranscriber_Reson8, UpdateAssistantDtoTranscriber_Soniox, UpdateAssistantDtoTranscriber_Speechmatics, UpdateAssistantDtoTranscriber_Talkscriber, @@ -127,7 +129,6 @@ UpdateAssistantDtoVoice_RimeAi, UpdateAssistantDtoVoice_Sesame, UpdateAssistantDtoVoice_SmallestAi, - UpdateAssistantDtoVoice_Tavus, UpdateAssistantDtoVoice_Vapi, UpdateAssistantDtoVoice_Wellsaid, UpdateAssistantDtoVoice_Xai, @@ -179,6 +180,7 @@ "UpdateAssistantDtoCredentialsItem_Openrouter": ".update_assistant_dto_credentials_item", "UpdateAssistantDtoCredentialsItem_PerplexityAi": ".update_assistant_dto_credentials_item", "UpdateAssistantDtoCredentialsItem_Playht": ".update_assistant_dto_credentials_item", + "UpdateAssistantDtoCredentialsItem_Reson8": ".update_assistant_dto_credentials_item", "UpdateAssistantDtoCredentialsItem_RimeAi": ".update_assistant_dto_credentials_item", "UpdateAssistantDtoCredentialsItem_Runpod": ".update_assistant_dto_credentials_item", "UpdateAssistantDtoCredentialsItem_S3": ".update_assistant_dto_credentials_item", @@ -227,6 +229,7 @@ "UpdateAssistantDtoTranscriber_Gladia": ".update_assistant_dto_transcriber", "UpdateAssistantDtoTranscriber_Google": ".update_assistant_dto_transcriber", "UpdateAssistantDtoTranscriber_Openai": ".update_assistant_dto_transcriber", + "UpdateAssistantDtoTranscriber_Reson8": ".update_assistant_dto_transcriber", "UpdateAssistantDtoTranscriber_Soniox": ".update_assistant_dto_transcriber", "UpdateAssistantDtoTranscriber_Speechmatics": ".update_assistant_dto_transcriber", "UpdateAssistantDtoTranscriber_Talkscriber": ".update_assistant_dto_transcriber", @@ -249,7 +252,6 @@ "UpdateAssistantDtoVoice_RimeAi": ".update_assistant_dto_voice", "UpdateAssistantDtoVoice_Sesame": ".update_assistant_dto_voice", "UpdateAssistantDtoVoice_SmallestAi": ".update_assistant_dto_voice", - "UpdateAssistantDtoVoice_Tavus": ".update_assistant_dto_voice", "UpdateAssistantDtoVoice_Vapi": ".update_assistant_dto_voice", "UpdateAssistantDtoVoice_Wellsaid": ".update_assistant_dto_voice", "UpdateAssistantDtoVoice_Xai": ".update_assistant_dto_voice", @@ -324,6 +326,7 @@ def __dir__(): "UpdateAssistantDtoCredentialsItem_Openrouter", "UpdateAssistantDtoCredentialsItem_PerplexityAi", "UpdateAssistantDtoCredentialsItem_Playht", + "UpdateAssistantDtoCredentialsItem_Reson8", "UpdateAssistantDtoCredentialsItem_RimeAi", "UpdateAssistantDtoCredentialsItem_Runpod", "UpdateAssistantDtoCredentialsItem_S3", @@ -372,6 +375,7 @@ def __dir__(): "UpdateAssistantDtoTranscriber_Gladia", "UpdateAssistantDtoTranscriber_Google", "UpdateAssistantDtoTranscriber_Openai", + "UpdateAssistantDtoTranscriber_Reson8", "UpdateAssistantDtoTranscriber_Soniox", "UpdateAssistantDtoTranscriber_Speechmatics", "UpdateAssistantDtoTranscriber_Talkscriber", @@ -394,7 +398,6 @@ def __dir__(): "UpdateAssistantDtoVoice_RimeAi", "UpdateAssistantDtoVoice_Sesame", "UpdateAssistantDtoVoice_SmallestAi", - "UpdateAssistantDtoVoice_Tavus", "UpdateAssistantDtoVoice_Vapi", "UpdateAssistantDtoVoice_Wellsaid", "UpdateAssistantDtoVoice_Xai", diff --git a/src/vapi/assistants/types/update_assistant_dto_background_sound_zero.py b/src/vapi/assistants/types/update_assistant_dto_background_sound_zero.py index cc0fe441f..057487407 100644 --- a/src/vapi/assistants/types/update_assistant_dto_background_sound_zero.py +++ b/src/vapi/assistants/types/update_assistant_dto_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -UpdateAssistantDtoBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +UpdateAssistantDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/assistants/types/update_assistant_dto_credentials_item.py b/src/vapi/assistants/types/update_assistant_dto_credentials_item.py index d5e8f6cde..a4250e39b 100644 --- a/src/vapi/assistants/types/update_assistant_dto_credentials_item.py +++ b/src/vapi/assistants/types/update_assistant_dto_credentials_item.py @@ -433,6 +433,9 @@ class UpdateAssistantDtoCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class UpdateAssistantDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class UpdateAssistantDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: UpdateAssistantDtoCredentialsItem_Mistral, UpdateAssistantDtoCredentialsItem_Speechmatics, UpdateAssistantDtoCredentialsItem_Soniox, + UpdateAssistantDtoCredentialsItem_Reson8, UpdateAssistantDtoCredentialsItem_GoogleCalendarOauth2Client, UpdateAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization, UpdateAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/assistants/types/update_assistant_dto_model.py b/src/vapi/assistants/types/update_assistant_dto_model.py index 59b5f174f..d8aa692a0 100644 --- a/src/vapi/assistants/types/update_assistant_dto_model.py +++ b/src/vapi/assistants/types/update_assistant_dto_model.py @@ -11,7 +11,9 @@ from ...core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from ...types.anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from ...types.anthropic_bedrock_model_model import AnthropicBedrockModelModel +from ...types.anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from ...types.anthropic_model_model import AnthropicModelModel +from ...types.anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from ...types.anthropic_thinking_config import AnthropicThinkingConfig from ...types.cerebras_model_model import CerebrasModelModel from ...types.create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class UpdateAssistantDtoModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class UpdateAssistantDtoModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,9 +881,6 @@ class Config: from ...types.cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from ...types.conversation_node import ConversationNode # noqa: E402, I001 from ...types.conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from ...types.create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from ...types.create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from ...types.create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from ...types.create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from ...types.create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from ...types.create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -906,6 +915,9 @@ class Config: from ...types.tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from ...types.tool_node import ToolNode # noqa: E402, I001 from ...types.tool_node_tool import ToolNodeTool # noqa: E402, I001 +from ...types.transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from ...types.transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from ...types.transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from ...types.vapi_model import VapiModel # noqa: E402, I001 from ...types.vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from ...types.workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -940,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -977,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1010,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1047,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1080,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1117,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1150,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1187,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1221,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1257,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1291,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1327,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1361,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1397,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1431,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1467,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1501,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1537,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1571,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1607,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1641,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1677,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1711,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1747,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1781,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1817,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1851,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1887,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1921,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1957,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1991,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2028,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2061,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2098,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/assistants/types/update_assistant_dto_transcriber.py b/src/vapi/assistants/types/update_assistant_dto_transcriber.py index 6491c610d..c375f9053 100644 --- a/src/vapi/assistants/types/update_assistant_dto_transcriber.py +++ b/src/vapi/assistants/types/update_assistant_dto_transcriber.py @@ -33,6 +33,8 @@ from ...types.google_transcriber_model import GoogleTranscriberModel from ...types.open_ai_transcriber_language import OpenAiTranscriberLanguage from ...types.open_ai_transcriber_model import OpenAiTranscriberModel +from ...types.reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from ...types.reson_8_transcriber_model import Reson8TranscriberModel from ...types.server import Server from ...types.soniox_context_general_item import SonioxContextGeneralItem from ...types.soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class UpdateAssistantDtoTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class UpdateAssistantDtoTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class UpdateAssistantDtoTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class UpdateAssistantDtoTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: UpdateAssistantDtoTranscriber_Cartesia, UpdateAssistantDtoTranscriber_Soniox, UpdateAssistantDtoTranscriber_Xai, + UpdateAssistantDtoTranscriber_Reson8, UpdateAssistantDtoTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/assistants/types/update_assistant_dto_voice.py b/src/vapi/assistants/types/update_assistant_dto_voice.py index b86bad950..3bae37d97 100644 --- a/src/vapi/assistants/types/update_assistant_dto_voice.py +++ b/src/vapi/assistants/types/update_assistant_dto_voice.py @@ -48,8 +48,6 @@ from ...types.sesame_voice_model import SesameVoiceModel from ...types.smallest_ai_voice_id import SmallestAiVoiceId from ...types.smallest_ai_voice_model import SmallestAiVoiceModel -from ...types.tavus_conversation_properties import TavusConversationProperties -from ...types.tavus_voice_voice_id import TavusVoiceVoiceId from ...types.vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from ...types.vapi_voice_language import VapiVoiceLanguage from ...types.vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class UpdateAssistantDtoVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class UpdateAssistantDtoVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: UpdateAssistantDtoVoice_Wellsaid, UpdateAssistantDtoVoice_RimeAi, UpdateAssistantDtoVoice_SmallestAi, - UpdateAssistantDtoVoice_Tavus, UpdateAssistantDtoVoice_Vapi, UpdateAssistantDtoVoice_Sesame, UpdateAssistantDtoVoice_Inworld, diff --git a/src/vapi/calls/client.py b/src/vapi/calls/client.py index cc0e2d045..bfcd360f7 100644 --- a/src/vapi/calls/client.py +++ b/src/vapi/calls/client.py @@ -7,12 +7,12 @@ from ..core.request_options import RequestOptions from ..types.assistant_overrides import AssistantOverrides from ..types.call import Call -from ..types.create_assistant_dto import CreateAssistantDto from ..types.create_customer_dto import CreateCustomerDto from ..types.create_squad_dto import CreateSquadDto from ..types.create_workflow_dto import CreateWorkflowDto from ..types.import_twilio_phone_number_dto import ImportTwilioPhoneNumberDto from ..types.schedule_plan import SchedulePlan +from ..types.transient_assistant_dto import TransientAssistantDto from ..types.workflow_overrides import WorkflowOverrides from .raw_client import AsyncRawCallsClient, RawCallsClient from .types.create_call_dto_transport import CreateCallDtoTransport @@ -141,7 +141,7 @@ def create( name: typing.Optional[str] = OMIT, schedule_plan: typing.Optional[SchedulePlan] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -190,7 +190,7 @@ def create( - Squad, use `squadId` or `squad` - Workflow, use `workflowId` or `workflow` - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. To start a call with: @@ -758,7 +758,7 @@ async def create( name: typing.Optional[str] = OMIT, schedule_plan: typing.Optional[SchedulePlan] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -807,7 +807,7 @@ async def create( - Squad, use `squadId` or `squad` - Workflow, use `workflowId` or `workflow` - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. To start a call with: diff --git a/src/vapi/calls/raw_client.py b/src/vapi/calls/raw_client.py index 0e8fc19c5..a03471277 100644 --- a/src/vapi/calls/raw_client.py +++ b/src/vapi/calls/raw_client.py @@ -20,12 +20,12 @@ from ..errors.unauthorized_error import UnauthorizedError from ..types.assistant_overrides import AssistantOverrides from ..types.call import Call -from ..types.create_assistant_dto import CreateAssistantDto from ..types.create_customer_dto import CreateCustomerDto from ..types.create_squad_dto import CreateSquadDto from ..types.create_workflow_dto import CreateWorkflowDto from ..types.import_twilio_phone_number_dto import ImportTwilioPhoneNumberDto from ..types.schedule_plan import SchedulePlan +from ..types.transient_assistant_dto import TransientAssistantDto from ..types.workflow_overrides import WorkflowOverrides from .types.create_call_dto_transport import CreateCallDtoTransport from .types.create_calls_response import CreateCallsResponse @@ -155,7 +155,7 @@ def create( name: typing.Optional[str] = OMIT, schedule_plan: typing.Optional[SchedulePlan] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -204,7 +204,7 @@ def create( - Squad, use `squadId` or `squad` - Workflow, use `workflowId` or `workflow` - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. To start a call with: @@ -300,7 +300,7 @@ def create( ), "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" @@ -1045,7 +1045,7 @@ async def create( name: typing.Optional[str] = OMIT, schedule_plan: typing.Optional[SchedulePlan] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -1094,7 +1094,7 @@ async def create( - Squad, use `squadId` or `squad` - Workflow, use `workflowId` or `workflow` - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. To start a call with: @@ -1190,7 +1190,7 @@ async def create( ), "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" diff --git a/src/vapi/chats/client.py b/src/vapi/chats/client.py index 299ba7318..a18b250e8 100644 --- a/src/vapi/chats/client.py +++ b/src/vapi/chats/client.py @@ -8,8 +8,8 @@ from ..types.assistant_overrides import AssistantOverrides from ..types.chat import Chat from ..types.chat_paginated_response import ChatPaginatedResponse -from ..types.create_assistant_dto import CreateAssistantDto from ..types.create_squad_dto import CreateSquadDto +from ..types.transient_assistant_dto import TransientAssistantDto from ..types.twilio_sms_chat_transport import TwilioSmsChatTransport from .raw_client import AsyncRawChatsClient, RawChatsClient from .types.create_chat_dto_input import CreateChatDtoInput @@ -170,7 +170,7 @@ def create( *, input: CreateChatDtoInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -194,7 +194,7 @@ def create( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -325,7 +325,7 @@ def create_response( *, input: OpenAiResponsesRequestInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -347,7 +347,7 @@ def create_response( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -572,7 +572,7 @@ async def create( *, input: CreateChatDtoInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -596,7 +596,7 @@ async def create( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -751,7 +751,7 @@ async def create_response( *, input: OpenAiResponsesRequestInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -773,7 +773,7 @@ async def create_response( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] diff --git a/src/vapi/chats/raw_client.py b/src/vapi/chats/raw_client.py index 8ac802579..1ef97a7a9 100644 --- a/src/vapi/chats/raw_client.py +++ b/src/vapi/chats/raw_client.py @@ -16,8 +16,8 @@ from ..types.assistant_overrides import AssistantOverrides from ..types.chat import Chat from ..types.chat_paginated_response import ChatPaginatedResponse -from ..types.create_assistant_dto import CreateAssistantDto from ..types.create_squad_dto import CreateSquadDto +from ..types.transient_assistant_dto import TransientAssistantDto from ..types.twilio_sms_chat_transport import TwilioSmsChatTransport from .types.create_chat_dto_input import CreateChatDtoInput from .types.create_chats_response import CreateChatsResponse @@ -177,7 +177,7 @@ def create( *, input: CreateChatDtoInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -201,7 +201,7 @@ def create( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -250,7 +250,7 @@ def create( json={ "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" @@ -376,7 +376,7 @@ def create_response( *, input: OpenAiResponsesRequestInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -398,7 +398,7 @@ def create_response( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -446,7 +446,7 @@ def create_response( json={ "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" @@ -638,7 +638,7 @@ async def create( *, input: CreateChatDtoInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -662,7 +662,7 @@ async def create( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -711,7 +711,7 @@ async def create( json={ "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" @@ -839,7 +839,7 @@ async def create_response( *, input: OpenAiResponsesRequestInput, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -861,7 +861,7 @@ async def create_response( assistant_id : typing.Optional[str] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. assistant_overrides : typing.Optional[AssistantOverrides] @@ -909,7 +909,7 @@ async def create_response( json={ "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" diff --git a/src/vapi/client.py b/src/vapi/client.py index 64139b816..685716a7b 100644 --- a/src/vapi/client.py +++ b/src/vapi/client.py @@ -18,6 +18,8 @@ from .chats.client import AsyncChatsClient, ChatsClient from .eval.client import AsyncEvalClient, EvalClient from .files.client import AsyncFilesClient, FilesClient + from .guardrail_packs.client import AsyncGuardrailPacksClient, GuardrailPacksClient + from .guardrail_rules.client import AsyncGuardrailRulesClient, GuardrailRulesClient from .insight.client import AsyncInsightClient, InsightClient from .knowledge_bases_v_2.client import AsyncKnowledgeBasesV2Client, KnowledgeBasesV2Client from .observability_scorecard.client import AsyncObservabilityScorecardClient, ObservabilityScorecardClient @@ -126,6 +128,8 @@ def __init__( self._board: typing.Optional[BoardClient] = None self._eval: typing.Optional[EvalClient] = None self._observability_scorecard: typing.Optional[ObservabilityScorecardClient] = None + self._guardrail_rules: typing.Optional[GuardrailRulesClient] = None + self._guardrail_packs: typing.Optional[GuardrailPacksClient] = None self._provider_resources: typing.Optional[ProviderResourcesClient] = None self._analytics: typing.Optional[AnalyticsClient] = None @@ -297,6 +301,22 @@ def observability_scorecard(self): self._observability_scorecard = ObservabilityScorecardClient(client_wrapper=self._client_wrapper) return self._observability_scorecard + @property + def guardrail_rules(self): + if self._guardrail_rules is None: + from .guardrail_rules.client import GuardrailRulesClient # noqa: E402 + + self._guardrail_rules = GuardrailRulesClient(client_wrapper=self._client_wrapper) + return self._guardrail_rules + + @property + def guardrail_packs(self): + if self._guardrail_packs is None: + from .guardrail_packs.client import GuardrailPacksClient # noqa: E402 + + self._guardrail_packs = GuardrailPacksClient(client_wrapper=self._client_wrapper) + return self._guardrail_packs + @property def provider_resources(self): if self._provider_resources is None: @@ -426,6 +446,8 @@ def __init__( self._board: typing.Optional[AsyncBoardClient] = None self._eval: typing.Optional[AsyncEvalClient] = None self._observability_scorecard: typing.Optional[AsyncObservabilityScorecardClient] = None + self._guardrail_rules: typing.Optional[AsyncGuardrailRulesClient] = None + self._guardrail_packs: typing.Optional[AsyncGuardrailPacksClient] = None self._provider_resources: typing.Optional[AsyncProviderResourcesClient] = None self._analytics: typing.Optional[AsyncAnalyticsClient] = None @@ -597,6 +619,22 @@ def observability_scorecard(self): self._observability_scorecard = AsyncObservabilityScorecardClient(client_wrapper=self._client_wrapper) return self._observability_scorecard + @property + def guardrail_rules(self): + if self._guardrail_rules is None: + from .guardrail_rules.client import AsyncGuardrailRulesClient # noqa: E402 + + self._guardrail_rules = AsyncGuardrailRulesClient(client_wrapper=self._client_wrapper) + return self._guardrail_rules + + @property + def guardrail_packs(self): + if self._guardrail_packs is None: + from .guardrail_packs.client import AsyncGuardrailPacksClient # noqa: E402 + + self._guardrail_packs = AsyncGuardrailPacksClient(client_wrapper=self._client_wrapper) + return self._guardrail_packs + @property def provider_resources(self): if self._provider_resources is None: diff --git a/src/vapi/errors/__init__.py b/src/vapi/errors/__init__.py index 0cf3b9417..b0536c8d6 100644 --- a/src/vapi/errors/__init__.py +++ b/src/vapi/errors/__init__.py @@ -6,23 +6,31 @@ from importlib import import_module if typing.TYPE_CHECKING: + from .bad_gateway_error import BadGatewayError from .bad_request_error import BadRequestError from .conflict_error import ConflictError from .forbidden_error import ForbiddenError + from .gateway_timeout_error import GatewayTimeoutError from .internal_server_error import InternalServerError from .not_found_error import NotFoundError from .payment_required_error import PaymentRequiredError from .service_unavailable_error import ServiceUnavailableError + from .too_many_requests_error import TooManyRequestsError from .unauthorized_error import UnauthorizedError + from .unprocessable_entity_error import UnprocessableEntityError _dynamic_imports: typing.Dict[str, str] = { + "BadGatewayError": ".bad_gateway_error", "BadRequestError": ".bad_request_error", "ConflictError": ".conflict_error", "ForbiddenError": ".forbidden_error", + "GatewayTimeoutError": ".gateway_timeout_error", "InternalServerError": ".internal_server_error", "NotFoundError": ".not_found_error", "PaymentRequiredError": ".payment_required_error", "ServiceUnavailableError": ".service_unavailable_error", + "TooManyRequestsError": ".too_many_requests_error", "UnauthorizedError": ".unauthorized_error", + "UnprocessableEntityError": ".unprocessable_entity_error", } @@ -48,12 +56,16 @@ def __dir__(): __all__ = [ + "BadGatewayError", "BadRequestError", "ConflictError", "ForbiddenError", + "GatewayTimeoutError", "InternalServerError", "NotFoundError", "PaymentRequiredError", "ServiceUnavailableError", + "TooManyRequestsError", "UnauthorizedError", + "UnprocessableEntityError", ] diff --git a/src/vapi/errors/bad_gateway_error.py b/src/vapi/errors/bad_gateway_error.py new file mode 100644 index 000000000..0f3a7db29 --- /dev/null +++ b/src/vapi/errors/bad_gateway_error.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ..core.api_error import ApiError + + +class BadGatewayError(ApiError): + def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): + super().__init__(status_code=502, headers=headers, body=body) diff --git a/src/vapi/errors/gateway_timeout_error.py b/src/vapi/errors/gateway_timeout_error.py new file mode 100644 index 000000000..b4a413427 --- /dev/null +++ b/src/vapi/errors/gateway_timeout_error.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ..core.api_error import ApiError + + +class GatewayTimeoutError(ApiError): + def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): + super().__init__(status_code=504, headers=headers, body=body) diff --git a/src/vapi/errors/too_many_requests_error.py b/src/vapi/errors/too_many_requests_error.py new file mode 100644 index 000000000..94b3298e8 --- /dev/null +++ b/src/vapi/errors/too_many_requests_error.py @@ -0,0 +1,11 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ..core.api_error import ApiError +from ..types.simulation_onboarding_error_dto import SimulationOnboardingErrorDto + + +class TooManyRequestsError(ApiError): + def __init__(self, body: SimulationOnboardingErrorDto, headers: typing.Optional[typing.Dict[str, str]] = None): + super().__init__(status_code=429, headers=headers, body=body) diff --git a/src/vapi/errors/unprocessable_entity_error.py b/src/vapi/errors/unprocessable_entity_error.py new file mode 100644 index 000000000..1c801a4bc --- /dev/null +++ b/src/vapi/errors/unprocessable_entity_error.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ..core.api_error import ApiError + + +class UnprocessableEntityError(ApiError): + def __init__(self, body: typing.Any, headers: typing.Optional[typing.Dict[str, str]] = None): + super().__init__(status_code=422, headers=headers, body=body) diff --git a/src/vapi/eval/types/create_eval_run_dto_target.py b/src/vapi/eval/types/create_eval_run_dto_target.py index cbf5f6560..b8374c2a3 100644 --- a/src/vapi/eval/types/create_eval_run_dto_target.py +++ b/src/vapi/eval/types/create_eval_run_dto_target.py @@ -17,7 +17,7 @@ class CreateEvalRunDtoTarget_Assistant(UncheckedBaseModel): """ type: typing.Literal["assistant"] = "assistant" - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None assistant_overrides: typing_extensions.Annotated[ typing.Optional["AssistantOverrides"], FieldMetadata(alias="assistantOverrides"), @@ -90,9 +90,6 @@ class Config: from ...types.cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from ...types.conversation_node import ConversationNode # noqa: E402, I001 from ...types.conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from ...types.create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from ...types.create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from ...types.create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from ...types.create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from ...types.create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from ...types.create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -127,6 +124,9 @@ class Config: from ...types.tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from ...types.tool_node import ToolNode # noqa: E402, I001 from ...types.tool_node_tool import ToolNodeTool # noqa: E402, I001 +from ...types.transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from ...types.transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from ...types.transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from ...types.vapi_model import VapiModel # noqa: E402, I001 from ...types.vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from ...types.workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -161,9 +161,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -198,6 +195,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -232,9 +232,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -269,6 +266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/guardrail_packs/__init__.py b/src/vapi/guardrail_packs/__init__.py new file mode 100644 index 000000000..1065aba31 --- /dev/null +++ b/src/vapi/guardrail_packs/__init__.py @@ -0,0 +1,37 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import GuardrailPacksControllerPaginatedRequestSortBy, GuardrailPacksControllerPaginatedRequestSortOrder +_dynamic_imports: typing.Dict[str, str] = { + "GuardrailPacksControllerPaginatedRequestSortBy": ".types", + "GuardrailPacksControllerPaginatedRequestSortOrder": ".types", +} + + +def __getattr__(attr_name: str) -> typing.Any: + module_name = _dynamic_imports.get(attr_name) + if module_name is None: + raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") + try: + module = import_module(module_name, __package__) + if module_name == f".{attr_name}": + return module + else: + return getattr(module, attr_name) + except ImportError as e: + raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e + except AttributeError as e: + raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e + + +def __dir__(): + lazy_attrs = list(_dynamic_imports.keys()) + return sorted(lazy_attrs) + + +__all__ = ["GuardrailPacksControllerPaginatedRequestSortBy", "GuardrailPacksControllerPaginatedRequestSortOrder"] diff --git a/src/vapi/guardrail_packs/client.py b/src/vapi/guardrail_packs/client.py new file mode 100644 index 000000000..91320f636 --- /dev/null +++ b/src/vapi/guardrail_packs/client.py @@ -0,0 +1,480 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.request_options import RequestOptions +from ..types.guardrail_pack import GuardrailPack +from ..types.guardrail_packs_page import GuardrailPacksPage +from .raw_client import AsyncRawGuardrailPacksClient, RawGuardrailPacksClient +from .types.guardrail_packs_controller_paginated_request_sort_by import GuardrailPacksControllerPaginatedRequestSortBy +from .types.guardrail_packs_controller_paginated_request_sort_order import ( + GuardrailPacksControllerPaginatedRequestSortOrder, +) + + +class GuardrailPacksClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawGuardrailPacksClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawGuardrailPacksClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawGuardrailPacksClient + """ + return self._raw_client + + def guardrail_packs_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> typing.List[GuardrailPack]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.List[GuardrailPack] + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.guardrail_packs.guardrail_packs_controller_list() + """ + _response = self._raw_client.guardrail_packs_controller_list( + limit=limit, + search=search, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + request_options=request_options, + ) + return _response.data + + def guardrail_packs_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> GuardrailPacksPage: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + sort_by : typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailPacksPage + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.guardrail_packs.guardrail_packs_controller_paginated() + """ + _response = self._raw_client.guardrail_packs_controller_paginated( + limit=limit, + search=search, + sort_by=sort_by, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + page=page, + sort_order=sort_order, + request_options=request_options, + ) + return _response.data + + def guardrail_packs_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> GuardrailPack: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailPack + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.guardrail_packs.guardrail_packs_controller_find( + id="id", + ) + """ + _response = self._raw_client.guardrail_packs_controller_find(id, request_options=request_options) + return _response.data + + +class AsyncGuardrailPacksClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawGuardrailPacksClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawGuardrailPacksClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawGuardrailPacksClient + """ + return self._raw_client + + async def guardrail_packs_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> typing.List[GuardrailPack]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.List[GuardrailPack] + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.guardrail_packs.guardrail_packs_controller_list() + + + asyncio.run(main()) + """ + _response = await self._raw_client.guardrail_packs_controller_list( + limit=limit, + search=search, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + request_options=request_options, + ) + return _response.data + + async def guardrail_packs_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> GuardrailPacksPage: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + sort_by : typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailPacksPage + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.guardrail_packs.guardrail_packs_controller_paginated() + + + asyncio.run(main()) + """ + _response = await self._raw_client.guardrail_packs_controller_paginated( + limit=limit, + search=search, + sort_by=sort_by, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + page=page, + sort_order=sort_order, + request_options=request_options, + ) + return _response.data + + async def guardrail_packs_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> GuardrailPack: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailPack + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.guardrail_packs.guardrail_packs_controller_find( + id="id", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.guardrail_packs_controller_find(id, request_options=request_options) + return _response.data diff --git a/src/vapi/guardrail_packs/raw_client.py b/src/vapi/guardrail_packs/raw_client.py new file mode 100644 index 000000000..1edbbd675 --- /dev/null +++ b/src/vapi/guardrail_packs/raw_client.py @@ -0,0 +1,509 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing +from json.decoder import JSONDecodeError + +from ..core.api_error import ApiError +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.datetime_utils import serialize_datetime +from ..core.http_response import AsyncHttpResponse, HttpResponse +from ..core.jsonable_encoder import jsonable_encoder +from ..core.parse_error import ParsingError +from ..core.request_options import RequestOptions +from ..core.unchecked_base_model import construct_type +from ..types.guardrail_pack import GuardrailPack +from ..types.guardrail_packs_page import GuardrailPacksPage +from .types.guardrail_packs_controller_paginated_request_sort_by import GuardrailPacksControllerPaginatedRequestSortBy +from .types.guardrail_packs_controller_paginated_request_sort_order import ( + GuardrailPacksControllerPaginatedRequestSortOrder, +) +from pydantic import ValidationError + + +class RawGuardrailPacksClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def guardrail_packs_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[typing.List[GuardrailPack]]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[typing.List[GuardrailPack]] + + """ + _response = self._client_wrapper.httpx_client.request( + "guardrail/packs", + method="GET", + params={ + "limit": limit, + "search": search, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + typing.List[GuardrailPack], + construct_type( + type_=typing.List[GuardrailPack], # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def guardrail_packs_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[GuardrailPacksPage]: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + sort_by : typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[GuardrailPacksPage] + + """ + _response = self._client_wrapper.httpx_client.request( + "guardrail/packs/paginated", + method="GET", + params={ + "limit": limit, + "search": search, + "sortBy": sort_by, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + "page": page, + "sortOrder": sort_order, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailPacksPage, + construct_type( + type_=GuardrailPacksPage, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def guardrail_packs_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[GuardrailPack]: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[GuardrailPack] + + """ + _response = self._client_wrapper.httpx_client.request( + f"guardrail/packs/{jsonable_encoder(id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailPack, + construct_type( + type_=GuardrailPack, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + +class AsyncRawGuardrailPacksClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def guardrail_packs_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[typing.List[GuardrailPack]]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[typing.List[GuardrailPack]] + + """ + _response = await self._client_wrapper.httpx_client.request( + "guardrail/packs", + method="GET", + params={ + "limit": limit, + "search": search, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + typing.List[GuardrailPack], + construct_type( + type_=typing.List[GuardrailPack], # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def guardrail_packs_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[GuardrailPacksPage]: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + sort_by : typing.Optional[GuardrailPacksControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailPacksControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[GuardrailPacksPage] + + """ + _response = await self._client_wrapper.httpx_client.request( + "guardrail/packs/paginated", + method="GET", + params={ + "limit": limit, + "search": search, + "sortBy": sort_by, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + "page": page, + "sortOrder": sort_order, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailPacksPage, + construct_type( + type_=GuardrailPacksPage, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def guardrail_packs_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[GuardrailPack]: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[GuardrailPack] + + """ + _response = await self._client_wrapper.httpx_client.request( + f"guardrail/packs/{jsonable_encoder(id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailPack, + construct_type( + type_=GuardrailPack, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/vapi/guardrail_packs/types/__init__.py b/src/vapi/guardrail_packs/types/__init__.py new file mode 100644 index 000000000..1f88c1f63 --- /dev/null +++ b/src/vapi/guardrail_packs/types/__init__.py @@ -0,0 +1,40 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .guardrail_packs_controller_paginated_request_sort_by import GuardrailPacksControllerPaginatedRequestSortBy + from .guardrail_packs_controller_paginated_request_sort_order import ( + GuardrailPacksControllerPaginatedRequestSortOrder, + ) +_dynamic_imports: typing.Dict[str, str] = { + "GuardrailPacksControllerPaginatedRequestSortBy": ".guardrail_packs_controller_paginated_request_sort_by", + "GuardrailPacksControllerPaginatedRequestSortOrder": ".guardrail_packs_controller_paginated_request_sort_order", +} + + +def __getattr__(attr_name: str) -> typing.Any: + module_name = _dynamic_imports.get(attr_name) + if module_name is None: + raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") + try: + module = import_module(module_name, __package__) + if module_name == f".{attr_name}": + return module + else: + return getattr(module, attr_name) + except ImportError as e: + raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e + except AttributeError as e: + raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e + + +def __dir__(): + lazy_attrs = list(_dynamic_imports.keys()) + return sorted(lazy_attrs) + + +__all__ = ["GuardrailPacksControllerPaginatedRequestSortBy", "GuardrailPacksControllerPaginatedRequestSortOrder"] diff --git a/src/vapi/guardrail_packs/types/guardrail_packs_controller_paginated_request_sort_by.py b/src/vapi/guardrail_packs/types/guardrail_packs_controller_paginated_request_sort_by.py new file mode 100644 index 000000000..21b103f51 --- /dev/null +++ b/src/vapi/guardrail_packs/types/guardrail_packs_controller_paginated_request_sort_by.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailPacksControllerPaginatedRequestSortBy = typing.Union[typing.Literal["createdAt"], typing.Any] diff --git a/src/vapi/guardrail_packs/types/guardrail_packs_controller_paginated_request_sort_order.py b/src/vapi/guardrail_packs/types/guardrail_packs_controller_paginated_request_sort_order.py new file mode 100644 index 000000000..6c0bd4768 --- /dev/null +++ b/src/vapi/guardrail_packs/types/guardrail_packs_controller_paginated_request_sort_order.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailPacksControllerPaginatedRequestSortOrder = typing.Union[typing.Literal["ASC", "DESC"], typing.Any] diff --git a/src/vapi/guardrail_rules/__init__.py b/src/vapi/guardrail_rules/__init__.py new file mode 100644 index 000000000..86ab0c57c --- /dev/null +++ b/src/vapi/guardrail_rules/__init__.py @@ -0,0 +1,37 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import GuardrailRulesControllerPaginatedRequestSortBy, GuardrailRulesControllerPaginatedRequestSortOrder +_dynamic_imports: typing.Dict[str, str] = { + "GuardrailRulesControllerPaginatedRequestSortBy": ".types", + "GuardrailRulesControllerPaginatedRequestSortOrder": ".types", +} + + +def __getattr__(attr_name: str) -> typing.Any: + module_name = _dynamic_imports.get(attr_name) + if module_name is None: + raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") + try: + module = import_module(module_name, __package__) + if module_name == f".{attr_name}": + return module + else: + return getattr(module, attr_name) + except ImportError as e: + raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e + except AttributeError as e: + raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e + + +def __dir__(): + lazy_attrs = list(_dynamic_imports.keys()) + return sorted(lazy_attrs) + + +__all__ = ["GuardrailRulesControllerPaginatedRequestSortBy", "GuardrailRulesControllerPaginatedRequestSortOrder"] diff --git a/src/vapi/guardrail_rules/client.py b/src/vapi/guardrail_rules/client.py new file mode 100644 index 000000000..d1c348eb2 --- /dev/null +++ b/src/vapi/guardrail_rules/client.py @@ -0,0 +1,500 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.request_options import RequestOptions +from ..types.guardrail_rule import GuardrailRule +from ..types.guardrail_rules_page import GuardrailRulesPage +from .raw_client import AsyncRawGuardrailRulesClient, RawGuardrailRulesClient +from .types.guardrail_rules_controller_paginated_request_sort_by import GuardrailRulesControllerPaginatedRequestSortBy +from .types.guardrail_rules_controller_paginated_request_sort_order import ( + GuardrailRulesControllerPaginatedRequestSortOrder, +) + + +class GuardrailRulesClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawGuardrailRulesClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawGuardrailRulesClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawGuardrailRulesClient + """ + return self._raw_client + + def guardrail_rules_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> typing.List[GuardrailRule]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.List[GuardrailRule] + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.guardrail_rules.guardrail_rules_controller_list() + """ + _response = self._raw_client.guardrail_rules_controller_list( + limit=limit, + search=search, + pack_id=pack_id, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + request_options=request_options, + ) + return _response.data + + def guardrail_rules_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> GuardrailRulesPage: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + sort_by : typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailRulesPage + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.guardrail_rules.guardrail_rules_controller_paginated() + """ + _response = self._raw_client.guardrail_rules_controller_paginated( + limit=limit, + search=search, + pack_id=pack_id, + sort_by=sort_by, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + page=page, + sort_order=sort_order, + request_options=request_options, + ) + return _response.data + + def guardrail_rules_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> GuardrailRule: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailRule + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.guardrail_rules.guardrail_rules_controller_find( + id="id", + ) + """ + _response = self._raw_client.guardrail_rules_controller_find(id, request_options=request_options) + return _response.data + + +class AsyncGuardrailRulesClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawGuardrailRulesClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawGuardrailRulesClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawGuardrailRulesClient + """ + return self._raw_client + + async def guardrail_rules_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> typing.List[GuardrailRule]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + typing.List[GuardrailRule] + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.guardrail_rules.guardrail_rules_controller_list() + + + asyncio.run(main()) + """ + _response = await self._raw_client.guardrail_rules_controller_list( + limit=limit, + search=search, + pack_id=pack_id, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + request_options=request_options, + ) + return _response.data + + async def guardrail_rules_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> GuardrailRulesPage: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + sort_by : typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailRulesPage + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.guardrail_rules.guardrail_rules_controller_paginated() + + + asyncio.run(main()) + """ + _response = await self._raw_client.guardrail_rules_controller_paginated( + limit=limit, + search=search, + pack_id=pack_id, + sort_by=sort_by, + created_at_gt=created_at_gt, + created_at_lt=created_at_lt, + created_at_ge=created_at_ge, + created_at_le=created_at_le, + updated_at_gt=updated_at_gt, + updated_at_lt=updated_at_lt, + updated_at_ge=updated_at_ge, + updated_at_le=updated_at_le, + page=page, + sort_order=sort_order, + request_options=request_options, + ) + return _response.data + + async def guardrail_rules_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> GuardrailRule: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + GuardrailRule + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.guardrail_rules.guardrail_rules_controller_find( + id="id", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.guardrail_rules_controller_find(id, request_options=request_options) + return _response.data diff --git a/src/vapi/guardrail_rules/raw_client.py b/src/vapi/guardrail_rules/raw_client.py new file mode 100644 index 000000000..11f630c87 --- /dev/null +++ b/src/vapi/guardrail_rules/raw_client.py @@ -0,0 +1,529 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing +from json.decoder import JSONDecodeError + +from ..core.api_error import ApiError +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.datetime_utils import serialize_datetime +from ..core.http_response import AsyncHttpResponse, HttpResponse +from ..core.jsonable_encoder import jsonable_encoder +from ..core.parse_error import ParsingError +from ..core.request_options import RequestOptions +from ..core.unchecked_base_model import construct_type +from ..types.guardrail_rule import GuardrailRule +from ..types.guardrail_rules_page import GuardrailRulesPage +from .types.guardrail_rules_controller_paginated_request_sort_by import GuardrailRulesControllerPaginatedRequestSortBy +from .types.guardrail_rules_controller_paginated_request_sort_order import ( + GuardrailRulesControllerPaginatedRequestSortOrder, +) +from pydantic import ValidationError + + +class RawGuardrailRulesClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def guardrail_rules_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[typing.List[GuardrailRule]]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[typing.List[GuardrailRule]] + + """ + _response = self._client_wrapper.httpx_client.request( + "guardrail/rules", + method="GET", + params={ + "limit": limit, + "search": search, + "packId": pack_id, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + typing.List[GuardrailRule], + construct_type( + type_=typing.List[GuardrailRule], # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def guardrail_rules_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[GuardrailRulesPage]: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + sort_by : typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[GuardrailRulesPage] + + """ + _response = self._client_wrapper.httpx_client.request( + "guardrail/rules/paginated", + method="GET", + params={ + "limit": limit, + "search": search, + "packId": pack_id, + "sortBy": sort_by, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + "page": page, + "sortOrder": sort_order, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailRulesPage, + construct_type( + type_=GuardrailRulesPage, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def guardrail_rules_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[GuardrailRule]: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[GuardrailRule] + + """ + _response = self._client_wrapper.httpx_client.request( + f"guardrail/rules/{jsonable_encoder(id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailRule, + construct_type( + type_=GuardrailRule, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + +class AsyncRawGuardrailRulesClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def guardrail_rules_controller_list( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[typing.List[GuardrailRule]]: + """ + Parameters + ---------- + limit : typing.Optional[float] + Positive bounded list size, matching the shared library reader. + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[typing.List[GuardrailRule]] + + """ + _response = await self._client_wrapper.httpx_client.request( + "guardrail/rules", + method="GET", + params={ + "limit": limit, + "search": search, + "packId": pack_id, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + typing.List[GuardrailRule], + construct_type( + type_=typing.List[GuardrailRule], # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def guardrail_rules_controller_paginated( + self, + *, + limit: typing.Optional[float] = None, + search: typing.Optional[str] = None, + pack_id: typing.Optional[str] = None, + sort_by: typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[GuardrailRulesPage]: + """ + Parameters + ---------- + limit : typing.Optional[float] + + search : typing.Optional[str] + Case-insensitive name or identifier fragment; omitted means all resources. + + pack_id : typing.Optional[str] + Limits rules to a pack in the authenticated organization without per-member requests. + + sort_by : typing.Optional[GuardrailRulesControllerPaginatedRequestSortBy] + Only persisted creation order is supported, with the ID as a stable tie-breaker. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + page : typing.Optional[float] + A safe integer page; the reader also validates the computed offset. + + sort_order : typing.Optional[GuardrailRulesControllerPaginatedRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[GuardrailRulesPage] + + """ + _response = await self._client_wrapper.httpx_client.request( + "guardrail/rules/paginated", + method="GET", + params={ + "limit": limit, + "search": search, + "packId": pack_id, + "sortBy": sort_by, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + "page": page, + "sortOrder": sort_order, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailRulesPage, + construct_type( + type_=GuardrailRulesPage, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def guardrail_rules_controller_find( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[GuardrailRule]: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[GuardrailRule] + + """ + _response = await self._client_wrapper.httpx_client.request( + f"guardrail/rules/{jsonable_encoder(id)}", + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + GuardrailRule, + construct_type( + type_=GuardrailRule, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) diff --git a/src/vapi/guardrail_rules/types/__init__.py b/src/vapi/guardrail_rules/types/__init__.py new file mode 100644 index 000000000..a68ed9b12 --- /dev/null +++ b/src/vapi/guardrail_rules/types/__init__.py @@ -0,0 +1,40 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .guardrail_rules_controller_paginated_request_sort_by import GuardrailRulesControllerPaginatedRequestSortBy + from .guardrail_rules_controller_paginated_request_sort_order import ( + GuardrailRulesControllerPaginatedRequestSortOrder, + ) +_dynamic_imports: typing.Dict[str, str] = { + "GuardrailRulesControllerPaginatedRequestSortBy": ".guardrail_rules_controller_paginated_request_sort_by", + "GuardrailRulesControllerPaginatedRequestSortOrder": ".guardrail_rules_controller_paginated_request_sort_order", +} + + +def __getattr__(attr_name: str) -> typing.Any: + module_name = _dynamic_imports.get(attr_name) + if module_name is None: + raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}") + try: + module = import_module(module_name, __package__) + if module_name == f".{attr_name}": + return module + else: + return getattr(module, attr_name) + except ImportError as e: + raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e + except AttributeError as e: + raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e + + +def __dir__(): + lazy_attrs = list(_dynamic_imports.keys()) + return sorted(lazy_attrs) + + +__all__ = ["GuardrailRulesControllerPaginatedRequestSortBy", "GuardrailRulesControllerPaginatedRequestSortOrder"] diff --git a/src/vapi/guardrail_rules/types/guardrail_rules_controller_paginated_request_sort_by.py b/src/vapi/guardrail_rules/types/guardrail_rules_controller_paginated_request_sort_by.py new file mode 100644 index 000000000..a7b678146 --- /dev/null +++ b/src/vapi/guardrail_rules/types/guardrail_rules_controller_paginated_request_sort_by.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailRulesControllerPaginatedRequestSortBy = typing.Union[typing.Literal["createdAt"], typing.Any] diff --git a/src/vapi/guardrail_rules/types/guardrail_rules_controller_paginated_request_sort_order.py b/src/vapi/guardrail_rules/types/guardrail_rules_controller_paginated_request_sort_order.py new file mode 100644 index 000000000..14ea32138 --- /dev/null +++ b/src/vapi/guardrail_rules/types/guardrail_rules_controller_paginated_request_sort_order.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailRulesControllerPaginatedRequestSortOrder = typing.Union[typing.Literal["ASC", "DESC"], typing.Any] diff --git a/src/vapi/sessions/client.py b/src/vapi/sessions/client.py index 9a273e9f9..b51a0477a 100644 --- a/src/vapi/sessions/client.py +++ b/src/vapi/sessions/client.py @@ -6,12 +6,12 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ..core.request_options import RequestOptions from ..types.assistant_overrides import AssistantOverrides -from ..types.create_assistant_dto import CreateAssistantDto from ..types.create_customer_dto import CreateCustomerDto from ..types.create_squad_dto import CreateSquadDto from ..types.import_twilio_phone_number_dto import ImportTwilioPhoneNumberDto from ..types.session import Session from ..types.session_paginated_response import SessionPaginatedResponse +from ..types.transient_assistant_dto import TransientAssistantDto from .raw_client import AsyncRawSessionsClient, RawSessionsClient from .types.create_session_dto_messages_item import CreateSessionDtoMessagesItem from .types.create_session_dto_status import CreateSessionDtoStatus @@ -242,7 +242,7 @@ def create( status: typing.Optional[CreateSessionDtoStatus] = OMIT, expiration_seconds: typing.Optional[float] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -268,7 +268,7 @@ def create( assistant_id : typing.Optional[str] This is the ID of the assistant associated with this session. Use this when referencing an existing assistant. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored. @@ -676,7 +676,7 @@ async def create( status: typing.Optional[CreateSessionDtoStatus] = OMIT, expiration_seconds: typing.Optional[float] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -702,7 +702,7 @@ async def create( assistant_id : typing.Optional[str] This is the ID of the assistant associated with this session. Use this when referencing an existing assistant. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored. diff --git a/src/vapi/sessions/raw_client.py b/src/vapi/sessions/raw_client.py index 079ae5ab5..608d8cf62 100644 --- a/src/vapi/sessions/raw_client.py +++ b/src/vapi/sessions/raw_client.py @@ -14,12 +14,12 @@ from ..core.serialization import convert_and_respect_annotation_metadata from ..core.unchecked_base_model import construct_type from ..types.assistant_overrides import AssistantOverrides -from ..types.create_assistant_dto import CreateAssistantDto from ..types.create_customer_dto import CreateCustomerDto from ..types.create_squad_dto import CreateSquadDto from ..types.import_twilio_phone_number_dto import ImportTwilioPhoneNumberDto from ..types.session import Session from ..types.session_paginated_response import SessionPaginatedResponse +from ..types.transient_assistant_dto import TransientAssistantDto from .types.create_session_dto_messages_item import CreateSessionDtoMessagesItem from .types.create_session_dto_status import CreateSessionDtoStatus from .types.list_sessions_request_sort_by import ListSessionsRequestSortBy @@ -248,7 +248,7 @@ def create( status: typing.Optional[CreateSessionDtoStatus] = OMIT, expiration_seconds: typing.Optional[float] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -274,7 +274,7 @@ def create( assistant_id : typing.Optional[str] This is the ID of the assistant associated with this session. Use this when referencing an existing assistant. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored. @@ -322,7 +322,7 @@ def create( "expirationSeconds": expiration_seconds, "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" @@ -735,7 +735,7 @@ async def create( status: typing.Optional[CreateSessionDtoStatus] = OMIT, expiration_seconds: typing.Optional[float] = OMIT, assistant_id: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, assistant_overrides: typing.Optional[AssistantOverrides] = OMIT, squad_id: typing.Optional[str] = OMIT, squad: typing.Optional[CreateSquadDto] = OMIT, @@ -761,7 +761,7 @@ async def create( assistant_id : typing.Optional[str] This is the ID of the assistant associated with this session. Use this when referencing an existing assistant. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored. @@ -809,7 +809,7 @@ async def create( "expirationSeconds": expiration_seconds, "assistantId": assistant_id, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "assistantOverrides": convert_and_respect_annotation_metadata( object_=assistant_overrides, annotation=AssistantOverrides, direction="write" diff --git a/src/vapi/simulation_personalities/client.py b/src/vapi/simulation_personalities/client.py index 644a556b5..7d68bb093 100644 --- a/src/vapi/simulation_personalities/client.py +++ b/src/vapi/simulation_personalities/client.py @@ -5,8 +5,8 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ..core.request_options import RequestOptions -from ..types.create_assistant_dto import CreateAssistantDto from ..types.personality import Personality +from ..types.transient_assistant_dto import TransientAssistantDto from .raw_client import AsyncRawSimulationPersonalitiesClient, RawSimulationPersonalitiesClient from .types.personality_controller_find_all_request_sort_by import PersonalityControllerFindAllRequestSortBy from .types.personality_controller_find_all_request_sort_order import PersonalityControllerFindAllRequestSortOrder @@ -126,7 +126,7 @@ def personality_controller_create( self, *, name: str, - assistant: CreateAssistantDto, + assistant: TransientAssistantDto, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> Personality: @@ -138,7 +138,7 @@ def personality_controller_create( name : str The display name of the personality, for example `Impatient customer`. - assistant : CreateAssistantDto + assistant : TransientAssistantDto The assistant configuration for the AI tester: the model, voice, and system prompt that determine how the AI tester behaves during the conversation. path : typing.Optional[str] @@ -156,14 +156,14 @@ def personality_controller_create( Examples -------- - from vapi import CreateAssistantDto, Vapi + from vapi import TransientAssistantDto, Vapi client = Vapi( token="YOUR_TOKEN", ) client.simulation_personalities.personality_controller_create( name="name", - assistant=CreateAssistantDto(), + assistant=TransientAssistantDto(), ) """ _response = self._raw_client.personality_controller_create( @@ -242,7 +242,7 @@ def personality_controller_update( id: str, *, name: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> Personality: @@ -257,7 +257,7 @@ def personality_controller_update( name : typing.Optional[str] This is the name of the personality. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] Complete assistant replacement. Omitted credentials and redacted server secrets are preserved when their endpoint URL is unchanged. Send credentials: [] to clear credentials; omit a server container to remove it. path : typing.Optional[str] @@ -409,7 +409,7 @@ async def personality_controller_create( self, *, name: str, - assistant: CreateAssistantDto, + assistant: TransientAssistantDto, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> Personality: @@ -421,7 +421,7 @@ async def personality_controller_create( name : str The display name of the personality, for example `Impatient customer`. - assistant : CreateAssistantDto + assistant : TransientAssistantDto The assistant configuration for the AI tester: the model, voice, and system prompt that determine how the AI tester behaves during the conversation. path : typing.Optional[str] @@ -441,7 +441,7 @@ async def personality_controller_create( -------- import asyncio - from vapi import AsyncVapi, CreateAssistantDto + from vapi import AsyncVapi, TransientAssistantDto client = AsyncVapi( token="YOUR_TOKEN", @@ -451,7 +451,7 @@ async def personality_controller_create( async def main() -> None: await client.simulation_personalities.personality_controller_create( name="name", - assistant=CreateAssistantDto(), + assistant=TransientAssistantDto(), ) @@ -549,7 +549,7 @@ async def personality_controller_update( id: str, *, name: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> Personality: @@ -564,7 +564,7 @@ async def personality_controller_update( name : typing.Optional[str] This is the name of the personality. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] Complete assistant replacement. Omitted credentials and redacted server secrets are preserved when their endpoint URL is unchanged. Send credentials: [] to clear credentials; omit a server container to remove it. path : typing.Optional[str] diff --git a/src/vapi/simulation_personalities/raw_client.py b/src/vapi/simulation_personalities/raw_client.py index 6ba10f895..2a7a74dc6 100644 --- a/src/vapi/simulation_personalities/raw_client.py +++ b/src/vapi/simulation_personalities/raw_client.py @@ -14,8 +14,8 @@ from ..core.serialization import convert_and_respect_annotation_metadata from ..core.unchecked_base_model import construct_type from ..errors.conflict_error import ConflictError -from ..types.create_assistant_dto import CreateAssistantDto from ..types.personality import Personality +from ..types.transient_assistant_dto import TransientAssistantDto from .types.personality_controller_find_all_request_sort_by import PersonalityControllerFindAllRequestSortBy from .types.personality_controller_find_all_request_sort_order import PersonalityControllerFindAllRequestSortOrder from pydantic import ValidationError @@ -136,7 +136,7 @@ def personality_controller_create( self, *, name: str, - assistant: CreateAssistantDto, + assistant: TransientAssistantDto, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[Personality]: @@ -148,7 +148,7 @@ def personality_controller_create( name : str The display name of the personality, for example `Impatient customer`. - assistant : CreateAssistantDto + assistant : TransientAssistantDto The assistant configuration for the AI tester: the model, voice, and system prompt that determine how the AI tester behaves during the conversation. path : typing.Optional[str] @@ -170,7 +170,7 @@ def personality_controller_create( json={ "name": name, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "path": path, }, @@ -298,7 +298,7 @@ def personality_controller_update( id: str, *, name: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[Personality]: @@ -313,7 +313,7 @@ def personality_controller_update( name : typing.Optional[str] This is the name of the personality. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] Complete assistant replacement. Omitted credentials and redacted server secrets are preserved when their endpoint URL is unchanged. Send credentials: [] to clear credentials; omit a server container to remove it. path : typing.Optional[str] @@ -335,7 +335,7 @@ def personality_controller_update( json={ "name": name, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "path": path, }, @@ -477,7 +477,7 @@ async def personality_controller_create( self, *, name: str, - assistant: CreateAssistantDto, + assistant: TransientAssistantDto, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[Personality]: @@ -489,7 +489,7 @@ async def personality_controller_create( name : str The display name of the personality, for example `Impatient customer`. - assistant : CreateAssistantDto + assistant : TransientAssistantDto The assistant configuration for the AI tester: the model, voice, and system prompt that determine how the AI tester behaves during the conversation. path : typing.Optional[str] @@ -511,7 +511,7 @@ async def personality_controller_create( json={ "name": name, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "path": path, }, @@ -639,7 +639,7 @@ async def personality_controller_update( id: str, *, name: typing.Optional[str] = OMIT, - assistant: typing.Optional[CreateAssistantDto] = OMIT, + assistant: typing.Optional[TransientAssistantDto] = OMIT, path: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[Personality]: @@ -654,7 +654,7 @@ async def personality_controller_update( name : typing.Optional[str] This is the name of the personality. - assistant : typing.Optional[CreateAssistantDto] + assistant : typing.Optional[TransientAssistantDto] Complete assistant replacement. Omitted credentials and redacted server secrets are preserved when their endpoint URL is unchanged. Send credentials: [] to clear credentials; omit a server container to remove it. path : typing.Optional[str] @@ -676,7 +676,7 @@ async def personality_controller_update( json={ "name": name, "assistant": convert_and_respect_annotation_metadata( - object_=assistant, annotation=CreateAssistantDto, direction="write" + object_=assistant, annotation=TransientAssistantDto, direction="write" ), "path": path, }, diff --git a/src/vapi/simulation_runs/__init__.py b/src/vapi/simulation_runs/__init__.py index 61d4ecbb7..2756a1bf4 100644 --- a/src/vapi/simulation_runs/__init__.py +++ b/src/vapi/simulation_runs/__init__.py @@ -22,6 +22,7 @@ SimulationRunControllerFindItemsRequestSortBy, SimulationRunControllerFindItemsRequestSortOrder, SimulationRunControllerFindItemsRequestStatus, + SimulationRunControllerFindItemsResponse, ) _dynamic_imports: typing.Dict[str, str] = { "CreateSimulationRunDtoSimulationsItem": ".types", @@ -39,6 +40,7 @@ "SimulationRunControllerFindItemsRequestSortBy": ".types", "SimulationRunControllerFindItemsRequestSortOrder": ".types", "SimulationRunControllerFindItemsRequestStatus": ".types", + "SimulationRunControllerFindItemsResponse": ".types", } @@ -79,4 +81,5 @@ def __dir__(): "SimulationRunControllerFindItemsRequestSortBy", "SimulationRunControllerFindItemsRequestSortOrder", "SimulationRunControllerFindItemsRequestStatus", + "SimulationRunControllerFindItemsResponse", ] diff --git a/src/vapi/simulation_runs/client.py b/src/vapi/simulation_runs/client.py index 76c69298e..e28c63035 100644 --- a/src/vapi/simulation_runs/client.py +++ b/src/vapi/simulation_runs/client.py @@ -27,6 +27,7 @@ SimulationRunControllerFindItemsRequestSortOrder, ) from .types.simulation_run_controller_find_items_request_status import SimulationRunControllerFindItemsRequestStatus +from .types.simulation_run_controller_find_items_response import SimulationRunControllerFindItemsResponse # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -50,6 +51,7 @@ def with_raw_response(self) -> RawSimulationRunsClient: def simulation_run_controller_find_all( self, *, + suite_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, status: typing.Optional[SimulationRunControllerFindAllRequestStatus] = None, filter_status: typing.Optional[SimulationRunControllerFindAllRequestFilterStatus] = None, target_type: typing.Optional[SimulationRunControllerFindAllRequestTargetType] = None, @@ -73,6 +75,9 @@ def simulation_run_controller_find_all( Parameters ---------- + suite_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by simulation suite ids + status : typing.Optional[SimulationRunControllerFindAllRequestStatus] Filter by status @@ -139,6 +144,7 @@ def simulation_run_controller_find_all( client.simulation_runs.simulation_run_controller_find_all() """ _response = self._raw_client.simulation_run_controller_find_all( + suite_id=suite_id, status=status, filter_status=filter_status, target_type=target_type, @@ -164,6 +170,8 @@ def simulation_run_controller_create( *, simulations: typing.Sequence[CreateSimulationRunDtoSimulationsItem], target: CreateSimulationRunDtoTarget, + idempotency_key: typing.Optional[str] = None, + include_target_structured_outputs: typing.Optional[bool] = OMIT, iterations: typing.Optional[float] = OMIT, transport: typing.Optional[SimulationRunTransportConfiguration] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -179,6 +187,12 @@ def simulation_run_controller_create( target : CreateSimulationRunDtoTarget Target to test against + idempotency_key : typing.Optional[str] + Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists. + + include_target_structured_outputs : typing.Optional[bool] + Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges. + iterations : typing.Optional[float] Number of times to run each simulation (default: 1) @@ -212,6 +226,8 @@ def simulation_run_controller_create( _response = self._raw_client.simulation_run_controller_create( simulations=simulations, target=target, + idempotency_key=idempotency_key, + include_target_structured_outputs=include_target_structured_outputs, iterations=iterations, transport=transport, request_options=request_options, @@ -304,7 +320,7 @@ def simulation_run_controller_find_items( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[SimulationRunItem]: + ) -> SimulationRunControllerFindItemsResponse: """ Returns the run items for the specified simulation run. @@ -363,7 +379,7 @@ def simulation_run_controller_find_items( Returns ------- - typing.List[SimulationRunItem] + SimulationRunControllerFindItemsResponse Examples @@ -541,6 +557,7 @@ def with_raw_response(self) -> AsyncRawSimulationRunsClient: async def simulation_run_controller_find_all( self, *, + suite_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, status: typing.Optional[SimulationRunControllerFindAllRequestStatus] = None, filter_status: typing.Optional[SimulationRunControllerFindAllRequestFilterStatus] = None, target_type: typing.Optional[SimulationRunControllerFindAllRequestTargetType] = None, @@ -564,6 +581,9 @@ async def simulation_run_controller_find_all( Parameters ---------- + suite_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by simulation suite ids + status : typing.Optional[SimulationRunControllerFindAllRequestStatus] Filter by status @@ -638,6 +658,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.simulation_run_controller_find_all( + suite_id=suite_id, status=status, filter_status=filter_status, target_type=target_type, @@ -663,6 +684,8 @@ async def simulation_run_controller_create( *, simulations: typing.Sequence[CreateSimulationRunDtoSimulationsItem], target: CreateSimulationRunDtoTarget, + idempotency_key: typing.Optional[str] = None, + include_target_structured_outputs: typing.Optional[bool] = OMIT, iterations: typing.Optional[float] = OMIT, transport: typing.Optional[SimulationRunTransportConfiguration] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -678,6 +701,12 @@ async def simulation_run_controller_create( target : CreateSimulationRunDtoTarget Target to test against + idempotency_key : typing.Optional[str] + Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists. + + include_target_structured_outputs : typing.Optional[bool] + Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges. + iterations : typing.Optional[float] Number of times to run each simulation (default: 1) @@ -719,6 +748,8 @@ async def main() -> None: _response = await self._raw_client.simulation_run_controller_create( simulations=simulations, target=target, + idempotency_key=idempotency_key, + include_target_structured_outputs=include_target_structured_outputs, iterations=iterations, transport=transport, request_options=request_options, @@ -827,7 +858,7 @@ async def simulation_run_controller_find_items( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[SimulationRunItem]: + ) -> SimulationRunControllerFindItemsResponse: """ Returns the run items for the specified simulation run. @@ -886,7 +917,7 @@ async def simulation_run_controller_find_items( Returns ------- - typing.List[SimulationRunItem] + SimulationRunControllerFindItemsResponse Examples diff --git a/src/vapi/simulation_runs/raw_client.py b/src/vapi/simulation_runs/raw_client.py index 2b653ce04..82851be79 100644 --- a/src/vapi/simulation_runs/raw_client.py +++ b/src/vapi/simulation_runs/raw_client.py @@ -13,6 +13,7 @@ from ..core.request_options import RequestOptions from ..core.serialization import convert_and_respect_annotation_metadata from ..core.unchecked_base_model import construct_type +from ..errors.conflict_error import ConflictError from ..errors.payment_required_error import PaymentRequiredError from ..types.create_simulation_run_response import CreateSimulationRunResponse from ..types.simulation_run import SimulationRun @@ -36,6 +37,7 @@ SimulationRunControllerFindItemsRequestSortOrder, ) from .types.simulation_run_controller_find_items_request_status import SimulationRunControllerFindItemsRequestStatus +from .types.simulation_run_controller_find_items_response import SimulationRunControllerFindItemsResponse from pydantic import ValidationError # this is used as the default value for optional parameters @@ -49,6 +51,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def simulation_run_controller_find_all( self, *, + suite_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, status: typing.Optional[SimulationRunControllerFindAllRequestStatus] = None, filter_status: typing.Optional[SimulationRunControllerFindAllRequestFilterStatus] = None, target_type: typing.Optional[SimulationRunControllerFindAllRequestTargetType] = None, @@ -72,6 +75,9 @@ def simulation_run_controller_find_all( Parameters ---------- + suite_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by simulation suite ids + status : typing.Optional[SimulationRunControllerFindAllRequestStatus] Filter by status @@ -132,6 +138,7 @@ def simulation_run_controller_find_all( "eval/simulation/run", method="GET", params={ + "suiteId": suite_id, "status": status, "filterStatus": filter_status, "targetType": target_type, @@ -175,6 +182,8 @@ def simulation_run_controller_create( *, simulations: typing.Sequence[CreateSimulationRunDtoSimulationsItem], target: CreateSimulationRunDtoTarget, + idempotency_key: typing.Optional[str] = None, + include_target_structured_outputs: typing.Optional[bool] = OMIT, iterations: typing.Optional[float] = OMIT, transport: typing.Optional[SimulationRunTransportConfiguration] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -190,6 +199,12 @@ def simulation_run_controller_create( target : CreateSimulationRunDtoTarget Target to test against + idempotency_key : typing.Optional[str] + Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists. + + include_target_structured_outputs : typing.Optional[bool] + Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges. + iterations : typing.Optional[float] Number of times to run each simulation (default: 1) @@ -208,6 +223,7 @@ def simulation_run_controller_create( "eval/simulation/run", method="POST", json={ + "includeTargetStructuredOutputs": include_target_structured_outputs, "simulations": convert_and_respect_annotation_metadata( object_=simulations, annotation=typing.Sequence[CreateSimulationRunDtoSimulationsItem], @@ -223,6 +239,7 @@ def simulation_run_controller_create( }, headers={ "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, }, request_options=request_options, omit=OMIT, @@ -248,6 +265,17 @@ def simulation_run_controller_create( ), ), ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -363,7 +391,7 @@ def simulation_run_controller_find_items( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[typing.List[SimulationRunItem]]: + ) -> HttpResponse[SimulationRunControllerFindItemsResponse]: """ Returns the run items for the specified simulation run. @@ -422,7 +450,7 @@ def simulation_run_controller_find_items( Returns ------- - HttpResponse[typing.List[SimulationRunItem]] + HttpResponse[SimulationRunControllerFindItemsResponse] """ _response = self._client_wrapper.httpx_client.request( @@ -450,9 +478,9 @@ def simulation_run_controller_find_items( try: if 200 <= _response.status_code < 300: _data = typing.cast( - typing.List[SimulationRunItem], + SimulationRunControllerFindItemsResponse, construct_type( - type_=typing.List[SimulationRunItem], # type: ignore + type_=SimulationRunControllerFindItemsResponse, # type: ignore object_=_response.json(), ), ) @@ -619,6 +647,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def simulation_run_controller_find_all( self, *, + suite_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, status: typing.Optional[SimulationRunControllerFindAllRequestStatus] = None, filter_status: typing.Optional[SimulationRunControllerFindAllRequestFilterStatus] = None, target_type: typing.Optional[SimulationRunControllerFindAllRequestTargetType] = None, @@ -642,6 +671,9 @@ async def simulation_run_controller_find_all( Parameters ---------- + suite_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by simulation suite ids + status : typing.Optional[SimulationRunControllerFindAllRequestStatus] Filter by status @@ -702,6 +734,7 @@ async def simulation_run_controller_find_all( "eval/simulation/run", method="GET", params={ + "suiteId": suite_id, "status": status, "filterStatus": filter_status, "targetType": target_type, @@ -745,6 +778,8 @@ async def simulation_run_controller_create( *, simulations: typing.Sequence[CreateSimulationRunDtoSimulationsItem], target: CreateSimulationRunDtoTarget, + idempotency_key: typing.Optional[str] = None, + include_target_structured_outputs: typing.Optional[bool] = OMIT, iterations: typing.Optional[float] = OMIT, transport: typing.Optional[SimulationRunTransportConfiguration] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -760,6 +795,12 @@ async def simulation_run_controller_create( target : CreateSimulationRunDtoTarget Target to test against + idempotency_key : typing.Optional[str] + Makes the request safe to retry. A retry with the same key and the same body returns the run the first request created, with `reused: true`, instead of starting another. Reusing a key with a different body returns 409. Up to 255 printable ASCII characters, scoped to your organization; a key stays bound to its run while the run exists. + + include_target_structured_outputs : typing.Optional[bool] + Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges. + iterations : typing.Optional[float] Number of times to run each simulation (default: 1) @@ -778,6 +819,7 @@ async def simulation_run_controller_create( "eval/simulation/run", method="POST", json={ + "includeTargetStructuredOutputs": include_target_structured_outputs, "simulations": convert_and_respect_annotation_metadata( object_=simulations, annotation=typing.Sequence[CreateSimulationRunDtoSimulationsItem], @@ -793,6 +835,7 @@ async def simulation_run_controller_create( }, headers={ "content-type": "application/json", + "Idempotency-Key": str(idempotency_key) if idempotency_key is not None else None, }, request_options=request_options, omit=OMIT, @@ -818,6 +861,17 @@ async def simulation_run_controller_create( ), ), ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -933,7 +987,7 @@ async def simulation_run_controller_find_items( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[typing.List[SimulationRunItem]]: + ) -> AsyncHttpResponse[SimulationRunControllerFindItemsResponse]: """ Returns the run items for the specified simulation run. @@ -992,7 +1046,7 @@ async def simulation_run_controller_find_items( Returns ------- - AsyncHttpResponse[typing.List[SimulationRunItem]] + AsyncHttpResponse[SimulationRunControllerFindItemsResponse] """ _response = await self._client_wrapper.httpx_client.request( @@ -1020,9 +1074,9 @@ async def simulation_run_controller_find_items( try: if 200 <= _response.status_code < 300: _data = typing.cast( - typing.List[SimulationRunItem], + SimulationRunControllerFindItemsResponse, construct_type( - type_=typing.List[SimulationRunItem], # type: ignore + type_=SimulationRunControllerFindItemsResponse, # type: ignore object_=_response.json(), ), ) diff --git a/src/vapi/simulation_runs/types/__init__.py b/src/vapi/simulation_runs/types/__init__.py index 65c5fb414..e4e63ac34 100644 --- a/src/vapi/simulation_runs/types/__init__.py +++ b/src/vapi/simulation_runs/types/__init__.py @@ -29,6 +29,7 @@ SimulationRunControllerFindItemsRequestSortOrder, ) from .simulation_run_controller_find_items_request_status import SimulationRunControllerFindItemsRequestStatus + from .simulation_run_controller_find_items_response import SimulationRunControllerFindItemsResponse _dynamic_imports: typing.Dict[str, str] = { "CreateSimulationRunDtoSimulationsItem": ".create_simulation_run_dto_simulations_item", "CreateSimulationRunDtoSimulationsItem_Simulation": ".create_simulation_run_dto_simulations_item", @@ -45,6 +46,7 @@ "SimulationRunControllerFindItemsRequestSortBy": ".simulation_run_controller_find_items_request_sort_by", "SimulationRunControllerFindItemsRequestSortOrder": ".simulation_run_controller_find_items_request_sort_order", "SimulationRunControllerFindItemsRequestStatus": ".simulation_run_controller_find_items_request_status", + "SimulationRunControllerFindItemsResponse": ".simulation_run_controller_find_items_response", } @@ -85,4 +87,5 @@ def __dir__(): "SimulationRunControllerFindItemsRequestSortBy", "SimulationRunControllerFindItemsRequestSortOrder", "SimulationRunControllerFindItemsRequestStatus", + "SimulationRunControllerFindItemsResponse", ] diff --git a/src/vapi/simulation_runs/types/create_simulation_run_dto_target.py b/src/vapi/simulation_runs/types/create_simulation_run_dto_target.py index 1aac080c0..6d7a6ca95 100644 --- a/src/vapi/simulation_runs/types/create_simulation_run_dto_target.py +++ b/src/vapi/simulation_runs/types/create_simulation_run_dto_target.py @@ -20,7 +20,7 @@ class CreateSimulationRunDtoTarget_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 @@ -81,9 +81,6 @@ class Config: from ...types.cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from ...types.conversation_node import ConversationNode # noqa: E402, I001 from ...types.conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from ...types.create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from ...types.create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from ...types.create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from ...types.create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from ...types.create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from ...types.create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -118,6 +115,9 @@ class Config: from ...types.tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from ...types.tool_node import ToolNode # noqa: E402, I001 from ...types.tool_node_tool import ToolNodeTool # noqa: E402, I001 +from ...types.transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from ...types.transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from ...types.transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from ...types.vapi_model import VapiModel # noqa: E402, I001 from ...types.vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from ...types.workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -152,9 +152,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -189,6 +186,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -223,9 +223,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -260,6 +257,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/simulation_runs/types/simulation_run_controller_find_items_response.py b/src/vapi/simulation_runs/types/simulation_run_controller_find_items_response.py new file mode 100644 index 000000000..0dbda08dd --- /dev/null +++ b/src/vapi/simulation_runs/types/simulation_run_controller_find_items_response.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ...types.simulation_run_item import SimulationRunItem +from ...types.simulation_run_items_paginated_response import SimulationRunItemsPaginatedResponse + +SimulationRunControllerFindItemsResponse = typing.Union[ + typing.List[SimulationRunItem], SimulationRunItemsPaginatedResponse +] diff --git a/src/vapi/simulation_suites/__init__.py b/src/vapi/simulation_suites/__init__.py index f67d6cca1..05a20c752 100644 --- a/src/vapi/simulation_suites/__init__.py +++ b/src/vapi/simulation_suites/__init__.py @@ -6,10 +6,15 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .types import SimulationSuiteControllerFindAllRequestSortBy, SimulationSuiteControllerFindAllRequestSortOrder + from .types import ( + SimulationSuiteControllerFindAllRequestSortBy, + SimulationSuiteControllerFindAllRequestSortOrder, + SimulationSuiteControllerFindAllResponse, + ) _dynamic_imports: typing.Dict[str, str] = { "SimulationSuiteControllerFindAllRequestSortBy": ".types", "SimulationSuiteControllerFindAllRequestSortOrder": ".types", + "SimulationSuiteControllerFindAllResponse": ".types", } @@ -34,4 +39,8 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["SimulationSuiteControllerFindAllRequestSortBy", "SimulationSuiteControllerFindAllRequestSortOrder"] +__all__ = [ + "SimulationSuiteControllerFindAllRequestSortBy", + "SimulationSuiteControllerFindAllRequestSortOrder", + "SimulationSuiteControllerFindAllResponse", +] diff --git a/src/vapi/simulation_suites/client.py b/src/vapi/simulation_suites/client.py index 7a4c8324d..7aa2ddc3e 100644 --- a/src/vapi/simulation_suites/client.py +++ b/src/vapi/simulation_suites/client.py @@ -5,6 +5,10 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ..core.request_options import RequestOptions +from ..types.simulation_onboarding_requirement_dto import SimulationOnboardingRequirementDto +from ..types.simulation_onboarding_requirements_draft_dto import SimulationOnboardingRequirementsDraftDto +from ..types.simulation_onboarding_suite_edit_dto import SimulationOnboardingSuiteEditDto +from ..types.simulation_onboarding_suite_view_dto import SimulationOnboardingSuiteViewDto from ..types.simulation_suite import SimulationSuite from ..types.simulation_suite_target_assignment import SimulationSuiteTargetAssignment from .raw_client import AsyncRawSimulationSuitesClient, RawSimulationSuitesClient @@ -12,6 +16,7 @@ from .types.simulation_suite_controller_find_all_request_sort_order import ( SimulationSuiteControllerFindAllRequestSortOrder, ) +from .types.simulation_suite_controller_find_all_response import SimulationSuiteControllerFindAllResponse # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -35,6 +40,8 @@ def with_raw_response(self) -> RawSimulationSuitesClient: def simulation_suite_controller_find_all( self, *, + assistant_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + squad_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, name: typing.Optional[str] = None, page: typing.Optional[float] = None, sort_order: typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] = None, @@ -49,12 +56,18 @@ def simulation_suite_controller_find_all( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[SimulationSuite]: + ) -> SimulationSuiteControllerFindAllResponse: """ Returns the simulation suites for the authenticated organization. Parameters ---------- + assistant_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned assistant ID. Supplying both assistant and squad filters requires both to match. + + squad_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned squad ID. Supplying both assistant and squad filters requires both to match. + name : typing.Optional[str] Search by simulation suite name @@ -99,7 +112,7 @@ def simulation_suite_controller_find_all( Returns ------- - typing.List[SimulationSuite] + SimulationSuiteControllerFindAllResponse Examples @@ -112,6 +125,8 @@ def simulation_suite_controller_find_all( client.simulation_suites.simulation_suite_controller_find_all() """ _response = self._raw_client.simulation_suite_controller_find_all( + assistant_id=assistant_id, + squad_id=squad_id, name=name, page=page, sort_order=sort_order, @@ -354,6 +369,188 @@ def simulation_suite_controller_update( ) return _response.data + def simulation_onboarding_controller_requirements_draft( + self, + *, + assistant_id: str, + previous_draft: typing.Optional[SimulationOnboardingRequirementsDraftDto] = OMIT, + feedback: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> SimulationOnboardingRequirementsDraftDto: + """ + Generate draft test requirements from an assistant's prompt, tools, and handoff configuration. The response includes numbered requirements describing expected behavior and open questions about behavior that needs clarification. Use this endpoint before generating a simulation suite. + + Review the requirements and resolve any open questions. To revise a draft, send it as `previousDraft` together with natural-language `feedback` describing the changes or answers. Once the requirements are ready, pass them to `POST /eval/simulation/onboarding/suite`. + + Requests can take up to 2 minutes. Each organization can draft requirements 60 times per UTC day, shared with the dashboard. A 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED` response means the daily limit has been reached. Wait until the limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + assistant_id : str + Assistant to draft requirements for. + + previous_draft : typing.Optional[SimulationOnboardingRequirementsDraftDto] + The draft being revised, exactly as this endpoint returned it. Send it with `feedback`. + + feedback : typing.Optional[str] + Natural-language instructions for revising the requirements in `previousDraft`, including answers to open questions. Required when `previousDraft` is provided. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SimulationOnboardingRequirementsDraftDto + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.simulation_suites.simulation_onboarding_controller_requirements_draft( + assistant_id="assistantId", + ) + """ + _response = self._raw_client.simulation_onboarding_controller_requirements_draft( + assistant_id=assistant_id, previous_draft=previous_draft, feedback=feedback, request_options=request_options + ) + return _response.data + + def simulation_onboarding_controller_suite_create( + self, + *, + assistant_id: str, + idempotency_key: str, + requirements: typing.Sequence[SimulationOnboardingRequirementDto], + request_options: typing.Optional[RequestOptions] = None, + ) -> SimulationOnboardingSuiteViewDto: + """ + Generate and save a simulation suite from reviewed test requirements, and assign it to an assistant. First draft requirements with `POST /eval/simulation/onboarding/requirements`. The response includes the saved suite, its simulations, and requirement coverage, including any gaps. + + Requests can take up to 3 minutes. Set a client timeout of at least 200 seconds. + + Use a unique `idempotencyKey` for each suite generation request. Retrying with the same key does not create a duplicate suite: + - On a timeout or a 5xx (502, 504, 524), retry with the same key. You get the saved suite, a 409 while it is still generating, or a fresh generation if the first one never saved. + - On a 409 `SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS`, the first request is still generating. Wait `Retry-After` seconds (15) and retry with the same key. + - On a 409 `SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED`, the key was used for a different assistant or requirements. Send a new key. + + Review the generated simulations and coverage gaps. Revise the suite with `PATCH /eval/simulation/onboarding/suite/{suiteId}`, then run it with `POST /eval/simulation/run`. + + Each organization can generate 20 suites per UTC day, shared with the dashboard, and 2 at a time. A retry that returns a saved suite does not count toward these limits. On a 429 `SIMULATION_ONBOARDING_CONCURRENCY_LIMITED`, wait `Retry-After` seconds (30) before retrying. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + assistant_id : str + Assistant the suite tests and is assigned to. + + idempotency_key : str + A unique key for this suite generation request. Retrying with the same key returns the saved suite, or a 409 while generation is in progress. Use a new key for a different assistant or requirements. + + requirements : typing.Sequence[SimulationOnboardingRequirementDto] + The reviewed test requirements to generate simulations for, from the requirements draft. Each requirement must have a unique id. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SimulationOnboardingSuiteViewDto + + + Examples + -------- + from vapi import SimulationOnboardingRequirementDto, Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.simulation_suites.simulation_onboarding_controller_suite_create( + assistant_id="assistantId", + idempotency_key="idempotencyKey", + requirements=[ + SimulationOnboardingRequirementDto( + id="id", + text="text", + ) + ], + ) + """ + _response = self._raw_client.simulation_onboarding_controller_suite_create( + assistant_id=assistant_id, + idempotency_key=idempotency_key, + requirements=requirements, + request_options=request_options, + ) + return _response.data + + def simulation_onboarding_controller_suite_update( + self, + suite_id: str, + *, + patch_key: str, + remove_simulation_ids: typing.Optional[typing.Sequence[str]] = OMIT, + edits: typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] = OMIT, + retry_failed: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> SimulationOnboardingSuiteViewDto: + """ + Revise a suite created by `POST /eval/simulation/onboarding/suite`. Remove simulations, rewrite scenarios using natural-language instructions, or set `retryFailed` to regenerate scenarios that failed or exceeded generation limits. The response includes the updated suite and requirement coverage. + + Requests can take up to 2 minutes. + + Send a new `patchKey` for each edit. Replaying an applied key changes nothing and returns the current suite, with `failedEditSimulationIds` listing the simulations that edit could not rewrite, so retry a timeout or a 5xx with the same key. A suite remembers its last 50 keys, so never reuse one. + + Each organization can make 60 edits per UTC day, shared with the dashboard. Requests that only remove simulations and replays of applied edits do not count toward this limit. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + suite_id : str + + patch_key : str + A new key for each edit. Replaying an applied key changes nothing and returns the current suite. A suite remembers its last 50 keys, so never reuse one. + + remove_simulation_ids : typing.Optional[typing.Sequence[str]] + Simulations to take out of the suite. They are unlinked, not deleted. + + edits : typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] + Simulations to rewrite in place, at most one edit per simulation: put every change for a simulation in one instruction. + + retry_failed : typing.Optional[bool] + Regenerate the scenarios that failed or did not fit when the suite was generated. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SimulationOnboardingSuiteViewDto + + + Examples + -------- + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.simulation_suites.simulation_onboarding_controller_suite_update( + suite_id="suiteId", + patch_key="patchKey", + ) + """ + _response = self._raw_client.simulation_onboarding_controller_suite_update( + suite_id, + patch_key=patch_key, + remove_simulation_ids=remove_simulation_ids, + edits=edits, + retry_failed=retry_failed, + request_options=request_options, + ) + return _response.data + class AsyncSimulationSuitesClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): @@ -373,6 +570,8 @@ def with_raw_response(self) -> AsyncRawSimulationSuitesClient: async def simulation_suite_controller_find_all( self, *, + assistant_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + squad_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, name: typing.Optional[str] = None, page: typing.Optional[float] = None, sort_order: typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] = None, @@ -387,12 +586,18 @@ async def simulation_suite_controller_find_all( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> typing.List[SimulationSuite]: + ) -> SimulationSuiteControllerFindAllResponse: """ Returns the simulation suites for the authenticated organization. Parameters ---------- + assistant_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned assistant ID. Supplying both assistant and squad filters requires both to match. + + squad_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned squad ID. Supplying both assistant and squad filters requires both to match. + name : typing.Optional[str] Search by simulation suite name @@ -437,7 +642,7 @@ async def simulation_suite_controller_find_all( Returns ------- - typing.List[SimulationSuite] + SimulationSuiteControllerFindAllResponse Examples @@ -458,6 +663,8 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.simulation_suite_controller_find_all( + assistant_id=assistant_id, + squad_id=squad_id, name=name, page=page, sort_order=sort_order, @@ -739,3 +946,209 @@ async def main() -> None: request_options=request_options, ) return _response.data + + async def simulation_onboarding_controller_requirements_draft( + self, + *, + assistant_id: str, + previous_draft: typing.Optional[SimulationOnboardingRequirementsDraftDto] = OMIT, + feedback: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> SimulationOnboardingRequirementsDraftDto: + """ + Generate draft test requirements from an assistant's prompt, tools, and handoff configuration. The response includes numbered requirements describing expected behavior and open questions about behavior that needs clarification. Use this endpoint before generating a simulation suite. + + Review the requirements and resolve any open questions. To revise a draft, send it as `previousDraft` together with natural-language `feedback` describing the changes or answers. Once the requirements are ready, pass them to `POST /eval/simulation/onboarding/suite`. + + Requests can take up to 2 minutes. Each organization can draft requirements 60 times per UTC day, shared with the dashboard. A 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED` response means the daily limit has been reached. Wait until the limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + assistant_id : str + Assistant to draft requirements for. + + previous_draft : typing.Optional[SimulationOnboardingRequirementsDraftDto] + The draft being revised, exactly as this endpoint returned it. Send it with `feedback`. + + feedback : typing.Optional[str] + Natural-language instructions for revising the requirements in `previousDraft`, including answers to open questions. Required when `previousDraft` is provided. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SimulationOnboardingRequirementsDraftDto + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.simulation_suites.simulation_onboarding_controller_requirements_draft( + assistant_id="assistantId", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.simulation_onboarding_controller_requirements_draft( + assistant_id=assistant_id, previous_draft=previous_draft, feedback=feedback, request_options=request_options + ) + return _response.data + + async def simulation_onboarding_controller_suite_create( + self, + *, + assistant_id: str, + idempotency_key: str, + requirements: typing.Sequence[SimulationOnboardingRequirementDto], + request_options: typing.Optional[RequestOptions] = None, + ) -> SimulationOnboardingSuiteViewDto: + """ + Generate and save a simulation suite from reviewed test requirements, and assign it to an assistant. First draft requirements with `POST /eval/simulation/onboarding/requirements`. The response includes the saved suite, its simulations, and requirement coverage, including any gaps. + + Requests can take up to 3 minutes. Set a client timeout of at least 200 seconds. + + Use a unique `idempotencyKey` for each suite generation request. Retrying with the same key does not create a duplicate suite: + - On a timeout or a 5xx (502, 504, 524), retry with the same key. You get the saved suite, a 409 while it is still generating, or a fresh generation if the first one never saved. + - On a 409 `SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS`, the first request is still generating. Wait `Retry-After` seconds (15) and retry with the same key. + - On a 409 `SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED`, the key was used for a different assistant or requirements. Send a new key. + + Review the generated simulations and coverage gaps. Revise the suite with `PATCH /eval/simulation/onboarding/suite/{suiteId}`, then run it with `POST /eval/simulation/run`. + + Each organization can generate 20 suites per UTC day, shared with the dashboard, and 2 at a time. A retry that returns a saved suite does not count toward these limits. On a 429 `SIMULATION_ONBOARDING_CONCURRENCY_LIMITED`, wait `Retry-After` seconds (30) before retrying. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + assistant_id : str + Assistant the suite tests and is assigned to. + + idempotency_key : str + A unique key for this suite generation request. Retrying with the same key returns the saved suite, or a 409 while generation is in progress. Use a new key for a different assistant or requirements. + + requirements : typing.Sequence[SimulationOnboardingRequirementDto] + The reviewed test requirements to generate simulations for, from the requirements draft. Each requirement must have a unique id. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SimulationOnboardingSuiteViewDto + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi, SimulationOnboardingRequirementDto + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.simulation_suites.simulation_onboarding_controller_suite_create( + assistant_id="assistantId", + idempotency_key="idempotencyKey", + requirements=[ + SimulationOnboardingRequirementDto( + id="id", + text="text", + ) + ], + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.simulation_onboarding_controller_suite_create( + assistant_id=assistant_id, + idempotency_key=idempotency_key, + requirements=requirements, + request_options=request_options, + ) + return _response.data + + async def simulation_onboarding_controller_suite_update( + self, + suite_id: str, + *, + patch_key: str, + remove_simulation_ids: typing.Optional[typing.Sequence[str]] = OMIT, + edits: typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] = OMIT, + retry_failed: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> SimulationOnboardingSuiteViewDto: + """ + Revise a suite created by `POST /eval/simulation/onboarding/suite`. Remove simulations, rewrite scenarios using natural-language instructions, or set `retryFailed` to regenerate scenarios that failed or exceeded generation limits. The response includes the updated suite and requirement coverage. + + Requests can take up to 2 minutes. + + Send a new `patchKey` for each edit. Replaying an applied key changes nothing and returns the current suite, with `failedEditSimulationIds` listing the simulations that edit could not rewrite, so retry a timeout or a 5xx with the same key. A suite remembers its last 50 keys, so never reuse one. + + Each organization can make 60 edits per UTC day, shared with the dashboard. Requests that only remove simulations and replays of applied edits do not count toward this limit. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + suite_id : str + + patch_key : str + A new key for each edit. Replaying an applied key changes nothing and returns the current suite. A suite remembers its last 50 keys, so never reuse one. + + remove_simulation_ids : typing.Optional[typing.Sequence[str]] + Simulations to take out of the suite. They are unlinked, not deleted. + + edits : typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] + Simulations to rewrite in place, at most one edit per simulation: put every change for a simulation in one instruction. + + retry_failed : typing.Optional[bool] + Regenerate the scenarios that failed or did not fit when the suite was generated. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SimulationOnboardingSuiteViewDto + + + Examples + -------- + import asyncio + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.simulation_suites.simulation_onboarding_controller_suite_update( + suite_id="suiteId", + patch_key="patchKey", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.simulation_onboarding_controller_suite_update( + suite_id, + patch_key=patch_key, + remove_simulation_ids=remove_simulation_ids, + edits=edits, + retry_failed=retry_failed, + request_options=request_options, + ) + return _response.data diff --git a/src/vapi/simulation_suites/raw_client.py b/src/vapi/simulation_suites/raw_client.py index 01839d7ae..15cae08d8 100644 --- a/src/vapi/simulation_suites/raw_client.py +++ b/src/vapi/simulation_suites/raw_client.py @@ -13,14 +13,27 @@ from ..core.request_options import RequestOptions from ..core.serialization import convert_and_respect_annotation_metadata from ..core.unchecked_base_model import construct_type +from ..errors.bad_gateway_error import BadGatewayError +from ..errors.bad_request_error import BadRequestError from ..errors.conflict_error import ConflictError +from ..errors.forbidden_error import ForbiddenError +from ..errors.gateway_timeout_error import GatewayTimeoutError from ..errors.not_found_error import NotFoundError +from ..errors.service_unavailable_error import ServiceUnavailableError +from ..errors.too_many_requests_error import TooManyRequestsError +from ..errors.unprocessable_entity_error import UnprocessableEntityError +from ..types.simulation_onboarding_error_dto import SimulationOnboardingErrorDto +from ..types.simulation_onboarding_requirement_dto import SimulationOnboardingRequirementDto +from ..types.simulation_onboarding_requirements_draft_dto import SimulationOnboardingRequirementsDraftDto +from ..types.simulation_onboarding_suite_edit_dto import SimulationOnboardingSuiteEditDto +from ..types.simulation_onboarding_suite_view_dto import SimulationOnboardingSuiteViewDto from ..types.simulation_suite import SimulationSuite from ..types.simulation_suite_target_assignment import SimulationSuiteTargetAssignment from .types.simulation_suite_controller_find_all_request_sort_by import SimulationSuiteControllerFindAllRequestSortBy from .types.simulation_suite_controller_find_all_request_sort_order import ( SimulationSuiteControllerFindAllRequestSortOrder, ) +from .types.simulation_suite_controller_find_all_response import SimulationSuiteControllerFindAllResponse from pydantic import ValidationError # this is used as the default value for optional parameters @@ -34,6 +47,8 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def simulation_suite_controller_find_all( self, *, + assistant_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + squad_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, name: typing.Optional[str] = None, page: typing.Optional[float] = None, sort_order: typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] = None, @@ -48,12 +63,18 @@ def simulation_suite_controller_find_all( updated_at_ge: typing.Optional[dt.datetime] = None, updated_at_le: typing.Optional[dt.datetime] = None, request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[typing.List[SimulationSuite]]: + ) -> HttpResponse[SimulationSuiteControllerFindAllResponse]: """ Returns the simulation suites for the authenticated organization. Parameters ---------- + assistant_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned assistant ID. Supplying both assistant and squad filters requires both to match. + + squad_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned squad ID. Supplying both assistant and squad filters requires both to match. + name : typing.Optional[str] Search by simulation suite name @@ -98,13 +119,15 @@ def simulation_suite_controller_find_all( Returns ------- - HttpResponse[typing.List[SimulationSuite]] + HttpResponse[SimulationSuiteControllerFindAllResponse] """ _response = self._client_wrapper.httpx_client.request( "eval/simulation/suite", method="GET", params={ + "assistantId": assistant_id, + "squadId": squad_id, "name": name, "page": page, "sortOrder": sort_order, @@ -124,9 +147,9 @@ def simulation_suite_controller_find_all( try: if 200 <= _response.status_code < 300: _data = typing.cast( - typing.List[SimulationSuite], + SimulationSuiteControllerFindAllResponse, construct_type( - type_=typing.List[SimulationSuite], # type: ignore + type_=SimulationSuiteControllerFindAllResponse, # type: ignore object_=_response.json(), ), ) @@ -451,111 +474,143 @@ def simulation_suite_controller_update( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - -class AsyncRawSimulationSuitesClient: - def __init__(self, *, client_wrapper: AsyncClientWrapper): - self._client_wrapper = client_wrapper - - async def simulation_suite_controller_find_all( + def simulation_onboarding_controller_requirements_draft( self, *, - name: typing.Optional[str] = None, - page: typing.Optional[float] = None, - sort_order: typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] = None, - sort_by: typing.Optional[SimulationSuiteControllerFindAllRequestSortBy] = None, - limit: typing.Optional[float] = None, - created_at_gt: typing.Optional[dt.datetime] = None, - created_at_lt: typing.Optional[dt.datetime] = None, - created_at_ge: typing.Optional[dt.datetime] = None, - created_at_le: typing.Optional[dt.datetime] = None, - updated_at_gt: typing.Optional[dt.datetime] = None, - updated_at_lt: typing.Optional[dt.datetime] = None, - updated_at_ge: typing.Optional[dt.datetime] = None, - updated_at_le: typing.Optional[dt.datetime] = None, + assistant_id: str, + previous_draft: typing.Optional[SimulationOnboardingRequirementsDraftDto] = OMIT, + feedback: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[typing.List[SimulationSuite]]: + ) -> HttpResponse[SimulationOnboardingRequirementsDraftDto]: """ - Returns the simulation suites for the authenticated organization. - - Parameters - ---------- - name : typing.Optional[str] - Search by simulation suite name - - page : typing.Optional[float] - This is the page number to return. Defaults to 1. - - sort_order : typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] - This is the sort order for pagination. Defaults to 'DESC'. - - sort_by : typing.Optional[SimulationSuiteControllerFindAllRequestSortBy] - This is the column to sort by. Defaults to 'createdAt'. - - limit : typing.Optional[float] - This is the maximum number of items to return. Defaults to 100. - - created_at_gt : typing.Optional[dt.datetime] - This will return items where the createdAt is greater than the specified value. - - created_at_lt : typing.Optional[dt.datetime] - This will return items where the createdAt is less than the specified value. - - created_at_ge : typing.Optional[dt.datetime] - This will return items where the createdAt is greater than or equal to the specified value. + Generate draft test requirements from an assistant's prompt, tools, and handoff configuration. The response includes numbered requirements describing expected behavior and open questions about behavior that needs clarification. Use this endpoint before generating a simulation suite. - created_at_le : typing.Optional[dt.datetime] - This will return items where the createdAt is less than or equal to the specified value. + Review the requirements and resolve any open questions. To revise a draft, send it as `previousDraft` together with natural-language `feedback` describing the changes or answers. Once the requirements are ready, pass them to `POST /eval/simulation/onboarding/suite`. - updated_at_gt : typing.Optional[dt.datetime] - This will return items where the updatedAt is greater than the specified value. + Requests can take up to 2 minutes. Each organization can draft requirements 60 times per UTC day, shared with the dashboard. A 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED` response means the daily limit has been reached. Wait until the limit resets at 00:00 UTC before retrying. - updated_at_lt : typing.Optional[dt.datetime] - This will return items where the updatedAt is less than the specified value. + Parameters + ---------- + assistant_id : str + Assistant to draft requirements for. - updated_at_ge : typing.Optional[dt.datetime] - This will return items where the updatedAt is greater than or equal to the specified value. + previous_draft : typing.Optional[SimulationOnboardingRequirementsDraftDto] + The draft being revised, exactly as this endpoint returned it. Send it with `feedback`. - updated_at_le : typing.Optional[dt.datetime] - This will return items where the updatedAt is less than or equal to the specified value. + feedback : typing.Optional[str] + Natural-language instructions for revising the requirements in `previousDraft`, including answers to open questions. Required when `previousDraft` is provided. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - AsyncHttpResponse[typing.List[SimulationSuite]] + HttpResponse[SimulationOnboardingRequirementsDraftDto] """ - _response = await self._client_wrapper.httpx_client.request( - "eval/simulation/suite", - method="GET", - params={ - "name": name, - "page": page, - "sortOrder": sort_order, - "sortBy": sort_by, - "limit": limit, - "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, - "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, - "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, - "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, - "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, - "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, - "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, - "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + _response = self._client_wrapper.httpx_client.request( + "eval/simulation/onboarding/requirements", + method="POST", + json={ + "assistantId": assistant_id, + "previousDraft": convert_and_respect_annotation_metadata( + object_=previous_draft, annotation=SimulationOnboardingRequirementsDraftDto, direction="write" + ), + "feedback": feedback, + }, + headers={ + "content-type": "application/json", }, request_options=request_options, + omit=OMIT, ) try: if 200 <= _response.status_code < 300: _data = typing.cast( - typing.List[SimulationSuite], + SimulationOnboardingRequirementsDraftDto, construct_type( - type_=typing.List[SimulationSuite], # type: ignore + type_=SimulationOnboardingRequirementsDraftDto, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + SimulationOnboardingErrorDto, + construct_type( + type_=SimulationOnboardingErrorDto, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 504: + raise GatewayTimeoutError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -565,59 +620,58 @@ async def simulation_suite_controller_find_all( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - async def simulation_suite_controller_create( + def simulation_onboarding_controller_suite_create( self, *, - name: str, - simulation_ids: typing.Sequence[str], - slack_webhook_url: typing.Optional[str] = OMIT, - target_assignments: typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] = OMIT, - path: typing.Optional[str] = OMIT, + assistant_id: str, + idempotency_key: str, + requirements: typing.Sequence[SimulationOnboardingRequirementDto], request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SimulationSuite]: + ) -> HttpResponse[SimulationOnboardingSuiteViewDto]: """ - Creates a simulation suite, a group of simulations that run together. + Generate and save a simulation suite from reviewed test requirements, and assign it to an assistant. First draft requirements with `POST /eval/simulation/onboarding/requirements`. The response includes the saved suite, its simulations, and requirement coverage, including any gaps. - Parameters - ---------- - name : str - The display name of the suite. + Requests can take up to 3 minutes. Set a client timeout of at least 200 seconds. - simulation_ids : typing.Sequence[str] - The IDs of the simulations included in the suite. + Use a unique `idempotencyKey` for each suite generation request. Retrying with the same key does not create a duplicate suite: + - On a timeout or a 5xx (502, 504, 524), retry with the same key. You get the saved suite, a 409 while it is still generating, or a fresh generation if the first one never saved. + - On a 409 `SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS`, the first request is still generating. Wait `Retry-After` seconds (15) and retry with the same key. + - On a 409 `SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED`, the key was used for a different assistant or requirements. Send a new key. - slack_webhook_url : typing.Optional[str] - A Slack incoming-webhook URL notified when the suite runs. + Review the generated simulations and coverage gaps. Revise the suite with `PATCH /eval/simulation/onboarding/suite/{suiteId}`, then run it with `POST /eval/simulation/run`. - target_assignments : typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] - The assistants or squads the suite's simulations run against. + Each organization can generate 20 suites per UTC day, shared with the dashboard, and 2 at a time. A retry that returns a saved suite does not count toward these limits. On a 429 `SIMULATION_ONBOARDING_CONCURRENCY_LIMITED`, wait `Retry-After` seconds (30) before retrying. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. - path : typing.Optional[str] - Optional folder path for organizing simulation suites. - Supports up to 3 levels (e.g., "dept/feature/variant"). - Maps to GitOps resource folder structure. + Parameters + ---------- + assistant_id : str + Assistant the suite tests and is assigned to. + + idempotency_key : str + A unique key for this suite generation request. Retrying with the same key returns the saved suite, or a 409 while generation is in progress. Use a new key for a different assistant or requirements. + + requirements : typing.Sequence[SimulationOnboardingRequirementDto] + The reviewed test requirements to generate simulations for, from the requirements draft. Each requirement must have a unique id. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - AsyncHttpResponse[SimulationSuite] + HttpResponse[SimulationOnboardingSuiteViewDto] """ - _response = await self._client_wrapper.httpx_client.request( - "eval/simulation/suite", + _response = self._client_wrapper.httpx_client.request( + "eval/simulation/onboarding/suite", method="POST", json={ - "name": name, - "slackWebhookUrl": slack_webhook_url, - "simulationIds": simulation_ids, - "targetAssignments": convert_and_respect_annotation_metadata( - object_=target_assignments, - annotation=typing.Sequence[SimulationSuiteTargetAssignment], + "assistantId": assistant_id, + "idempotencyKey": idempotency_key, + "requirements": convert_and_respect_annotation_metadata( + object_=requirements, + annotation=typing.Sequence[SimulationOnboardingRequirementDto], direction="write", ), - "path": path, }, headers={ "content-type": "application/json", @@ -628,54 +682,35 @@ async def simulation_suite_controller_create( try: if 200 <= _response.status_code < 300: _data = typing.cast( - SimulationSuite, + SimulationOnboardingSuiteViewDto, construct_type( - type_=SimulationSuite, # type: ignore + type_=SimulationOnboardingSuiteViewDto, # type: ignore object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def simulation_suite_controller_duplicate( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SimulationSuite]: - """ - Parameters - ---------- - id : str - The unique identifier for the resource. - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[SimulationSuite] - - """ - _response = await self._client_wrapper.httpx_client.request( - f"eval/simulation/suite/{jsonable_encoder(id)}/duplicate", - method="POST", - request_options=request_options, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - SimulationSuite, - construct_type( - type_=SimulationSuite, # type: ignore - object_=_response.json(), + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), ), ) - return AsyncHttpResponse(response=_response, data=_data) if _response.status_code == 404: raise NotFoundError( headers=dict(_response.headers), @@ -698,16 +733,504 @@ async def simulation_suite_controller_duplicate( ), ), ) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - - async def simulation_suite_controller_find_one( + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + SimulationOnboardingErrorDto, + construct_type( + type_=SimulationOnboardingErrorDto, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 504: + raise GatewayTimeoutError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def simulation_onboarding_controller_suite_update( + self, + suite_id: str, + *, + patch_key: str, + remove_simulation_ids: typing.Optional[typing.Sequence[str]] = OMIT, + edits: typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] = OMIT, + retry_failed: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[SimulationOnboardingSuiteViewDto]: + """ + Revise a suite created by `POST /eval/simulation/onboarding/suite`. Remove simulations, rewrite scenarios using natural-language instructions, or set `retryFailed` to regenerate scenarios that failed or exceeded generation limits. The response includes the updated suite and requirement coverage. + + Requests can take up to 2 minutes. + + Send a new `patchKey` for each edit. Replaying an applied key changes nothing and returns the current suite, with `failedEditSimulationIds` listing the simulations that edit could not rewrite, so retry a timeout or a 5xx with the same key. A suite remembers its last 50 keys, so never reuse one. + + Each organization can make 60 edits per UTC day, shared with the dashboard. Requests that only remove simulations and replays of applied edits do not count toward this limit. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + suite_id : str + + patch_key : str + A new key for each edit. Replaying an applied key changes nothing and returns the current suite. A suite remembers its last 50 keys, so never reuse one. + + remove_simulation_ids : typing.Optional[typing.Sequence[str]] + Simulations to take out of the suite. They are unlinked, not deleted. + + edits : typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] + Simulations to rewrite in place, at most one edit per simulation: put every change for a simulation in one instruction. + + retry_failed : typing.Optional[bool] + Regenerate the scenarios that failed or did not fit when the suite was generated. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[SimulationOnboardingSuiteViewDto] + + """ + _response = self._client_wrapper.httpx_client.request( + f"eval/simulation/onboarding/suite/{jsonable_encoder(suite_id)}", + method="PATCH", + json={ + "patchKey": patch_key, + "removeSimulationIds": remove_simulation_ids, + "edits": convert_and_respect_annotation_metadata( + object_=edits, annotation=typing.Sequence[SimulationOnboardingSuiteEditDto], direction="write" + ), + "retryFailed": retry_failed, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationOnboardingSuiteViewDto, + construct_type( + type_=SimulationOnboardingSuiteViewDto, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + SimulationOnboardingErrorDto, + construct_type( + type_=SimulationOnboardingErrorDto, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 504: + raise GatewayTimeoutError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + +class AsyncRawSimulationSuitesClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def simulation_suite_controller_find_all( + self, + *, + assistant_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + squad_id: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + name: typing.Optional[str] = None, + page: typing.Optional[float] = None, + sort_order: typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] = None, + sort_by: typing.Optional[SimulationSuiteControllerFindAllRequestSortBy] = None, + limit: typing.Optional[float] = None, + created_at_gt: typing.Optional[dt.datetime] = None, + created_at_lt: typing.Optional[dt.datetime] = None, + created_at_ge: typing.Optional[dt.datetime] = None, + created_at_le: typing.Optional[dt.datetime] = None, + updated_at_gt: typing.Optional[dt.datetime] = None, + updated_at_lt: typing.Optional[dt.datetime] = None, + updated_at_ge: typing.Optional[dt.datetime] = None, + updated_at_le: typing.Optional[dt.datetime] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[SimulationSuiteControllerFindAllResponse]: + """ + Returns the simulation suites for the authenticated organization. + + Parameters + ---------- + assistant_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned assistant ID. Supplying both assistant and squad filters requires both to match. + + squad_id : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Filter by any assigned squad ID. Supplying both assistant and squad filters requires both to match. + + name : typing.Optional[str] + Search by simulation suite name + + page : typing.Optional[float] + This is the page number to return. Defaults to 1. + + sort_order : typing.Optional[SimulationSuiteControllerFindAllRequestSortOrder] + This is the sort order for pagination. Defaults to 'DESC'. + + sort_by : typing.Optional[SimulationSuiteControllerFindAllRequestSortBy] + This is the column to sort by. Defaults to 'createdAt'. + + limit : typing.Optional[float] + This is the maximum number of items to return. Defaults to 100. + + created_at_gt : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than the specified value. + + created_at_lt : typing.Optional[dt.datetime] + This will return items where the createdAt is less than the specified value. + + created_at_ge : typing.Optional[dt.datetime] + This will return items where the createdAt is greater than or equal to the specified value. + + created_at_le : typing.Optional[dt.datetime] + This will return items where the createdAt is less than or equal to the specified value. + + updated_at_gt : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than the specified value. + + updated_at_lt : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than the specified value. + + updated_at_ge : typing.Optional[dt.datetime] + This will return items where the updatedAt is greater than or equal to the specified value. + + updated_at_le : typing.Optional[dt.datetime] + This will return items where the updatedAt is less than or equal to the specified value. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[SimulationSuiteControllerFindAllResponse] + + """ + _response = await self._client_wrapper.httpx_client.request( + "eval/simulation/suite", + method="GET", + params={ + "assistantId": assistant_id, + "squadId": squad_id, + "name": name, + "page": page, + "sortOrder": sort_order, + "sortBy": sort_by, + "limit": limit, + "createdAtGt": serialize_datetime(created_at_gt) if created_at_gt is not None else None, + "createdAtLt": serialize_datetime(created_at_lt) if created_at_lt is not None else None, + "createdAtGe": serialize_datetime(created_at_ge) if created_at_ge is not None else None, + "createdAtLe": serialize_datetime(created_at_le) if created_at_le is not None else None, + "updatedAtGt": serialize_datetime(updated_at_gt) if updated_at_gt is not None else None, + "updatedAtLt": serialize_datetime(updated_at_lt) if updated_at_lt is not None else None, + "updatedAtGe": serialize_datetime(updated_at_ge) if updated_at_ge is not None else None, + "updatedAtLe": serialize_datetime(updated_at_le) if updated_at_le is not None else None, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationSuiteControllerFindAllResponse, + construct_type( + type_=SimulationSuiteControllerFindAllResponse, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def simulation_suite_controller_create( + self, + *, + name: str, + simulation_ids: typing.Sequence[str], + slack_webhook_url: typing.Optional[str] = OMIT, + target_assignments: typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] = OMIT, + path: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[SimulationSuite]: + """ + Creates a simulation suite, a group of simulations that run together. + + Parameters + ---------- + name : str + The display name of the suite. + + simulation_ids : typing.Sequence[str] + The IDs of the simulations included in the suite. + + slack_webhook_url : typing.Optional[str] + A Slack incoming-webhook URL notified when the suite runs. + + target_assignments : typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] + The assistants or squads the suite's simulations run against. + + path : typing.Optional[str] + Optional folder path for organizing simulation suites. + Supports up to 3 levels (e.g., "dept/feature/variant"). + Maps to GitOps resource folder structure. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[SimulationSuite] + + """ + _response = await self._client_wrapper.httpx_client.request( + "eval/simulation/suite", + method="POST", + json={ + "name": name, + "slackWebhookUrl": slack_webhook_url, + "simulationIds": simulation_ids, + "targetAssignments": convert_and_respect_annotation_metadata( + object_=target_assignments, + annotation=typing.Sequence[SimulationSuiteTargetAssignment], + direction="write", + ), + "path": path, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationSuite, + construct_type( + type_=SimulationSuite, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def simulation_suite_controller_duplicate( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[SimulationSuite]: + """ + Parameters + ---------- + id : str + The unique identifier for the resource. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[SimulationSuite] + + """ + _response = await self._client_wrapper.httpx_client.request( + f"eval/simulation/suite/{jsonable_encoder(id)}/duplicate", + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationSuite, + construct_type( + type_=SimulationSuite, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def simulation_suite_controller_find_one( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[SimulationSuite]: """ @@ -740,7 +1263,279 @@ async def simulation_suite_controller_find_one( object_=_response.json(), ), ) - return AsyncHttpResponse(response=_response, data=_data) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def simulation_suite_controller_remove( + self, id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[SimulationSuite]: + """ + Deletes the specified simulation suite. + + Parameters + ---------- + id : str + The unique identifier of the simulation suite. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[SimulationSuite] + + """ + _response = await self._client_wrapper.httpx_client.request( + f"eval/simulation/suite/{jsonable_encoder(id)}", + method="DELETE", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationSuite, + construct_type( + type_=SimulationSuite, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def simulation_suite_controller_update( + self, + id: str, + *, + name: typing.Optional[str] = OMIT, + slack_webhook_url: typing.Optional[str] = OMIT, + simulation_ids: typing.Optional[typing.Sequence[str]] = OMIT, + target_assignments: typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] = OMIT, + path: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[SimulationSuite]: + """ + Updates the specified simulation suite. + + Parameters + ---------- + id : str + The unique identifier of the simulation suite. + + name : typing.Optional[str] + This is the name of the simulation suite. + + slack_webhook_url : typing.Optional[str] + This is the Slack webhook URL for notifications. + + simulation_ids : typing.Optional[typing.Sequence[str]] + This is the list of simulation IDs to include in the suite (replaces existing). + + target_assignments : typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] + Optional assistant or squad assignments (replaces existing). + + path : typing.Optional[str] + Optional folder path for organizing simulation suites. + Supports up to 3 levels (e.g., "dept/feature/variant"). + Set to null to remove from folder. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[SimulationSuite] + + """ + _response = await self._client_wrapper.httpx_client.request( + f"eval/simulation/suite/{jsonable_encoder(id)}", + method="PATCH", + json={ + "name": name, + "slackWebhookUrl": slack_webhook_url, + "simulationIds": simulation_ids, + "targetAssignments": convert_and_respect_annotation_metadata( + object_=target_assignments, + annotation=typing.Sequence[SimulationSuiteTargetAssignment], + direction="write", + ), + "path": path, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationSuite, + construct_type( + type_=SimulationSuite, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def simulation_onboarding_controller_requirements_draft( + self, + *, + assistant_id: str, + previous_draft: typing.Optional[SimulationOnboardingRequirementsDraftDto] = OMIT, + feedback: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[SimulationOnboardingRequirementsDraftDto]: + """ + Generate draft test requirements from an assistant's prompt, tools, and handoff configuration. The response includes numbered requirements describing expected behavior and open questions about behavior that needs clarification. Use this endpoint before generating a simulation suite. + + Review the requirements and resolve any open questions. To revise a draft, send it as `previousDraft` together with natural-language `feedback` describing the changes or answers. Once the requirements are ready, pass them to `POST /eval/simulation/onboarding/suite`. + + Requests can take up to 2 minutes. Each organization can draft requirements 60 times per UTC day, shared with the dashboard. A 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED` response means the daily limit has been reached. Wait until the limit resets at 00:00 UTC before retrying. + + Parameters + ---------- + assistant_id : str + Assistant to draft requirements for. + + previous_draft : typing.Optional[SimulationOnboardingRequirementsDraftDto] + The draft being revised, exactly as this endpoint returned it. Send it with `feedback`. + + feedback : typing.Optional[str] + Natural-language instructions for revising the requirements in `previousDraft`, including answers to open questions. Required when `previousDraft` is provided. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[SimulationOnboardingRequirementsDraftDto] + + """ + _response = await self._client_wrapper.httpx_client.request( + "eval/simulation/onboarding/requirements", + method="POST", + json={ + "assistantId": assistant_id, + "previousDraft": convert_and_respect_annotation_metadata( + object_=previous_draft, annotation=SimulationOnboardingRequirementsDraftDto, direction="write" + ), + "feedback": feedback, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + SimulationOnboardingRequirementsDraftDto, + construct_type( + type_=SimulationOnboardingRequirementsDraftDto, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + SimulationOnboardingErrorDto, + construct_type( + type_=SimulationOnboardingErrorDto, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 504: + raise GatewayTimeoutError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -750,40 +1545,174 @@ async def simulation_suite_controller_find_one( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - async def simulation_suite_controller_remove( - self, id: str, *, request_options: typing.Optional[RequestOptions] = None - ) -> AsyncHttpResponse[SimulationSuite]: + async def simulation_onboarding_controller_suite_create( + self, + *, + assistant_id: str, + idempotency_key: str, + requirements: typing.Sequence[SimulationOnboardingRequirementDto], + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[SimulationOnboardingSuiteViewDto]: """ - Deletes the specified simulation suite. + Generate and save a simulation suite from reviewed test requirements, and assign it to an assistant. First draft requirements with `POST /eval/simulation/onboarding/requirements`. The response includes the saved suite, its simulations, and requirement coverage, including any gaps. + + Requests can take up to 3 minutes. Set a client timeout of at least 200 seconds. + + Use a unique `idempotencyKey` for each suite generation request. Retrying with the same key does not create a duplicate suite: + - On a timeout or a 5xx (502, 504, 524), retry with the same key. You get the saved suite, a 409 while it is still generating, or a fresh generation if the first one never saved. + - On a 409 `SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS`, the first request is still generating. Wait `Retry-After` seconds (15) and retry with the same key. + - On a 409 `SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED`, the key was used for a different assistant or requirements. Send a new key. + + Review the generated simulations and coverage gaps. Revise the suite with `PATCH /eval/simulation/onboarding/suite/{suiteId}`, then run it with `POST /eval/simulation/run`. + + Each organization can generate 20 suites per UTC day, shared with the dashboard, and 2 at a time. A retry that returns a saved suite does not count toward these limits. On a 429 `SIMULATION_ONBOARDING_CONCURRENCY_LIMITED`, wait `Retry-After` seconds (30) before retrying. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. Parameters ---------- - id : str - The unique identifier of the simulation suite. + assistant_id : str + Assistant the suite tests and is assigned to. + + idempotency_key : str + A unique key for this suite generation request. Retrying with the same key returns the saved suite, or a 409 while generation is in progress. Use a new key for a different assistant or requirements. + + requirements : typing.Sequence[SimulationOnboardingRequirementDto] + The reviewed test requirements to generate simulations for, from the requirements draft. Each requirement must have a unique id. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - AsyncHttpResponse[SimulationSuite] + AsyncHttpResponse[SimulationOnboardingSuiteViewDto] """ _response = await self._client_wrapper.httpx_client.request( - f"eval/simulation/suite/{jsonable_encoder(id)}", - method="DELETE", + "eval/simulation/onboarding/suite", + method="POST", + json={ + "assistantId": assistant_id, + "idempotencyKey": idempotency_key, + "requirements": convert_and_respect_annotation_metadata( + object_=requirements, + annotation=typing.Sequence[SimulationOnboardingRequirementDto], + direction="write", + ), + }, + headers={ + "content-type": "application/json", + }, request_options=request_options, + omit=OMIT, ) try: if 200 <= _response.status_code < 300: _data = typing.cast( - SimulationSuite, + SimulationOnboardingSuiteViewDto, construct_type( - type_=SimulationSuite, # type: ignore + type_=SimulationOnboardingSuiteViewDto, # type: ignore object_=_response.json(), ), ) return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + SimulationOnboardingErrorDto, + construct_type( + type_=SimulationOnboardingErrorDto, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 504: + raise GatewayTimeoutError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -793,63 +1722,59 @@ async def simulation_suite_controller_remove( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - async def simulation_suite_controller_update( + async def simulation_onboarding_controller_suite_update( self, - id: str, + suite_id: str, *, - name: typing.Optional[str] = OMIT, - slack_webhook_url: typing.Optional[str] = OMIT, - simulation_ids: typing.Optional[typing.Sequence[str]] = OMIT, - target_assignments: typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] = OMIT, - path: typing.Optional[str] = OMIT, + patch_key: str, + remove_simulation_ids: typing.Optional[typing.Sequence[str]] = OMIT, + edits: typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] = OMIT, + retry_failed: typing.Optional[bool] = OMIT, request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[SimulationSuite]: + ) -> AsyncHttpResponse[SimulationOnboardingSuiteViewDto]: """ - Updates the specified simulation suite. + Revise a suite created by `POST /eval/simulation/onboarding/suite`. Remove simulations, rewrite scenarios using natural-language instructions, or set `retryFailed` to regenerate scenarios that failed or exceeded generation limits. The response includes the updated suite and requirement coverage. + + Requests can take up to 2 minutes. + + Send a new `patchKey` for each edit. Replaying an applied key changes nothing and returns the current suite, with `failedEditSimulationIds` listing the simulations that edit could not rewrite, so retry a timeout or a 5xx with the same key. A suite remembers its last 50 keys, so never reuse one. + + Each organization can make 60 edits per UTC day, shared with the dashboard. Requests that only remove simulations and replays of applied edits do not count toward this limit. On a 429 `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`, wait until the daily limit resets at 00:00 UTC before retrying. Parameters ---------- - id : str - The unique identifier of the simulation suite. - - name : typing.Optional[str] - This is the name of the simulation suite. + suite_id : str - slack_webhook_url : typing.Optional[str] - This is the Slack webhook URL for notifications. + patch_key : str + A new key for each edit. Replaying an applied key changes nothing and returns the current suite. A suite remembers its last 50 keys, so never reuse one. - simulation_ids : typing.Optional[typing.Sequence[str]] - This is the list of simulation IDs to include in the suite (replaces existing). + remove_simulation_ids : typing.Optional[typing.Sequence[str]] + Simulations to take out of the suite. They are unlinked, not deleted. - target_assignments : typing.Optional[typing.Sequence[SimulationSuiteTargetAssignment]] - Optional assistant or squad assignments (replaces existing). + edits : typing.Optional[typing.Sequence[SimulationOnboardingSuiteEditDto]] + Simulations to rewrite in place, at most one edit per simulation: put every change for a simulation in one instruction. - path : typing.Optional[str] - Optional folder path for organizing simulation suites. - Supports up to 3 levels (e.g., "dept/feature/variant"). - Set to null to remove from folder. + retry_failed : typing.Optional[bool] + Regenerate the scenarios that failed or did not fit when the suite was generated. request_options : typing.Optional[RequestOptions] Request-specific configuration. Returns ------- - AsyncHttpResponse[SimulationSuite] + AsyncHttpResponse[SimulationOnboardingSuiteViewDto] """ _response = await self._client_wrapper.httpx_client.request( - f"eval/simulation/suite/{jsonable_encoder(id)}", + f"eval/simulation/onboarding/suite/{jsonable_encoder(suite_id)}", method="PATCH", json={ - "name": name, - "slackWebhookUrl": slack_webhook_url, - "simulationIds": simulation_ids, - "targetAssignments": convert_and_respect_annotation_metadata( - object_=target_assignments, - annotation=typing.Sequence[SimulationSuiteTargetAssignment], - direction="write", + "patchKey": patch_key, + "removeSimulationIds": remove_simulation_ids, + "edits": convert_and_respect_annotation_metadata( + object_=edits, annotation=typing.Sequence[SimulationOnboardingSuiteEditDto], direction="write" ), - "path": path, + "retryFailed": retry_failed, }, headers={ "content-type": "application/json", @@ -860,13 +1785,101 @@ async def simulation_suite_controller_update( try: if 200 <= _response.status_code < 300: _data = typing.cast( - SimulationSuite, + SimulationOnboardingSuiteViewDto, construct_type( - type_=SimulationSuite, # type: ignore + type_=SimulationOnboardingSuiteViewDto, # type: ignore object_=_response.json(), ), ) return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + SimulationOnboardingErrorDto, + construct_type( + type_=SimulationOnboardingErrorDto, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 504: + raise GatewayTimeoutError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/vapi/simulation_suites/types/__init__.py b/src/vapi/simulation_suites/types/__init__.py index 30149a001..8fa3d799b 100644 --- a/src/vapi/simulation_suites/types/__init__.py +++ b/src/vapi/simulation_suites/types/__init__.py @@ -10,9 +10,11 @@ from .simulation_suite_controller_find_all_request_sort_order import ( SimulationSuiteControllerFindAllRequestSortOrder, ) + from .simulation_suite_controller_find_all_response import SimulationSuiteControllerFindAllResponse _dynamic_imports: typing.Dict[str, str] = { "SimulationSuiteControllerFindAllRequestSortBy": ".simulation_suite_controller_find_all_request_sort_by", "SimulationSuiteControllerFindAllRequestSortOrder": ".simulation_suite_controller_find_all_request_sort_order", + "SimulationSuiteControllerFindAllResponse": ".simulation_suite_controller_find_all_response", } @@ -37,4 +39,8 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["SimulationSuiteControllerFindAllRequestSortBy", "SimulationSuiteControllerFindAllRequestSortOrder"] +__all__ = [ + "SimulationSuiteControllerFindAllRequestSortBy", + "SimulationSuiteControllerFindAllRequestSortOrder", + "SimulationSuiteControllerFindAllResponse", +] diff --git a/src/vapi/simulation_suites/types/simulation_suite_controller_find_all_response.py b/src/vapi/simulation_suites/types/simulation_suite_controller_find_all_response.py new file mode 100644 index 000000000..76e6770c7 --- /dev/null +++ b/src/vapi/simulation_suites/types/simulation_suite_controller_find_all_response.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ...types.simulation_suite import SimulationSuite +from ...types.simulation_suites_paginated_response import SimulationSuitesPaginatedResponse + +SimulationSuiteControllerFindAllResponse = typing.Union[typing.List[SimulationSuite], SimulationSuitesPaginatedResponse] diff --git a/src/vapi/simulations/client.py b/src/vapi/simulations/client.py index a671e7eb0..58a13a333 100644 --- a/src/vapi/simulations/client.py +++ b/src/vapi/simulations/client.py @@ -5,7 +5,6 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ..core.request_options import RequestOptions -from ..types.generate_scenarios_response import GenerateScenariosResponse from ..types.simulation import Simulation from ..types.simulation_concurrency_response import SimulationConcurrencyResponse from .raw_client import AsyncRawSimulationsClient, RawSimulationsClient @@ -31,46 +30,6 @@ def with_raw_response(self) -> RawSimulationsClient: """ return self._raw_client - def simulation_generate_controller_generate( - self, - *, - assistant_id: typing.Optional[str] = OMIT, - squad_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> GenerateScenariosResponse: - """ - Generates scenarios for an assistant or squad by analyzing its configuration with AI. - - Parameters - ---------- - assistant_id : typing.Optional[str] - ID of the assistant to generate scenarios for - - squad_id : typing.Optional[str] - ID of the squad to generate scenarios for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GenerateScenariosResponse - - - Examples - -------- - from vapi import Vapi - - client = Vapi( - token="YOUR_TOKEN", - ) - client.simulations.simulation_generate_controller_generate() - """ - _response = self._raw_client.simulation_generate_controller_generate( - assistant_id=assistant_id, squad_id=squad_id, request_options=request_options - ) - return _response.data - def simulation_controller_find_all( self, *, @@ -401,54 +360,6 @@ def with_raw_response(self) -> AsyncRawSimulationsClient: """ return self._raw_client - async def simulation_generate_controller_generate( - self, - *, - assistant_id: typing.Optional[str] = OMIT, - squad_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> GenerateScenariosResponse: - """ - Generates scenarios for an assistant or squad by analyzing its configuration with AI. - - Parameters - ---------- - assistant_id : typing.Optional[str] - ID of the assistant to generate scenarios for - - squad_id : typing.Optional[str] - ID of the squad to generate scenarios for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - GenerateScenariosResponse - - - Examples - -------- - import asyncio - - from vapi import AsyncVapi - - client = AsyncVapi( - token="YOUR_TOKEN", - ) - - - async def main() -> None: - await client.simulations.simulation_generate_controller_generate() - - - asyncio.run(main()) - """ - _response = await self._raw_client.simulation_generate_controller_generate( - assistant_id=assistant_id, squad_id=squad_id, request_options=request_options - ) - return _response.data - async def simulation_controller_find_all( self, *, diff --git a/src/vapi/simulations/raw_client.py b/src/vapi/simulations/raw_client.py index f867bfada..91ac32ad4 100644 --- a/src/vapi/simulations/raw_client.py +++ b/src/vapi/simulations/raw_client.py @@ -12,7 +12,6 @@ from ..core.parse_error import ParsingError from ..core.request_options import RequestOptions from ..core.unchecked_base_model import construct_type -from ..types.generate_scenarios_response import GenerateScenariosResponse from ..types.simulation import Simulation from ..types.simulation_concurrency_response import SimulationConcurrencyResponse from .types.simulation_controller_find_all_request_sort_by import SimulationControllerFindAllRequestSortBy @@ -27,64 +26,6 @@ class RawSimulationsClient: def __init__(self, *, client_wrapper: SyncClientWrapper): self._client_wrapper = client_wrapper - def simulation_generate_controller_generate( - self, - *, - assistant_id: typing.Optional[str] = OMIT, - squad_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> HttpResponse[GenerateScenariosResponse]: - """ - Generates scenarios for an assistant or squad by analyzing its configuration with AI. - - Parameters - ---------- - assistant_id : typing.Optional[str] - ID of the assistant to generate scenarios for - - squad_id : typing.Optional[str] - ID of the squad to generate scenarios for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - HttpResponse[GenerateScenariosResponse] - - """ - _response = self._client_wrapper.httpx_client.request( - "eval/simulation/scenario/generate", - method="POST", - json={ - "assistantId": assistant_id, - "squadId": squad_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GenerateScenariosResponse, - construct_type( - type_=GenerateScenariosResponse, # type: ignore - object_=_response.json(), - ), - ) - return HttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - def simulation_controller_find_all( self, *, @@ -474,64 +415,6 @@ class AsyncRawSimulationsClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): self._client_wrapper = client_wrapper - async def simulation_generate_controller_generate( - self, - *, - assistant_id: typing.Optional[str] = OMIT, - squad_id: typing.Optional[str] = OMIT, - request_options: typing.Optional[RequestOptions] = None, - ) -> AsyncHttpResponse[GenerateScenariosResponse]: - """ - Generates scenarios for an assistant or squad by analyzing its configuration with AI. - - Parameters - ---------- - assistant_id : typing.Optional[str] - ID of the assistant to generate scenarios for - - squad_id : typing.Optional[str] - ID of the squad to generate scenarios for - - request_options : typing.Optional[RequestOptions] - Request-specific configuration. - - Returns - ------- - AsyncHttpResponse[GenerateScenariosResponse] - - """ - _response = await self._client_wrapper.httpx_client.request( - "eval/simulation/scenario/generate", - method="POST", - json={ - "assistantId": assistant_id, - "squadId": squad_id, - }, - headers={ - "content-type": "application/json", - }, - request_options=request_options, - omit=OMIT, - ) - try: - if 200 <= _response.status_code < 300: - _data = typing.cast( - GenerateScenariosResponse, - construct_type( - type_=GenerateScenariosResponse, # type: ignore - object_=_response.json(), - ), - ) - return AsyncHttpResponse(response=_response, data=_data) - _response_json = _response.json() - except JSONDecodeError: - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) - except ValidationError as e: - raise ParsingError( - status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e - ) - raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) - async def simulation_controller_find_all( self, *, diff --git a/src/vapi/structured_outputs/client.py b/src/vapi/structured_outputs/client.py index db6179251..db335d493 100644 --- a/src/vapi/structured_outputs/client.py +++ b/src/vapi/structured_outputs/client.py @@ -211,7 +211,8 @@ def structured_output_controller_create( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -411,7 +412,8 @@ def structured_output_controller_update( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -739,7 +741,8 @@ async def structured_output_controller_create( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -963,7 +966,8 @@ async def structured_output_controller_update( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` diff --git a/src/vapi/structured_outputs/raw_client.py b/src/vapi/structured_outputs/raw_client.py index 3bac450f7..b44b46ef8 100644 --- a/src/vapi/structured_outputs/raw_client.py +++ b/src/vapi/structured_outputs/raw_client.py @@ -13,6 +13,7 @@ from ..core.request_options import RequestOptions from ..core.serialization import convert_and_respect_annotation_metadata from ..core.unchecked_base_model import construct_type +from ..errors.conflict_error import ConflictError from ..types.compliance_override import ComplianceOverride from ..types.create_structured_output_dto import CreateStructuredOutputDto from ..types.create_structured_output_dto_conditions_item import CreateStructuredOutputDtoConditionsItem @@ -220,7 +221,8 @@ def structured_output_controller_create( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -298,6 +300,17 @@ def structured_output_controller_create( ), ) return HttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -384,6 +397,17 @@ def structured_output_controller_remove( ), ) return HttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -458,7 +482,8 @@ def structured_output_controller_update( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -550,6 +575,17 @@ def structured_output_controller_update( ), ) return HttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -819,7 +855,8 @@ async def structured_output_controller_create( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -897,6 +934,17 @@ async def structured_output_controller_create( ), ) return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -983,6 +1031,17 @@ async def structured_output_controller_remove( ), ) return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) @@ -1057,7 +1116,8 @@ async def structured_output_controller_update( This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -1149,6 +1209,17 @@ async def structured_output_controller_update( ), ) return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) _response_json = _response.json() except JSONDecodeError: raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) diff --git a/src/vapi/structured_outputs/types/update_structured_output_dto_model.py b/src/vapi/structured_outputs/types/update_structured_output_dto_model.py index 887bf675b..f3528e872 100644 --- a/src/vapi/structured_outputs/types/update_structured_output_dto_model.py +++ b/src/vapi/structured_outputs/types/update_structured_output_dto_model.py @@ -16,6 +16,7 @@ from ...types.workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from ...types.workflow_google_model_model import WorkflowGoogleModelModel from ...types.workflow_open_ai_model_model import WorkflowOpenAiModelModel +from ...types.workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class UpdateStructuredOutputDtoModel_Openai(UncheckedBaseModel): @@ -23,7 +24,8 @@ class UpdateStructuredOutputDtoModel_Openai(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -38,6 +40,11 @@ class UpdateStructuredOutputDtoModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") @@ -58,7 +65,8 @@ class UpdateStructuredOutputDtoModel_Anthropic(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -94,7 +102,8 @@ class UpdateStructuredOutputDtoModel_AnthropicBedrock(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -130,7 +139,8 @@ class UpdateStructuredOutputDtoModel_Google(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -165,7 +175,8 @@ class UpdateStructuredOutputDtoModel_CustomLlm(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` diff --git a/src/vapi/tools/types/create_tools_request.py b/src/vapi/tools/types/create_tools_request.py index 7811f8c8c..6b554ef30 100644 --- a/src/vapi/tools/types/create_tools_request.py +++ b/src/vapi/tools/types/create_tools_request.py @@ -620,9 +620,6 @@ class Config: from ...types.cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from ...types.conversation_node import ConversationNode # noqa: E402, I001 from ...types.conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from ...types.create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from ...types.create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from ...types.create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from ...types.create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from ...types.create_squad_dto import CreateSquadDto # noqa: E402, I001 from ...types.custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -656,6 +653,9 @@ class Config: from ...types.tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from ...types.tool_node import ToolNode # noqa: E402, I001 from ...types.tool_node_tool import ToolNodeTool # noqa: E402, I001 +from ...types.transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from ...types.transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from ...types.transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from ...types.vapi_model import VapiModel # noqa: E402, I001 from ...types.vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from ...types.workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -695,9 +695,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -731,6 +728,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/tools/types/create_tools_response.py b/src/vapi/tools/types/create_tools_response.py index 89ee4876d..2021aa652 100644 --- a/src/vapi/tools/types/create_tools_response.py +++ b/src/vapi/tools/types/create_tools_response.py @@ -71,6 +71,9 @@ class CreateToolsResponse_ApiRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ApiRequestToolMessagesItem]] = None name: typing.Optional[str] = None method: ApiRequestToolMethod @@ -123,6 +126,9 @@ class CreateToolsResponse_Code(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[CodeToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -173,6 +179,9 @@ class CreateToolsResponse_Dtmf(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[DtmfToolMessagesItem]] = None sip_info_dtmf_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="sipInfoDtmfEnabled"), pydantic.Field(alias="sipInfoDtmfEnabled") @@ -204,6 +213,9 @@ class CreateToolsResponse_EndCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[EndCallToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -232,6 +244,9 @@ class CreateToolsResponse_Function(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[FunctionToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -271,6 +286,9 @@ class CreateToolsResponse_KnowledgeBase(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[KnowledgeBaseToolMessagesItem]] = None knowledge_base_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="knowledgeBaseId"), pydantic.Field(alias="knowledgeBaseId") @@ -303,6 +321,9 @@ class CreateToolsResponse_TransferCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TransferCallToolMessagesItem]] = None destinations: typing.Optional[typing.List[TransferCallToolDestinationsItem]] = None id: str @@ -332,6 +353,9 @@ class CreateToolsResponse_Handoff(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[HandoffToolMessagesItem]] = None default_result: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="defaultResult"), pydantic.Field(alias="defaultResult") @@ -365,6 +389,9 @@ class CreateToolsResponse_Bash(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[BashToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ BashToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -398,6 +425,9 @@ class CreateToolsResponse_Computer(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ComputerToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ ComputerToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -440,6 +470,9 @@ class CreateToolsResponse_TextEditor(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TextEditorToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ TextEditorToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -473,6 +506,9 @@ class CreateToolsResponse_Query(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[QueryToolMessagesItem]] = None knowledge_bases: typing_extensions.Annotated[ typing.Optional[typing.List[KnowledgeBase]], @@ -506,6 +542,9 @@ class CreateToolsResponse_GoogleCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCreateEventToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -534,6 +573,9 @@ class CreateToolsResponse_GoogleSheetsRowAppend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleSheetsRowAppendToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -562,6 +604,9 @@ class CreateToolsResponse_GoogleCalendarAvailabilityCheck(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCheckAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -590,6 +635,9 @@ class CreateToolsResponse_SlackMessageSend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SlackSendMessageToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -618,6 +666,9 @@ class CreateToolsResponse_Sms(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SmsToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -646,6 +697,9 @@ class CreateToolsResponse_Mcp(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[McpToolMessagesItem]] = None server: typing.Optional[Server] = None tool_messages: typing_extensions.Annotated[ @@ -681,6 +735,9 @@ class CreateToolsResponse_GohighlevelCalendarAvailabilityCheck(UncheckedBaseMode latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -709,6 +766,9 @@ class CreateToolsResponse_GohighlevelCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarEventCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -737,6 +797,9 @@ class CreateToolsResponse_GohighlevelContactCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -765,6 +828,9 @@ class CreateToolsResponse_GohighlevelContactGet(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactGetToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -793,6 +859,9 @@ class CreateToolsResponse_SipRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SipRequestToolMessagesItem]] = None verb: SipRequestToolVerb headers: typing.Optional["JsonSchema"] = None @@ -824,6 +893,9 @@ class CreateToolsResponse_Voicemail(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[VoicemailToolMessagesItem]] = None beep_detection_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="beepDetectionEnabled"), pydantic.Field(alias="beepDetectionEnabled") @@ -855,6 +927,9 @@ class CreateToolsResponse_Ghl(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GhlToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] diff --git a/src/vapi/tools/types/delete_tools_response.py b/src/vapi/tools/types/delete_tools_response.py index dd44207b4..3583988fd 100644 --- a/src/vapi/tools/types/delete_tools_response.py +++ b/src/vapi/tools/types/delete_tools_response.py @@ -71,6 +71,9 @@ class DeleteToolsResponse_ApiRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ApiRequestToolMessagesItem]] = None name: typing.Optional[str] = None method: ApiRequestToolMethod @@ -123,6 +126,9 @@ class DeleteToolsResponse_Code(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[CodeToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -173,6 +179,9 @@ class DeleteToolsResponse_Dtmf(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[DtmfToolMessagesItem]] = None sip_info_dtmf_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="sipInfoDtmfEnabled"), pydantic.Field(alias="sipInfoDtmfEnabled") @@ -204,6 +213,9 @@ class DeleteToolsResponse_EndCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[EndCallToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -232,6 +244,9 @@ class DeleteToolsResponse_Function(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[FunctionToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -271,6 +286,9 @@ class DeleteToolsResponse_KnowledgeBase(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[KnowledgeBaseToolMessagesItem]] = None knowledge_base_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="knowledgeBaseId"), pydantic.Field(alias="knowledgeBaseId") @@ -303,6 +321,9 @@ class DeleteToolsResponse_TransferCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TransferCallToolMessagesItem]] = None destinations: typing.Optional[typing.List[TransferCallToolDestinationsItem]] = None id: str @@ -332,6 +353,9 @@ class DeleteToolsResponse_Handoff(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[HandoffToolMessagesItem]] = None default_result: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="defaultResult"), pydantic.Field(alias="defaultResult") @@ -365,6 +389,9 @@ class DeleteToolsResponse_Bash(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[BashToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ BashToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -398,6 +425,9 @@ class DeleteToolsResponse_Computer(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ComputerToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ ComputerToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -440,6 +470,9 @@ class DeleteToolsResponse_TextEditor(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TextEditorToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ TextEditorToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -473,6 +506,9 @@ class DeleteToolsResponse_Query(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[QueryToolMessagesItem]] = None knowledge_bases: typing_extensions.Annotated[ typing.Optional[typing.List[KnowledgeBase]], @@ -506,6 +542,9 @@ class DeleteToolsResponse_GoogleCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCreateEventToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -534,6 +573,9 @@ class DeleteToolsResponse_GoogleSheetsRowAppend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleSheetsRowAppendToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -562,6 +604,9 @@ class DeleteToolsResponse_GoogleCalendarAvailabilityCheck(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCheckAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -590,6 +635,9 @@ class DeleteToolsResponse_SlackMessageSend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SlackSendMessageToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -618,6 +666,9 @@ class DeleteToolsResponse_Sms(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SmsToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -646,6 +697,9 @@ class DeleteToolsResponse_Mcp(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[McpToolMessagesItem]] = None server: typing.Optional[Server] = None tool_messages: typing_extensions.Annotated[ @@ -681,6 +735,9 @@ class DeleteToolsResponse_GohighlevelCalendarAvailabilityCheck(UncheckedBaseMode latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -709,6 +766,9 @@ class DeleteToolsResponse_GohighlevelCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarEventCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -737,6 +797,9 @@ class DeleteToolsResponse_GohighlevelContactCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -765,6 +828,9 @@ class DeleteToolsResponse_GohighlevelContactGet(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactGetToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -793,6 +859,9 @@ class DeleteToolsResponse_SipRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SipRequestToolMessagesItem]] = None verb: SipRequestToolVerb headers: typing.Optional["JsonSchema"] = None @@ -824,6 +893,9 @@ class DeleteToolsResponse_Voicemail(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[VoicemailToolMessagesItem]] = None beep_detection_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="beepDetectionEnabled"), pydantic.Field(alias="beepDetectionEnabled") @@ -855,6 +927,9 @@ class DeleteToolsResponse_Ghl(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GhlToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] diff --git a/src/vapi/tools/types/get_tools_response.py b/src/vapi/tools/types/get_tools_response.py index 70d71e214..511fa8a2a 100644 --- a/src/vapi/tools/types/get_tools_response.py +++ b/src/vapi/tools/types/get_tools_response.py @@ -71,6 +71,9 @@ class GetToolsResponse_ApiRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ApiRequestToolMessagesItem]] = None name: typing.Optional[str] = None method: ApiRequestToolMethod @@ -123,6 +126,9 @@ class GetToolsResponse_Code(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[CodeToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -173,6 +179,9 @@ class GetToolsResponse_Dtmf(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[DtmfToolMessagesItem]] = None sip_info_dtmf_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="sipInfoDtmfEnabled"), pydantic.Field(alias="sipInfoDtmfEnabled") @@ -204,6 +213,9 @@ class GetToolsResponse_EndCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[EndCallToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -232,6 +244,9 @@ class GetToolsResponse_Function(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[FunctionToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -271,6 +286,9 @@ class GetToolsResponse_KnowledgeBase(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[KnowledgeBaseToolMessagesItem]] = None knowledge_base_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="knowledgeBaseId"), pydantic.Field(alias="knowledgeBaseId") @@ -303,6 +321,9 @@ class GetToolsResponse_TransferCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TransferCallToolMessagesItem]] = None destinations: typing.Optional[typing.List[TransferCallToolDestinationsItem]] = None id: str @@ -332,6 +353,9 @@ class GetToolsResponse_Handoff(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[HandoffToolMessagesItem]] = None default_result: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="defaultResult"), pydantic.Field(alias="defaultResult") @@ -365,6 +389,9 @@ class GetToolsResponse_Bash(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[BashToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ BashToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -398,6 +425,9 @@ class GetToolsResponse_Computer(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ComputerToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ ComputerToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -440,6 +470,9 @@ class GetToolsResponse_TextEditor(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TextEditorToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ TextEditorToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -473,6 +506,9 @@ class GetToolsResponse_Query(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[QueryToolMessagesItem]] = None knowledge_bases: typing_extensions.Annotated[ typing.Optional[typing.List[KnowledgeBase]], @@ -506,6 +542,9 @@ class GetToolsResponse_GoogleCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCreateEventToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -534,6 +573,9 @@ class GetToolsResponse_GoogleSheetsRowAppend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleSheetsRowAppendToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -562,6 +604,9 @@ class GetToolsResponse_GoogleCalendarAvailabilityCheck(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCheckAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -590,6 +635,9 @@ class GetToolsResponse_SlackMessageSend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SlackSendMessageToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -618,6 +666,9 @@ class GetToolsResponse_Sms(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SmsToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -646,6 +697,9 @@ class GetToolsResponse_Mcp(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[McpToolMessagesItem]] = None server: typing.Optional[Server] = None tool_messages: typing_extensions.Annotated[ @@ -681,6 +735,9 @@ class GetToolsResponse_GohighlevelCalendarAvailabilityCheck(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -709,6 +766,9 @@ class GetToolsResponse_GohighlevelCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarEventCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -737,6 +797,9 @@ class GetToolsResponse_GohighlevelContactCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -765,6 +828,9 @@ class GetToolsResponse_GohighlevelContactGet(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactGetToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -793,6 +859,9 @@ class GetToolsResponse_SipRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SipRequestToolMessagesItem]] = None verb: SipRequestToolVerb headers: typing.Optional["JsonSchema"] = None @@ -824,6 +893,9 @@ class GetToolsResponse_Voicemail(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[VoicemailToolMessagesItem]] = None beep_detection_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="beepDetectionEnabled"), pydantic.Field(alias="beepDetectionEnabled") @@ -855,6 +927,9 @@ class GetToolsResponse_Ghl(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GhlToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] diff --git a/src/vapi/tools/types/list_tools_response_item.py b/src/vapi/tools/types/list_tools_response_item.py index 67399a8e7..1ee44c630 100644 --- a/src/vapi/tools/types/list_tools_response_item.py +++ b/src/vapi/tools/types/list_tools_response_item.py @@ -71,6 +71,9 @@ class ListToolsResponseItem_ApiRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ApiRequestToolMessagesItem]] = None name: typing.Optional[str] = None method: ApiRequestToolMethod @@ -123,6 +126,9 @@ class ListToolsResponseItem_Code(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[CodeToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -173,6 +179,9 @@ class ListToolsResponseItem_Dtmf(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[DtmfToolMessagesItem]] = None sip_info_dtmf_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="sipInfoDtmfEnabled"), pydantic.Field(alias="sipInfoDtmfEnabled") @@ -204,6 +213,9 @@ class ListToolsResponseItem_EndCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[EndCallToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -232,6 +244,9 @@ class ListToolsResponseItem_Function(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[FunctionToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -271,6 +286,9 @@ class ListToolsResponseItem_KnowledgeBase(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[KnowledgeBaseToolMessagesItem]] = None knowledge_base_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="knowledgeBaseId"), pydantic.Field(alias="knowledgeBaseId") @@ -303,6 +321,9 @@ class ListToolsResponseItem_TransferCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TransferCallToolMessagesItem]] = None destinations: typing.Optional[typing.List[TransferCallToolDestinationsItem]] = None id: str @@ -332,6 +353,9 @@ class ListToolsResponseItem_Handoff(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[HandoffToolMessagesItem]] = None default_result: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="defaultResult"), pydantic.Field(alias="defaultResult") @@ -365,6 +389,9 @@ class ListToolsResponseItem_Bash(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[BashToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ BashToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -398,6 +425,9 @@ class ListToolsResponseItem_Computer(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ComputerToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ ComputerToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -440,6 +470,9 @@ class ListToolsResponseItem_TextEditor(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TextEditorToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ TextEditorToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -473,6 +506,9 @@ class ListToolsResponseItem_Query(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[QueryToolMessagesItem]] = None knowledge_bases: typing_extensions.Annotated[ typing.Optional[typing.List[KnowledgeBase]], @@ -506,6 +542,9 @@ class ListToolsResponseItem_GoogleCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCreateEventToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -534,6 +573,9 @@ class ListToolsResponseItem_GoogleSheetsRowAppend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleSheetsRowAppendToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -562,6 +604,9 @@ class ListToolsResponseItem_GoogleCalendarAvailabilityCheck(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCheckAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -590,6 +635,9 @@ class ListToolsResponseItem_SlackMessageSend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SlackSendMessageToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -618,6 +666,9 @@ class ListToolsResponseItem_Sms(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SmsToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -646,6 +697,9 @@ class ListToolsResponseItem_Mcp(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[McpToolMessagesItem]] = None server: typing.Optional[Server] = None tool_messages: typing_extensions.Annotated[ @@ -681,6 +735,9 @@ class ListToolsResponseItem_GohighlevelCalendarAvailabilityCheck(UncheckedBaseMo latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -709,6 +766,9 @@ class ListToolsResponseItem_GohighlevelCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarEventCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -737,6 +797,9 @@ class ListToolsResponseItem_GohighlevelContactCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -765,6 +828,9 @@ class ListToolsResponseItem_GohighlevelContactGet(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactGetToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -793,6 +859,9 @@ class ListToolsResponseItem_SipRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SipRequestToolMessagesItem]] = None verb: SipRequestToolVerb headers: typing.Optional["JsonSchema"] = None @@ -824,6 +893,9 @@ class ListToolsResponseItem_Voicemail(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[VoicemailToolMessagesItem]] = None beep_detection_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="beepDetectionEnabled"), pydantic.Field(alias="beepDetectionEnabled") @@ -855,6 +927,9 @@ class ListToolsResponseItem_Ghl(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GhlToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] diff --git a/src/vapi/tools/types/update_tools_response.py b/src/vapi/tools/types/update_tools_response.py index bf12fd88e..55a298373 100644 --- a/src/vapi/tools/types/update_tools_response.py +++ b/src/vapi/tools/types/update_tools_response.py @@ -71,6 +71,9 @@ class UpdateToolsResponse_ApiRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ApiRequestToolMessagesItem]] = None name: typing.Optional[str] = None method: ApiRequestToolMethod @@ -123,6 +126,9 @@ class UpdateToolsResponse_Code(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[CodeToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -173,6 +179,9 @@ class UpdateToolsResponse_Dtmf(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[DtmfToolMessagesItem]] = None sip_info_dtmf_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="sipInfoDtmfEnabled"), pydantic.Field(alias="sipInfoDtmfEnabled") @@ -204,6 +213,9 @@ class UpdateToolsResponse_EndCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[EndCallToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -232,6 +244,9 @@ class UpdateToolsResponse_Function(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[FunctionToolMessagesItem]] = None async_: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="async"), pydantic.Field(alias="async") @@ -271,6 +286,9 @@ class UpdateToolsResponse_KnowledgeBase(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[KnowledgeBaseToolMessagesItem]] = None knowledge_base_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="knowledgeBaseId"), pydantic.Field(alias="knowledgeBaseId") @@ -303,6 +321,9 @@ class UpdateToolsResponse_TransferCall(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TransferCallToolMessagesItem]] = None destinations: typing.Optional[typing.List[TransferCallToolDestinationsItem]] = None id: str @@ -332,6 +353,9 @@ class UpdateToolsResponse_Handoff(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[HandoffToolMessagesItem]] = None default_result: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="defaultResult"), pydantic.Field(alias="defaultResult") @@ -365,6 +389,9 @@ class UpdateToolsResponse_Bash(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[BashToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ BashToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -398,6 +425,9 @@ class UpdateToolsResponse_Computer(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[ComputerToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ ComputerToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -440,6 +470,9 @@ class UpdateToolsResponse_TextEditor(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[TextEditorToolMessagesItem]] = None sub_type: typing_extensions.Annotated[ TextEditorToolSubType, FieldMetadata(alias="subType"), pydantic.Field(alias="subType") @@ -473,6 +506,9 @@ class UpdateToolsResponse_Query(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[QueryToolMessagesItem]] = None knowledge_bases: typing_extensions.Annotated[ typing.Optional[typing.List[KnowledgeBase]], @@ -506,6 +542,9 @@ class UpdateToolsResponse_GoogleCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCreateEventToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -534,6 +573,9 @@ class UpdateToolsResponse_GoogleSheetsRowAppend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleSheetsRowAppendToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -562,6 +604,9 @@ class UpdateToolsResponse_GoogleCalendarAvailabilityCheck(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoogleCalendarCheckAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -590,6 +635,9 @@ class UpdateToolsResponse_SlackMessageSend(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SlackSendMessageToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -618,6 +666,9 @@ class UpdateToolsResponse_Sms(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SmsToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -646,6 +697,9 @@ class UpdateToolsResponse_Mcp(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[McpToolMessagesItem]] = None server: typing.Optional[Server] = None tool_messages: typing_extensions.Annotated[ @@ -681,6 +735,9 @@ class UpdateToolsResponse_GohighlevelCalendarAvailabilityCheck(UncheckedBaseMode latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarAvailabilityToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -709,6 +766,9 @@ class UpdateToolsResponse_GohighlevelCalendarEventCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarEventCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -737,6 +797,9 @@ class UpdateToolsResponse_GohighlevelContactCreate(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactCreateToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -765,6 +828,9 @@ class UpdateToolsResponse_GohighlevelContactGet(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GoHighLevelContactGetToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] @@ -793,6 +859,9 @@ class UpdateToolsResponse_SipRequest(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[SipRequestToolMessagesItem]] = None verb: SipRequestToolVerb headers: typing.Optional["JsonSchema"] = None @@ -824,6 +893,9 @@ class UpdateToolsResponse_Voicemail(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[VoicemailToolMessagesItem]] = None beep_detection_enabled: typing_extensions.Annotated[ typing.Optional[bool], FieldMetadata(alias="beepDetectionEnabled"), pydantic.Field(alias="beepDetectionEnabled") @@ -855,6 +927,9 @@ class UpdateToolsResponse_Ghl(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="baselineVersion"), pydantic.Field(alias="baselineVersion") + ] = None messages: typing.Optional[typing.List[GhlToolMessagesItem]] = None id: str org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] diff --git a/src/vapi/traffic_allocations/__init__.py b/src/vapi/traffic_allocations/__init__.py index f8cb9628e..36394a8cd 100644 --- a/src/vapi/traffic_allocations/__init__.py +++ b/src/vapi/traffic_allocations/__init__.py @@ -9,10 +9,12 @@ from .types import ( CreateTrafficAllocationDtoAllocationIntent, TrafficAllocationControllerFindAllPaginatedRequestSortOrder, + TrafficAllocationControllerMetricsGetRequestBucket, ) _dynamic_imports: typing.Dict[str, str] = { "CreateTrafficAllocationDtoAllocationIntent": ".types", "TrafficAllocationControllerFindAllPaginatedRequestSortOrder": ".types", + "TrafficAllocationControllerMetricsGetRequestBucket": ".types", } @@ -37,4 +39,8 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["CreateTrafficAllocationDtoAllocationIntent", "TrafficAllocationControllerFindAllPaginatedRequestSortOrder"] +__all__ = [ + "CreateTrafficAllocationDtoAllocationIntent", + "TrafficAllocationControllerFindAllPaginatedRequestSortOrder", + "TrafficAllocationControllerMetricsGetRequestBucket", +] diff --git a/src/vapi/traffic_allocations/client.py b/src/vapi/traffic_allocations/client.py index 0f3c53039..16c8ab5cd 100644 --- a/src/vapi/traffic_allocations/client.py +++ b/src/vapi/traffic_allocations/client.py @@ -1,5 +1,6 @@ # This file was auto-generated by Fern from our API Definition. +import datetime as dt import typing from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper @@ -8,11 +9,15 @@ from ..types.traffic_allocation import TrafficAllocation from ..types.traffic_allocation_latest_response_dto import TrafficAllocationLatestResponseDto from ..types.traffic_allocation_paginated_response import TrafficAllocationPaginatedResponse +from ..types.traffic_tab_metrics_dto import TrafficTabMetricsDto from .raw_client import AsyncRawTrafficAllocationsClient, RawTrafficAllocationsClient from .types.create_traffic_allocation_dto_allocation_intent import CreateTrafficAllocationDtoAllocationIntent from .types.traffic_allocation_controller_find_all_paginated_request_sort_order import ( TrafficAllocationControllerFindAllPaginatedRequestSortOrder, ) +from .types.traffic_allocation_controller_metrics_get_request_bucket import ( + TrafficAllocationControllerMetricsGetRequestBucket, +) # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -43,7 +48,7 @@ def traffic_allocation_controller_find_all_paginated( request_options: typing.Optional[RequestOptions] = None, ) -> TrafficAllocationPaginatedResponse: """ - The append-only history of an assistant's allocations, newest first. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The append-only history of an assistant's allocations, newest first. Parameters ---------- @@ -92,7 +97,7 @@ def traffic_allocation_controller_create( request_options: typing.Optional[RequestOptions] = None, ) -> TrafficAllocation: """ - Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Parameters ---------- @@ -144,7 +149,7 @@ def traffic_allocation_controller_latest_get( self, *, assistant_id: str, request_options: typing.Optional[RequestOptions] = None ) -> TrafficAllocationLatestResponseDto: """ - The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Parameters ---------- @@ -175,11 +180,78 @@ def traffic_allocation_controller_latest_get( ) return _response.data + def traffic_allocation_controller_metrics_get( + self, + *, + assistant_id: str, + from_: dt.datetime, + to: dt.datetime, + bucket: typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] = None, + structured_output_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> TrafficTabMetricsDto: + """ + Per-assistant-version call metrics over a time window: call counts, configured vs actual traffic share, duration, cost per minute, latency, ended reasons, a bucketed timeseries, and optional structured output aggregations. Calls with no assistant version are reported as an 'unversioned' row. + + Parameters + ---------- + assistant_id : str + The assistant whose per-version traffic metrics to return. + + from_ : dt.datetime + Start of the metrics window (inclusive), ISO 8601 datetime. + + to : dt.datetime + End of the metrics window (exclusive), ISO 8601 datetime. Must be later than from, and the window may hold at most 2000 buckets of the requested width. + + bucket : typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] + Bucket size for the timeseries. Defaults to 'day'. + + structured_output_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Structured output ids to aggregate per version, as an array or a comma-separated string. At most 5. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + TrafficTabMetricsDto + + + Examples + -------- + import datetime + + from vapi import Vapi + + client = Vapi( + token="YOUR_TOKEN", + ) + client.traffic_allocations.traffic_allocation_controller_metrics_get( + assistant_id="assistantId", + from_=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + to=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + ) + """ + _response = self._raw_client.traffic_allocation_controller_metrics_get( + assistant_id=assistant_id, + from_=from_, + to=to, + bucket=bucket, + structured_output_ids=structured_output_ids, + request_options=request_options, + ) + return _response.data + def traffic_allocation_controller_find_one( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> TrafficAllocation: """ - Returns a single allocation by id, including its targets and actor attribution. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Returns a single allocation by id, including its targets and actor attribution. Parameters ---------- @@ -233,7 +305,7 @@ async def traffic_allocation_controller_find_all_paginated( request_options: typing.Optional[RequestOptions] = None, ) -> TrafficAllocationPaginatedResponse: """ - The append-only history of an assistant's allocations, newest first. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The append-only history of an assistant's allocations, newest first. Parameters ---------- @@ -290,7 +362,7 @@ async def traffic_allocation_controller_create( request_options: typing.Optional[RequestOptions] = None, ) -> TrafficAllocation: """ - Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Parameters ---------- @@ -350,7 +422,7 @@ async def traffic_allocation_controller_latest_get( self, *, assistant_id: str, request_options: typing.Optional[RequestOptions] = None ) -> TrafficAllocationLatestResponseDto: """ - The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Parameters ---------- @@ -389,11 +461,85 @@ async def main() -> None: ) return _response.data + async def traffic_allocation_controller_metrics_get( + self, + *, + assistant_id: str, + from_: dt.datetime, + to: dt.datetime, + bucket: typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] = None, + structured_output_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> TrafficTabMetricsDto: + """ + Per-assistant-version call metrics over a time window: call counts, configured vs actual traffic share, duration, cost per minute, latency, ended reasons, a bucketed timeseries, and optional structured output aggregations. Calls with no assistant version are reported as an 'unversioned' row. + + Parameters + ---------- + assistant_id : str + The assistant whose per-version traffic metrics to return. + + from_ : dt.datetime + Start of the metrics window (inclusive), ISO 8601 datetime. + + to : dt.datetime + End of the metrics window (exclusive), ISO 8601 datetime. Must be later than from, and the window may hold at most 2000 buckets of the requested width. + + bucket : typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] + Bucket size for the timeseries. Defaults to 'day'. + + structured_output_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Structured output ids to aggregate per version, as an array or a comma-separated string. At most 5. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + TrafficTabMetricsDto + + + Examples + -------- + import asyncio + import datetime + + from vapi import AsyncVapi + + client = AsyncVapi( + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.traffic_allocations.traffic_allocation_controller_metrics_get( + assistant_id="assistantId", + from_=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + to=datetime.datetime.fromisoformat( + "2024-01-15 09:30:00+00:00", + ), + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.traffic_allocation_controller_metrics_get( + assistant_id=assistant_id, + from_=from_, + to=to, + bucket=bucket, + structured_output_ids=structured_output_ids, + request_options=request_options, + ) + return _response.data + async def traffic_allocation_controller_find_one( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> TrafficAllocation: """ - Returns a single allocation by id, including its targets and actor attribution. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Returns a single allocation by id, including its targets and actor attribution. Parameters ---------- diff --git a/src/vapi/traffic_allocations/raw_client.py b/src/vapi/traffic_allocations/raw_client.py index cd57652da..d36031801 100644 --- a/src/vapi/traffic_allocations/raw_client.py +++ b/src/vapi/traffic_allocations/raw_client.py @@ -1,10 +1,12 @@ # This file was auto-generated by Fern from our API Definition. +import datetime as dt import typing from json.decoder import JSONDecodeError from ..core.api_error import ApiError from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.datetime_utils import serialize_datetime from ..core.http_response import AsyncHttpResponse, HttpResponse from ..core.jsonable_encoder import jsonable_encoder from ..core.parse_error import ParsingError @@ -19,10 +21,14 @@ from ..types.traffic_allocation import TrafficAllocation from ..types.traffic_allocation_latest_response_dto import TrafficAllocationLatestResponseDto from ..types.traffic_allocation_paginated_response import TrafficAllocationPaginatedResponse +from ..types.traffic_tab_metrics_dto import TrafficTabMetricsDto from .types.create_traffic_allocation_dto_allocation_intent import CreateTrafficAllocationDtoAllocationIntent from .types.traffic_allocation_controller_find_all_paginated_request_sort_order import ( TrafficAllocationControllerFindAllPaginatedRequestSortOrder, ) +from .types.traffic_allocation_controller_metrics_get_request_bucket import ( + TrafficAllocationControllerMetricsGetRequestBucket, +) from pydantic import ValidationError # this is used as the default value for optional parameters @@ -43,7 +49,7 @@ def traffic_allocation_controller_find_all_paginated( request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[TrafficAllocationPaginatedResponse]: """ - The append-only history of an assistant's allocations, newest first. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The append-only history of an assistant's allocations, newest first. Parameters ---------- @@ -119,7 +125,7 @@ def traffic_allocation_controller_create( request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[TrafficAllocation]: """ - Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Parameters ---------- @@ -231,7 +237,7 @@ def traffic_allocation_controller_latest_get( self, *, assistant_id: str, request_options: typing.Optional[RequestOptions] = None ) -> HttpResponse[TrafficAllocationLatestResponseDto]: """ - The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Parameters ---------- @@ -295,11 +301,102 @@ def traffic_allocation_controller_latest_get( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + def traffic_allocation_controller_metrics_get( + self, + *, + assistant_id: str, + from_: dt.datetime, + to: dt.datetime, + bucket: typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] = None, + structured_output_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[TrafficTabMetricsDto]: + """ + Per-assistant-version call metrics over a time window: call counts, configured vs actual traffic share, duration, cost per minute, latency, ended reasons, a bucketed timeseries, and optional structured output aggregations. Calls with no assistant version are reported as an 'unversioned' row. + + Parameters + ---------- + assistant_id : str + The assistant whose per-version traffic metrics to return. + + from_ : dt.datetime + Start of the metrics window (inclusive), ISO 8601 datetime. + + to : dt.datetime + End of the metrics window (exclusive), ISO 8601 datetime. Must be later than from, and the window may hold at most 2000 buckets of the requested width. + + bucket : typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] + Bucket size for the timeseries. Defaults to 'day'. + + structured_output_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Structured output ids to aggregate per version, as an array or a comma-separated string. At most 5. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[TrafficTabMetricsDto] + + """ + _response = self._client_wrapper.httpx_client.request( + "traffic-allocations/metrics", + method="GET", + params={ + "assistantId": assistant_id, + "from": serialize_datetime(from_), + "to": serialize_datetime(to), + "bucket": bucket, + "structuredOutputIds": structured_output_ids, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + TrafficTabMetricsDto, + construct_type( + type_=TrafficTabMetricsDto, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + def traffic_allocation_controller_find_one( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> HttpResponse[TrafficAllocation]: """ - Returns a single allocation by id, including its targets and actor attribution. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Returns a single allocation by id, including its targets and actor attribution. Parameters ---------- @@ -374,7 +471,7 @@ async def traffic_allocation_controller_find_all_paginated( request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[TrafficAllocationPaginatedResponse]: """ - The append-only history of an assistant's allocations, newest first. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The append-only history of an assistant's allocations, newest first. Parameters ---------- @@ -450,7 +547,7 @@ async def traffic_allocation_controller_create( request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[TrafficAllocation]: """ - Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Creates a new traffic allocation for an assistant, replacing the one currently in effect. To start or adjust a split, send targets naming published versions (such as "v7") with percentages totaling 100; allocationIntent is inferred as 'explicit'. To stop splitting and send every call to the newest published version, send allocationIntent 'follow-latest' with no targets field; stopping always names its intent, so a dropped targets field can never end a split by accident. Parameters ---------- @@ -562,7 +659,7 @@ async def traffic_allocation_controller_latest_get( self, *, assistant_id: str, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[TrafficAllocationLatestResponseDto]: """ - The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + The allocation currently in effect for the assistant, with its targets. The response carries no allocation field when traffic splitting has never been configured. Parameters ---------- @@ -626,11 +723,102 @@ async def traffic_allocation_controller_latest_get( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + async def traffic_allocation_controller_metrics_get( + self, + *, + assistant_id: str, + from_: dt.datetime, + to: dt.datetime, + bucket: typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] = None, + structured_output_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[TrafficTabMetricsDto]: + """ + Per-assistant-version call metrics over a time window: call counts, configured vs actual traffic share, duration, cost per minute, latency, ended reasons, a bucketed timeseries, and optional structured output aggregations. Calls with no assistant version are reported as an 'unversioned' row. + + Parameters + ---------- + assistant_id : str + The assistant whose per-version traffic metrics to return. + + from_ : dt.datetime + Start of the metrics window (inclusive), ISO 8601 datetime. + + to : dt.datetime + End of the metrics window (exclusive), ISO 8601 datetime. Must be later than from, and the window may hold at most 2000 buckets of the requested width. + + bucket : typing.Optional[TrafficAllocationControllerMetricsGetRequestBucket] + Bucket size for the timeseries. Defaults to 'day'. + + structured_output_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] + Structured output ids to aggregate per version, as an array or a comma-separated string. At most 5. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[TrafficTabMetricsDto] + + """ + _response = await self._client_wrapper.httpx_client.request( + "traffic-allocations/metrics", + method="GET", + params={ + "assistantId": assistant_id, + "from": serialize_datetime(from_), + "to": serialize_datetime(to), + "bucket": bucket, + "structuredOutputIds": structured_output_ids, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + TrafficTabMetricsDto, + construct_type( + type_=TrafficTabMetricsDto, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + construct_type( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + async def traffic_allocation_controller_find_one( self, id: str, *, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[TrafficAllocation]: """ - Returns a single allocation by id, including its targets and actor attribution. Traffic splitting is in beta, rolling out to select organizations; requests from organizations without access receive a 403. + Returns a single allocation by id, including its targets and actor attribution. Parameters ---------- diff --git a/src/vapi/traffic_allocations/types/__init__.py b/src/vapi/traffic_allocations/types/__init__.py index cd5331f2e..1b533cbe6 100644 --- a/src/vapi/traffic_allocations/types/__init__.py +++ b/src/vapi/traffic_allocations/types/__init__.py @@ -10,9 +10,13 @@ from .traffic_allocation_controller_find_all_paginated_request_sort_order import ( TrafficAllocationControllerFindAllPaginatedRequestSortOrder, ) + from .traffic_allocation_controller_metrics_get_request_bucket import ( + TrafficAllocationControllerMetricsGetRequestBucket, + ) _dynamic_imports: typing.Dict[str, str] = { "CreateTrafficAllocationDtoAllocationIntent": ".create_traffic_allocation_dto_allocation_intent", "TrafficAllocationControllerFindAllPaginatedRequestSortOrder": ".traffic_allocation_controller_find_all_paginated_request_sort_order", + "TrafficAllocationControllerMetricsGetRequestBucket": ".traffic_allocation_controller_metrics_get_request_bucket", } @@ -37,4 +41,8 @@ def __dir__(): return sorted(lazy_attrs) -__all__ = ["CreateTrafficAllocationDtoAllocationIntent", "TrafficAllocationControllerFindAllPaginatedRequestSortOrder"] +__all__ = [ + "CreateTrafficAllocationDtoAllocationIntent", + "TrafficAllocationControllerFindAllPaginatedRequestSortOrder", + "TrafficAllocationControllerMetricsGetRequestBucket", +] diff --git a/src/vapi/traffic_allocations/types/traffic_allocation_controller_metrics_get_request_bucket.py b/src/vapi/traffic_allocations/types/traffic_allocation_controller_metrics_get_request_bucket.py new file mode 100644 index 000000000..cee501501 --- /dev/null +++ b/src/vapi/traffic_allocations/types/traffic_allocation_controller_metrics_get_request_bucket.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TrafficAllocationControllerMetricsGetRequestBucket = typing.Union[typing.Literal["hour", "day"], typing.Any] diff --git a/src/vapi/types/__init__.py b/src/vapi/types/__init__.py index 2054e5086..f2f5e25d6 100644 --- a/src/vapi/types/__init__.py +++ b/src/vapi/types/__init__.py @@ -32,6 +32,7 @@ from .anthropic_bedrock_model import AnthropicBedrockModel from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel + from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_bedrock_model_tools_item import ( AnthropicBedrockModelToolsItem, AnthropicBedrockModelToolsItem_ApiRequest, @@ -62,6 +63,7 @@ from .anthropic_credential_provider import AnthropicCredentialProvider from .anthropic_model import AnthropicModel from .anthropic_model_model import AnthropicModelModel + from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_model_tools_item import ( AnthropicModelToolsItem, AnthropicModelToolsItem_ApiRequest, @@ -186,6 +188,7 @@ AssistantCredentialsItem_Openrouter, AssistantCredentialsItem_PerplexityAi, AssistantCredentialsItem_Playht, + AssistantCredentialsItem_Reson8, AssistantCredentialsItem_RimeAi, AssistantCredentialsItem_Runpod, AssistantCredentialsItem_S3, @@ -252,6 +255,7 @@ AssistantDraftCredentialsItem_Openrouter, AssistantDraftCredentialsItem_PerplexityAi, AssistantDraftCredentialsItem_Playht, + AssistantDraftCredentialsItem_Reson8, AssistantDraftCredentialsItem_RimeAi, AssistantDraftCredentialsItem_Runpod, AssistantDraftCredentialsItem_S3, @@ -306,6 +310,7 @@ AssistantDraftTranscriber_Gladia, AssistantDraftTranscriber_Google, AssistantDraftTranscriber_Openai, + AssistantDraftTranscriber_Reson8, AssistantDraftTranscriber_Soniox, AssistantDraftTranscriber_Speechmatics, AssistantDraftTranscriber_Talkscriber, @@ -330,7 +335,6 @@ AssistantDraftVoice_RimeAi, AssistantDraftVoice_Sesame, AssistantDraftVoice_SmallestAi, - AssistantDraftVoice_Tavus, AssistantDraftVoice_Vapi, AssistantDraftVoice_Wellsaid, AssistantDraftVoice_Xai, @@ -338,10 +342,10 @@ from .assistant_draft_voicemail_detection import AssistantDraftVoicemailDetection from .assistant_draft_voicemail_detection_zero import AssistantDraftVoicemailDetectionZero from .assistant_first_message_mode import AssistantFirstMessageMode - from .assistant_hook_assistant_speech_interrupted import AssistantHookAssistantSpeechInterrupted - from .assistant_hook_call_ending import AssistantHookCallEnding - from .assistant_hook_customer_speech_interrupted import AssistantHookCustomerSpeechInterrupted from .assistant_hooks_item import AssistantHooksItem + from .assistant_managed_conflict_response_dto import AssistantManagedConflictResponseDto + from .assistant_managed_conflict_response_dto_error import AssistantManagedConflictResponseDtoError + from .assistant_managed_vapi_agents_dto import AssistantManagedVapiAgentsDto from .assistant_message import AssistantMessage from .assistant_message_evaluation_continue_plan import AssistantMessageEvaluationContinuePlan from .assistant_message_judge_plan_ai import AssistantMessageJudgePlanAi @@ -422,6 +426,7 @@ AssistantOverridesCredentialsItem_Openrouter, AssistantOverridesCredentialsItem_PerplexityAi, AssistantOverridesCredentialsItem_Playht, + AssistantOverridesCredentialsItem_Reson8, AssistantOverridesCredentialsItem_RimeAi, AssistantOverridesCredentialsItem_Runpod, AssistantOverridesCredentialsItem_S3, @@ -500,6 +505,7 @@ AssistantOverridesTranscriber_Gladia, AssistantOverridesTranscriber_Google, AssistantOverridesTranscriber_Openai, + AssistantOverridesTranscriber_Reson8, AssistantOverridesTranscriber_Soniox, AssistantOverridesTranscriber_Speechmatics, AssistantOverridesTranscriber_Talkscriber, @@ -524,7 +530,6 @@ AssistantOverridesVoice_RimeAi, AssistantOverridesVoice_Sesame, AssistantOverridesVoice_SmallestAi, - AssistantOverridesVoice_Tavus, AssistantOverridesVoice_Vapi, AssistantOverridesVoice_Wellsaid, AssistantOverridesVoice_Xai, @@ -533,7 +538,6 @@ from .assistant_overrides_voicemail_detection_zero import AssistantOverridesVoicemailDetectionZero from .assistant_paginated_response import AssistantPaginatedResponse from .assistant_pinned_conflict_response_dto import AssistantPinnedConflictResponseDto - from .assistant_pinned_conflict_response_dto_error import AssistantPinnedConflictResponseDtoError from .assistant_server_messages_item import AssistantServerMessagesItem from .assistant_speech_word_alignment_timing import AssistantSpeechWordAlignmentTiming from .assistant_speech_word_progress_timing import AssistantSpeechWordProgressTiming @@ -549,13 +553,13 @@ AssistantTranscriber_Gladia, AssistantTranscriber_Google, AssistantTranscriber_Openai, + AssistantTranscriber_Reson8, AssistantTranscriber_Soniox, AssistantTranscriber_Speechmatics, AssistantTranscriber_Talkscriber, AssistantTranscriber_Vapi, AssistantTranscriber_Xai, ) - from .assistant_user_editable import AssistantUserEditable from .assistant_version import AssistantVersion from .assistant_version_background_sound import AssistantVersionBackgroundSound from .assistant_version_background_sound_zero import AssistantVersionBackgroundSoundZero @@ -602,6 +606,7 @@ AssistantVersionCredentialsItem_Openrouter, AssistantVersionCredentialsItem_PerplexityAi, AssistantVersionCredentialsItem_Playht, + AssistantVersionCredentialsItem_Reson8, AssistantVersionCredentialsItem_RimeAi, AssistantVersionCredentialsItem_Runpod, AssistantVersionCredentialsItem_S3, @@ -656,6 +661,7 @@ AssistantVersionTranscriber_Gladia, AssistantVersionTranscriber_Google, AssistantVersionTranscriber_Openai, + AssistantVersionTranscriber_Reson8, AssistantVersionTranscriber_Soniox, AssistantVersionTranscriber_Speechmatics, AssistantVersionTranscriber_Talkscriber, @@ -680,7 +686,6 @@ AssistantVersionVoice_RimeAi, AssistantVersionVoice_Sesame, AssistantVersionVoice_SmallestAi, - AssistantVersionVoice_Tavus, AssistantVersionVoice_Vapi, AssistantVersionVoice_Wellsaid, AssistantVersionVoice_Xai, @@ -705,7 +710,6 @@ AssistantVoice_RimeAi, AssistantVoice_Sesame, AssistantVoice_SmallestAi, - AssistantVoice_Tavus, AssistantVoice_Vapi, AssistantVoice_Wellsaid, AssistantVoice_Xai, @@ -820,6 +824,55 @@ ) from .call_destination import CallDestination, CallDestination_Number, CallDestination_Sip from .call_ended_reason import CallEndedReason + from .call_health_dashboard_affected_call_dto import CallHealthDashboardAffectedCallDto + from .call_health_dashboard_affected_call_dto_call_availability import ( + CallHealthDashboardAffectedCallDtoCallAvailability, + ) + from .call_health_dashboard_affected_calls_response_dto import CallHealthDashboardAffectedCallsResponseDto + from .call_health_dashboard_api_error_dto import CallHealthDashboardApiErrorDto + from .call_health_dashboard_assignment_coverage_dto import CallHealthDashboardAssignmentCoverageDto + from .call_health_dashboard_assistant_goals_dto import CallHealthDashboardAssistantGoalsDto + from .call_health_dashboard_assistant_goals_response_dto import CallHealthDashboardAssistantGoalsResponseDto + from .call_health_dashboard_assistant_list_response_dto import CallHealthDashboardAssistantListResponseDto + from .call_health_dashboard_assistant_overview_dto import CallHealthDashboardAssistantOverviewDto + from .call_health_dashboard_assistant_reference_dto import CallHealthDashboardAssistantReferenceDto + from .call_health_dashboard_assistant_summary_response_dto import CallHealthDashboardAssistantSummaryResponseDto + from .call_health_dashboard_classification_coverage_dto import CallHealthDashboardClassificationCoverageDto + from .call_health_dashboard_coverage_dto import CallHealthDashboardCoverageDto + from .call_health_dashboard_discovery_coverage_dto import CallHealthDashboardDiscoveryCoverageDto + from .call_health_dashboard_facets_dto import CallHealthDashboardFacetsDto + from .call_health_dashboard_facets_dto_statuses_item import CallHealthDashboardFacetsDtoStatusesItem + from .call_health_dashboard_goal_daily_dto import CallHealthDashboardGoalDailyDto + from .call_health_dashboard_goal_definition_dto import CallHealthDashboardGoalDefinitionDto + from .call_health_dashboard_goal_gaps_dto import CallHealthDashboardGoalGapsDto + from .call_health_dashboard_goal_option_dto import CallHealthDashboardGoalOptionDto + from .call_health_dashboard_goal_summary_dto import CallHealthDashboardGoalSummaryDto + from .call_health_dashboard_intake_coverage_dto import CallHealthDashboardIntakeCoverageDto + from .call_health_dashboard_intake_coverage_dto_delivery_mode import ( + CallHealthDashboardIntakeCoverageDtoDeliveryMode, + ) + from .call_health_dashboard_intake_coverage_dto_end_to_end_coverage import ( + CallHealthDashboardIntakeCoverageDtoEndToEndCoverage, + ) + from .call_health_dashboard_issue_activity_dto import CallHealthDashboardIssueActivityDto + from .call_health_dashboard_issue_activity_dto_action import CallHealthDashboardIssueActivityDtoAction + from .call_health_dashboard_issue_activity_list_response_dto import CallHealthDashboardIssueActivityListResponseDto + from .call_health_dashboard_issue_coverage_dto import CallHealthDashboardIssueCoverageDto + from .call_health_dashboard_issue_coverage_dto_state import CallHealthDashboardIssueCoverageDtoState + from .call_health_dashboard_issue_daily_dto import CallHealthDashboardIssueDailyDto + from .call_health_dashboard_issue_definition_dto import CallHealthDashboardIssueDefinitionDto + from .call_health_dashboard_issue_detail_response_dto import CallHealthDashboardIssueDetailResponseDto + from .call_health_dashboard_issue_list_response_dto import CallHealthDashboardIssueListResponseDto + from .call_health_dashboard_issue_reference_dto import CallHealthDashboardIssueReferenceDto + from .call_health_dashboard_issue_reference_dto_status import CallHealthDashboardIssueReferenceDtoStatus + from .call_health_dashboard_issue_summary_dto import CallHealthDashboardIssueSummaryDto + from .call_health_dashboard_issue_summary_dto_status import CallHealthDashboardIssueSummaryDtoStatus + from .call_health_dashboard_series_page_dto import CallHealthDashboardSeriesPageDto + from .call_health_dashboard_sweep_coverage_dto import CallHealthDashboardSweepCoverageDto + from .call_health_dashboard_sweep_coverage_dto_state import CallHealthDashboardSweepCoverageDtoState + from .call_health_dashboard_triage_request_dto import CallHealthDashboardTriageRequestDto + from .call_health_dashboard_triage_request_dto_action import CallHealthDashboardTriageRequestDtoAction + from .call_health_dashboard_window_dto import CallHealthDashboardWindowDto from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted from .call_hook_assistant_speech_interrupted_do_item import ( CallHookAssistantSpeechInterruptedDoItem, @@ -1353,6 +1406,7 @@ ConversationNodeTranscriber_Gladia, ConversationNodeTranscriber_Google, ConversationNodeTranscriber_Openai, + ConversationNodeTranscriber_Reson8, ConversationNodeTranscriber_Soniox, ConversationNodeTranscriber_Speechmatics, ConversationNodeTranscriber_Talkscriber, @@ -1377,7 +1431,6 @@ ConversationNodeVoice_RimeAi, ConversationNodeVoice_Sesame, ConversationNodeVoice_SmallestAi, - ConversationNodeVoice_Tavus, ConversationNodeVoice_Vapi, ConversationNodeVoice_Wellsaid, ConversationNodeVoice_Xai, @@ -1448,6 +1501,7 @@ CreateAssistantDraftDtoCredentialsItem_Openrouter, CreateAssistantDraftDtoCredentialsItem_PerplexityAi, CreateAssistantDraftDtoCredentialsItem_Playht, + CreateAssistantDraftDtoCredentialsItem_Reson8, CreateAssistantDraftDtoCredentialsItem_RimeAi, CreateAssistantDraftDtoCredentialsItem_Runpod, CreateAssistantDraftDtoCredentialsItem_S3, @@ -1500,6 +1554,7 @@ CreateAssistantDraftDtoTranscriber_Gladia, CreateAssistantDraftDtoTranscriber_Google, CreateAssistantDraftDtoTranscriber_Openai, + CreateAssistantDraftDtoTranscriber_Reson8, CreateAssistantDraftDtoTranscriber_Soniox, CreateAssistantDraftDtoTranscriber_Speechmatics, CreateAssistantDraftDtoTranscriber_Talkscriber, @@ -1524,7 +1579,6 @@ CreateAssistantDraftDtoVoice_RimeAi, CreateAssistantDraftDtoVoice_Sesame, CreateAssistantDraftDtoVoice_SmallestAi, - CreateAssistantDraftDtoVoice_Tavus, CreateAssistantDraftDtoVoice_Vapi, CreateAssistantDraftDtoVoice_Wellsaid, CreateAssistantDraftDtoVoice_Xai, @@ -1577,6 +1631,7 @@ CreateAssistantDtoCredentialsItem_Openrouter, CreateAssistantDtoCredentialsItem_PerplexityAi, CreateAssistantDtoCredentialsItem_Playht, + CreateAssistantDtoCredentialsItem_Reson8, CreateAssistantDtoCredentialsItem_RimeAi, CreateAssistantDtoCredentialsItem_Runpod, CreateAssistantDtoCredentialsItem_S3, @@ -1629,6 +1684,7 @@ CreateAssistantDtoTranscriber_Gladia, CreateAssistantDtoTranscriber_Google, CreateAssistantDtoTranscriber_Openai, + CreateAssistantDtoTranscriber_Reson8, CreateAssistantDtoTranscriber_Soniox, CreateAssistantDtoTranscriber_Speechmatics, CreateAssistantDtoTranscriber_Talkscriber, @@ -1653,7 +1709,6 @@ CreateAssistantDtoVoice_RimeAi, CreateAssistantDtoVoice_Sesame, CreateAssistantDtoVoice_SmallestAi, - CreateAssistantDtoVoice_Tavus, CreateAssistantDtoVoice_Vapi, CreateAssistantDtoVoice_Wellsaid, CreateAssistantDtoVoice_Xai, @@ -1922,6 +1977,7 @@ CreateQueryToolDtoMessagesItem_RequestResponseDelayed, CreateQueryToolDtoMessagesItem_RequestStart, ) + from .create_reson_8_credential_dto import CreateReson8CredentialDto from .create_rime_ai_credential_dto import CreateRimeAiCredentialDto from .create_runpod_credential_dto import CreateRunpodCredentialDto from .create_s_3_compatible_credential_dto import CreateS3CompatibleCredentialDto @@ -2140,6 +2196,7 @@ CreateVonagePhoneNumberDtoHooksItem_CallRinging, ) from .create_web_call_dto import CreateWebCallDto + from .create_web_call_dto_video_recording_start_mode import CreateWebCallDtoVideoRecordingStartMode from .create_web_chat_dto import CreateWebChatDto from .create_web_chat_dto_input import CreateWebChatDtoInput from .create_web_chat_dto_input_one_item import CreateWebChatDtoInputOneItem @@ -2197,6 +2254,7 @@ CreateWorkflowDtoCredentialsItem_Openrouter, CreateWorkflowDtoCredentialsItem_PerplexityAi, CreateWorkflowDtoCredentialsItem_Playht, + CreateWorkflowDtoCredentialsItem_Reson8, CreateWorkflowDtoCredentialsItem_RimeAi, CreateWorkflowDtoCredentialsItem_Runpod, CreateWorkflowDtoCredentialsItem_S3, @@ -2240,6 +2298,7 @@ CreateWorkflowDtoTranscriber_Gladia, CreateWorkflowDtoTranscriber_Google, CreateWorkflowDtoTranscriber_Openai, + CreateWorkflowDtoTranscriber_Reson8, CreateWorkflowDtoTranscriber_Soniox, CreateWorkflowDtoTranscriber_Speechmatics, CreateWorkflowDtoTranscriber_Talkscriber, @@ -2264,7 +2323,6 @@ CreateWorkflowDtoVoice_RimeAi, CreateWorkflowDtoVoice_Sesame, CreateWorkflowDtoVoice_SmallestAi, - CreateWorkflowDtoVoice_Tavus, CreateWorkflowDtoVoice_Vapi, CreateWorkflowDtoVoice_Wellsaid, CreateWorkflowDtoVoice_Xai, @@ -2445,6 +2503,7 @@ from .eval import Eval from .eval_anthropic_model import EvalAnthropicModel from .eval_anthropic_model_model import EvalAnthropicModelModel + from .eval_anthropic_model_reasoning_effort import EvalAnthropicModelReasoningEffort from .eval_custom_model import EvalCustomModel from .eval_google_model import EvalGoogleModel from .eval_google_model_model import EvalGoogleModelModel @@ -2498,7 +2557,6 @@ from .export_session_dto_format import ExportSessionDtoFormat from .export_session_dto_sort_by import ExportSessionDtoSortBy from .export_session_dto_sort_order import ExportSessionDtoSortOrder - from .failed_edge_condition import FailedEdgeCondition from .fallback_assembly_ai_transcriber import FallbackAssemblyAiTranscriber from .fallback_assembly_ai_transcriber_language import FallbackAssemblyAiTranscriberLanguage from .fallback_assembly_ai_transcriber_language_codes_item import FallbackAssemblyAiTranscriberLanguageCodesItem @@ -2521,8 +2579,6 @@ from .fallback_custom_transcriber import FallbackCustomTranscriber from .fallback_custom_voice import FallbackCustomVoice from .fallback_deepgram_transcriber import FallbackDeepgramTranscriber - from .fallback_deepgram_transcriber_language import FallbackDeepgramTranscriberLanguage - from .fallback_deepgram_transcriber_model import FallbackDeepgramTranscriberModel from .fallback_deepgram_transcriber_redaction_item import FallbackDeepgramTranscriberRedactionItem from .fallback_deepgram_voice import FallbackDeepgramVoice from .fallback_deepgram_voice_id import FallbackDeepgramVoiceId @@ -2563,7 +2619,6 @@ from .fallback_minimax_voice_provider import FallbackMinimaxVoiceProvider from .fallback_minimax_voice_region import FallbackMinimaxVoiceRegion from .fallback_minimax_voice_subtitle_type import FallbackMinimaxVoiceSubtitleType - from .fallback_neets_voice import FallbackNeetsVoice from .fallback_neuphonic_voice import FallbackNeuphonicVoice from .fallback_neuphonic_voice_model import FallbackNeuphonicVoiceModel from .fallback_open_ai_transcriber import FallbackOpenAiTranscriber @@ -2591,7 +2646,6 @@ FallbackPlanVoicesItem_RimeAi, FallbackPlanVoicesItem_Sesame, FallbackPlanVoicesItem_SmallestAi, - FallbackPlanVoicesItem_Tavus, FallbackPlanVoicesItem_Vapi, FallbackPlanVoicesItem_Wellsaid, FallbackPlanVoicesItem_Xai, @@ -2602,6 +2656,9 @@ from .fallback_play_ht_voice_id_enum import FallbackPlayHtVoiceIdEnum from .fallback_play_ht_voice_language import FallbackPlayHtVoiceLanguage from .fallback_play_ht_voice_model import FallbackPlayHtVoiceModel + from .fallback_reson_8_transcriber import FallbackReson8Transcriber + from .fallback_reson_8_transcriber_filler_mode import FallbackReson8TranscriberFillerMode + from .fallback_reson_8_transcriber_model import FallbackReson8TranscriberModel from .fallback_rime_ai_voice import FallbackRimeAiVoice from .fallback_rime_ai_voice_id import FallbackRimeAiVoiceId from .fallback_rime_ai_voice_id_enum import FallbackRimeAiVoiceIdEnum @@ -2627,8 +2684,6 @@ from .fallback_talkscriber_transcriber_language import FallbackTalkscriberTranscriberLanguage from .fallback_talkscriber_transcriber_model import FallbackTalkscriberTranscriberModel from .fallback_tavus_voice import FallbackTavusVoice - from .fallback_tavus_voice_voice_id import FallbackTavusVoiceVoiceId - from .fallback_tavus_voice_voice_id_zero import FallbackTavusVoiceVoiceIdZero from .fallback_transcriber_plan import FallbackTranscriberPlan from .fallback_transcriber_plan_transcribers_item import ( FallbackTranscriberPlanTranscribersItem, @@ -2641,6 +2696,7 @@ FallbackTranscriberPlanTranscribersItem_Gladia, FallbackTranscriberPlanTranscribersItem_Google, FallbackTranscriberPlanTranscribersItem_Openai, + FallbackTranscriberPlanTranscribersItem_Reson8, FallbackTranscriberPlanTranscribersItem_Soniox, FallbackTranscriberPlanTranscribersItem_Speechmatics, FallbackTranscriberPlanTranscribersItem_Talkscriber, @@ -2688,7 +2744,6 @@ ) from .fourier_denoising_plan import FourierDenoisingPlan from .function_call import FunctionCall - from .function_call_assistant_hook_action import FunctionCallAssistantHookAction from .function_call_hook_action import FunctionCallHookAction from .function_call_hook_action_messages_item import ( FunctionCallHookActionMessagesItem, @@ -2724,6 +2779,7 @@ ) from .gemini_multimodal_live_speech_config import GeminiMultimodalLiveSpeechConfig from .gemini_multimodal_live_voice_config import GeminiMultimodalLiveVoiceConfig + from .generate_scenarios_dto import GenerateScenariosDto from .generate_scenarios_response import GenerateScenariosResponse from .generated_scenario import GeneratedScenario from .generated_scenario_category import GeneratedScenarioCategory @@ -2743,6 +2799,8 @@ from .get_traffic_allocation_latest_dto import GetTrafficAllocationLatestDto from .get_traffic_allocation_paginated_dto import GetTrafficAllocationPaginatedDto from .get_traffic_allocation_paginated_dto_sort_order import GetTrafficAllocationPaginatedDtoSortOrder + from .get_traffic_tab_metrics_dto import GetTrafficTabMetricsDto + from .get_traffic_tab_metrics_dto_bucket import GetTrafficTabMetricsDtoBucket from .ghl_tool import GhlTool from .ghl_tool_messages_item import ( GhlToolMessagesItem, @@ -2857,6 +2915,13 @@ from .go_high_level_credential_provider import GoHighLevelCredentialProvider from .go_high_level_mcp_credential import GoHighLevelMcpCredential from .go_high_level_mcp_credential_provider import GoHighLevelMcpCredentialProvider + from .goal_evaluation_current_batch_request_dto import GoalEvaluationCurrentBatchRequestDto + from .goal_evaluation_current_batch_response_dto import GoalEvaluationCurrentBatchResponseDto + from .goal_evaluation_current_call_request_dto import GoalEvaluationCurrentCallRequestDto + from .goal_evaluation_current_call_response_dto import GoalEvaluationCurrentCallResponseDto + from .goal_evaluation_current_dto import GoalEvaluationCurrentDto + from .goal_evaluation_current_dto_goal_outcome import GoalEvaluationCurrentDtoGoalOutcome + from .goal_evaluation_current_dto_processing_state import GoalEvaluationCurrentDtoProcessingState from .google_calendar_check_availability_tool import GoogleCalendarCheckAvailabilityTool from .google_calendar_check_availability_tool_messages_item import ( GoogleCalendarCheckAvailabilityToolMessagesItem, @@ -2985,6 +3050,25 @@ GroupConditionConditionsItem_Regex, ) from .group_condition_operator import GroupConditionOperator + from .guardrail_authoring import GuardrailAuthoring + from .guardrail_authoring_mode import GuardrailAuthoringMode + from .guardrail_escalate_action import GuardrailEscalateAction + from .guardrail_escalate_action_type import GuardrailEscalateActionType + from .guardrail_fixed_response_action import GuardrailFixedResponseAction + from .guardrail_fixed_response_action_type import GuardrailFixedResponseActionType + from .guardrail_pack import GuardrailPack + from .guardrail_packs_page import GuardrailPacksPage + from .guardrail_redirect_action import GuardrailRedirectAction + from .guardrail_redirect_action_type import GuardrailRedirectActionType + from .guardrail_rule import GuardrailRule + from .guardrail_rule_action import GuardrailRuleAction + from .guardrail_rule_action_zero import ( + GuardrailRuleActionZero, + GuardrailRuleActionZero_Fixed, + GuardrailRuleActionZero_Redirect, + ) + from .guardrail_rule_sensitivity import GuardrailRuleSensitivity + from .guardrail_rules_page import GuardrailRulesPage from .handoff_destination_assistant import HandoffDestinationAssistant from .handoff_destination_assistant_context_engineering_plan import ( HandoffDestinationAssistantContextEngineeringPlan, @@ -3196,7 +3280,6 @@ from .lmnt_voice_id import LmntVoiceId from .lmnt_voice_id_enum import LmntVoiceIdEnum from .lmnt_voice_language import LmntVoiceLanguage - from .logic_edge_condition import LogicEdgeCondition from .make_credential import MakeCredential from .make_credential_provider import MakeCredentialProvider from .make_tool import MakeTool @@ -3283,13 +3366,13 @@ from .mistral_credential import MistralCredential from .mistral_credential_provider import MistralCredentialProvider from .model_cost import ModelCost + from .model_cost_service_tier_breakdown import ModelCostServiceTierBreakdown from .model_deprecation_notice import ModelDeprecationNotice from .model_deprecation_notice_replacement_status import ModelDeprecationNoticeReplacementStatus from .monitor import Monitor from .monitor_plan import MonitorPlan from .monitor_result import MonitorResult from .mono import Mono - from .neets_voice import NeetsVoice from .neuphonic_credential import NeuphonicCredential from .neuphonic_credential_provider import NeuphonicCredentialProvider from .neuphonic_voice import NeuphonicVoice @@ -3541,7 +3624,6 @@ RecordingConsentPlanStayOnLineVoice_RimeAi, RecordingConsentPlanStayOnLineVoice_Sesame, RecordingConsentPlanStayOnLineVoice_SmallestAi, - RecordingConsentPlanStayOnLineVoice_Tavus, RecordingConsentPlanStayOnLineVoice_Vapi, RecordingConsentPlanStayOnLineVoice_Wellsaid, RecordingConsentPlanStayOnLineVoice_Xai, @@ -3566,7 +3648,6 @@ RecordingConsentPlanVerbalVoice_RimeAi, RecordingConsentPlanVerbalVoice_Sesame, RecordingConsentPlanVerbalVoice_SmallestAi, - RecordingConsentPlanVerbalVoice_Tavus, RecordingConsentPlanVerbalVoice_Vapi, RecordingConsentPlanVerbalVoice_Wellsaid, RecordingConsentPlanVerbalVoice_Xai, @@ -3595,6 +3676,11 @@ from .relay_target_options import RelayTargetOptions from .relay_target_options_type import RelayTargetOptionsType from .relay_target_squad import RelayTargetSquad + from .reson_8_credential import Reson8Credential + from .reson_8_credential_provider import Reson8CredentialProvider + from .reson_8_transcriber import Reson8Transcriber + from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode + from .reson_8_transcriber_model import Reson8TranscriberModel from .response_completed_event import ResponseCompletedEvent from .response_completed_event_type import ResponseCompletedEventType from .response_error_event import ResponseErrorEvent @@ -3627,13 +3713,11 @@ from .s_3_compatible_storage_credential_provider import S3CompatibleStorageCredentialProvider from .s_3_credential import S3Credential from .s_3_credential_provider import S3CredentialProvider - from .say_assistant_hook_action import SayAssistantHookAction from .say_hook_action import SayHookAction from .say_hook_action_exact import SayHookActionExact from .say_hook_action_prompt import SayHookActionPrompt from .say_hook_action_prompt_one_item import SayHookActionPromptOneItem from .say_phone_number_hook_action import SayPhoneNumberHookAction - from .sbc_configuration import SbcConfiguration from .scenario import Scenario from .scenario_hooks_item import ( ScenarioHooksItem, @@ -4033,6 +4117,8 @@ ServerMessageVoiceRequestPhoneNumber_Vonage, ) from .server_message_voice_request_type import ServerMessageVoiceRequestType + from .service_unavailable_error_body import ServiceUnavailableErrorBody + from .service_unavailable_error_body_error import ServiceUnavailableErrorBodyError from .sesame_voice import SesameVoice from .sesame_voice_model import SesameVoiceModel from .session import Session @@ -4055,6 +4141,22 @@ from .simulation_hook_include import SimulationHookInclude from .simulation_hook_webhook_action import SimulationHookWebhookAction from .simulation_hook_webhook_action_type import SimulationHookWebhookActionType + from .simulation_onboarding_coverage_gap_dto import SimulationOnboardingCoverageGapDto + from .simulation_onboarding_coverage_gap_dto_reason import SimulationOnboardingCoverageGapDtoReason + from .simulation_onboarding_error_dto import SimulationOnboardingErrorDto + from .simulation_onboarding_error_dto_code import SimulationOnboardingErrorDtoCode + from .simulation_onboarding_open_question_dto import SimulationOnboardingOpenQuestionDto + from .simulation_onboarding_requirement_dto import SimulationOnboardingRequirementDto + from .simulation_onboarding_requirement_dto_tag import SimulationOnboardingRequirementDtoTag + from .simulation_onboarding_requirements_draft_dto import SimulationOnboardingRequirementsDraftDto + from .simulation_onboarding_suite_coverage_dto import SimulationOnboardingSuiteCoverageDto + from .simulation_onboarding_suite_docs_dto import SimulationOnboardingSuiteDocsDto + from .simulation_onboarding_suite_edit_dto import SimulationOnboardingSuiteEditDto + from .simulation_onboarding_suite_ref_dto import SimulationOnboardingSuiteRefDto + from .simulation_onboarding_suite_simulation_dto import SimulationOnboardingSuiteSimulationDto + from .simulation_onboarding_suite_view_dto import SimulationOnboardingSuiteViewDto + from .simulation_onboarding_tool_gap_dto import SimulationOnboardingToolGapDto + from .simulation_onboarding_tool_gap_dto_reason import SimulationOnboardingToolGapDtoReason from .simulation_run import SimulationRun from .simulation_run_configuration import SimulationRunConfiguration from .simulation_run_item import SimulationRunItem @@ -4070,7 +4172,15 @@ from .simulation_run_item_improvements import SimulationRunItemImprovements from .simulation_run_item_metadata import SimulationRunItemMetadata from .simulation_run_item_results import SimulationRunItemResults + from .simulation_run_item_results_skipped_structured_outputs_value import ( + SimulationRunItemResultsSkippedStructuredOutputsValue, + ) + from .simulation_run_item_results_skipped_structured_outputs_value_reason import ( + SimulationRunItemResultsSkippedStructuredOutputsValueReason, + ) + from .simulation_run_item_results_structured_outputs_value import SimulationRunItemResultsStructuredOutputsValue from .simulation_run_item_status import SimulationRunItemStatus + from .simulation_run_items_paginated_response import SimulationRunItemsPaginatedResponse from .simulation_run_list_item import SimulationRunListItem from .simulation_run_list_item_simulations_item import ( SimulationRunListItemSimulationsItem, @@ -4105,6 +4215,7 @@ from .simulation_suite import SimulationSuite from .simulation_suite_target_assignment import SimulationSuiteTargetAssignment from .simulation_suite_target_assignment_target_type import SimulationSuiteTargetAssignmentTargetType + from .simulation_suites_paginated_response import SimulationSuitesPaginatedResponse from .sip_authentication import SipAuthentication from .sip_request_tool import SipRequestTool from .sip_request_tool_body import SipRequestToolBody @@ -4245,8 +4356,6 @@ from .tavus_credential import TavusCredential from .tavus_credential_provider import TavusCredentialProvider from .tavus_voice import TavusVoice - from .tavus_voice_voice_id import TavusVoiceVoiceId - from .tavus_voice_voice_id_zero import TavusVoiceVoiceIdZero from .telnyx_phone_number import TelnyxPhoneNumber from .telnyx_phone_number_fallback_destination import ( TelnyxPhoneNumberFallbackDestination, @@ -4504,10 +4613,24 @@ from .traffic_allocation_latest_response_dto import TrafficAllocationLatestResponseDto from .traffic_allocation_paginated_response import TrafficAllocationPaginatedResponse from .traffic_allocation_stale_conflict_response_dto import TrafficAllocationStaleConflictResponseDto - from .traffic_allocation_stale_conflict_response_dto_error import TrafficAllocationStaleConflictResponseDtoError from .traffic_allocation_target import TrafficAllocationTarget from .traffic_allocation_version_conflict_response_dto import TrafficAllocationVersionConflictResponseDto from .traffic_allocation_version_conflict_response_dto_error import TrafficAllocationVersionConflictResponseDtoError + from .traffic_tab_cost_breakdown_per_minute_dto import TrafficTabCostBreakdownPerMinuteDto + from .traffic_tab_cost_per_minute_dto import TrafficTabCostPerMinuteDto + from .traffic_tab_duration_seconds_dto import TrafficTabDurationSecondsDto + from .traffic_tab_ended_reason_count_dto import TrafficTabEndedReasonCountDto + from .traffic_tab_latency_ms_dto import TrafficTabLatencyMsDto + from .traffic_tab_latency_stats_dto import TrafficTabLatencyStatsDto + from .traffic_tab_metrics_dto import TrafficTabMetricsDto + from .traffic_tab_metrics_window_dto import TrafficTabMetricsWindowDto + from .traffic_tab_metrics_window_dto_bucket import TrafficTabMetricsWindowDtoBucket + from .traffic_tab_structured_output_dto import TrafficTabStructuredOutputDto + from .traffic_tab_structured_output_dto_type import TrafficTabStructuredOutputDtoType + from .traffic_tab_structured_output_numeric_dto import TrafficTabStructuredOutputNumericDto + from .traffic_tab_structured_output_value_count_dto import TrafficTabStructuredOutputValueCountDto + from .traffic_tab_timeseries_point_dto import TrafficTabTimeseriesPointDto + from .traffic_tab_version_metrics_dto import TrafficTabVersionMetricsDto from .transcriber_cost import TranscriberCost from .transcript_plan import TranscriptPlan from .transcript_word_confidence import TranscriptWordConfidence @@ -4525,7 +4648,7 @@ from .transfer_assistant_background_sound import TransferAssistantBackgroundSound from .transfer_assistant_background_sound_zero import TransferAssistantBackgroundSoundZero from .transfer_assistant_first_message_mode import TransferAssistantFirstMessageMode - from .transfer_assistant_hook_action import TransferAssistantHookAction + from .transfer_assistant_hooks_item import TransferAssistantHooksItem from .transfer_assistant_model import TransferAssistantModel from .transfer_assistant_model_provider import TransferAssistantModelProvider from .transfer_assistant_transcriber import ( @@ -4539,6 +4662,7 @@ TransferAssistantTranscriber_Gladia, TransferAssistantTranscriber_Google, TransferAssistantTranscriber_Openai, + TransferAssistantTranscriber_Reson8, TransferAssistantTranscriber_Soniox, TransferAssistantTranscriber_Speechmatics, TransferAssistantTranscriber_Talkscriber, @@ -4563,7 +4687,6 @@ TransferAssistantVoice_RimeAi, TransferAssistantVoice_Sesame, TransferAssistantVoice_SmallestAi, - TransferAssistantVoice_Tavus, TransferAssistantVoice_Vapi, TransferAssistantVoice_Wellsaid, TransferAssistantVoice_Xai, @@ -4632,6 +4755,136 @@ TransferSuccessfulToolUserEditableMessagesItem_RequestStart, ) from .transfer_successful_tool_user_editable_type import TransferSuccessfulToolUserEditableType + from .transient_assistant_dto import TransientAssistantDto + from .transient_assistant_dto_background_sound import TransientAssistantDtoBackgroundSound + from .transient_assistant_dto_background_sound_zero import TransientAssistantDtoBackgroundSoundZero + from .transient_assistant_dto_client_messages_item import TransientAssistantDtoClientMessagesItem + from .transient_assistant_dto_credentials_item import ( + TransientAssistantDtoCredentialsItem, + TransientAssistantDtoCredentialsItem_11Labs, + TransientAssistantDtoCredentialsItem_Anthropic, + TransientAssistantDtoCredentialsItem_AnthropicBedrock, + TransientAssistantDtoCredentialsItem_Anyscale, + TransientAssistantDtoCredentialsItem_AssemblyAi, + TransientAssistantDtoCredentialsItem_Azure, + TransientAssistantDtoCredentialsItem_AzureOpenai, + TransientAssistantDtoCredentialsItem_ByoSipTrunk, + TransientAssistantDtoCredentialsItem_Cartesia, + TransientAssistantDtoCredentialsItem_Cerebras, + TransientAssistantDtoCredentialsItem_Cloudflare, + TransientAssistantDtoCredentialsItem_CustomCredential, + TransientAssistantDtoCredentialsItem_CustomLlm, + TransientAssistantDtoCredentialsItem_DeepSeek, + TransientAssistantDtoCredentialsItem_Deepgram, + TransientAssistantDtoCredentialsItem_Deepinfra, + TransientAssistantDtoCredentialsItem_Email, + TransientAssistantDtoCredentialsItem_Gcp, + TransientAssistantDtoCredentialsItem_GhlOauth2Authorization, + TransientAssistantDtoCredentialsItem_Gladia, + TransientAssistantDtoCredentialsItem_Gohighlevel, + TransientAssistantDtoCredentialsItem_Google, + TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization, + TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client, + TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization, + TransientAssistantDtoCredentialsItem_Groq, + TransientAssistantDtoCredentialsItem_Hume, + TransientAssistantDtoCredentialsItem_InflectionAi, + TransientAssistantDtoCredentialsItem_Inworld, + TransientAssistantDtoCredentialsItem_Langfuse, + TransientAssistantDtoCredentialsItem_Lmnt, + TransientAssistantDtoCredentialsItem_Make, + TransientAssistantDtoCredentialsItem_Microsoft, + TransientAssistantDtoCredentialsItem_Minimax, + TransientAssistantDtoCredentialsItem_Mistral, + TransientAssistantDtoCredentialsItem_Neuphonic, + TransientAssistantDtoCredentialsItem_Openai, + TransientAssistantDtoCredentialsItem_Openrouter, + TransientAssistantDtoCredentialsItem_PerplexityAi, + TransientAssistantDtoCredentialsItem_Playht, + TransientAssistantDtoCredentialsItem_Reson8, + TransientAssistantDtoCredentialsItem_RimeAi, + TransientAssistantDtoCredentialsItem_Runpod, + TransientAssistantDtoCredentialsItem_S3, + TransientAssistantDtoCredentialsItem_S3Compatible, + TransientAssistantDtoCredentialsItem_SlackOauth2Authorization, + TransientAssistantDtoCredentialsItem_SlackWebhook, + TransientAssistantDtoCredentialsItem_SmallestAi, + TransientAssistantDtoCredentialsItem_Soniox, + TransientAssistantDtoCredentialsItem_Speechmatics, + TransientAssistantDtoCredentialsItem_Supabase, + TransientAssistantDtoCredentialsItem_Tavus, + TransientAssistantDtoCredentialsItem_TogetherAi, + TransientAssistantDtoCredentialsItem_Twilio, + TransientAssistantDtoCredentialsItem_Vonage, + TransientAssistantDtoCredentialsItem_Webhook, + TransientAssistantDtoCredentialsItem_Wellsaid, + TransientAssistantDtoCredentialsItem_Xai, + ) + from .transient_assistant_dto_first_message_mode import TransientAssistantDtoFirstMessageMode + from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem + from .transient_assistant_dto_model import ( + TransientAssistantDtoModel, + TransientAssistantDtoModel_Anthropic, + TransientAssistantDtoModel_AnthropicBedrock, + TransientAssistantDtoModel_Anyscale, + TransientAssistantDtoModel_Cerebras, + TransientAssistantDtoModel_CustomLlm, + TransientAssistantDtoModel_DeepSeek, + TransientAssistantDtoModel_Deepinfra, + TransientAssistantDtoModel_Google, + TransientAssistantDtoModel_Groq, + TransientAssistantDtoModel_InflectionAi, + TransientAssistantDtoModel_Minimax, + TransientAssistantDtoModel_Openai, + TransientAssistantDtoModel_Openrouter, + TransientAssistantDtoModel_PerplexityAi, + TransientAssistantDtoModel_TogetherAi, + TransientAssistantDtoModel_Vapi, + TransientAssistantDtoModel_Xai, + ) + from .transient_assistant_dto_server_messages_item import TransientAssistantDtoServerMessagesItem + from .transient_assistant_dto_transcriber import ( + TransientAssistantDtoTranscriber, + TransientAssistantDtoTranscriber_11Labs, + TransientAssistantDtoTranscriber_AssemblyAi, + TransientAssistantDtoTranscriber_Azure, + TransientAssistantDtoTranscriber_Cartesia, + TransientAssistantDtoTranscriber_CustomTranscriber, + TransientAssistantDtoTranscriber_Deepgram, + TransientAssistantDtoTranscriber_Gladia, + TransientAssistantDtoTranscriber_Google, + TransientAssistantDtoTranscriber_Openai, + TransientAssistantDtoTranscriber_Reson8, + TransientAssistantDtoTranscriber_Soniox, + TransientAssistantDtoTranscriber_Speechmatics, + TransientAssistantDtoTranscriber_Talkscriber, + TransientAssistantDtoTranscriber_Vapi, + TransientAssistantDtoTranscriber_Xai, + ) + from .transient_assistant_dto_voice import ( + TransientAssistantDtoVoice, + TransientAssistantDtoVoice_11Labs, + TransientAssistantDtoVoice_Azure, + TransientAssistantDtoVoice_Cartesia, + TransientAssistantDtoVoice_CustomVoice, + TransientAssistantDtoVoice_Deepgram, + TransientAssistantDtoVoice_Hume, + TransientAssistantDtoVoice_Inworld, + TransientAssistantDtoVoice_Lmnt, + TransientAssistantDtoVoice_Microsoft, + TransientAssistantDtoVoice_Minimax, + TransientAssistantDtoVoice_Neuphonic, + TransientAssistantDtoVoice_Openai, + TransientAssistantDtoVoice_Playht, + TransientAssistantDtoVoice_RimeAi, + TransientAssistantDtoVoice_Sesame, + TransientAssistantDtoVoice_SmallestAi, + TransientAssistantDtoVoice_Vapi, + TransientAssistantDtoVoice_Wellsaid, + TransientAssistantDtoVoice_Xai, + ) + from .transient_assistant_dto_voicemail_detection import TransientAssistantDtoVoicemailDetection + from .transient_assistant_dto_voicemail_detection_zero import TransientAssistantDtoVoicemailDetectionZero from .transient_twilio_phone_number import TransientTwilioPhoneNumber from .transient_twilio_phone_number_fallback_destination import ( TransientTwilioPhoneNumberFallbackDestination, @@ -4743,6 +4996,7 @@ UpdateAssistantDraftDtoCredentialsItem_Openrouter, UpdateAssistantDraftDtoCredentialsItem_PerplexityAi, UpdateAssistantDraftDtoCredentialsItem_Playht, + UpdateAssistantDraftDtoCredentialsItem_Reson8, UpdateAssistantDraftDtoCredentialsItem_RimeAi, UpdateAssistantDraftDtoCredentialsItem_Runpod, UpdateAssistantDraftDtoCredentialsItem_S3, @@ -4795,6 +5049,7 @@ UpdateAssistantDraftDtoTranscriber_Gladia, UpdateAssistantDraftDtoTranscriber_Google, UpdateAssistantDraftDtoTranscriber_Openai, + UpdateAssistantDraftDtoTranscriber_Reson8, UpdateAssistantDraftDtoTranscriber_Soniox, UpdateAssistantDraftDtoTranscriber_Speechmatics, UpdateAssistantDraftDtoTranscriber_Talkscriber, @@ -4819,7 +5074,6 @@ UpdateAssistantDraftDtoVoice_RimeAi, UpdateAssistantDraftDtoVoice_Sesame, UpdateAssistantDraftDtoVoice_SmallestAi, - UpdateAssistantDraftDtoVoice_Tavus, UpdateAssistantDraftDtoVoice_Vapi, UpdateAssistantDraftDtoVoice_Wellsaid, UpdateAssistantDraftDtoVoice_Xai, @@ -5120,6 +5374,8 @@ UpdateQueryToolDtoMessagesItem_RequestResponseDelayed, UpdateQueryToolDtoMessagesItem_RequestStart, ) + from .update_reson_8_credential_dto import UpdateReson8CredentialDto + from .update_reson_8_credential_dto_provider import UpdateReson8CredentialDtoProvider from .update_rime_ai_credential_dto import UpdateRimeAiCredentialDto from .update_rime_ai_credential_dto_provider import UpdateRimeAiCredentialDtoProvider from .update_runpod_credential_dto import UpdateRunpodCredentialDto @@ -5368,6 +5624,7 @@ UpdateWorkflowDtoCredentialsItem_Openrouter, UpdateWorkflowDtoCredentialsItem_PerplexityAi, UpdateWorkflowDtoCredentialsItem_Playht, + UpdateWorkflowDtoCredentialsItem_Reson8, UpdateWorkflowDtoCredentialsItem_RimeAi, UpdateWorkflowDtoCredentialsItem_Runpod, UpdateWorkflowDtoCredentialsItem_S3, @@ -5411,6 +5668,7 @@ UpdateWorkflowDtoTranscriber_Gladia, UpdateWorkflowDtoTranscriber_Google, UpdateWorkflowDtoTranscriber_Openai, + UpdateWorkflowDtoTranscriber_Reson8, UpdateWorkflowDtoTranscriber_Soniox, UpdateWorkflowDtoTranscriber_Speechmatics, UpdateWorkflowDtoTranscriber_Talkscriber, @@ -5435,7 +5693,6 @@ UpdateWorkflowDtoVoice_RimeAi, UpdateWorkflowDtoVoice_Sesame, UpdateWorkflowDtoVoice_SmallestAi, - UpdateWorkflowDtoVoice_Tavus, UpdateWorkflowDtoVoice_Vapi, UpdateWorkflowDtoVoice_Wellsaid, UpdateWorkflowDtoVoice_Xai, @@ -5444,10 +5701,13 @@ from .update_workflow_dto_voicemail_detection_zero import UpdateWorkflowDtoVoicemailDetectionZero from .update_x_ai_credential_dto import UpdateXAiCredentialDto from .update_x_ai_credential_dto_provider import UpdateXAiCredentialDtoProvider - from .user import User from .user_message import UserMessage from .user_message_confidence_source import UserMessageConfidenceSource from .user_message_metadata import UserMessageMetadata + from .user_with_role import UserWithRole + from .user_with_role_role import UserWithRoleRole + from .user_with_role_role_zero import UserWithRoleRoleZero + from .validate_background_sound_url_dto import ValidateBackgroundSoundUrlDto from .vapi_cost import VapiCost from .vapi_cost_sub_type import VapiCostSubType from .vapi_model import VapiModel @@ -5616,6 +5876,7 @@ WorkflowCredentialsItem_Openrouter, WorkflowCredentialsItem_PerplexityAi, WorkflowCredentialsItem_Playht, + WorkflowCredentialsItem_Reson8, WorkflowCredentialsItem_RimeAi, WorkflowCredentialsItem_Runpod, WorkflowCredentialsItem_S3, @@ -5650,6 +5911,7 @@ from .workflow_nodes_item import WorkflowNodesItem, WorkflowNodesItem_Conversation, WorkflowNodesItem_Tool from .workflow_open_ai_model import WorkflowOpenAiModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel + from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort from .workflow_overrides import WorkflowOverrides from .workflow_transcriber import ( WorkflowTranscriber, @@ -5662,6 +5924,7 @@ WorkflowTranscriber_Gladia, WorkflowTranscriber_Google, WorkflowTranscriber_Openai, + WorkflowTranscriber_Reson8, WorkflowTranscriber_Soniox, WorkflowTranscriber_Speechmatics, WorkflowTranscriber_Talkscriber, @@ -5713,6 +5976,7 @@ WorkflowUserEditableCredentialsItem_Openrouter, WorkflowUserEditableCredentialsItem_PerplexityAi, WorkflowUserEditableCredentialsItem_Playht, + WorkflowUserEditableCredentialsItem_Reson8, WorkflowUserEditableCredentialsItem_RimeAi, WorkflowUserEditableCredentialsItem_Runpod, WorkflowUserEditableCredentialsItem_S3, @@ -5756,6 +6020,7 @@ WorkflowUserEditableTranscriber_Gladia, WorkflowUserEditableTranscriber_Google, WorkflowUserEditableTranscriber_Openai, + WorkflowUserEditableTranscriber_Reson8, WorkflowUserEditableTranscriber_Soniox, WorkflowUserEditableTranscriber_Speechmatics, WorkflowUserEditableTranscriber_Talkscriber, @@ -5780,7 +6045,6 @@ WorkflowUserEditableVoice_RimeAi, WorkflowUserEditableVoice_Sesame, WorkflowUserEditableVoice_SmallestAi, - WorkflowUserEditableVoice_Tavus, WorkflowUserEditableVoice_Vapi, WorkflowUserEditableVoice_Wellsaid, WorkflowUserEditableVoice_Xai, @@ -5805,7 +6069,6 @@ WorkflowVoice_RimeAi, WorkflowVoice_Sesame, WorkflowVoice_SmallestAi, - WorkflowVoice_Tavus, WorkflowVoice_Vapi, WorkflowVoice_Wellsaid, WorkflowVoice_Xai, @@ -5875,6 +6138,7 @@ "AnthropicBedrockModel": ".anthropic_bedrock_model", "AnthropicBedrockModelFallbackModelsItem": ".anthropic_bedrock_model_fallback_models_item", "AnthropicBedrockModelModel": ".anthropic_bedrock_model_model", + "AnthropicBedrockModelReasoningEffort": ".anthropic_bedrock_model_reasoning_effort", "AnthropicBedrockModelToolsItem": ".anthropic_bedrock_model_tools_item", "AnthropicBedrockModelToolsItem_ApiRequest": ".anthropic_bedrock_model_tools_item", "AnthropicBedrockModelToolsItem_Bash": ".anthropic_bedrock_model_tools_item", @@ -5903,6 +6167,7 @@ "AnthropicCredentialProvider": ".anthropic_credential_provider", "AnthropicModel": ".anthropic_model", "AnthropicModelModel": ".anthropic_model_model", + "AnthropicModelReasoningEffort": ".anthropic_model_reasoning_effort", "AnthropicModelToolsItem": ".anthropic_model_tools_item", "AnthropicModelToolsItem_ApiRequest": ".anthropic_model_tools_item", "AnthropicModelToolsItem_Bash": ".anthropic_model_tools_item", @@ -6020,6 +6285,7 @@ "AssistantCredentialsItem_Openrouter": ".assistant_credentials_item", "AssistantCredentialsItem_PerplexityAi": ".assistant_credentials_item", "AssistantCredentialsItem_Playht": ".assistant_credentials_item", + "AssistantCredentialsItem_Reson8": ".assistant_credentials_item", "AssistantCredentialsItem_RimeAi": ".assistant_credentials_item", "AssistantCredentialsItem_Runpod": ".assistant_credentials_item", "AssistantCredentialsItem_S3": ".assistant_credentials_item", @@ -6084,6 +6350,7 @@ "AssistantDraftCredentialsItem_Openrouter": ".assistant_draft_credentials_item", "AssistantDraftCredentialsItem_PerplexityAi": ".assistant_draft_credentials_item", "AssistantDraftCredentialsItem_Playht": ".assistant_draft_credentials_item", + "AssistantDraftCredentialsItem_Reson8": ".assistant_draft_credentials_item", "AssistantDraftCredentialsItem_RimeAi": ".assistant_draft_credentials_item", "AssistantDraftCredentialsItem_Runpod": ".assistant_draft_credentials_item", "AssistantDraftCredentialsItem_S3": ".assistant_draft_credentials_item", @@ -6134,6 +6401,7 @@ "AssistantDraftTranscriber_Gladia": ".assistant_draft_transcriber", "AssistantDraftTranscriber_Google": ".assistant_draft_transcriber", "AssistantDraftTranscriber_Openai": ".assistant_draft_transcriber", + "AssistantDraftTranscriber_Reson8": ".assistant_draft_transcriber", "AssistantDraftTranscriber_Soniox": ".assistant_draft_transcriber", "AssistantDraftTranscriber_Speechmatics": ".assistant_draft_transcriber", "AssistantDraftTranscriber_Talkscriber": ".assistant_draft_transcriber", @@ -6156,17 +6424,16 @@ "AssistantDraftVoice_RimeAi": ".assistant_draft_voice", "AssistantDraftVoice_Sesame": ".assistant_draft_voice", "AssistantDraftVoice_SmallestAi": ".assistant_draft_voice", - "AssistantDraftVoice_Tavus": ".assistant_draft_voice", "AssistantDraftVoice_Vapi": ".assistant_draft_voice", "AssistantDraftVoice_Wellsaid": ".assistant_draft_voice", "AssistantDraftVoice_Xai": ".assistant_draft_voice", "AssistantDraftVoicemailDetection": ".assistant_draft_voicemail_detection", "AssistantDraftVoicemailDetectionZero": ".assistant_draft_voicemail_detection_zero", "AssistantFirstMessageMode": ".assistant_first_message_mode", - "AssistantHookAssistantSpeechInterrupted": ".assistant_hook_assistant_speech_interrupted", - "AssistantHookCallEnding": ".assistant_hook_call_ending", - "AssistantHookCustomerSpeechInterrupted": ".assistant_hook_customer_speech_interrupted", "AssistantHooksItem": ".assistant_hooks_item", + "AssistantManagedConflictResponseDto": ".assistant_managed_conflict_response_dto", + "AssistantManagedConflictResponseDtoError": ".assistant_managed_conflict_response_dto_error", + "AssistantManagedVapiAgentsDto": ".assistant_managed_vapi_agents_dto", "AssistantMessage": ".assistant_message", "AssistantMessageEvaluationContinuePlan": ".assistant_message_evaluation_continue_plan", "AssistantMessageJudgePlanAi": ".assistant_message_judge_plan_ai", @@ -6242,6 +6509,7 @@ "AssistantOverridesCredentialsItem_Openrouter": ".assistant_overrides_credentials_item", "AssistantOverridesCredentialsItem_PerplexityAi": ".assistant_overrides_credentials_item", "AssistantOverridesCredentialsItem_Playht": ".assistant_overrides_credentials_item", + "AssistantOverridesCredentialsItem_Reson8": ".assistant_overrides_credentials_item", "AssistantOverridesCredentialsItem_RimeAi": ".assistant_overrides_credentials_item", "AssistantOverridesCredentialsItem_Runpod": ".assistant_overrides_credentials_item", "AssistantOverridesCredentialsItem_S3": ".assistant_overrides_credentials_item", @@ -6314,6 +6582,7 @@ "AssistantOverridesTranscriber_Gladia": ".assistant_overrides_transcriber", "AssistantOverridesTranscriber_Google": ".assistant_overrides_transcriber", "AssistantOverridesTranscriber_Openai": ".assistant_overrides_transcriber", + "AssistantOverridesTranscriber_Reson8": ".assistant_overrides_transcriber", "AssistantOverridesTranscriber_Soniox": ".assistant_overrides_transcriber", "AssistantOverridesTranscriber_Speechmatics": ".assistant_overrides_transcriber", "AssistantOverridesTranscriber_Talkscriber": ".assistant_overrides_transcriber", @@ -6336,7 +6605,6 @@ "AssistantOverridesVoice_RimeAi": ".assistant_overrides_voice", "AssistantOverridesVoice_Sesame": ".assistant_overrides_voice", "AssistantOverridesVoice_SmallestAi": ".assistant_overrides_voice", - "AssistantOverridesVoice_Tavus": ".assistant_overrides_voice", "AssistantOverridesVoice_Vapi": ".assistant_overrides_voice", "AssistantOverridesVoice_Wellsaid": ".assistant_overrides_voice", "AssistantOverridesVoice_Xai": ".assistant_overrides_voice", @@ -6344,7 +6612,6 @@ "AssistantOverridesVoicemailDetectionZero": ".assistant_overrides_voicemail_detection_zero", "AssistantPaginatedResponse": ".assistant_paginated_response", "AssistantPinnedConflictResponseDto": ".assistant_pinned_conflict_response_dto", - "AssistantPinnedConflictResponseDtoError": ".assistant_pinned_conflict_response_dto_error", "AssistantServerMessagesItem": ".assistant_server_messages_item", "AssistantSpeechWordAlignmentTiming": ".assistant_speech_word_alignment_timing", "AssistantSpeechWordProgressTiming": ".assistant_speech_word_progress_timing", @@ -6359,12 +6626,12 @@ "AssistantTranscriber_Gladia": ".assistant_transcriber", "AssistantTranscriber_Google": ".assistant_transcriber", "AssistantTranscriber_Openai": ".assistant_transcriber", + "AssistantTranscriber_Reson8": ".assistant_transcriber", "AssistantTranscriber_Soniox": ".assistant_transcriber", "AssistantTranscriber_Speechmatics": ".assistant_transcriber", "AssistantTranscriber_Talkscriber": ".assistant_transcriber", "AssistantTranscriber_Vapi": ".assistant_transcriber", "AssistantTranscriber_Xai": ".assistant_transcriber", - "AssistantUserEditable": ".assistant_user_editable", "AssistantVersion": ".assistant_version", "AssistantVersionBackgroundSound": ".assistant_version_background_sound", "AssistantVersionBackgroundSoundZero": ".assistant_version_background_sound_zero", @@ -6410,6 +6677,7 @@ "AssistantVersionCredentialsItem_Openrouter": ".assistant_version_credentials_item", "AssistantVersionCredentialsItem_PerplexityAi": ".assistant_version_credentials_item", "AssistantVersionCredentialsItem_Playht": ".assistant_version_credentials_item", + "AssistantVersionCredentialsItem_Reson8": ".assistant_version_credentials_item", "AssistantVersionCredentialsItem_RimeAi": ".assistant_version_credentials_item", "AssistantVersionCredentialsItem_Runpod": ".assistant_version_credentials_item", "AssistantVersionCredentialsItem_S3": ".assistant_version_credentials_item", @@ -6460,6 +6728,7 @@ "AssistantVersionTranscriber_Gladia": ".assistant_version_transcriber", "AssistantVersionTranscriber_Google": ".assistant_version_transcriber", "AssistantVersionTranscriber_Openai": ".assistant_version_transcriber", + "AssistantVersionTranscriber_Reson8": ".assistant_version_transcriber", "AssistantVersionTranscriber_Soniox": ".assistant_version_transcriber", "AssistantVersionTranscriber_Speechmatics": ".assistant_version_transcriber", "AssistantVersionTranscriber_Talkscriber": ".assistant_version_transcriber", @@ -6482,7 +6751,6 @@ "AssistantVersionVoice_RimeAi": ".assistant_version_voice", "AssistantVersionVoice_Sesame": ".assistant_version_voice", "AssistantVersionVoice_SmallestAi": ".assistant_version_voice", - "AssistantVersionVoice_Tavus": ".assistant_version_voice", "AssistantVersionVoice_Vapi": ".assistant_version_voice", "AssistantVersionVoice_Wellsaid": ".assistant_version_voice", "AssistantVersionVoice_Xai": ".assistant_version_voice", @@ -6505,7 +6773,6 @@ "AssistantVoice_RimeAi": ".assistant_voice", "AssistantVoice_Sesame": ".assistant_voice", "AssistantVoice_SmallestAi": ".assistant_voice", - "AssistantVoice_Tavus": ".assistant_voice", "AssistantVoice_Vapi": ".assistant_voice", "AssistantVoice_Wellsaid": ".assistant_voice", "AssistantVoice_Xai": ".assistant_voice", @@ -6609,6 +6876,49 @@ "CallDestination_Number": ".call_destination", "CallDestination_Sip": ".call_destination", "CallEndedReason": ".call_ended_reason", + "CallHealthDashboardAffectedCallDto": ".call_health_dashboard_affected_call_dto", + "CallHealthDashboardAffectedCallDtoCallAvailability": ".call_health_dashboard_affected_call_dto_call_availability", + "CallHealthDashboardAffectedCallsResponseDto": ".call_health_dashboard_affected_calls_response_dto", + "CallHealthDashboardApiErrorDto": ".call_health_dashboard_api_error_dto", + "CallHealthDashboardAssignmentCoverageDto": ".call_health_dashboard_assignment_coverage_dto", + "CallHealthDashboardAssistantGoalsDto": ".call_health_dashboard_assistant_goals_dto", + "CallHealthDashboardAssistantGoalsResponseDto": ".call_health_dashboard_assistant_goals_response_dto", + "CallHealthDashboardAssistantListResponseDto": ".call_health_dashboard_assistant_list_response_dto", + "CallHealthDashboardAssistantOverviewDto": ".call_health_dashboard_assistant_overview_dto", + "CallHealthDashboardAssistantReferenceDto": ".call_health_dashboard_assistant_reference_dto", + "CallHealthDashboardAssistantSummaryResponseDto": ".call_health_dashboard_assistant_summary_response_dto", + "CallHealthDashboardClassificationCoverageDto": ".call_health_dashboard_classification_coverage_dto", + "CallHealthDashboardCoverageDto": ".call_health_dashboard_coverage_dto", + "CallHealthDashboardDiscoveryCoverageDto": ".call_health_dashboard_discovery_coverage_dto", + "CallHealthDashboardFacetsDto": ".call_health_dashboard_facets_dto", + "CallHealthDashboardFacetsDtoStatusesItem": ".call_health_dashboard_facets_dto_statuses_item", + "CallHealthDashboardGoalDailyDto": ".call_health_dashboard_goal_daily_dto", + "CallHealthDashboardGoalDefinitionDto": ".call_health_dashboard_goal_definition_dto", + "CallHealthDashboardGoalGapsDto": ".call_health_dashboard_goal_gaps_dto", + "CallHealthDashboardGoalOptionDto": ".call_health_dashboard_goal_option_dto", + "CallHealthDashboardGoalSummaryDto": ".call_health_dashboard_goal_summary_dto", + "CallHealthDashboardIntakeCoverageDto": ".call_health_dashboard_intake_coverage_dto", + "CallHealthDashboardIntakeCoverageDtoDeliveryMode": ".call_health_dashboard_intake_coverage_dto_delivery_mode", + "CallHealthDashboardIntakeCoverageDtoEndToEndCoverage": ".call_health_dashboard_intake_coverage_dto_end_to_end_coverage", + "CallHealthDashboardIssueActivityDto": ".call_health_dashboard_issue_activity_dto", + "CallHealthDashboardIssueActivityDtoAction": ".call_health_dashboard_issue_activity_dto_action", + "CallHealthDashboardIssueActivityListResponseDto": ".call_health_dashboard_issue_activity_list_response_dto", + "CallHealthDashboardIssueCoverageDto": ".call_health_dashboard_issue_coverage_dto", + "CallHealthDashboardIssueCoverageDtoState": ".call_health_dashboard_issue_coverage_dto_state", + "CallHealthDashboardIssueDailyDto": ".call_health_dashboard_issue_daily_dto", + "CallHealthDashboardIssueDefinitionDto": ".call_health_dashboard_issue_definition_dto", + "CallHealthDashboardIssueDetailResponseDto": ".call_health_dashboard_issue_detail_response_dto", + "CallHealthDashboardIssueListResponseDto": ".call_health_dashboard_issue_list_response_dto", + "CallHealthDashboardIssueReferenceDto": ".call_health_dashboard_issue_reference_dto", + "CallHealthDashboardIssueReferenceDtoStatus": ".call_health_dashboard_issue_reference_dto_status", + "CallHealthDashboardIssueSummaryDto": ".call_health_dashboard_issue_summary_dto", + "CallHealthDashboardIssueSummaryDtoStatus": ".call_health_dashboard_issue_summary_dto_status", + "CallHealthDashboardSeriesPageDto": ".call_health_dashboard_series_page_dto", + "CallHealthDashboardSweepCoverageDto": ".call_health_dashboard_sweep_coverage_dto", + "CallHealthDashboardSweepCoverageDtoState": ".call_health_dashboard_sweep_coverage_dto_state", + "CallHealthDashboardTriageRequestDto": ".call_health_dashboard_triage_request_dto", + "CallHealthDashboardTriageRequestDtoAction": ".call_health_dashboard_triage_request_dto_action", + "CallHealthDashboardWindowDto": ".call_health_dashboard_window_dto", "CallHookAssistantSpeechInterrupted": ".call_hook_assistant_speech_interrupted", "CallHookAssistantSpeechInterruptedDoItem": ".call_hook_assistant_speech_interrupted_do_item", "CallHookAssistantSpeechInterruptedDoItem_MessageAdd": ".call_hook_assistant_speech_interrupted_do_item", @@ -7055,6 +7365,7 @@ "ConversationNodeTranscriber_Gladia": ".conversation_node_transcriber", "ConversationNodeTranscriber_Google": ".conversation_node_transcriber", "ConversationNodeTranscriber_Openai": ".conversation_node_transcriber", + "ConversationNodeTranscriber_Reson8": ".conversation_node_transcriber", "ConversationNodeTranscriber_Soniox": ".conversation_node_transcriber", "ConversationNodeTranscriber_Speechmatics": ".conversation_node_transcriber", "ConversationNodeTranscriber_Talkscriber": ".conversation_node_transcriber", @@ -7077,7 +7388,6 @@ "ConversationNodeVoice_RimeAi": ".conversation_node_voice", "ConversationNodeVoice_Sesame": ".conversation_node_voice", "ConversationNodeVoice_SmallestAi": ".conversation_node_voice", - "ConversationNodeVoice_Tavus": ".conversation_node_voice", "ConversationNodeVoice_Vapi": ".conversation_node_voice", "ConversationNodeVoice_Wellsaid": ".conversation_node_voice", "ConversationNodeVoice_Xai": ".conversation_node_voice", @@ -7142,6 +7452,7 @@ "CreateAssistantDraftDtoCredentialsItem_Openrouter": ".create_assistant_draft_dto_credentials_item", "CreateAssistantDraftDtoCredentialsItem_PerplexityAi": ".create_assistant_draft_dto_credentials_item", "CreateAssistantDraftDtoCredentialsItem_Playht": ".create_assistant_draft_dto_credentials_item", + "CreateAssistantDraftDtoCredentialsItem_Reson8": ".create_assistant_draft_dto_credentials_item", "CreateAssistantDraftDtoCredentialsItem_RimeAi": ".create_assistant_draft_dto_credentials_item", "CreateAssistantDraftDtoCredentialsItem_Runpod": ".create_assistant_draft_dto_credentials_item", "CreateAssistantDraftDtoCredentialsItem_S3": ".create_assistant_draft_dto_credentials_item", @@ -7190,6 +7501,7 @@ "CreateAssistantDraftDtoTranscriber_Gladia": ".create_assistant_draft_dto_transcriber", "CreateAssistantDraftDtoTranscriber_Google": ".create_assistant_draft_dto_transcriber", "CreateAssistantDraftDtoTranscriber_Openai": ".create_assistant_draft_dto_transcriber", + "CreateAssistantDraftDtoTranscriber_Reson8": ".create_assistant_draft_dto_transcriber", "CreateAssistantDraftDtoTranscriber_Soniox": ".create_assistant_draft_dto_transcriber", "CreateAssistantDraftDtoTranscriber_Speechmatics": ".create_assistant_draft_dto_transcriber", "CreateAssistantDraftDtoTranscriber_Talkscriber": ".create_assistant_draft_dto_transcriber", @@ -7212,7 +7524,6 @@ "CreateAssistantDraftDtoVoice_RimeAi": ".create_assistant_draft_dto_voice", "CreateAssistantDraftDtoVoice_Sesame": ".create_assistant_draft_dto_voice", "CreateAssistantDraftDtoVoice_SmallestAi": ".create_assistant_draft_dto_voice", - "CreateAssistantDraftDtoVoice_Tavus": ".create_assistant_draft_dto_voice", "CreateAssistantDraftDtoVoice_Vapi": ".create_assistant_draft_dto_voice", "CreateAssistantDraftDtoVoice_Wellsaid": ".create_assistant_draft_dto_voice", "CreateAssistantDraftDtoVoice_Xai": ".create_assistant_draft_dto_voice", @@ -7263,6 +7574,7 @@ "CreateAssistantDtoCredentialsItem_Openrouter": ".create_assistant_dto_credentials_item", "CreateAssistantDtoCredentialsItem_PerplexityAi": ".create_assistant_dto_credentials_item", "CreateAssistantDtoCredentialsItem_Playht": ".create_assistant_dto_credentials_item", + "CreateAssistantDtoCredentialsItem_Reson8": ".create_assistant_dto_credentials_item", "CreateAssistantDtoCredentialsItem_RimeAi": ".create_assistant_dto_credentials_item", "CreateAssistantDtoCredentialsItem_Runpod": ".create_assistant_dto_credentials_item", "CreateAssistantDtoCredentialsItem_S3": ".create_assistant_dto_credentials_item", @@ -7311,6 +7623,7 @@ "CreateAssistantDtoTranscriber_Gladia": ".create_assistant_dto_transcriber", "CreateAssistantDtoTranscriber_Google": ".create_assistant_dto_transcriber", "CreateAssistantDtoTranscriber_Openai": ".create_assistant_dto_transcriber", + "CreateAssistantDtoTranscriber_Reson8": ".create_assistant_dto_transcriber", "CreateAssistantDtoTranscriber_Soniox": ".create_assistant_dto_transcriber", "CreateAssistantDtoTranscriber_Speechmatics": ".create_assistant_dto_transcriber", "CreateAssistantDtoTranscriber_Talkscriber": ".create_assistant_dto_transcriber", @@ -7333,7 +7646,6 @@ "CreateAssistantDtoVoice_RimeAi": ".create_assistant_dto_voice", "CreateAssistantDtoVoice_Sesame": ".create_assistant_dto_voice", "CreateAssistantDtoVoice_SmallestAi": ".create_assistant_dto_voice", - "CreateAssistantDtoVoice_Tavus": ".create_assistant_dto_voice", "CreateAssistantDtoVoice_Vapi": ".create_assistant_dto_voice", "CreateAssistantDtoVoice_Wellsaid": ".create_assistant_dto_voice", "CreateAssistantDtoVoice_Xai": ".create_assistant_dto_voice", @@ -7547,6 +7859,7 @@ "CreateQueryToolDtoMessagesItem_RequestFailed": ".create_query_tool_dto_messages_item", "CreateQueryToolDtoMessagesItem_RequestResponseDelayed": ".create_query_tool_dto_messages_item", "CreateQueryToolDtoMessagesItem_RequestStart": ".create_query_tool_dto_messages_item", + "CreateReson8CredentialDto": ".create_reson_8_credential_dto", "CreateRimeAiCredentialDto": ".create_rime_ai_credential_dto", "CreateRunpodCredentialDto": ".create_runpod_credential_dto", "CreateS3CompatibleCredentialDto": ".create_s_3_compatible_credential_dto", @@ -7719,6 +8032,7 @@ "CreateVonagePhoneNumberDtoHooksItem_CallEnding": ".create_vonage_phone_number_dto_hooks_item", "CreateVonagePhoneNumberDtoHooksItem_CallRinging": ".create_vonage_phone_number_dto_hooks_item", "CreateWebCallDto": ".create_web_call_dto", + "CreateWebCallDtoVideoRecordingStartMode": ".create_web_call_dto_video_recording_start_mode", "CreateWebChatDto": ".create_web_chat_dto", "CreateWebChatDtoInput": ".create_web_chat_dto_input", "CreateWebChatDtoInputOneItem": ".create_web_chat_dto_input_one_item", @@ -7773,6 +8087,7 @@ "CreateWorkflowDtoCredentialsItem_Openrouter": ".create_workflow_dto_credentials_item", "CreateWorkflowDtoCredentialsItem_PerplexityAi": ".create_workflow_dto_credentials_item", "CreateWorkflowDtoCredentialsItem_Playht": ".create_workflow_dto_credentials_item", + "CreateWorkflowDtoCredentialsItem_Reson8": ".create_workflow_dto_credentials_item", "CreateWorkflowDtoCredentialsItem_RimeAi": ".create_workflow_dto_credentials_item", "CreateWorkflowDtoCredentialsItem_Runpod": ".create_workflow_dto_credentials_item", "CreateWorkflowDtoCredentialsItem_S3": ".create_workflow_dto_credentials_item", @@ -7810,6 +8125,7 @@ "CreateWorkflowDtoTranscriber_Gladia": ".create_workflow_dto_transcriber", "CreateWorkflowDtoTranscriber_Google": ".create_workflow_dto_transcriber", "CreateWorkflowDtoTranscriber_Openai": ".create_workflow_dto_transcriber", + "CreateWorkflowDtoTranscriber_Reson8": ".create_workflow_dto_transcriber", "CreateWorkflowDtoTranscriber_Soniox": ".create_workflow_dto_transcriber", "CreateWorkflowDtoTranscriber_Speechmatics": ".create_workflow_dto_transcriber", "CreateWorkflowDtoTranscriber_Talkscriber": ".create_workflow_dto_transcriber", @@ -7832,7 +8148,6 @@ "CreateWorkflowDtoVoice_RimeAi": ".create_workflow_dto_voice", "CreateWorkflowDtoVoice_Sesame": ".create_workflow_dto_voice", "CreateWorkflowDtoVoice_SmallestAi": ".create_workflow_dto_voice", - "CreateWorkflowDtoVoice_Tavus": ".create_workflow_dto_voice", "CreateWorkflowDtoVoice_Vapi": ".create_workflow_dto_voice", "CreateWorkflowDtoVoice_Wellsaid": ".create_workflow_dto_voice", "CreateWorkflowDtoVoice_Xai": ".create_workflow_dto_voice", @@ -7994,6 +8309,7 @@ "Eval": ".eval", "EvalAnthropicModel": ".eval_anthropic_model", "EvalAnthropicModelModel": ".eval_anthropic_model_model", + "EvalAnthropicModelReasoningEffort": ".eval_anthropic_model_reasoning_effort", "EvalCustomModel": ".eval_custom_model", "EvalGoogleModel": ".eval_google_model", "EvalGoogleModelModel": ".eval_google_model_model", @@ -8047,7 +8363,6 @@ "ExportSessionDtoFormat": ".export_session_dto_format", "ExportSessionDtoSortBy": ".export_session_dto_sort_by", "ExportSessionDtoSortOrder": ".export_session_dto_sort_order", - "FailedEdgeCondition": ".failed_edge_condition", "FallbackAssemblyAiTranscriber": ".fallback_assembly_ai_transcriber", "FallbackAssemblyAiTranscriberLanguage": ".fallback_assembly_ai_transcriber_language", "FallbackAssemblyAiTranscriberLanguageCodesItem": ".fallback_assembly_ai_transcriber_language_codes_item", @@ -8068,8 +8383,6 @@ "FallbackCustomTranscriber": ".fallback_custom_transcriber", "FallbackCustomVoice": ".fallback_custom_voice", "FallbackDeepgramTranscriber": ".fallback_deepgram_transcriber", - "FallbackDeepgramTranscriberLanguage": ".fallback_deepgram_transcriber_language", - "FallbackDeepgramTranscriberModel": ".fallback_deepgram_transcriber_model", "FallbackDeepgramTranscriberRedactionItem": ".fallback_deepgram_transcriber_redaction_item", "FallbackDeepgramVoice": ".fallback_deepgram_voice", "FallbackDeepgramVoiceId": ".fallback_deepgram_voice_id", @@ -8110,7 +8423,6 @@ "FallbackMinimaxVoiceProvider": ".fallback_minimax_voice_provider", "FallbackMinimaxVoiceRegion": ".fallback_minimax_voice_region", "FallbackMinimaxVoiceSubtitleType": ".fallback_minimax_voice_subtitle_type", - "FallbackNeetsVoice": ".fallback_neets_voice", "FallbackNeuphonicVoice": ".fallback_neuphonic_voice", "FallbackNeuphonicVoiceModel": ".fallback_neuphonic_voice_model", "FallbackOpenAiTranscriber": ".fallback_open_ai_transcriber", @@ -8137,7 +8449,6 @@ "FallbackPlanVoicesItem_RimeAi": ".fallback_plan_voices_item", "FallbackPlanVoicesItem_Sesame": ".fallback_plan_voices_item", "FallbackPlanVoicesItem_SmallestAi": ".fallback_plan_voices_item", - "FallbackPlanVoicesItem_Tavus": ".fallback_plan_voices_item", "FallbackPlanVoicesItem_Vapi": ".fallback_plan_voices_item", "FallbackPlanVoicesItem_Wellsaid": ".fallback_plan_voices_item", "FallbackPlanVoicesItem_Xai": ".fallback_plan_voices_item", @@ -8147,6 +8458,9 @@ "FallbackPlayHtVoiceIdEnum": ".fallback_play_ht_voice_id_enum", "FallbackPlayHtVoiceLanguage": ".fallback_play_ht_voice_language", "FallbackPlayHtVoiceModel": ".fallback_play_ht_voice_model", + "FallbackReson8Transcriber": ".fallback_reson_8_transcriber", + "FallbackReson8TranscriberFillerMode": ".fallback_reson_8_transcriber_filler_mode", + "FallbackReson8TranscriberModel": ".fallback_reson_8_transcriber_model", "FallbackRimeAiVoice": ".fallback_rime_ai_voice", "FallbackRimeAiVoiceId": ".fallback_rime_ai_voice_id", "FallbackRimeAiVoiceIdEnum": ".fallback_rime_ai_voice_id_enum", @@ -8172,8 +8486,6 @@ "FallbackTalkscriberTranscriberLanguage": ".fallback_talkscriber_transcriber_language", "FallbackTalkscriberTranscriberModel": ".fallback_talkscriber_transcriber_model", "FallbackTavusVoice": ".fallback_tavus_voice", - "FallbackTavusVoiceVoiceId": ".fallback_tavus_voice_voice_id", - "FallbackTavusVoiceVoiceIdZero": ".fallback_tavus_voice_voice_id_zero", "FallbackTranscriberPlan": ".fallback_transcriber_plan", "FallbackTranscriberPlanTranscribersItem": ".fallback_transcriber_plan_transcribers_item", "FallbackTranscriberPlanTranscribersItem_11Labs": ".fallback_transcriber_plan_transcribers_item", @@ -8185,6 +8497,7 @@ "FallbackTranscriberPlanTranscribersItem_Gladia": ".fallback_transcriber_plan_transcribers_item", "FallbackTranscriberPlanTranscribersItem_Google": ".fallback_transcriber_plan_transcribers_item", "FallbackTranscriberPlanTranscribersItem_Openai": ".fallback_transcriber_plan_transcribers_item", + "FallbackTranscriberPlanTranscribersItem_Reson8": ".fallback_transcriber_plan_transcribers_item", "FallbackTranscriberPlanTranscribersItem_Soniox": ".fallback_transcriber_plan_transcribers_item", "FallbackTranscriberPlanTranscribersItem_Speechmatics": ".fallback_transcriber_plan_transcribers_item", "FallbackTranscriberPlanTranscribersItem_Talkscriber": ".fallback_transcriber_plan_transcribers_item", @@ -8229,7 +8542,6 @@ "FormatPlanReplacementsItem_Regex": ".format_plan_replacements_item", "FourierDenoisingPlan": ".fourier_denoising_plan", "FunctionCall": ".function_call", - "FunctionCallAssistantHookAction": ".function_call_assistant_hook_action", "FunctionCallHookAction": ".function_call_hook_action", "FunctionCallHookActionMessagesItem": ".function_call_hook_action_messages_item", "FunctionCallHookActionMessagesItem_RequestComplete": ".function_call_hook_action_messages_item", @@ -8257,6 +8569,7 @@ "GeminiMultimodalLivePrebuiltVoiceConfigVoiceName": ".gemini_multimodal_live_prebuilt_voice_config_voice_name", "GeminiMultimodalLiveSpeechConfig": ".gemini_multimodal_live_speech_config", "GeminiMultimodalLiveVoiceConfig": ".gemini_multimodal_live_voice_config", + "GenerateScenariosDto": ".generate_scenarios_dto", "GenerateScenariosResponse": ".generate_scenarios_response", "GeneratedScenario": ".generated_scenario", "GeneratedScenarioCategory": ".generated_scenario_category", @@ -8276,6 +8589,8 @@ "GetTrafficAllocationLatestDto": ".get_traffic_allocation_latest_dto", "GetTrafficAllocationPaginatedDto": ".get_traffic_allocation_paginated_dto", "GetTrafficAllocationPaginatedDtoSortOrder": ".get_traffic_allocation_paginated_dto_sort_order", + "GetTrafficTabMetricsDto": ".get_traffic_tab_metrics_dto", + "GetTrafficTabMetricsDtoBucket": ".get_traffic_tab_metrics_dto_bucket", "GhlTool": ".ghl_tool", "GhlToolMessagesItem": ".ghl_tool_messages_item", "GhlToolMessagesItem_RequestComplete": ".ghl_tool_messages_item", @@ -8362,6 +8677,13 @@ "GoHighLevelCredentialProvider": ".go_high_level_credential_provider", "GoHighLevelMcpCredential": ".go_high_level_mcp_credential", "GoHighLevelMcpCredentialProvider": ".go_high_level_mcp_credential_provider", + "GoalEvaluationCurrentBatchRequestDto": ".goal_evaluation_current_batch_request_dto", + "GoalEvaluationCurrentBatchResponseDto": ".goal_evaluation_current_batch_response_dto", + "GoalEvaluationCurrentCallRequestDto": ".goal_evaluation_current_call_request_dto", + "GoalEvaluationCurrentCallResponseDto": ".goal_evaluation_current_call_response_dto", + "GoalEvaluationCurrentDto": ".goal_evaluation_current_dto", + "GoalEvaluationCurrentDtoGoalOutcome": ".goal_evaluation_current_dto_goal_outcome", + "GoalEvaluationCurrentDtoProcessingState": ".goal_evaluation_current_dto_processing_state", "GoogleCalendarCheckAvailabilityTool": ".google_calendar_check_availability_tool", "GoogleCalendarCheckAvailabilityToolMessagesItem": ".google_calendar_check_availability_tool_messages_item", "GoogleCalendarCheckAvailabilityToolMessagesItem_RequestComplete": ".google_calendar_check_availability_tool_messages_item", @@ -8470,6 +8792,23 @@ "GroupConditionConditionsItem_Liquid": ".group_condition_conditions_item", "GroupConditionConditionsItem_Regex": ".group_condition_conditions_item", "GroupConditionOperator": ".group_condition_operator", + "GuardrailAuthoring": ".guardrail_authoring", + "GuardrailAuthoringMode": ".guardrail_authoring_mode", + "GuardrailEscalateAction": ".guardrail_escalate_action", + "GuardrailEscalateActionType": ".guardrail_escalate_action_type", + "GuardrailFixedResponseAction": ".guardrail_fixed_response_action", + "GuardrailFixedResponseActionType": ".guardrail_fixed_response_action_type", + "GuardrailPack": ".guardrail_pack", + "GuardrailPacksPage": ".guardrail_packs_page", + "GuardrailRedirectAction": ".guardrail_redirect_action", + "GuardrailRedirectActionType": ".guardrail_redirect_action_type", + "GuardrailRule": ".guardrail_rule", + "GuardrailRuleAction": ".guardrail_rule_action", + "GuardrailRuleActionZero": ".guardrail_rule_action_zero", + "GuardrailRuleActionZero_Fixed": ".guardrail_rule_action_zero", + "GuardrailRuleActionZero_Redirect": ".guardrail_rule_action_zero", + "GuardrailRuleSensitivity": ".guardrail_rule_sensitivity", + "GuardrailRulesPage": ".guardrail_rules_page", "HandoffDestinationAssistant": ".handoff_destination_assistant", "HandoffDestinationAssistantContextEngineeringPlan": ".handoff_destination_assistant_context_engineering_plan", "HandoffDestinationAssistantContextEngineeringPlan_All": ".handoff_destination_assistant_context_engineering_plan", @@ -8643,7 +8982,6 @@ "LmntVoiceId": ".lmnt_voice_id", "LmntVoiceIdEnum": ".lmnt_voice_id_enum", "LmntVoiceLanguage": ".lmnt_voice_language", - "LogicEdgeCondition": ".logic_edge_condition", "MakeCredential": ".make_credential", "MakeCredentialProvider": ".make_credential_provider", "MakeTool": ".make_tool", @@ -8720,13 +9058,13 @@ "MistralCredential": ".mistral_credential", "MistralCredentialProvider": ".mistral_credential_provider", "ModelCost": ".model_cost", + "ModelCostServiceTierBreakdown": ".model_cost_service_tier_breakdown", "ModelDeprecationNotice": ".model_deprecation_notice", "ModelDeprecationNoticeReplacementStatus": ".model_deprecation_notice_replacement_status", "Monitor": ".monitor", "MonitorPlan": ".monitor_plan", "MonitorResult": ".monitor_result", "Mono": ".mono", - "NeetsVoice": ".neets_voice", "NeuphonicCredential": ".neuphonic_credential", "NeuphonicCredentialProvider": ".neuphonic_credential_provider", "NeuphonicVoice": ".neuphonic_voice", @@ -8955,7 +9293,6 @@ "RecordingConsentPlanStayOnLineVoice_RimeAi": ".recording_consent_plan_stay_on_line_voice", "RecordingConsentPlanStayOnLineVoice_Sesame": ".recording_consent_plan_stay_on_line_voice", "RecordingConsentPlanStayOnLineVoice_SmallestAi": ".recording_consent_plan_stay_on_line_voice", - "RecordingConsentPlanStayOnLineVoice_Tavus": ".recording_consent_plan_stay_on_line_voice", "RecordingConsentPlanStayOnLineVoice_Vapi": ".recording_consent_plan_stay_on_line_voice", "RecordingConsentPlanStayOnLineVoice_Wellsaid": ".recording_consent_plan_stay_on_line_voice", "RecordingConsentPlanStayOnLineVoice_Xai": ".recording_consent_plan_stay_on_line_voice", @@ -8978,7 +9315,6 @@ "RecordingConsentPlanVerbalVoice_RimeAi": ".recording_consent_plan_verbal_voice", "RecordingConsentPlanVerbalVoice_Sesame": ".recording_consent_plan_verbal_voice", "RecordingConsentPlanVerbalVoice_SmallestAi": ".recording_consent_plan_verbal_voice", - "RecordingConsentPlanVerbalVoice_Tavus": ".recording_consent_plan_verbal_voice", "RecordingConsentPlanVerbalVoice_Vapi": ".recording_consent_plan_verbal_voice", "RecordingConsentPlanVerbalVoice_Wellsaid": ".recording_consent_plan_verbal_voice", "RecordingConsentPlanVerbalVoice_Xai": ".recording_consent_plan_verbal_voice", @@ -9006,6 +9342,11 @@ "RelayTargetOptions": ".relay_target_options", "RelayTargetOptionsType": ".relay_target_options_type", "RelayTargetSquad": ".relay_target_squad", + "Reson8Credential": ".reson_8_credential", + "Reson8CredentialProvider": ".reson_8_credential_provider", + "Reson8Transcriber": ".reson_8_transcriber", + "Reson8TranscriberFillerMode": ".reson_8_transcriber_filler_mode", + "Reson8TranscriberModel": ".reson_8_transcriber_model", "ResponseCompletedEvent": ".response_completed_event", "ResponseCompletedEventType": ".response_completed_event_type", "ResponseErrorEvent": ".response_error_event", @@ -9038,13 +9379,11 @@ "S3CompatibleStorageCredentialProvider": ".s_3_compatible_storage_credential_provider", "S3Credential": ".s_3_credential", "S3CredentialProvider": ".s_3_credential_provider", - "SayAssistantHookAction": ".say_assistant_hook_action", "SayHookAction": ".say_hook_action", "SayHookActionExact": ".say_hook_action_exact", "SayHookActionPrompt": ".say_hook_action_prompt", "SayHookActionPromptOneItem": ".say_hook_action_prompt_one_item", "SayPhoneNumberHookAction": ".say_phone_number_hook_action", - "SbcConfiguration": ".sbc_configuration", "Scenario": ".scenario", "ScenarioHooksItem": ".scenario_hooks_item", "ScenarioHooksItem_SimulationRunEnded": ".scenario_hooks_item", @@ -9364,6 +9703,8 @@ "ServerMessageVoiceRequestPhoneNumber_Vapi": ".server_message_voice_request_phone_number", "ServerMessageVoiceRequestPhoneNumber_Vonage": ".server_message_voice_request_phone_number", "ServerMessageVoiceRequestType": ".server_message_voice_request_type", + "ServiceUnavailableErrorBody": ".service_unavailable_error_body", + "ServiceUnavailableErrorBodyError": ".service_unavailable_error_body_error", "SesameVoice": ".sesame_voice", "SesameVoiceModel": ".sesame_voice_model", "Session": ".session", @@ -9384,6 +9725,22 @@ "SimulationHookInclude": ".simulation_hook_include", "SimulationHookWebhookAction": ".simulation_hook_webhook_action", "SimulationHookWebhookActionType": ".simulation_hook_webhook_action_type", + "SimulationOnboardingCoverageGapDto": ".simulation_onboarding_coverage_gap_dto", + "SimulationOnboardingCoverageGapDtoReason": ".simulation_onboarding_coverage_gap_dto_reason", + "SimulationOnboardingErrorDto": ".simulation_onboarding_error_dto", + "SimulationOnboardingErrorDtoCode": ".simulation_onboarding_error_dto_code", + "SimulationOnboardingOpenQuestionDto": ".simulation_onboarding_open_question_dto", + "SimulationOnboardingRequirementDto": ".simulation_onboarding_requirement_dto", + "SimulationOnboardingRequirementDtoTag": ".simulation_onboarding_requirement_dto_tag", + "SimulationOnboardingRequirementsDraftDto": ".simulation_onboarding_requirements_draft_dto", + "SimulationOnboardingSuiteCoverageDto": ".simulation_onboarding_suite_coverage_dto", + "SimulationOnboardingSuiteDocsDto": ".simulation_onboarding_suite_docs_dto", + "SimulationOnboardingSuiteEditDto": ".simulation_onboarding_suite_edit_dto", + "SimulationOnboardingSuiteRefDto": ".simulation_onboarding_suite_ref_dto", + "SimulationOnboardingSuiteSimulationDto": ".simulation_onboarding_suite_simulation_dto", + "SimulationOnboardingSuiteViewDto": ".simulation_onboarding_suite_view_dto", + "SimulationOnboardingToolGapDto": ".simulation_onboarding_tool_gap_dto", + "SimulationOnboardingToolGapDtoReason": ".simulation_onboarding_tool_gap_dto_reason", "SimulationRun": ".simulation_run", "SimulationRunConfiguration": ".simulation_run_configuration", "SimulationRunItem": ".simulation_run_item", @@ -9397,7 +9754,11 @@ "SimulationRunItemImprovements": ".simulation_run_item_improvements", "SimulationRunItemMetadata": ".simulation_run_item_metadata", "SimulationRunItemResults": ".simulation_run_item_results", + "SimulationRunItemResultsSkippedStructuredOutputsValue": ".simulation_run_item_results_skipped_structured_outputs_value", + "SimulationRunItemResultsSkippedStructuredOutputsValueReason": ".simulation_run_item_results_skipped_structured_outputs_value_reason", + "SimulationRunItemResultsStructuredOutputsValue": ".simulation_run_item_results_structured_outputs_value", "SimulationRunItemStatus": ".simulation_run_item_status", + "SimulationRunItemsPaginatedResponse": ".simulation_run_items_paginated_response", "SimulationRunListItem": ".simulation_run_list_item", "SimulationRunListItemSimulationsItem": ".simulation_run_list_item_simulations_item", "SimulationRunListItemSimulationsItem_Simulation": ".simulation_run_list_item_simulations_item", @@ -9428,6 +9789,7 @@ "SimulationSuite": ".simulation_suite", "SimulationSuiteTargetAssignment": ".simulation_suite_target_assignment", "SimulationSuiteTargetAssignmentTargetType": ".simulation_suite_target_assignment_target_type", + "SimulationSuitesPaginatedResponse": ".simulation_suites_paginated_response", "SipAuthentication": ".sip_authentication", "SipRequestTool": ".sip_request_tool", "SipRequestToolBody": ".sip_request_tool_body", @@ -9554,8 +9916,6 @@ "TavusCredential": ".tavus_credential", "TavusCredentialProvider": ".tavus_credential_provider", "TavusVoice": ".tavus_voice", - "TavusVoiceVoiceId": ".tavus_voice_voice_id", - "TavusVoiceVoiceIdZero": ".tavus_voice_voice_id_zero", "TelnyxPhoneNumber": ".telnyx_phone_number", "TelnyxPhoneNumberFallbackDestination": ".telnyx_phone_number_fallback_destination", "TelnyxPhoneNumberFallbackDestination_Number": ".telnyx_phone_number_fallback_destination", @@ -9787,10 +10147,24 @@ "TrafficAllocationLatestResponseDto": ".traffic_allocation_latest_response_dto", "TrafficAllocationPaginatedResponse": ".traffic_allocation_paginated_response", "TrafficAllocationStaleConflictResponseDto": ".traffic_allocation_stale_conflict_response_dto", - "TrafficAllocationStaleConflictResponseDtoError": ".traffic_allocation_stale_conflict_response_dto_error", "TrafficAllocationTarget": ".traffic_allocation_target", "TrafficAllocationVersionConflictResponseDto": ".traffic_allocation_version_conflict_response_dto", "TrafficAllocationVersionConflictResponseDtoError": ".traffic_allocation_version_conflict_response_dto_error", + "TrafficTabCostBreakdownPerMinuteDto": ".traffic_tab_cost_breakdown_per_minute_dto", + "TrafficTabCostPerMinuteDto": ".traffic_tab_cost_per_minute_dto", + "TrafficTabDurationSecondsDto": ".traffic_tab_duration_seconds_dto", + "TrafficTabEndedReasonCountDto": ".traffic_tab_ended_reason_count_dto", + "TrafficTabLatencyMsDto": ".traffic_tab_latency_ms_dto", + "TrafficTabLatencyStatsDto": ".traffic_tab_latency_stats_dto", + "TrafficTabMetricsDto": ".traffic_tab_metrics_dto", + "TrafficTabMetricsWindowDto": ".traffic_tab_metrics_window_dto", + "TrafficTabMetricsWindowDtoBucket": ".traffic_tab_metrics_window_dto_bucket", + "TrafficTabStructuredOutputDto": ".traffic_tab_structured_output_dto", + "TrafficTabStructuredOutputDtoType": ".traffic_tab_structured_output_dto_type", + "TrafficTabStructuredOutputNumericDto": ".traffic_tab_structured_output_numeric_dto", + "TrafficTabStructuredOutputValueCountDto": ".traffic_tab_structured_output_value_count_dto", + "TrafficTabTimeseriesPointDto": ".traffic_tab_timeseries_point_dto", + "TrafficTabVersionMetricsDto": ".traffic_tab_version_metrics_dto", "TranscriberCost": ".transcriber_cost", "TranscriptPlan": ".transcript_plan", "TranscriptWordConfidence": ".transcript_word_confidence", @@ -9806,7 +10180,7 @@ "TransferAssistantBackgroundSound": ".transfer_assistant_background_sound", "TransferAssistantBackgroundSoundZero": ".transfer_assistant_background_sound_zero", "TransferAssistantFirstMessageMode": ".transfer_assistant_first_message_mode", - "TransferAssistantHookAction": ".transfer_assistant_hook_action", + "TransferAssistantHooksItem": ".transfer_assistant_hooks_item", "TransferAssistantModel": ".transfer_assistant_model", "TransferAssistantModelProvider": ".transfer_assistant_model_provider", "TransferAssistantTranscriber": ".transfer_assistant_transcriber", @@ -9819,6 +10193,7 @@ "TransferAssistantTranscriber_Gladia": ".transfer_assistant_transcriber", "TransferAssistantTranscriber_Google": ".transfer_assistant_transcriber", "TransferAssistantTranscriber_Openai": ".transfer_assistant_transcriber", + "TransferAssistantTranscriber_Reson8": ".transfer_assistant_transcriber", "TransferAssistantTranscriber_Soniox": ".transfer_assistant_transcriber", "TransferAssistantTranscriber_Speechmatics": ".transfer_assistant_transcriber", "TransferAssistantTranscriber_Talkscriber": ".transfer_assistant_transcriber", @@ -9841,7 +10216,6 @@ "TransferAssistantVoice_RimeAi": ".transfer_assistant_voice", "TransferAssistantVoice_Sesame": ".transfer_assistant_voice", "TransferAssistantVoice_SmallestAi": ".transfer_assistant_voice", - "TransferAssistantVoice_Tavus": ".transfer_assistant_voice", "TransferAssistantVoice_Vapi": ".transfer_assistant_voice", "TransferAssistantVoice_Wellsaid": ".transfer_assistant_voice", "TransferAssistantVoice_Xai": ".transfer_assistant_voice", @@ -9895,6 +10269,128 @@ "TransferSuccessfulToolUserEditableMessagesItem_RequestResponseDelayed": ".transfer_successful_tool_user_editable_messages_item", "TransferSuccessfulToolUserEditableMessagesItem_RequestStart": ".transfer_successful_tool_user_editable_messages_item", "TransferSuccessfulToolUserEditableType": ".transfer_successful_tool_user_editable_type", + "TransientAssistantDto": ".transient_assistant_dto", + "TransientAssistantDtoBackgroundSound": ".transient_assistant_dto_background_sound", + "TransientAssistantDtoBackgroundSoundZero": ".transient_assistant_dto_background_sound_zero", + "TransientAssistantDtoClientMessagesItem": ".transient_assistant_dto_client_messages_item", + "TransientAssistantDtoCredentialsItem": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_11Labs": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Anthropic": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_AnthropicBedrock": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Anyscale": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_AssemblyAi": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Azure": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_AzureOpenai": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_ByoSipTrunk": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Cartesia": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Cerebras": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Cloudflare": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_CustomCredential": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_CustomLlm": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_DeepSeek": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Deepgram": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Deepinfra": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Email": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Gcp": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_GhlOauth2Authorization": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Gladia": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Gohighlevel": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Google": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Groq": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Hume": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_InflectionAi": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Inworld": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Langfuse": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Lmnt": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Make": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Microsoft": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Minimax": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Mistral": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Neuphonic": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Openai": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Openrouter": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_PerplexityAi": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Playht": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Reson8": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_RimeAi": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Runpod": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_S3": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_S3Compatible": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_SlackOauth2Authorization": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_SlackWebhook": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_SmallestAi": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Soniox": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Speechmatics": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Supabase": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Tavus": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_TogetherAi": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Twilio": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Vonage": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Webhook": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Wellsaid": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoCredentialsItem_Xai": ".transient_assistant_dto_credentials_item", + "TransientAssistantDtoFirstMessageMode": ".transient_assistant_dto_first_message_mode", + "TransientAssistantDtoHooksItem": ".transient_assistant_dto_hooks_item", + "TransientAssistantDtoModel": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Anthropic": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_AnthropicBedrock": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Anyscale": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Cerebras": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_CustomLlm": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_DeepSeek": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Deepinfra": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Google": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Groq": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_InflectionAi": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Minimax": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Openai": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Openrouter": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_PerplexityAi": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_TogetherAi": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Vapi": ".transient_assistant_dto_model", + "TransientAssistantDtoModel_Xai": ".transient_assistant_dto_model", + "TransientAssistantDtoServerMessagesItem": ".transient_assistant_dto_server_messages_item", + "TransientAssistantDtoTranscriber": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_11Labs": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_AssemblyAi": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Azure": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Cartesia": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_CustomTranscriber": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Deepgram": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Gladia": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Google": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Openai": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Reson8": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Soniox": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Speechmatics": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Talkscriber": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Vapi": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoTranscriber_Xai": ".transient_assistant_dto_transcriber", + "TransientAssistantDtoVoice": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_11Labs": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Azure": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Cartesia": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_CustomVoice": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Deepgram": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Hume": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Inworld": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Lmnt": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Microsoft": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Minimax": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Neuphonic": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Openai": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Playht": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_RimeAi": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Sesame": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_SmallestAi": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Vapi": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Wellsaid": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoice_Xai": ".transient_assistant_dto_voice", + "TransientAssistantDtoVoicemailDetection": ".transient_assistant_dto_voicemail_detection", + "TransientAssistantDtoVoicemailDetectionZero": ".transient_assistant_dto_voicemail_detection_zero", "TransientTwilioPhoneNumber": ".transient_twilio_phone_number", "TransientTwilioPhoneNumberFallbackDestination": ".transient_twilio_phone_number_fallback_destination", "TransientTwilioPhoneNumberFallbackDestination_Number": ".transient_twilio_phone_number_fallback_destination", @@ -9991,6 +10487,7 @@ "UpdateAssistantDraftDtoCredentialsItem_Openrouter": ".update_assistant_draft_dto_credentials_item", "UpdateAssistantDraftDtoCredentialsItem_PerplexityAi": ".update_assistant_draft_dto_credentials_item", "UpdateAssistantDraftDtoCredentialsItem_Playht": ".update_assistant_draft_dto_credentials_item", + "UpdateAssistantDraftDtoCredentialsItem_Reson8": ".update_assistant_draft_dto_credentials_item", "UpdateAssistantDraftDtoCredentialsItem_RimeAi": ".update_assistant_draft_dto_credentials_item", "UpdateAssistantDraftDtoCredentialsItem_Runpod": ".update_assistant_draft_dto_credentials_item", "UpdateAssistantDraftDtoCredentialsItem_S3": ".update_assistant_draft_dto_credentials_item", @@ -10039,6 +10536,7 @@ "UpdateAssistantDraftDtoTranscriber_Gladia": ".update_assistant_draft_dto_transcriber", "UpdateAssistantDraftDtoTranscriber_Google": ".update_assistant_draft_dto_transcriber", "UpdateAssistantDraftDtoTranscriber_Openai": ".update_assistant_draft_dto_transcriber", + "UpdateAssistantDraftDtoTranscriber_Reson8": ".update_assistant_draft_dto_transcriber", "UpdateAssistantDraftDtoTranscriber_Soniox": ".update_assistant_draft_dto_transcriber", "UpdateAssistantDraftDtoTranscriber_Speechmatics": ".update_assistant_draft_dto_transcriber", "UpdateAssistantDraftDtoTranscriber_Talkscriber": ".update_assistant_draft_dto_transcriber", @@ -10061,7 +10559,6 @@ "UpdateAssistantDraftDtoVoice_RimeAi": ".update_assistant_draft_dto_voice", "UpdateAssistantDraftDtoVoice_Sesame": ".update_assistant_draft_dto_voice", "UpdateAssistantDraftDtoVoice_SmallestAi": ".update_assistant_draft_dto_voice", - "UpdateAssistantDraftDtoVoice_Tavus": ".update_assistant_draft_dto_voice", "UpdateAssistantDraftDtoVoice_Vapi": ".update_assistant_draft_dto_voice", "UpdateAssistantDraftDtoVoice_Wellsaid": ".update_assistant_draft_dto_voice", "UpdateAssistantDraftDtoVoice_Xai": ".update_assistant_draft_dto_voice", @@ -10301,6 +10798,8 @@ "UpdateQueryToolDtoMessagesItem_RequestFailed": ".update_query_tool_dto_messages_item", "UpdateQueryToolDtoMessagesItem_RequestResponseDelayed": ".update_query_tool_dto_messages_item", "UpdateQueryToolDtoMessagesItem_RequestStart": ".update_query_tool_dto_messages_item", + "UpdateReson8CredentialDto": ".update_reson_8_credential_dto", + "UpdateReson8CredentialDtoProvider": ".update_reson_8_credential_dto_provider", "UpdateRimeAiCredentialDto": ".update_rime_ai_credential_dto", "UpdateRimeAiCredentialDtoProvider": ".update_rime_ai_credential_dto_provider", "UpdateRunpodCredentialDto": ".update_runpod_credential_dto", @@ -10508,6 +11007,7 @@ "UpdateWorkflowDtoCredentialsItem_Openrouter": ".update_workflow_dto_credentials_item", "UpdateWorkflowDtoCredentialsItem_PerplexityAi": ".update_workflow_dto_credentials_item", "UpdateWorkflowDtoCredentialsItem_Playht": ".update_workflow_dto_credentials_item", + "UpdateWorkflowDtoCredentialsItem_Reson8": ".update_workflow_dto_credentials_item", "UpdateWorkflowDtoCredentialsItem_RimeAi": ".update_workflow_dto_credentials_item", "UpdateWorkflowDtoCredentialsItem_Runpod": ".update_workflow_dto_credentials_item", "UpdateWorkflowDtoCredentialsItem_S3": ".update_workflow_dto_credentials_item", @@ -10545,6 +11045,7 @@ "UpdateWorkflowDtoTranscriber_Gladia": ".update_workflow_dto_transcriber", "UpdateWorkflowDtoTranscriber_Google": ".update_workflow_dto_transcriber", "UpdateWorkflowDtoTranscriber_Openai": ".update_workflow_dto_transcriber", + "UpdateWorkflowDtoTranscriber_Reson8": ".update_workflow_dto_transcriber", "UpdateWorkflowDtoTranscriber_Soniox": ".update_workflow_dto_transcriber", "UpdateWorkflowDtoTranscriber_Speechmatics": ".update_workflow_dto_transcriber", "UpdateWorkflowDtoTranscriber_Talkscriber": ".update_workflow_dto_transcriber", @@ -10567,7 +11068,6 @@ "UpdateWorkflowDtoVoice_RimeAi": ".update_workflow_dto_voice", "UpdateWorkflowDtoVoice_Sesame": ".update_workflow_dto_voice", "UpdateWorkflowDtoVoice_SmallestAi": ".update_workflow_dto_voice", - "UpdateWorkflowDtoVoice_Tavus": ".update_workflow_dto_voice", "UpdateWorkflowDtoVoice_Vapi": ".update_workflow_dto_voice", "UpdateWorkflowDtoVoice_Wellsaid": ".update_workflow_dto_voice", "UpdateWorkflowDtoVoice_Xai": ".update_workflow_dto_voice", @@ -10575,10 +11075,13 @@ "UpdateWorkflowDtoVoicemailDetectionZero": ".update_workflow_dto_voicemail_detection_zero", "UpdateXAiCredentialDto": ".update_x_ai_credential_dto", "UpdateXAiCredentialDtoProvider": ".update_x_ai_credential_dto_provider", - "User": ".user", "UserMessage": ".user_message", "UserMessageConfidenceSource": ".user_message_confidence_source", "UserMessageMetadata": ".user_message_metadata", + "UserWithRole": ".user_with_role", + "UserWithRoleRole": ".user_with_role_role", + "UserWithRoleRoleZero": ".user_with_role_role_zero", + "ValidateBackgroundSoundUrlDto": ".validate_background_sound_url_dto", "VapiCost": ".vapi_cost", "VapiCostSubType": ".vapi_cost_sub_type", "VapiModel": ".vapi_model", @@ -10732,6 +11235,7 @@ "WorkflowCredentialsItem_Openrouter": ".workflow_credentials_item", "WorkflowCredentialsItem_PerplexityAi": ".workflow_credentials_item", "WorkflowCredentialsItem_Playht": ".workflow_credentials_item", + "WorkflowCredentialsItem_Reson8": ".workflow_credentials_item", "WorkflowCredentialsItem_RimeAi": ".workflow_credentials_item", "WorkflowCredentialsItem_Runpod": ".workflow_credentials_item", "WorkflowCredentialsItem_S3": ".workflow_credentials_item", @@ -10765,6 +11269,7 @@ "WorkflowNodesItem_Tool": ".workflow_nodes_item", "WorkflowOpenAiModel": ".workflow_open_ai_model", "WorkflowOpenAiModelModel": ".workflow_open_ai_model_model", + "WorkflowOpenAiModelReasoningEffort": ".workflow_open_ai_model_reasoning_effort", "WorkflowOverrides": ".workflow_overrides", "WorkflowTranscriber": ".workflow_transcriber", "WorkflowTranscriber_11Labs": ".workflow_transcriber", @@ -10776,6 +11281,7 @@ "WorkflowTranscriber_Gladia": ".workflow_transcriber", "WorkflowTranscriber_Google": ".workflow_transcriber", "WorkflowTranscriber_Openai": ".workflow_transcriber", + "WorkflowTranscriber_Reson8": ".workflow_transcriber", "WorkflowTranscriber_Soniox": ".workflow_transcriber", "WorkflowTranscriber_Speechmatics": ".workflow_transcriber", "WorkflowTranscriber_Talkscriber": ".workflow_transcriber", @@ -10825,6 +11331,7 @@ "WorkflowUserEditableCredentialsItem_Openrouter": ".workflow_user_editable_credentials_item", "WorkflowUserEditableCredentialsItem_PerplexityAi": ".workflow_user_editable_credentials_item", "WorkflowUserEditableCredentialsItem_Playht": ".workflow_user_editable_credentials_item", + "WorkflowUserEditableCredentialsItem_Reson8": ".workflow_user_editable_credentials_item", "WorkflowUserEditableCredentialsItem_RimeAi": ".workflow_user_editable_credentials_item", "WorkflowUserEditableCredentialsItem_Runpod": ".workflow_user_editable_credentials_item", "WorkflowUserEditableCredentialsItem_S3": ".workflow_user_editable_credentials_item", @@ -10862,6 +11369,7 @@ "WorkflowUserEditableTranscriber_Gladia": ".workflow_user_editable_transcriber", "WorkflowUserEditableTranscriber_Google": ".workflow_user_editable_transcriber", "WorkflowUserEditableTranscriber_Openai": ".workflow_user_editable_transcriber", + "WorkflowUserEditableTranscriber_Reson8": ".workflow_user_editable_transcriber", "WorkflowUserEditableTranscriber_Soniox": ".workflow_user_editable_transcriber", "WorkflowUserEditableTranscriber_Speechmatics": ".workflow_user_editable_transcriber", "WorkflowUserEditableTranscriber_Talkscriber": ".workflow_user_editable_transcriber", @@ -10884,7 +11392,6 @@ "WorkflowUserEditableVoice_RimeAi": ".workflow_user_editable_voice", "WorkflowUserEditableVoice_Sesame": ".workflow_user_editable_voice", "WorkflowUserEditableVoice_SmallestAi": ".workflow_user_editable_voice", - "WorkflowUserEditableVoice_Tavus": ".workflow_user_editable_voice", "WorkflowUserEditableVoice_Vapi": ".workflow_user_editable_voice", "WorkflowUserEditableVoice_Wellsaid": ".workflow_user_editable_voice", "WorkflowUserEditableVoice_Xai": ".workflow_user_editable_voice", @@ -10907,7 +11414,6 @@ "WorkflowVoice_RimeAi": ".workflow_voice", "WorkflowVoice_Sesame": ".workflow_voice", "WorkflowVoice_SmallestAi": ".workflow_voice", - "WorkflowVoice_Tavus": ".workflow_voice", "WorkflowVoice_Vapi": ".workflow_voice", "WorkflowVoice_Wellsaid": ".workflow_voice", "WorkflowVoice_Xai": ".workflow_voice", @@ -10998,6 +11504,7 @@ def __dir__(): "AnthropicBedrockModel", "AnthropicBedrockModelFallbackModelsItem", "AnthropicBedrockModelModel", + "AnthropicBedrockModelReasoningEffort", "AnthropicBedrockModelToolsItem", "AnthropicBedrockModelToolsItem_ApiRequest", "AnthropicBedrockModelToolsItem_Bash", @@ -11026,6 +11533,7 @@ def __dir__(): "AnthropicCredentialProvider", "AnthropicModel", "AnthropicModelModel", + "AnthropicModelReasoningEffort", "AnthropicModelToolsItem", "AnthropicModelToolsItem_ApiRequest", "AnthropicModelToolsItem_Bash", @@ -11143,6 +11651,7 @@ def __dir__(): "AssistantCredentialsItem_Openrouter", "AssistantCredentialsItem_PerplexityAi", "AssistantCredentialsItem_Playht", + "AssistantCredentialsItem_Reson8", "AssistantCredentialsItem_RimeAi", "AssistantCredentialsItem_Runpod", "AssistantCredentialsItem_S3", @@ -11207,6 +11716,7 @@ def __dir__(): "AssistantDraftCredentialsItem_Openrouter", "AssistantDraftCredentialsItem_PerplexityAi", "AssistantDraftCredentialsItem_Playht", + "AssistantDraftCredentialsItem_Reson8", "AssistantDraftCredentialsItem_RimeAi", "AssistantDraftCredentialsItem_Runpod", "AssistantDraftCredentialsItem_S3", @@ -11257,6 +11767,7 @@ def __dir__(): "AssistantDraftTranscriber_Gladia", "AssistantDraftTranscriber_Google", "AssistantDraftTranscriber_Openai", + "AssistantDraftTranscriber_Reson8", "AssistantDraftTranscriber_Soniox", "AssistantDraftTranscriber_Speechmatics", "AssistantDraftTranscriber_Talkscriber", @@ -11279,17 +11790,16 @@ def __dir__(): "AssistantDraftVoice_RimeAi", "AssistantDraftVoice_Sesame", "AssistantDraftVoice_SmallestAi", - "AssistantDraftVoice_Tavus", "AssistantDraftVoice_Vapi", "AssistantDraftVoice_Wellsaid", "AssistantDraftVoice_Xai", "AssistantDraftVoicemailDetection", "AssistantDraftVoicemailDetectionZero", "AssistantFirstMessageMode", - "AssistantHookAssistantSpeechInterrupted", - "AssistantHookCallEnding", - "AssistantHookCustomerSpeechInterrupted", "AssistantHooksItem", + "AssistantManagedConflictResponseDto", + "AssistantManagedConflictResponseDtoError", + "AssistantManagedVapiAgentsDto", "AssistantMessage", "AssistantMessageEvaluationContinuePlan", "AssistantMessageJudgePlanAi", @@ -11365,6 +11875,7 @@ def __dir__(): "AssistantOverridesCredentialsItem_Openrouter", "AssistantOverridesCredentialsItem_PerplexityAi", "AssistantOverridesCredentialsItem_Playht", + "AssistantOverridesCredentialsItem_Reson8", "AssistantOverridesCredentialsItem_RimeAi", "AssistantOverridesCredentialsItem_Runpod", "AssistantOverridesCredentialsItem_S3", @@ -11437,6 +11948,7 @@ def __dir__(): "AssistantOverridesTranscriber_Gladia", "AssistantOverridesTranscriber_Google", "AssistantOverridesTranscriber_Openai", + "AssistantOverridesTranscriber_Reson8", "AssistantOverridesTranscriber_Soniox", "AssistantOverridesTranscriber_Speechmatics", "AssistantOverridesTranscriber_Talkscriber", @@ -11459,7 +11971,6 @@ def __dir__(): "AssistantOverridesVoice_RimeAi", "AssistantOverridesVoice_Sesame", "AssistantOverridesVoice_SmallestAi", - "AssistantOverridesVoice_Tavus", "AssistantOverridesVoice_Vapi", "AssistantOverridesVoice_Wellsaid", "AssistantOverridesVoice_Xai", @@ -11467,7 +11978,6 @@ def __dir__(): "AssistantOverridesVoicemailDetectionZero", "AssistantPaginatedResponse", "AssistantPinnedConflictResponseDto", - "AssistantPinnedConflictResponseDtoError", "AssistantServerMessagesItem", "AssistantSpeechWordAlignmentTiming", "AssistantSpeechWordProgressTiming", @@ -11482,12 +11992,12 @@ def __dir__(): "AssistantTranscriber_Gladia", "AssistantTranscriber_Google", "AssistantTranscriber_Openai", + "AssistantTranscriber_Reson8", "AssistantTranscriber_Soniox", "AssistantTranscriber_Speechmatics", "AssistantTranscriber_Talkscriber", "AssistantTranscriber_Vapi", "AssistantTranscriber_Xai", - "AssistantUserEditable", "AssistantVersion", "AssistantVersionBackgroundSound", "AssistantVersionBackgroundSoundZero", @@ -11533,6 +12043,7 @@ def __dir__(): "AssistantVersionCredentialsItem_Openrouter", "AssistantVersionCredentialsItem_PerplexityAi", "AssistantVersionCredentialsItem_Playht", + "AssistantVersionCredentialsItem_Reson8", "AssistantVersionCredentialsItem_RimeAi", "AssistantVersionCredentialsItem_Runpod", "AssistantVersionCredentialsItem_S3", @@ -11583,6 +12094,7 @@ def __dir__(): "AssistantVersionTranscriber_Gladia", "AssistantVersionTranscriber_Google", "AssistantVersionTranscriber_Openai", + "AssistantVersionTranscriber_Reson8", "AssistantVersionTranscriber_Soniox", "AssistantVersionTranscriber_Speechmatics", "AssistantVersionTranscriber_Talkscriber", @@ -11605,7 +12117,6 @@ def __dir__(): "AssistantVersionVoice_RimeAi", "AssistantVersionVoice_Sesame", "AssistantVersionVoice_SmallestAi", - "AssistantVersionVoice_Tavus", "AssistantVersionVoice_Vapi", "AssistantVersionVoice_Wellsaid", "AssistantVersionVoice_Xai", @@ -11628,7 +12139,6 @@ def __dir__(): "AssistantVoice_RimeAi", "AssistantVoice_Sesame", "AssistantVoice_SmallestAi", - "AssistantVoice_Tavus", "AssistantVoice_Vapi", "AssistantVoice_Wellsaid", "AssistantVoice_Xai", @@ -11732,6 +12242,49 @@ def __dir__(): "CallDestination_Number", "CallDestination_Sip", "CallEndedReason", + "CallHealthDashboardAffectedCallDto", + "CallHealthDashboardAffectedCallDtoCallAvailability", + "CallHealthDashboardAffectedCallsResponseDto", + "CallHealthDashboardApiErrorDto", + "CallHealthDashboardAssignmentCoverageDto", + "CallHealthDashboardAssistantGoalsDto", + "CallHealthDashboardAssistantGoalsResponseDto", + "CallHealthDashboardAssistantListResponseDto", + "CallHealthDashboardAssistantOverviewDto", + "CallHealthDashboardAssistantReferenceDto", + "CallHealthDashboardAssistantSummaryResponseDto", + "CallHealthDashboardClassificationCoverageDto", + "CallHealthDashboardCoverageDto", + "CallHealthDashboardDiscoveryCoverageDto", + "CallHealthDashboardFacetsDto", + "CallHealthDashboardFacetsDtoStatusesItem", + "CallHealthDashboardGoalDailyDto", + "CallHealthDashboardGoalDefinitionDto", + "CallHealthDashboardGoalGapsDto", + "CallHealthDashboardGoalOptionDto", + "CallHealthDashboardGoalSummaryDto", + "CallHealthDashboardIntakeCoverageDto", + "CallHealthDashboardIntakeCoverageDtoDeliveryMode", + "CallHealthDashboardIntakeCoverageDtoEndToEndCoverage", + "CallHealthDashboardIssueActivityDto", + "CallHealthDashboardIssueActivityDtoAction", + "CallHealthDashboardIssueActivityListResponseDto", + "CallHealthDashboardIssueCoverageDto", + "CallHealthDashboardIssueCoverageDtoState", + "CallHealthDashboardIssueDailyDto", + "CallHealthDashboardIssueDefinitionDto", + "CallHealthDashboardIssueDetailResponseDto", + "CallHealthDashboardIssueListResponseDto", + "CallHealthDashboardIssueReferenceDto", + "CallHealthDashboardIssueReferenceDtoStatus", + "CallHealthDashboardIssueSummaryDto", + "CallHealthDashboardIssueSummaryDtoStatus", + "CallHealthDashboardSeriesPageDto", + "CallHealthDashboardSweepCoverageDto", + "CallHealthDashboardSweepCoverageDtoState", + "CallHealthDashboardTriageRequestDto", + "CallHealthDashboardTriageRequestDtoAction", + "CallHealthDashboardWindowDto", "CallHookAssistantSpeechInterrupted", "CallHookAssistantSpeechInterruptedDoItem", "CallHookAssistantSpeechInterruptedDoItem_MessageAdd", @@ -12178,6 +12731,7 @@ def __dir__(): "ConversationNodeTranscriber_Gladia", "ConversationNodeTranscriber_Google", "ConversationNodeTranscriber_Openai", + "ConversationNodeTranscriber_Reson8", "ConversationNodeTranscriber_Soniox", "ConversationNodeTranscriber_Speechmatics", "ConversationNodeTranscriber_Talkscriber", @@ -12200,7 +12754,6 @@ def __dir__(): "ConversationNodeVoice_RimeAi", "ConversationNodeVoice_Sesame", "ConversationNodeVoice_SmallestAi", - "ConversationNodeVoice_Tavus", "ConversationNodeVoice_Vapi", "ConversationNodeVoice_Wellsaid", "ConversationNodeVoice_Xai", @@ -12265,6 +12818,7 @@ def __dir__(): "CreateAssistantDraftDtoCredentialsItem_Openrouter", "CreateAssistantDraftDtoCredentialsItem_PerplexityAi", "CreateAssistantDraftDtoCredentialsItem_Playht", + "CreateAssistantDraftDtoCredentialsItem_Reson8", "CreateAssistantDraftDtoCredentialsItem_RimeAi", "CreateAssistantDraftDtoCredentialsItem_Runpod", "CreateAssistantDraftDtoCredentialsItem_S3", @@ -12313,6 +12867,7 @@ def __dir__(): "CreateAssistantDraftDtoTranscriber_Gladia", "CreateAssistantDraftDtoTranscriber_Google", "CreateAssistantDraftDtoTranscriber_Openai", + "CreateAssistantDraftDtoTranscriber_Reson8", "CreateAssistantDraftDtoTranscriber_Soniox", "CreateAssistantDraftDtoTranscriber_Speechmatics", "CreateAssistantDraftDtoTranscriber_Talkscriber", @@ -12335,7 +12890,6 @@ def __dir__(): "CreateAssistantDraftDtoVoice_RimeAi", "CreateAssistantDraftDtoVoice_Sesame", "CreateAssistantDraftDtoVoice_SmallestAi", - "CreateAssistantDraftDtoVoice_Tavus", "CreateAssistantDraftDtoVoice_Vapi", "CreateAssistantDraftDtoVoice_Wellsaid", "CreateAssistantDraftDtoVoice_Xai", @@ -12386,6 +12940,7 @@ def __dir__(): "CreateAssistantDtoCredentialsItem_Openrouter", "CreateAssistantDtoCredentialsItem_PerplexityAi", "CreateAssistantDtoCredentialsItem_Playht", + "CreateAssistantDtoCredentialsItem_Reson8", "CreateAssistantDtoCredentialsItem_RimeAi", "CreateAssistantDtoCredentialsItem_Runpod", "CreateAssistantDtoCredentialsItem_S3", @@ -12434,6 +12989,7 @@ def __dir__(): "CreateAssistantDtoTranscriber_Gladia", "CreateAssistantDtoTranscriber_Google", "CreateAssistantDtoTranscriber_Openai", + "CreateAssistantDtoTranscriber_Reson8", "CreateAssistantDtoTranscriber_Soniox", "CreateAssistantDtoTranscriber_Speechmatics", "CreateAssistantDtoTranscriber_Talkscriber", @@ -12456,7 +13012,6 @@ def __dir__(): "CreateAssistantDtoVoice_RimeAi", "CreateAssistantDtoVoice_Sesame", "CreateAssistantDtoVoice_SmallestAi", - "CreateAssistantDtoVoice_Tavus", "CreateAssistantDtoVoice_Vapi", "CreateAssistantDtoVoice_Wellsaid", "CreateAssistantDtoVoice_Xai", @@ -12670,6 +13225,7 @@ def __dir__(): "CreateQueryToolDtoMessagesItem_RequestFailed", "CreateQueryToolDtoMessagesItem_RequestResponseDelayed", "CreateQueryToolDtoMessagesItem_RequestStart", + "CreateReson8CredentialDto", "CreateRimeAiCredentialDto", "CreateRunpodCredentialDto", "CreateS3CompatibleCredentialDto", @@ -12842,6 +13398,7 @@ def __dir__(): "CreateVonagePhoneNumberDtoHooksItem_CallEnding", "CreateVonagePhoneNumberDtoHooksItem_CallRinging", "CreateWebCallDto", + "CreateWebCallDtoVideoRecordingStartMode", "CreateWebChatDto", "CreateWebChatDtoInput", "CreateWebChatDtoInputOneItem", @@ -12896,6 +13453,7 @@ def __dir__(): "CreateWorkflowDtoCredentialsItem_Openrouter", "CreateWorkflowDtoCredentialsItem_PerplexityAi", "CreateWorkflowDtoCredentialsItem_Playht", + "CreateWorkflowDtoCredentialsItem_Reson8", "CreateWorkflowDtoCredentialsItem_RimeAi", "CreateWorkflowDtoCredentialsItem_Runpod", "CreateWorkflowDtoCredentialsItem_S3", @@ -12933,6 +13491,7 @@ def __dir__(): "CreateWorkflowDtoTranscriber_Gladia", "CreateWorkflowDtoTranscriber_Google", "CreateWorkflowDtoTranscriber_Openai", + "CreateWorkflowDtoTranscriber_Reson8", "CreateWorkflowDtoTranscriber_Soniox", "CreateWorkflowDtoTranscriber_Speechmatics", "CreateWorkflowDtoTranscriber_Talkscriber", @@ -12955,7 +13514,6 @@ def __dir__(): "CreateWorkflowDtoVoice_RimeAi", "CreateWorkflowDtoVoice_Sesame", "CreateWorkflowDtoVoice_SmallestAi", - "CreateWorkflowDtoVoice_Tavus", "CreateWorkflowDtoVoice_Vapi", "CreateWorkflowDtoVoice_Wellsaid", "CreateWorkflowDtoVoice_Xai", @@ -13117,6 +13675,7 @@ def __dir__(): "Eval", "EvalAnthropicModel", "EvalAnthropicModelModel", + "EvalAnthropicModelReasoningEffort", "EvalCustomModel", "EvalGoogleModel", "EvalGoogleModelModel", @@ -13170,7 +13729,6 @@ def __dir__(): "ExportSessionDtoFormat", "ExportSessionDtoSortBy", "ExportSessionDtoSortOrder", - "FailedEdgeCondition", "FallbackAssemblyAiTranscriber", "FallbackAssemblyAiTranscriberLanguage", "FallbackAssemblyAiTranscriberLanguageCodesItem", @@ -13191,8 +13749,6 @@ def __dir__(): "FallbackCustomTranscriber", "FallbackCustomVoice", "FallbackDeepgramTranscriber", - "FallbackDeepgramTranscriberLanguage", - "FallbackDeepgramTranscriberModel", "FallbackDeepgramTranscriberRedactionItem", "FallbackDeepgramVoice", "FallbackDeepgramVoiceId", @@ -13233,7 +13789,6 @@ def __dir__(): "FallbackMinimaxVoiceProvider", "FallbackMinimaxVoiceRegion", "FallbackMinimaxVoiceSubtitleType", - "FallbackNeetsVoice", "FallbackNeuphonicVoice", "FallbackNeuphonicVoiceModel", "FallbackOpenAiTranscriber", @@ -13260,7 +13815,6 @@ def __dir__(): "FallbackPlanVoicesItem_RimeAi", "FallbackPlanVoicesItem_Sesame", "FallbackPlanVoicesItem_SmallestAi", - "FallbackPlanVoicesItem_Tavus", "FallbackPlanVoicesItem_Vapi", "FallbackPlanVoicesItem_Wellsaid", "FallbackPlanVoicesItem_Xai", @@ -13270,6 +13824,9 @@ def __dir__(): "FallbackPlayHtVoiceIdEnum", "FallbackPlayHtVoiceLanguage", "FallbackPlayHtVoiceModel", + "FallbackReson8Transcriber", + "FallbackReson8TranscriberFillerMode", + "FallbackReson8TranscriberModel", "FallbackRimeAiVoice", "FallbackRimeAiVoiceId", "FallbackRimeAiVoiceIdEnum", @@ -13295,8 +13852,6 @@ def __dir__(): "FallbackTalkscriberTranscriberLanguage", "FallbackTalkscriberTranscriberModel", "FallbackTavusVoice", - "FallbackTavusVoiceVoiceId", - "FallbackTavusVoiceVoiceIdZero", "FallbackTranscriberPlan", "FallbackTranscriberPlanTranscribersItem", "FallbackTranscriberPlanTranscribersItem_11Labs", @@ -13308,6 +13863,7 @@ def __dir__(): "FallbackTranscriberPlanTranscribersItem_Gladia", "FallbackTranscriberPlanTranscribersItem_Google", "FallbackTranscriberPlanTranscribersItem_Openai", + "FallbackTranscriberPlanTranscribersItem_Reson8", "FallbackTranscriberPlanTranscribersItem_Soniox", "FallbackTranscriberPlanTranscribersItem_Speechmatics", "FallbackTranscriberPlanTranscribersItem_Talkscriber", @@ -13352,7 +13908,6 @@ def __dir__(): "FormatPlanReplacementsItem_Regex", "FourierDenoisingPlan", "FunctionCall", - "FunctionCallAssistantHookAction", "FunctionCallHookAction", "FunctionCallHookActionMessagesItem", "FunctionCallHookActionMessagesItem_RequestComplete", @@ -13380,6 +13935,7 @@ def __dir__(): "GeminiMultimodalLivePrebuiltVoiceConfigVoiceName", "GeminiMultimodalLiveSpeechConfig", "GeminiMultimodalLiveVoiceConfig", + "GenerateScenariosDto", "GenerateScenariosResponse", "GeneratedScenario", "GeneratedScenarioCategory", @@ -13399,6 +13955,8 @@ def __dir__(): "GetTrafficAllocationLatestDto", "GetTrafficAllocationPaginatedDto", "GetTrafficAllocationPaginatedDtoSortOrder", + "GetTrafficTabMetricsDto", + "GetTrafficTabMetricsDtoBucket", "GhlTool", "GhlToolMessagesItem", "GhlToolMessagesItem_RequestComplete", @@ -13485,6 +14043,13 @@ def __dir__(): "GoHighLevelCredentialProvider", "GoHighLevelMcpCredential", "GoHighLevelMcpCredentialProvider", + "GoalEvaluationCurrentBatchRequestDto", + "GoalEvaluationCurrentBatchResponseDto", + "GoalEvaluationCurrentCallRequestDto", + "GoalEvaluationCurrentCallResponseDto", + "GoalEvaluationCurrentDto", + "GoalEvaluationCurrentDtoGoalOutcome", + "GoalEvaluationCurrentDtoProcessingState", "GoogleCalendarCheckAvailabilityTool", "GoogleCalendarCheckAvailabilityToolMessagesItem", "GoogleCalendarCheckAvailabilityToolMessagesItem_RequestComplete", @@ -13593,6 +14158,23 @@ def __dir__(): "GroupConditionConditionsItem_Liquid", "GroupConditionConditionsItem_Regex", "GroupConditionOperator", + "GuardrailAuthoring", + "GuardrailAuthoringMode", + "GuardrailEscalateAction", + "GuardrailEscalateActionType", + "GuardrailFixedResponseAction", + "GuardrailFixedResponseActionType", + "GuardrailPack", + "GuardrailPacksPage", + "GuardrailRedirectAction", + "GuardrailRedirectActionType", + "GuardrailRule", + "GuardrailRuleAction", + "GuardrailRuleActionZero", + "GuardrailRuleActionZero_Fixed", + "GuardrailRuleActionZero_Redirect", + "GuardrailRuleSensitivity", + "GuardrailRulesPage", "HandoffDestinationAssistant", "HandoffDestinationAssistantContextEngineeringPlan", "HandoffDestinationAssistantContextEngineeringPlan_All", @@ -13766,7 +14348,6 @@ def __dir__(): "LmntVoiceId", "LmntVoiceIdEnum", "LmntVoiceLanguage", - "LogicEdgeCondition", "MakeCredential", "MakeCredentialProvider", "MakeTool", @@ -13843,13 +14424,13 @@ def __dir__(): "MistralCredential", "MistralCredentialProvider", "ModelCost", + "ModelCostServiceTierBreakdown", "ModelDeprecationNotice", "ModelDeprecationNoticeReplacementStatus", "Monitor", "MonitorPlan", "MonitorResult", "Mono", - "NeetsVoice", "NeuphonicCredential", "NeuphonicCredentialProvider", "NeuphonicVoice", @@ -14078,7 +14659,6 @@ def __dir__(): "RecordingConsentPlanStayOnLineVoice_RimeAi", "RecordingConsentPlanStayOnLineVoice_Sesame", "RecordingConsentPlanStayOnLineVoice_SmallestAi", - "RecordingConsentPlanStayOnLineVoice_Tavus", "RecordingConsentPlanStayOnLineVoice_Vapi", "RecordingConsentPlanStayOnLineVoice_Wellsaid", "RecordingConsentPlanStayOnLineVoice_Xai", @@ -14101,7 +14681,6 @@ def __dir__(): "RecordingConsentPlanVerbalVoice_RimeAi", "RecordingConsentPlanVerbalVoice_Sesame", "RecordingConsentPlanVerbalVoice_SmallestAi", - "RecordingConsentPlanVerbalVoice_Tavus", "RecordingConsentPlanVerbalVoice_Vapi", "RecordingConsentPlanVerbalVoice_Wellsaid", "RecordingConsentPlanVerbalVoice_Xai", @@ -14129,6 +14708,11 @@ def __dir__(): "RelayTargetOptions", "RelayTargetOptionsType", "RelayTargetSquad", + "Reson8Credential", + "Reson8CredentialProvider", + "Reson8Transcriber", + "Reson8TranscriberFillerMode", + "Reson8TranscriberModel", "ResponseCompletedEvent", "ResponseCompletedEventType", "ResponseErrorEvent", @@ -14161,13 +14745,11 @@ def __dir__(): "S3CompatibleStorageCredentialProvider", "S3Credential", "S3CredentialProvider", - "SayAssistantHookAction", "SayHookAction", "SayHookActionExact", "SayHookActionPrompt", "SayHookActionPromptOneItem", "SayPhoneNumberHookAction", - "SbcConfiguration", "Scenario", "ScenarioHooksItem", "ScenarioHooksItem_SimulationRunEnded", @@ -14487,6 +15069,8 @@ def __dir__(): "ServerMessageVoiceRequestPhoneNumber_Vapi", "ServerMessageVoiceRequestPhoneNumber_Vonage", "ServerMessageVoiceRequestType", + "ServiceUnavailableErrorBody", + "ServiceUnavailableErrorBodyError", "SesameVoice", "SesameVoiceModel", "Session", @@ -14507,6 +15091,22 @@ def __dir__(): "SimulationHookInclude", "SimulationHookWebhookAction", "SimulationHookWebhookActionType", + "SimulationOnboardingCoverageGapDto", + "SimulationOnboardingCoverageGapDtoReason", + "SimulationOnboardingErrorDto", + "SimulationOnboardingErrorDtoCode", + "SimulationOnboardingOpenQuestionDto", + "SimulationOnboardingRequirementDto", + "SimulationOnboardingRequirementDtoTag", + "SimulationOnboardingRequirementsDraftDto", + "SimulationOnboardingSuiteCoverageDto", + "SimulationOnboardingSuiteDocsDto", + "SimulationOnboardingSuiteEditDto", + "SimulationOnboardingSuiteRefDto", + "SimulationOnboardingSuiteSimulationDto", + "SimulationOnboardingSuiteViewDto", + "SimulationOnboardingToolGapDto", + "SimulationOnboardingToolGapDtoReason", "SimulationRun", "SimulationRunConfiguration", "SimulationRunItem", @@ -14520,7 +15120,11 @@ def __dir__(): "SimulationRunItemImprovements", "SimulationRunItemMetadata", "SimulationRunItemResults", + "SimulationRunItemResultsSkippedStructuredOutputsValue", + "SimulationRunItemResultsSkippedStructuredOutputsValueReason", + "SimulationRunItemResultsStructuredOutputsValue", "SimulationRunItemStatus", + "SimulationRunItemsPaginatedResponse", "SimulationRunListItem", "SimulationRunListItemSimulationsItem", "SimulationRunListItemSimulationsItem_Simulation", @@ -14551,6 +15155,7 @@ def __dir__(): "SimulationSuite", "SimulationSuiteTargetAssignment", "SimulationSuiteTargetAssignmentTargetType", + "SimulationSuitesPaginatedResponse", "SipAuthentication", "SipRequestTool", "SipRequestToolBody", @@ -14677,8 +15282,6 @@ def __dir__(): "TavusCredential", "TavusCredentialProvider", "TavusVoice", - "TavusVoiceVoiceId", - "TavusVoiceVoiceIdZero", "TelnyxPhoneNumber", "TelnyxPhoneNumberFallbackDestination", "TelnyxPhoneNumberFallbackDestination_Number", @@ -14910,10 +15513,24 @@ def __dir__(): "TrafficAllocationLatestResponseDto", "TrafficAllocationPaginatedResponse", "TrafficAllocationStaleConflictResponseDto", - "TrafficAllocationStaleConflictResponseDtoError", "TrafficAllocationTarget", "TrafficAllocationVersionConflictResponseDto", "TrafficAllocationVersionConflictResponseDtoError", + "TrafficTabCostBreakdownPerMinuteDto", + "TrafficTabCostPerMinuteDto", + "TrafficTabDurationSecondsDto", + "TrafficTabEndedReasonCountDto", + "TrafficTabLatencyMsDto", + "TrafficTabLatencyStatsDto", + "TrafficTabMetricsDto", + "TrafficTabMetricsWindowDto", + "TrafficTabMetricsWindowDtoBucket", + "TrafficTabStructuredOutputDto", + "TrafficTabStructuredOutputDtoType", + "TrafficTabStructuredOutputNumericDto", + "TrafficTabStructuredOutputValueCountDto", + "TrafficTabTimeseriesPointDto", + "TrafficTabVersionMetricsDto", "TranscriberCost", "TranscriptPlan", "TranscriptWordConfidence", @@ -14929,7 +15546,7 @@ def __dir__(): "TransferAssistantBackgroundSound", "TransferAssistantBackgroundSoundZero", "TransferAssistantFirstMessageMode", - "TransferAssistantHookAction", + "TransferAssistantHooksItem", "TransferAssistantModel", "TransferAssistantModelProvider", "TransferAssistantTranscriber", @@ -14942,6 +15559,7 @@ def __dir__(): "TransferAssistantTranscriber_Gladia", "TransferAssistantTranscriber_Google", "TransferAssistantTranscriber_Openai", + "TransferAssistantTranscriber_Reson8", "TransferAssistantTranscriber_Soniox", "TransferAssistantTranscriber_Speechmatics", "TransferAssistantTranscriber_Talkscriber", @@ -14964,7 +15582,6 @@ def __dir__(): "TransferAssistantVoice_RimeAi", "TransferAssistantVoice_Sesame", "TransferAssistantVoice_SmallestAi", - "TransferAssistantVoice_Tavus", "TransferAssistantVoice_Vapi", "TransferAssistantVoice_Wellsaid", "TransferAssistantVoice_Xai", @@ -15018,6 +15635,128 @@ def __dir__(): "TransferSuccessfulToolUserEditableMessagesItem_RequestResponseDelayed", "TransferSuccessfulToolUserEditableMessagesItem_RequestStart", "TransferSuccessfulToolUserEditableType", + "TransientAssistantDto", + "TransientAssistantDtoBackgroundSound", + "TransientAssistantDtoBackgroundSoundZero", + "TransientAssistantDtoClientMessagesItem", + "TransientAssistantDtoCredentialsItem", + "TransientAssistantDtoCredentialsItem_11Labs", + "TransientAssistantDtoCredentialsItem_Anthropic", + "TransientAssistantDtoCredentialsItem_AnthropicBedrock", + "TransientAssistantDtoCredentialsItem_Anyscale", + "TransientAssistantDtoCredentialsItem_AssemblyAi", + "TransientAssistantDtoCredentialsItem_Azure", + "TransientAssistantDtoCredentialsItem_AzureOpenai", + "TransientAssistantDtoCredentialsItem_ByoSipTrunk", + "TransientAssistantDtoCredentialsItem_Cartesia", + "TransientAssistantDtoCredentialsItem_Cerebras", + "TransientAssistantDtoCredentialsItem_Cloudflare", + "TransientAssistantDtoCredentialsItem_CustomCredential", + "TransientAssistantDtoCredentialsItem_CustomLlm", + "TransientAssistantDtoCredentialsItem_DeepSeek", + "TransientAssistantDtoCredentialsItem_Deepgram", + "TransientAssistantDtoCredentialsItem_Deepinfra", + "TransientAssistantDtoCredentialsItem_Email", + "TransientAssistantDtoCredentialsItem_Gcp", + "TransientAssistantDtoCredentialsItem_GhlOauth2Authorization", + "TransientAssistantDtoCredentialsItem_Gladia", + "TransientAssistantDtoCredentialsItem_Gohighlevel", + "TransientAssistantDtoCredentialsItem_Google", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization", + "TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client", + "TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization", + "TransientAssistantDtoCredentialsItem_Groq", + "TransientAssistantDtoCredentialsItem_Hume", + "TransientAssistantDtoCredentialsItem_InflectionAi", + "TransientAssistantDtoCredentialsItem_Inworld", + "TransientAssistantDtoCredentialsItem_Langfuse", + "TransientAssistantDtoCredentialsItem_Lmnt", + "TransientAssistantDtoCredentialsItem_Make", + "TransientAssistantDtoCredentialsItem_Microsoft", + "TransientAssistantDtoCredentialsItem_Minimax", + "TransientAssistantDtoCredentialsItem_Mistral", + "TransientAssistantDtoCredentialsItem_Neuphonic", + "TransientAssistantDtoCredentialsItem_Openai", + "TransientAssistantDtoCredentialsItem_Openrouter", + "TransientAssistantDtoCredentialsItem_PerplexityAi", + "TransientAssistantDtoCredentialsItem_Playht", + "TransientAssistantDtoCredentialsItem_Reson8", + "TransientAssistantDtoCredentialsItem_RimeAi", + "TransientAssistantDtoCredentialsItem_Runpod", + "TransientAssistantDtoCredentialsItem_S3", + "TransientAssistantDtoCredentialsItem_S3Compatible", + "TransientAssistantDtoCredentialsItem_SlackOauth2Authorization", + "TransientAssistantDtoCredentialsItem_SlackWebhook", + "TransientAssistantDtoCredentialsItem_SmallestAi", + "TransientAssistantDtoCredentialsItem_Soniox", + "TransientAssistantDtoCredentialsItem_Speechmatics", + "TransientAssistantDtoCredentialsItem_Supabase", + "TransientAssistantDtoCredentialsItem_Tavus", + "TransientAssistantDtoCredentialsItem_TogetherAi", + "TransientAssistantDtoCredentialsItem_Twilio", + "TransientAssistantDtoCredentialsItem_Vonage", + "TransientAssistantDtoCredentialsItem_Webhook", + "TransientAssistantDtoCredentialsItem_Wellsaid", + "TransientAssistantDtoCredentialsItem_Xai", + "TransientAssistantDtoFirstMessageMode", + "TransientAssistantDtoHooksItem", + "TransientAssistantDtoModel", + "TransientAssistantDtoModel_Anthropic", + "TransientAssistantDtoModel_AnthropicBedrock", + "TransientAssistantDtoModel_Anyscale", + "TransientAssistantDtoModel_Cerebras", + "TransientAssistantDtoModel_CustomLlm", + "TransientAssistantDtoModel_DeepSeek", + "TransientAssistantDtoModel_Deepinfra", + "TransientAssistantDtoModel_Google", + "TransientAssistantDtoModel_Groq", + "TransientAssistantDtoModel_InflectionAi", + "TransientAssistantDtoModel_Minimax", + "TransientAssistantDtoModel_Openai", + "TransientAssistantDtoModel_Openrouter", + "TransientAssistantDtoModel_PerplexityAi", + "TransientAssistantDtoModel_TogetherAi", + "TransientAssistantDtoModel_Vapi", + "TransientAssistantDtoModel_Xai", + "TransientAssistantDtoServerMessagesItem", + "TransientAssistantDtoTranscriber", + "TransientAssistantDtoTranscriber_11Labs", + "TransientAssistantDtoTranscriber_AssemblyAi", + "TransientAssistantDtoTranscriber_Azure", + "TransientAssistantDtoTranscriber_Cartesia", + "TransientAssistantDtoTranscriber_CustomTranscriber", + "TransientAssistantDtoTranscriber_Deepgram", + "TransientAssistantDtoTranscriber_Gladia", + "TransientAssistantDtoTranscriber_Google", + "TransientAssistantDtoTranscriber_Openai", + "TransientAssistantDtoTranscriber_Reson8", + "TransientAssistantDtoTranscriber_Soniox", + "TransientAssistantDtoTranscriber_Speechmatics", + "TransientAssistantDtoTranscriber_Talkscriber", + "TransientAssistantDtoTranscriber_Vapi", + "TransientAssistantDtoTranscriber_Xai", + "TransientAssistantDtoVoice", + "TransientAssistantDtoVoice_11Labs", + "TransientAssistantDtoVoice_Azure", + "TransientAssistantDtoVoice_Cartesia", + "TransientAssistantDtoVoice_CustomVoice", + "TransientAssistantDtoVoice_Deepgram", + "TransientAssistantDtoVoice_Hume", + "TransientAssistantDtoVoice_Inworld", + "TransientAssistantDtoVoice_Lmnt", + "TransientAssistantDtoVoice_Microsoft", + "TransientAssistantDtoVoice_Minimax", + "TransientAssistantDtoVoice_Neuphonic", + "TransientAssistantDtoVoice_Openai", + "TransientAssistantDtoVoice_Playht", + "TransientAssistantDtoVoice_RimeAi", + "TransientAssistantDtoVoice_Sesame", + "TransientAssistantDtoVoice_SmallestAi", + "TransientAssistantDtoVoice_Vapi", + "TransientAssistantDtoVoice_Wellsaid", + "TransientAssistantDtoVoice_Xai", + "TransientAssistantDtoVoicemailDetection", + "TransientAssistantDtoVoicemailDetectionZero", "TransientTwilioPhoneNumber", "TransientTwilioPhoneNumberFallbackDestination", "TransientTwilioPhoneNumberFallbackDestination_Number", @@ -15114,6 +15853,7 @@ def __dir__(): "UpdateAssistantDraftDtoCredentialsItem_Openrouter", "UpdateAssistantDraftDtoCredentialsItem_PerplexityAi", "UpdateAssistantDraftDtoCredentialsItem_Playht", + "UpdateAssistantDraftDtoCredentialsItem_Reson8", "UpdateAssistantDraftDtoCredentialsItem_RimeAi", "UpdateAssistantDraftDtoCredentialsItem_Runpod", "UpdateAssistantDraftDtoCredentialsItem_S3", @@ -15162,6 +15902,7 @@ def __dir__(): "UpdateAssistantDraftDtoTranscriber_Gladia", "UpdateAssistantDraftDtoTranscriber_Google", "UpdateAssistantDraftDtoTranscriber_Openai", + "UpdateAssistantDraftDtoTranscriber_Reson8", "UpdateAssistantDraftDtoTranscriber_Soniox", "UpdateAssistantDraftDtoTranscriber_Speechmatics", "UpdateAssistantDraftDtoTranscriber_Talkscriber", @@ -15184,7 +15925,6 @@ def __dir__(): "UpdateAssistantDraftDtoVoice_RimeAi", "UpdateAssistantDraftDtoVoice_Sesame", "UpdateAssistantDraftDtoVoice_SmallestAi", - "UpdateAssistantDraftDtoVoice_Tavus", "UpdateAssistantDraftDtoVoice_Vapi", "UpdateAssistantDraftDtoVoice_Wellsaid", "UpdateAssistantDraftDtoVoice_Xai", @@ -15424,6 +16164,8 @@ def __dir__(): "UpdateQueryToolDtoMessagesItem_RequestFailed", "UpdateQueryToolDtoMessagesItem_RequestResponseDelayed", "UpdateQueryToolDtoMessagesItem_RequestStart", + "UpdateReson8CredentialDto", + "UpdateReson8CredentialDtoProvider", "UpdateRimeAiCredentialDto", "UpdateRimeAiCredentialDtoProvider", "UpdateRunpodCredentialDto", @@ -15631,6 +16373,7 @@ def __dir__(): "UpdateWorkflowDtoCredentialsItem_Openrouter", "UpdateWorkflowDtoCredentialsItem_PerplexityAi", "UpdateWorkflowDtoCredentialsItem_Playht", + "UpdateWorkflowDtoCredentialsItem_Reson8", "UpdateWorkflowDtoCredentialsItem_RimeAi", "UpdateWorkflowDtoCredentialsItem_Runpod", "UpdateWorkflowDtoCredentialsItem_S3", @@ -15668,6 +16411,7 @@ def __dir__(): "UpdateWorkflowDtoTranscriber_Gladia", "UpdateWorkflowDtoTranscriber_Google", "UpdateWorkflowDtoTranscriber_Openai", + "UpdateWorkflowDtoTranscriber_Reson8", "UpdateWorkflowDtoTranscriber_Soniox", "UpdateWorkflowDtoTranscriber_Speechmatics", "UpdateWorkflowDtoTranscriber_Talkscriber", @@ -15690,7 +16434,6 @@ def __dir__(): "UpdateWorkflowDtoVoice_RimeAi", "UpdateWorkflowDtoVoice_Sesame", "UpdateWorkflowDtoVoice_SmallestAi", - "UpdateWorkflowDtoVoice_Tavus", "UpdateWorkflowDtoVoice_Vapi", "UpdateWorkflowDtoVoice_Wellsaid", "UpdateWorkflowDtoVoice_Xai", @@ -15698,10 +16441,13 @@ def __dir__(): "UpdateWorkflowDtoVoicemailDetectionZero", "UpdateXAiCredentialDto", "UpdateXAiCredentialDtoProvider", - "User", "UserMessage", "UserMessageConfidenceSource", "UserMessageMetadata", + "UserWithRole", + "UserWithRoleRole", + "UserWithRoleRoleZero", + "ValidateBackgroundSoundUrlDto", "VapiCost", "VapiCostSubType", "VapiModel", @@ -15855,6 +16601,7 @@ def __dir__(): "WorkflowCredentialsItem_Openrouter", "WorkflowCredentialsItem_PerplexityAi", "WorkflowCredentialsItem_Playht", + "WorkflowCredentialsItem_Reson8", "WorkflowCredentialsItem_RimeAi", "WorkflowCredentialsItem_Runpod", "WorkflowCredentialsItem_S3", @@ -15888,6 +16635,7 @@ def __dir__(): "WorkflowNodesItem_Tool", "WorkflowOpenAiModel", "WorkflowOpenAiModelModel", + "WorkflowOpenAiModelReasoningEffort", "WorkflowOverrides", "WorkflowTranscriber", "WorkflowTranscriber_11Labs", @@ -15899,6 +16647,7 @@ def __dir__(): "WorkflowTranscriber_Gladia", "WorkflowTranscriber_Google", "WorkflowTranscriber_Openai", + "WorkflowTranscriber_Reson8", "WorkflowTranscriber_Soniox", "WorkflowTranscriber_Speechmatics", "WorkflowTranscriber_Talkscriber", @@ -15948,6 +16697,7 @@ def __dir__(): "WorkflowUserEditableCredentialsItem_Openrouter", "WorkflowUserEditableCredentialsItem_PerplexityAi", "WorkflowUserEditableCredentialsItem_Playht", + "WorkflowUserEditableCredentialsItem_Reson8", "WorkflowUserEditableCredentialsItem_RimeAi", "WorkflowUserEditableCredentialsItem_Runpod", "WorkflowUserEditableCredentialsItem_S3", @@ -15985,6 +16735,7 @@ def __dir__(): "WorkflowUserEditableTranscriber_Gladia", "WorkflowUserEditableTranscriber_Google", "WorkflowUserEditableTranscriber_Openai", + "WorkflowUserEditableTranscriber_Reson8", "WorkflowUserEditableTranscriber_Soniox", "WorkflowUserEditableTranscriber_Speechmatics", "WorkflowUserEditableTranscriber_Talkscriber", @@ -16007,7 +16758,6 @@ def __dir__(): "WorkflowUserEditableVoice_RimeAi", "WorkflowUserEditableVoice_Sesame", "WorkflowUserEditableVoice_SmallestAi", - "WorkflowUserEditableVoice_Tavus", "WorkflowUserEditableVoice_Vapi", "WorkflowUserEditableVoice_Wellsaid", "WorkflowUserEditableVoice_Xai", @@ -16030,7 +16780,6 @@ def __dir__(): "WorkflowVoice_RimeAi", "WorkflowVoice_Sesame", "WorkflowVoice_SmallestAi", - "WorkflowVoice_Tavus", "WorkflowVoice_Vapi", "WorkflowVoice_Wellsaid", "WorkflowVoice_Xai", diff --git a/src/vapi/types/analysis_cost.py b/src/vapi/types/analysis_cost.py index e1072d9fd..d13709295 100644 --- a/src/vapi/types/analysis_cost.py +++ b/src/vapi/types/analysis_cost.py @@ -46,6 +46,14 @@ class AnalysisCost(UncheckedBaseModel): description="This is the number of cached prompt tokens used in the analysis. This is only applicable to certain providers (e.g., OpenAI, Azure OpenAI) that support prompt caching. Cached tokens are billed at a discounted rate.", ), ] = None + reasoning_tokens: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="reasoningTokens"), + pydantic.Field( + alias="reasoningTokens", + description="This is the number of reasoning tokens generated in the analysis, reported only by reasoning models (e.g., GPT-5) on providers that report them. This is a subset of `completionTokens`, not an addition to it: reasoning tokens are already billed at the output-token rate, so this is for visibility only and does not affect `cost`.", + ), + ] = None structured_output_breakdown: typing_extensions.Annotated[ typing.Optional[typing.List[StructuredOutputCostBreakdown]], FieldMetadata(alias="structuredOutputBreakdown"), diff --git a/src/vapi/types/anthropic_bedrock_model.py b/src/vapi/types/anthropic_bedrock_model.py index dd280bbf2..6d7526ae3 100644 --- a/src/vapi/types/anthropic_bedrock_model.py +++ b/src/vapi/types/anthropic_bedrock_model.py @@ -11,6 +11,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto from .open_ai_message import OpenAiMessage @@ -68,6 +69,14 @@ class AnthropicBedrockModel(UncheckedBaseModel): description="At most one same-provider Bedrock fallback model, tried if the primary fails. Cannot be combined with thinking in this release. Resolution uses the call's Bedrock credential region (or ANTHROPIC_BEDROCK_AWS_REGION). Names with no inference profile in that region are skipped and warned, never remapped to US or global. On Vapi EU, fallback names without an EU inference profile are rejected at write time.", ), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field( + alias="reasoningEffort", + description="Reasoning effort for claude-haiku-5-5. `none` turns thinking off. `low` to `max`\nuse adaptive thinking at that effort; higher effort can add latency before the\nmodel speaks. Unset means `none`. Rejected for every other model.", + ), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = pydantic.Field(default=None) """ Optional configuration for Anthropic's thinking feature. @@ -85,7 +94,7 @@ class AnthropicBedrockModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -138,9 +147,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -175,6 +181,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -208,9 +217,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -245,6 +251,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/anthropic_bedrock_model_fallback_models_item.py b/src/vapi/types/anthropic_bedrock_model_fallback_models_item.py index 337266ef2..2cf741bf6 100644 --- a/src/vapi/types/anthropic_bedrock_model_fallback_models_item.py +++ b/src/vapi/types/anthropic_bedrock_model_fallback_models_item.py @@ -18,6 +18,7 @@ "claude-sonnet-4-5-20250929", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", + "claude-haiku-5-5", "global.anthropic.claude-haiku-4-5-20251001-v1:0", ], typing.Any, diff --git a/src/vapi/types/anthropic_bedrock_model_model.py b/src/vapi/types/anthropic_bedrock_model_model.py index 5065b3c39..c8629e24a 100644 --- a/src/vapi/types/anthropic_bedrock_model_model.py +++ b/src/vapi/types/anthropic_bedrock_model_model.py @@ -18,6 +18,7 @@ "claude-sonnet-4-5-20250929", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", + "claude-haiku-5-5", "global.anthropic.claude-haiku-4-5-20251001-v1:0", ], typing.Any, diff --git a/src/vapi/types/anthropic_bedrock_model_reasoning_effort.py b/src/vapi/types/anthropic_bedrock_model_reasoning_effort.py new file mode 100644 index 000000000..89b9df7a2 --- /dev/null +++ b/src/vapi/types/anthropic_bedrock_model_reasoning_effort.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AnthropicBedrockModelReasoningEffort = typing.Union[ + typing.Literal["none", "low", "medium", "high", "xhigh", "max"], typing.Any +] diff --git a/src/vapi/types/anthropic_bedrock_model_tools_item.py b/src/vapi/types/anthropic_bedrock_model_tools_item.py index b992e8880..2bec64d7e 100644 --- a/src/vapi/types/anthropic_bedrock_model_tools_item.py +++ b/src/vapi/types/anthropic_bedrock_model_tools_item.py @@ -615,9 +615,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/anthropic_model.py b/src/vapi/types/anthropic_model.py index f16f10669..389b529a6 100644 --- a/src/vapi/types/anthropic_model.py +++ b/src/vapi/types/anthropic_model.py @@ -10,6 +10,7 @@ from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto from .open_ai_message import OpenAiMessage @@ -59,6 +60,14 @@ class AnthropicModel(UncheckedBaseModel): The specific Anthropic/Claude model that will be used. """ + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field( + alias="reasoningEffort", + description="Reasoning effort for claude-haiku-5-5. `none` turns thinking off. `low` to `max`\nuse adaptive thinking at that effort; higher effort can add latency before the\nmodel speaks. Unset means `none`. Rejected for every other model.", + ), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = pydantic.Field(default=None) """ Optional configuration for Anthropic's thinking feature. @@ -76,7 +85,7 @@ class AnthropicModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -129,9 +138,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -166,6 +172,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -199,9 +208,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -236,6 +242,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/anthropic_model_model.py b/src/vapi/types/anthropic_model_model.py index 2321763ce..a66d6d2d2 100644 --- a/src/vapi/types/anthropic_model_model.py +++ b/src/vapi/types/anthropic_model_model.py @@ -19,6 +19,7 @@ "claude-sonnet-4-6", "claude-sonnet-5", "claude-haiku-4-5-20251001", + "claude-haiku-5-5", ], typing.Any, ] diff --git a/src/vapi/types/anthropic_model_reasoning_effort.py b/src/vapi/types/anthropic_model_reasoning_effort.py new file mode 100644 index 000000000..75e07f099 --- /dev/null +++ b/src/vapi/types/anthropic_model_reasoning_effort.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AnthropicModelReasoningEffort = typing.Union[ + typing.Literal["none", "low", "medium", "high", "xhigh", "max"], typing.Any +] diff --git a/src/vapi/types/anthropic_model_tools_item.py b/src/vapi/types/anthropic_model_tools_item.py index 6f3383947..64aee6a7f 100644 --- a/src/vapi/types/anthropic_model_tools_item.py +++ b/src/vapi/types/anthropic_model_tools_item.py @@ -615,9 +615,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/anyscale_model.py b/src/vapi/types/anyscale_model.py index 0417e340d..94a9120dd 100644 --- a/src/vapi/types/anyscale_model.py +++ b/src/vapi/types/anyscale_model.py @@ -67,7 +67,7 @@ class AnyscaleModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -120,9 +120,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -157,6 +154,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -190,9 +190,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -227,6 +224,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/anyscale_model_tools_item.py b/src/vapi/types/anyscale_model_tools_item.py index 0046a23f8..1dc58a8ac 100644 --- a/src/vapi/types/anyscale_model_tools_item.py +++ b/src/vapi/types/anyscale_model_tools_item.py @@ -615,9 +615,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/api_request_tool.py b/src/vapi/types/api_request_tool.py index 2b844b69b..8f241f70e 100644 --- a/src/vapi/types/api_request_tool.py +++ b/src/vapi/types/api_request_tool.py @@ -26,6 +26,14 @@ class ApiRequestTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[ApiRequestToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/assembly_ai_transcriber.py b/src/vapi/types/assembly_ai_transcriber.py index 079f5d6bb..f5b77fc5b 100644 --- a/src/vapi/types/assembly_ai_transcriber.py +++ b/src/vapi/types/assembly_ai_transcriber.py @@ -29,7 +29,7 @@ class AssemblyAiTranscriber(UncheckedBaseModel): FieldMetadata(alias="confidenceThreshold"), pydantic.Field( alias="confidenceThreshold", - description="Transcripts below this confidence threshold will be discarded.\n\n@default 0.4", + description="Transcripts below this confidence threshold will be discarded.\n\nDefaults to 0.4 for legacy streaming models. Universal Pro models do not\nfilter by confidence unless this field is explicitly set.", ), ] = None format_turns: typing_extensions.Annotated[ diff --git a/src/vapi/types/assistant.py b/src/vapi/types/assistant.py index 194f307fb..d7616979d 100644 --- a/src/vapi/types/assistant.py +++ b/src/vapi/types/assistant.py @@ -115,7 +115,7 @@ class Assistant(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -188,7 +188,7 @@ class Assistant(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ diff --git a/src/vapi/types/assistant_background_sound_zero.py b/src/vapi/types/assistant_background_sound_zero.py index 10948de6f..feb70a1af 100644 --- a/src/vapi/types/assistant_background_sound_zero.py +++ b/src/vapi/types/assistant_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -AssistantBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +AssistantBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/assistant_credentials_item.py b/src/vapi/types/assistant_credentials_item.py index b2827a4b8..0b2993b62 100644 --- a/src/vapi/types/assistant_credentials_item.py +++ b/src/vapi/types/assistant_credentials_item.py @@ -433,6 +433,9 @@ class AssistantCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class AssistantCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: AssistantCredentialsItem_Mistral, AssistantCredentialsItem_Speechmatics, AssistantCredentialsItem_Soniox, + AssistantCredentialsItem_Reson8, AssistantCredentialsItem_GoogleCalendarOauth2Client, AssistantCredentialsItem_GoogleCalendarOauth2Authorization, AssistantCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/assistant_draft.py b/src/vapi/types/assistant_draft.py index da5b98af2..03894b4ef 100644 --- a/src/vapi/types/assistant_draft.py +++ b/src/vapi/types/assistant_draft.py @@ -108,7 +108,7 @@ class AssistantDraft(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -173,7 +173,7 @@ class AssistantDraft(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ diff --git a/src/vapi/types/assistant_draft_background_sound_zero.py b/src/vapi/types/assistant_draft_background_sound_zero.py index f5e42ee63..d8caa742a 100644 --- a/src/vapi/types/assistant_draft_background_sound_zero.py +++ b/src/vapi/types/assistant_draft_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -AssistantDraftBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +AssistantDraftBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/assistant_draft_credentials_item.py b/src/vapi/types/assistant_draft_credentials_item.py index 55e77ab90..353188775 100644 --- a/src/vapi/types/assistant_draft_credentials_item.py +++ b/src/vapi/types/assistant_draft_credentials_item.py @@ -433,6 +433,9 @@ class AssistantDraftCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class AssistantDraftCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantDraftCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: AssistantDraftCredentialsItem_Mistral, AssistantDraftCredentialsItem_Speechmatics, AssistantDraftCredentialsItem_Soniox, + AssistantDraftCredentialsItem_Reson8, AssistantDraftCredentialsItem_GoogleCalendarOauth2Client, AssistantDraftCredentialsItem_GoogleCalendarOauth2Authorization, AssistantDraftCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/assistant_draft_model.py b/src/vapi/types/assistant_draft_model.py index 292044248..d956116f4 100644 --- a/src/vapi/types/assistant_draft_model.py +++ b/src/vapi/types/assistant_draft_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class AssistantDraftModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class AssistantDraftModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,9 +881,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -906,6 +915,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -940,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -977,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1010,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1047,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1080,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1117,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1150,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1187,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1221,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1257,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1291,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1327,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1361,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1397,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1431,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1467,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1501,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1537,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1571,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1607,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1641,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1677,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1711,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1747,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1781,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1817,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1851,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1887,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1921,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1957,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1991,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2028,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2061,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2098,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/assistant_draft_transcriber.py b/src/vapi/types/assistant_draft_transcriber.py index 95d20d09b..bcecfecb5 100644 --- a/src/vapi/types/assistant_draft_transcriber.py +++ b/src/vapi/types/assistant_draft_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class AssistantDraftTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class AssistantDraftTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class AssistantDraftTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantDraftTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: AssistantDraftTranscriber_Cartesia, AssistantDraftTranscriber_Soniox, AssistantDraftTranscriber_Xai, + AssistantDraftTranscriber_Reson8, AssistantDraftTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/assistant_draft_voice.py b/src/vapi/types/assistant_draft_voice.py index 10a0d779e..0d66f27c5 100644 --- a/src/vapi/types/assistant_draft_voice.py +++ b/src/vapi/types/assistant_draft_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class AssistantDraftVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class AssistantDraftVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: AssistantDraftVoice_Wellsaid, AssistantDraftVoice_RimeAi, AssistantDraftVoice_SmallestAi, - AssistantDraftVoice_Tavus, AssistantDraftVoice_Vapi, AssistantDraftVoice_Sesame, AssistantDraftVoice_Inworld, diff --git a/src/vapi/types/assistant_hook_customer_speech_interrupted.py b/src/vapi/types/assistant_hook_customer_speech_interrupted.py deleted file mode 100644 index 9b1b6081a..000000000 --- a/src/vapi/types/assistant_hook_customer_speech_interrupted.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AssistantHookCustomerSpeechInterrupted = typing.Any diff --git a/src/vapi/types/assistant_managed_conflict_response_dto.py b/src/vapi/types/assistant_managed_conflict_response_dto.py new file mode 100644 index 000000000..406156446 --- /dev/null +++ b/src/vapi/types/assistant_managed_conflict_response_dto.py @@ -0,0 +1,36 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .assistant_managed_conflict_response_dto_error import AssistantManagedConflictResponseDtoError +from .assistant_managed_vapi_agents_dto import AssistantManagedVapiAgentsDto + + +class AssistantManagedConflictResponseDto(UncheckedBaseModel): + error: AssistantManagedConflictResponseDtoError = pydantic.Field() + """ + Vapi for CX manages the assistant. The lock refuses writes to the assistant itself (update, replace, delete, restore, version delete, traffic splits) and to outcomes, monitors and structured outputs that link or unlink it. It doesn't cover what changes a call without writing the assistant: call-level assistantOverrides or assistantVersion, squad member pins and overrides, which phone number points at it, edits to the tools or knowledge bases it references, or Vapi's own model-retirement sweep. + """ + + message: str = pydantic.Field() + """ + Why the write was rejected and how to make the change in Vapi for CX instead: the agent link, the Vapi for CX MCP URL with the steps to connect it, and which of its tools to call. + """ + + vapi_agents: typing_extensions.Annotated[ + AssistantManagedVapiAgentsDto, FieldMetadata(alias="vapiAgents"), pydantic.Field(alias="vapiAgents") + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/assistant_managed_conflict_response_dto_error.py b/src/vapi/types/assistant_managed_conflict_response_dto_error.py new file mode 100644 index 000000000..4c4cd0a80 --- /dev/null +++ b/src/vapi/types/assistant_managed_conflict_response_dto_error.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AssistantManagedConflictResponseDtoError = typing.Union[typing.Literal["assistant_managed_by_vapi_agents"], typing.Any] diff --git a/src/vapi/types/assistant_managed_vapi_agents_dto.py b/src/vapi/types/assistant_managed_vapi_agents_dto.py new file mode 100644 index 000000000..74f02da21 --- /dev/null +++ b/src/vapi/types/assistant_managed_vapi_agents_dto.py @@ -0,0 +1,38 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class AssistantManagedVapiAgentsDto(UncheckedBaseModel): + agent_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="agentId"), + pydantic.Field(alias="agentId", description="The Vapi for CX agent that manages the assistant."), + ] + agent_url: typing_extensions.Annotated[ + str, + FieldMetadata(alias="agentUrl"), + pydantic.Field(alias="agentUrl", description="The agent's page in Vapi for CX."), + ] + mcp_url: typing_extensions.Annotated[ + str, + FieldMetadata(alias="mcpUrl"), + pydantic.Field( + alias="mcpUrl", description="The Vapi for CX MCP server, where an AI client makes the change instead." + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/assistant_message_judge_plan_ai_model.py b/src/vapi/types/assistant_message_judge_plan_ai_model.py index 696827fdb..256c2ee85 100644 --- a/src/vapi/types/assistant_message_judge_plan_ai_model.py +++ b/src/vapi/types/assistant_message_judge_plan_ai_model.py @@ -11,6 +11,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_thinking_config import AnthropicThinkingConfig from .eval_anthropic_model_model import EvalAnthropicModelModel +from .eval_anthropic_model_reasoning_effort import EvalAnthropicModelReasoningEffort from .eval_google_model_model import EvalGoogleModelModel from .eval_open_ai_model_model import EvalOpenAiModelModel @@ -59,6 +60,11 @@ class AssistantMessageJudgePlanAiModel_Anthropic(UncheckedBaseModel): provider: typing.Literal["anthropic"] = "anthropic" model: EvalAnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[EvalAnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ diff --git a/src/vapi/types/assistant_model.py b/src/vapi/types/assistant_model.py index bd789c590..cee2c1ff2 100644 --- a/src/vapi/types/assistant_model.py +++ b/src/vapi/types/assistant_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class AssistantModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class AssistantModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,9 +881,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -906,6 +915,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -940,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -977,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1010,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1047,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1080,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1117,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1150,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1187,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1221,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1257,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1291,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1327,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1361,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1397,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1431,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1467,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1501,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1537,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1571,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1607,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1641,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1677,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1711,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1747,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1781,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1817,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1851,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1887,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1921,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1957,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1991,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2028,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2061,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2098,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/assistant_overrides.py b/src/vapi/types/assistant_overrides.py index 93aaa31f5..77dc0d951 100644 --- a/src/vapi/types/assistant_overrides.py +++ b/src/vapi/types/assistant_overrides.py @@ -111,7 +111,7 @@ class AssistantOverrides(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -183,7 +183,7 @@ class AssistantOverrides(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ @@ -315,9 +315,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -352,6 +349,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -385,9 +385,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -422,6 +419,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/assistant_overrides_background_sound_zero.py b/src/vapi/types/assistant_overrides_background_sound_zero.py index ab63c0ce3..d6f3288fe 100644 --- a/src/vapi/types/assistant_overrides_background_sound_zero.py +++ b/src/vapi/types/assistant_overrides_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -AssistantOverridesBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +AssistantOverridesBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/assistant_overrides_credentials_item.py b/src/vapi/types/assistant_overrides_credentials_item.py index 228ac7705..1556f9cfb 100644 --- a/src/vapi/types/assistant_overrides_credentials_item.py +++ b/src/vapi/types/assistant_overrides_credentials_item.py @@ -433,6 +433,9 @@ class AssistantOverridesCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class AssistantOverridesCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantOverridesCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: AssistantOverridesCredentialsItem_Mistral, AssistantOverridesCredentialsItem_Speechmatics, AssistantOverridesCredentialsItem_Soniox, + AssistantOverridesCredentialsItem_Reson8, AssistantOverridesCredentialsItem_GoogleCalendarOauth2Client, AssistantOverridesCredentialsItem_GoogleCalendarOauth2Authorization, AssistantOverridesCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/assistant_overrides_model.py b/src/vapi/types/assistant_overrides_model.py index d5598880e..42fa4ae20 100644 --- a/src/vapi/types/assistant_overrides_model.py +++ b/src/vapi/types/assistant_overrides_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class AssistantOverridesModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class AssistantOverridesModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -868,9 +880,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -905,6 +914,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -939,9 +951,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -976,6 +985,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1009,9 +1021,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1046,6 +1055,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1079,9 +1091,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1116,6 +1125,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1149,9 +1161,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1186,6 +1195,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1220,9 +1232,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1256,6 +1265,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1290,9 +1302,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1326,6 +1335,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1360,9 +1372,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1396,6 +1405,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1430,9 +1442,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1466,6 +1475,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1500,9 +1512,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1536,6 +1545,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1570,9 +1582,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1606,6 +1615,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1640,9 +1652,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1676,6 +1685,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1710,9 +1722,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1746,6 +1755,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1780,9 +1792,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1816,6 +1825,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1850,9 +1862,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1886,6 +1895,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1920,9 +1932,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1956,6 +1965,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1990,9 +2002,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2027,6 +2036,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2060,9 +2072,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2097,6 +2106,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/assistant_overrides_tools_append_item.py b/src/vapi/types/assistant_overrides_tools_append_item.py index a94c11428..b97598db5 100644 --- a/src/vapi/types/assistant_overrides_tools_append_item.py +++ b/src/vapi/types/assistant_overrides_tools_append_item.py @@ -615,9 +615,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/assistant_overrides_transcriber.py b/src/vapi/types/assistant_overrides_transcriber.py index 0785feb6d..99c97582a 100644 --- a/src/vapi/types/assistant_overrides_transcriber.py +++ b/src/vapi/types/assistant_overrides_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class AssistantOverridesTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class AssistantOverridesTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class AssistantOverridesTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantOverridesTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: AssistantOverridesTranscriber_Cartesia, AssistantOverridesTranscriber_Soniox, AssistantOverridesTranscriber_Xai, + AssistantOverridesTranscriber_Reson8, AssistantOverridesTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/assistant_overrides_voice.py b/src/vapi/types/assistant_overrides_voice.py index e27a27ab8..f4fcd3f00 100644 --- a/src/vapi/types/assistant_overrides_voice.py +++ b/src/vapi/types/assistant_overrides_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class AssistantOverridesVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class AssistantOverridesVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: AssistantOverridesVoice_Wellsaid, AssistantOverridesVoice_RimeAi, AssistantOverridesVoice_SmallestAi, - AssistantOverridesVoice_Tavus, AssistantOverridesVoice_Vapi, AssistantOverridesVoice_Sesame, AssistantOverridesVoice_Inworld, diff --git a/src/vapi/types/assistant_pinned_conflict_response_dto.py b/src/vapi/types/assistant_pinned_conflict_response_dto.py index 5585a63fb..e544763e1 100644 --- a/src/vapi/types/assistant_pinned_conflict_response_dto.py +++ b/src/vapi/types/assistant_pinned_conflict_response_dto.py @@ -5,11 +5,9 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2 from ..core.unchecked_base_model import UncheckedBaseModel -from .assistant_pinned_conflict_response_dto_error import AssistantPinnedConflictResponseDtoError class AssistantPinnedConflictResponseDto(UncheckedBaseModel): - error: AssistantPinnedConflictResponseDtoError message: str = pydantic.Field() """ Human-readable reason the parent-assistant delete was rejected. diff --git a/src/vapi/types/assistant_pinned_conflict_response_dto_error.py b/src/vapi/types/assistant_pinned_conflict_response_dto_error.py deleted file mode 100644 index 6737e7bd8..000000000 --- a/src/vapi/types/assistant_pinned_conflict_response_dto_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -AssistantPinnedConflictResponseDtoError = typing.Union[typing.Literal["assistant_pinned"], typing.Any] diff --git a/src/vapi/types/assistant_transcriber.py b/src/vapi/types/assistant_transcriber.py index 2de10b16e..13ca4679a 100644 --- a/src/vapi/types/assistant_transcriber.py +++ b/src/vapi/types/assistant_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class AssistantTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class AssistantTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class AssistantTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: AssistantTranscriber_Cartesia, AssistantTranscriber_Soniox, AssistantTranscriber_Xai, + AssistantTranscriber_Reson8, AssistantTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/assistant_version.py b/src/vapi/types/assistant_version.py index d9a96865a..4ac1bd5fd 100644 --- a/src/vapi/types/assistant_version.py +++ b/src/vapi/types/assistant_version.py @@ -108,7 +108,7 @@ class AssistantVersion(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -254,7 +254,7 @@ class AssistantVersion(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ diff --git a/src/vapi/types/assistant_version_background_sound_zero.py b/src/vapi/types/assistant_version_background_sound_zero.py index 9f5652703..28e862643 100644 --- a/src/vapi/types/assistant_version_background_sound_zero.py +++ b/src/vapi/types/assistant_version_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -AssistantVersionBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +AssistantVersionBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/assistant_version_credentials_item.py b/src/vapi/types/assistant_version_credentials_item.py index 319612a55..b3fab3bb1 100644 --- a/src/vapi/types/assistant_version_credentials_item.py +++ b/src/vapi/types/assistant_version_credentials_item.py @@ -433,6 +433,9 @@ class AssistantVersionCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class AssistantVersionCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantVersionCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: AssistantVersionCredentialsItem_Mistral, AssistantVersionCredentialsItem_Speechmatics, AssistantVersionCredentialsItem_Soniox, + AssistantVersionCredentialsItem_Reson8, AssistantVersionCredentialsItem_GoogleCalendarOauth2Client, AssistantVersionCredentialsItem_GoogleCalendarOauth2Authorization, AssistantVersionCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/assistant_version_model.py b/src/vapi/types/assistant_version_model.py index 5a5e0f16b..16f2f3fb0 100644 --- a/src/vapi/types/assistant_version_model.py +++ b/src/vapi/types/assistant_version_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class AssistantVersionModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class AssistantVersionModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,9 +881,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -906,6 +915,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -940,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -977,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1010,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1047,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1080,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1117,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1150,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1187,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1221,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1257,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1291,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1327,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1361,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1397,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1431,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1467,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1501,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1537,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1571,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1607,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1641,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1677,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1711,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1747,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1781,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1817,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1851,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1887,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1921,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1957,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1991,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2028,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2061,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2098,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/assistant_version_transcriber.py b/src/vapi/types/assistant_version_transcriber.py index 9d2059db2..f0fa72c81 100644 --- a/src/vapi/types/assistant_version_transcriber.py +++ b/src/vapi/types/assistant_version_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class AssistantVersionTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class AssistantVersionTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class AssistantVersionTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class AssistantVersionTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: AssistantVersionTranscriber_Cartesia, AssistantVersionTranscriber_Soniox, AssistantVersionTranscriber_Xai, + AssistantVersionTranscriber_Reson8, AssistantVersionTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/assistant_version_voice.py b/src/vapi/types/assistant_version_voice.py index 95247c59d..ec72c385c 100644 --- a/src/vapi/types/assistant_version_voice.py +++ b/src/vapi/types/assistant_version_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class AssistantVersionVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class AssistantVersionVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: AssistantVersionVoice_Wellsaid, AssistantVersionVoice_RimeAi, AssistantVersionVoice_SmallestAi, - AssistantVersionVoice_Tavus, AssistantVersionVoice_Vapi, AssistantVersionVoice_Sesame, AssistantVersionVoice_Inworld, diff --git a/src/vapi/types/assistant_voice.py b/src/vapi/types/assistant_voice.py index b70a97ab3..009024579 100644 --- a/src/vapi/types/assistant_voice.py +++ b/src/vapi/types/assistant_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class AssistantVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class AssistantVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: AssistantVoice_Wellsaid, AssistantVoice_RimeAi, AssistantVoice_SmallestAi, - AssistantVoice_Tavus, AssistantVoice_Vapi, AssistantVoice_Sesame, AssistantVoice_Inworld, diff --git a/src/vapi/types/bash_tool.py b/src/vapi/types/bash_tool.py index 61a55d17e..851cd63c8 100644 --- a/src/vapi/types/bash_tool.py +++ b/src/vapi/types/bash_tool.py @@ -25,6 +25,14 @@ class BashTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[BashToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/call.py b/src/vapi/types/call.py index ffb2b8e03..8a494c473 100644 --- a/src/vapi/types/call.py +++ b/src/vapi/types/call.py @@ -219,7 +219,7 @@ class Call(UncheckedBaseModel): description="This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. @@ -357,9 +357,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -394,6 +391,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -428,9 +428,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -465,6 +462,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_costs_item.py b/src/vapi/types/call_costs_item.py index fd61d0606..47cd248c3 100644 --- a/src/vapi/types/call_costs_item.py +++ b/src/vapi/types/call_costs_item.py @@ -10,6 +10,7 @@ from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .analysis_cost_analysis_type import AnalysisCostAnalysisType +from .model_cost_service_tier_breakdown import ModelCostServiceTierBreakdown from .structured_output_cost_breakdown import StructuredOutputCostBreakdown from .transport_cost_provider import TransportCostProvider from .vapi_cost_sub_type import VapiCostSubType @@ -67,6 +68,11 @@ class CallCostsItem_Model(UncheckedBaseModel): reasoning_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") ] = None + service_tier_breakdown: typing_extensions.Annotated[ + typing.Optional[typing.List[ModelCostServiceTierBreakdown]], + FieldMetadata(alias="serviceTierBreakdown"), + pydantic.Field(alias="serviceTierBreakdown"), + ] = None cost: float if IS_PYDANTIC_V2: @@ -156,6 +162,9 @@ class CallCostsItem_Analysis(UncheckedBaseModel): cached_prompt_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="cachedPromptTokens"), pydantic.Field(alias="cachedPromptTokens") ] = None + reasoning_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") + ] = None structured_output_breakdown: typing_extensions.Annotated[ typing.Optional[typing.List[StructuredOutputCostBreakdown]], FieldMetadata(alias="structuredOutputBreakdown"), diff --git a/src/vapi/types/call_ended_reason.py b/src/vapi/types/call_ended_reason.py index 505bd97a1..407d8d72c 100644 --- a/src/vapi/types/call_ended_reason.py +++ b/src/vapi/types/call_ended_reason.py @@ -4,6 +4,11 @@ CallEndedReason = typing.Union[ typing.Literal[ + "call.in-progress.error-vapifault-guardrail-evaluation-failed", + "call.in-progress.error-vapifault-guardrail-playback-timeout", + "call.in-progress.guardrail-blocked", + "call.in-progress.error-vapifault-call-start-failed", + "call.in-progress.error-vapifault-assistant-handoff-start-failed", "call-start-error-neither-assistant-nor-server-set", "assistant-request-failed", "assistant-request-returned-error", @@ -140,6 +145,16 @@ "call.in-progress.error-vapifault-xai-transcriber-invalid-config", "call.in-progress.error-vapifault-xai-transcriber-server-error", "call.in-progress.error-vapifault-xai-transcriber-failed", + "pipeline-error-reson8-transcriber-auth-failed", + "pipeline-error-reson8-transcriber-rate-limited", + "pipeline-error-reson8-transcriber-invalid-config", + "pipeline-error-reson8-transcriber-closed", + "pipeline-error-reson8-transcriber-failed", + "call.in-progress.error-vapifault-reson8-transcriber-auth-failed", + "call.in-progress.error-vapifault-reson8-transcriber-rate-limited", + "call.in-progress.error-vapifault-reson8-transcriber-invalid-config", + "call.in-progress.error-vapifault-reson8-transcriber-closed", + "call.in-progress.error-vapifault-reson8-transcriber-failed", "pipeline-error-cartesia-transcriber-failed", "call.in-progress.error-vapifault-cartesia-transcriber-failed", "call.in-progress.error-pipeline-no-available-llm-model", @@ -475,6 +490,7 @@ "call.in-progress.error-vapifault-cartesia-socket-hang-up", "call.in-progress.error-vapifault-cartesia-requested-payment", "call.in-progress.error-providerfault-cartesia-500-server-error", + "call.in-progress.error-providerfault-cartesia-502-server-error", "call.in-progress.error-providerfault-cartesia-503-server-error", "call.in-progress.error-providerfault-cartesia-522-server-error", "pipeline-error-eleven-labs-voice-not-found", @@ -498,6 +514,7 @@ "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", "pipeline-error-eleven-labs-max-character-limit-exceeded", "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + "pipeline-error-eleven-labs-unsupported-model", "pipeline-error-eleven-labs-500-server-error", "pipeline-error-eleven-labs-503-server-error", "call.in-progress.error-vapifault-eleven-labs-voice-not-found", @@ -520,6 +537,7 @@ "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + "call.in-progress.error-vapifault-eleven-labs-unsupported-model", "call.in-progress.error-providerfault-eleven-labs-system-busy-and-requested-upgrade", "call.in-progress.error-providerfault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", "call.in-progress.error-providerfault-eleven-labs-voice-disabled-by-owner", diff --git a/src/vapi/types/call_health_dashboard_affected_call_dto.py b/src/vapi/types/call_health_dashboard_affected_call_dto.py new file mode 100644 index 000000000..0819bede8 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_affected_call_dto.py @@ -0,0 +1,39 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_affected_call_dto_call_availability import ( + CallHealthDashboardAffectedCallDtoCallAvailability, +) + + +class CallHealthDashboardAffectedCallDto(UncheckedBaseModel): + call_id: typing_extensions.Annotated[str, FieldMetadata(alias="callId"), pydantic.Field(alias="callId")] + assistant_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") + ] + call_time: typing_extensions.Annotated[ + dt.datetime, + FieldMetadata(alias="callTime"), + pydantic.Field(alias="callTime", description="Call completion time (endedAt), never startedAt."), + ] + call_availability: typing_extensions.Annotated[ + CallHealthDashboardAffectedCallDtoCallAvailability, + FieldMetadata(alias="callAvailability"), + pydantic.Field(alias="callAvailability"), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_affected_call_dto_call_availability.py b/src/vapi/types/call_health_dashboard_affected_call_dto_call_availability.py new file mode 100644 index 000000000..216dfb529 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_affected_call_dto_call_availability.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardAffectedCallDtoCallAvailability = typing.Union[ + typing.Literal["available", "unavailable"], typing.Any +] diff --git a/src/vapi/types/call_health_dashboard_affected_calls_response_dto.py b/src/vapi/types/call_health_dashboard_affected_calls_response_dto.py new file mode 100644 index 000000000..1b2d8174e --- /dev/null +++ b/src/vapi/types/call_health_dashboard_affected_calls_response_dto.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_affected_call_dto import CallHealthDashboardAffectedCallDto +from .call_health_dashboard_coverage_dto import CallHealthDashboardCoverageDto + + +class CallHealthDashboardAffectedCallsResponseDto(UncheckedBaseModel): + results: typing.List[CallHealthDashboardAffectedCallDto] + next_cursor: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="nextCursor"), pydantic.Field(alias="nextCursor") + ] = None + coverage: CallHealthDashboardCoverageDto + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/assistant_user_editable.py b/src/vapi/types/call_health_dashboard_api_error_dto.py similarity index 71% rename from src/vapi/types/assistant_user_editable.py rename to src/vapi/types/call_health_dashboard_api_error_dto.py index e8530dde3..bcc5677c1 100644 --- a/src/vapi/types/assistant_user_editable.py +++ b/src/vapi/types/call_health_dashboard_api_error_dto.py @@ -9,10 +9,11 @@ from ..core.unchecked_base_model import UncheckedBaseModel -class AssistantUserEditable(UncheckedBaseModel): - server_messages: typing_extensions.Annotated[ - typing.Optional[typing.Any], FieldMetadata(alias="serverMessages"), pydantic.Field(alias="serverMessages") - ] = None +class CallHealthDashboardApiErrorDto(UncheckedBaseModel): + code: str + message: str + request_id: typing_extensions.Annotated[str, FieldMetadata(alias="requestId"), pydantic.Field(alias="requestId")] + retryable: bool if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/vapi/types/call_health_dashboard_assignment_coverage_dto.py b/src/vapi/types/call_health_dashboard_assignment_coverage_dto.py new file mode 100644 index 000000000..006afa06a --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assignment_coverage_dto.py @@ -0,0 +1,29 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardAssignmentCoverageDto(UncheckedBaseModel): + pending: int + unmatched: int + skipped: int + unavailable: int + error: int + coverage_gap_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="coverageGapCount"), pydantic.Field(alias="coverageGapCount") + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_assistant_goals_dto.py b/src/vapi/types/call_health_dashboard_assistant_goals_dto.py new file mode 100644 index 000000000..35f1ce286 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assistant_goals_dto.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_goal_option_dto import CallHealthDashboardGoalOptionDto + + +class CallHealthDashboardAssistantGoalsDto(UncheckedBaseModel): + assistant_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="assistantId"), + pydantic.Field( + alias="assistantId", description="Requested assistant identity whose current published row remains visible." + ), + ] + goals: typing.List[CallHealthDashboardGoalOptionDto] = pydantic.Field() + """ + Empty when this visible assistant has no goals; no goal is automatically selected. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_assistant_goals_response_dto.py b/src/vapi/types/call_health_dashboard_assistant_goals_response_dto.py new file mode 100644 index 000000000..c2d79ea49 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assistant_goals_response_dto.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_assistant_goals_dto import CallHealthDashboardAssistantGoalsDto + + +class CallHealthDashboardAssistantGoalsResponseDto(UncheckedBaseModel): + results: typing.List[CallHealthDashboardAssistantGoalsDto] = pydantic.Field() + """ + Complete requested visible assistant cohort, including assistants with no goal options. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_assistant_list_response_dto.py b/src/vapi/types/call_health_dashboard_assistant_list_response_dto.py new file mode 100644 index 000000000..b833a1bda --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assistant_list_response_dto.py @@ -0,0 +1,39 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_assistant_overview_dto import CallHealthDashboardAssistantOverviewDto +from .call_health_dashboard_coverage_dto import CallHealthDashboardCoverageDto + + +class CallHealthDashboardAssistantListResponseDto(UncheckedBaseModel): + results: typing.List[CallHealthDashboardAssistantOverviewDto] = pydantic.Field() + """ + Visible nondeleted assistants in ascending ID transport order; sort the exhausted result in the frontend. + """ + + next_cursor: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="nextCursor"), + pydantic.Field( + alias="nextCursor", description="Opaque ID continuation bound to tenant, completion window and filters." + ), + ] = None + coverage: CallHealthDashboardCoverageDto = pydantic.Field() + """ + Received-work processing coverage, separate from analyzed goal results. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_assistant_overview_dto.py b/src/vapi/types/call_health_dashboard_assistant_overview_dto.py new file mode 100644 index 000000000..0011c4a64 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assistant_overview_dto.py @@ -0,0 +1,41 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_assistant_reference_dto import CallHealthDashboardAssistantReferenceDto +from .call_health_dashboard_goal_definition_dto import CallHealthDashboardGoalDefinitionDto +from .call_health_dashboard_goal_summary_dto import CallHealthDashboardGoalSummaryDto + + +class CallHealthDashboardAssistantOverviewDto(UncheckedBaseModel): + assistant: CallHealthDashboardAssistantReferenceDto = pydantic.Field() + """ + Current permitted assistant metadata, fetched in a batch. + """ + + goal_definition: typing_extensions.Annotated[ + CallHealthDashboardGoalDefinitionDto, + FieldMetadata(alias="goalDefinition"), + pydantic.Field( + alias="goalDefinition", + description="Every row represents an explicitly selected, tenant-owned assistant goal.", + ), + ] + goal: CallHealthDashboardGoalSummaryDto = pydantic.Field() + """ + Window totals for the selected goal, including zero-result assistants. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_assistant_reference_dto.py b/src/vapi/types/call_health_dashboard_assistant_reference_dto.py new file mode 100644 index 000000000..a6a178304 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assistant_reference_dto.py @@ -0,0 +1,31 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardAssistantReferenceDto(UncheckedBaseModel): + id: str + name: typing.Optional[str] = None + latest_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="latestVersion"), + pydantic.Field( + alias="latestVersion", + description="Current assistant.latest_version label; omitted when unavailable, never a goal revision.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_assistant_summary_response_dto.py b/src/vapi/types/call_health_dashboard_assistant_summary_response_dto.py new file mode 100644 index 000000000..f94789805 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_assistant_summary_response_dto.py @@ -0,0 +1,57 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_assistant_reference_dto import CallHealthDashboardAssistantReferenceDto +from .call_health_dashboard_coverage_dto import CallHealthDashboardCoverageDto +from .call_health_dashboard_goal_daily_dto import CallHealthDashboardGoalDailyDto +from .call_health_dashboard_goal_definition_dto import CallHealthDashboardGoalDefinitionDto +from .call_health_dashboard_goal_summary_dto import CallHealthDashboardGoalSummaryDto +from .call_health_dashboard_series_page_dto import CallHealthDashboardSeriesPageDto + + +class CallHealthDashboardAssistantSummaryResponseDto(UncheckedBaseModel): + assistant: CallHealthDashboardAssistantReferenceDto = pydantic.Field() + """ + Current permitted assistant metadata, fetched in a batch. + """ + + goal_definition: typing_extensions.Annotated[ + CallHealthDashboardGoalDefinitionDto, + FieldMetadata(alias="goalDefinition"), + pydantic.Field( + alias="goalDefinition", + description="Every row represents an explicitly selected, tenant-owned assistant goal.", + ), + ] + goal: CallHealthDashboardGoalSummaryDto = pydantic.Field() + """ + Window totals for the selected goal, including zero-result assistants. + """ + + results: typing.List[CallHealthDashboardGoalDailyDto] = pydantic.Field() + """ + One ascending contiguous page of UTC dates, including empty buckets. + """ + + series_page: typing_extensions.Annotated[ + CallHealthDashboardSeriesPageDto, FieldMetadata(alias="seriesPage"), pydantic.Field(alias="seriesPage") + ] + coverage: CallHealthDashboardCoverageDto = pydantic.Field() + """ + Received-work processing coverage, separate from success rates. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_classification_coverage_dto.py b/src/vapi/types/call_health_dashboard_classification_coverage_dto.py new file mode 100644 index 000000000..2034e2c5f --- /dev/null +++ b/src/vapi/types/call_health_dashboard_classification_coverage_dto.py @@ -0,0 +1,26 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardClassificationCoverageDto(UncheckedBaseModel): + pending: int + unavailable: int + skipped: int + error: int + excluded: int + complete: int + partial: int + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_coverage_dto.py b/src/vapi/types/call_health_dashboard_coverage_dto.py new file mode 100644 index 000000000..22ad86d74 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_coverage_dto.py @@ -0,0 +1,43 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_assignment_coverage_dto import CallHealthDashboardAssignmentCoverageDto +from .call_health_dashboard_classification_coverage_dto import CallHealthDashboardClassificationCoverageDto +from .call_health_dashboard_discovery_coverage_dto import CallHealthDashboardDiscoveryCoverageDto +from .call_health_dashboard_goal_gaps_dto import CallHealthDashboardGoalGapsDto +from .call_health_dashboard_intake_coverage_dto import CallHealthDashboardIntakeCoverageDto +from .call_health_dashboard_sweep_coverage_dto import CallHealthDashboardSweepCoverageDto + + +class CallHealthDashboardCoverageDto(UncheckedBaseModel): + as_of: typing_extensions.Annotated[dt.datetime, FieldMetadata(alias="asOf"), pydantic.Field(alias="asOf")] + intake: CallHealthDashboardIntakeCoverageDto + goal: CallHealthDashboardGoalGapsDto + classification: CallHealthDashboardClassificationCoverageDto + assignment: CallHealthDashboardAssignmentCoverageDto + discovery: CallHealthDashboardDiscoveryCoverageDto + sweep: CallHealthDashboardSweepCoverageDto + counts_complete: typing_extensions.Annotated[ + bool, + FieldMetadata(alias="countsComplete"), + pydantic.Field( + alias="countsComplete", + description="Completeness of received authorized work only; never source delivery coverage.", + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_discovery_coverage_dto.py b/src/vapi/types/call_health_dashboard_discovery_coverage_dto.py new file mode 100644 index 000000000..f612507a6 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_discovery_coverage_dto.py @@ -0,0 +1,27 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardDiscoveryCoverageDto(UncheckedBaseModel): + pending_issue_category_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="pendingIssueCategoryCount"), pydantic.Field(alias="pendingIssueCategoryCount") + ] + blocked_issue_category_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="blockedIssueCategoryCount"), pydantic.Field(alias="blockedIssueCategoryCount") + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_facets_dto.py b/src/vapi/types/call_health_dashboard_facets_dto.py new file mode 100644 index 000000000..18411d4dd --- /dev/null +++ b/src/vapi/types/call_health_dashboard_facets_dto.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_facets_dto_statuses_item import CallHealthDashboardFacetsDtoStatusesItem + + +class CallHealthDashboardFacetsDto(UncheckedBaseModel): + statuses: typing.List[CallHealthDashboardFacetsDtoStatusesItem] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_facets_dto_statuses_item.py b/src/vapi/types/call_health_dashboard_facets_dto_statuses_item.py new file mode 100644 index 000000000..513ff466b --- /dev/null +++ b/src/vapi/types/call_health_dashboard_facets_dto_statuses_item.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardFacetsDtoStatusesItem = typing.Union[typing.Literal["active", "resolved", "dismissed"], typing.Any] diff --git a/src/vapi/types/call_health_dashboard_goal_daily_dto.py b/src/vapi/types/call_health_dashboard_goal_daily_dto.py new file mode 100644 index 000000000..308b0201b --- /dev/null +++ b/src/vapi/types/call_health_dashboard_goal_daily_dto.py @@ -0,0 +1,79 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardGoalDailyDto(UncheckedBaseModel): + registered_call_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="registeredCallCount"), pydantic.Field(alias="registeredCallCount") + ] + eligible_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="eligibleCallCount"), + pydantic.Field( + alias="eligibleCallCount", + description="Calls with an accepted semantic eligibility decision and binary goal outcome.", + ), + ] + ineligible_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="ineligibleCallCount"), + pydantic.Field( + alias="ineligibleCallCount", description="Accepted semantic exclusions; absent from the goal denominator." + ), + ] + unassessed_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="unassessedCallCount"), + pydantic.Field( + alias="unassessedCallCount", + description="No accepted eligibility decision, including technical or privacy exclusions.", + ), + ] + goal_met_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="goalMetCount"), pydantic.Field(alias="goalMetCount") + ] + goal_not_met_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="goalNotMetCount"), pydantic.Field(alias="goalNotMetCount") + ] + evaluated_call_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="evaluatedCallCount"), pydantic.Field(alias="evaluatedCallCount") + ] + analyzed_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="analyzedCallCount"), + pydantic.Field( + alias="analyzedCallCount", + description="Accepted current-goal results, including ineligible; independent of issue processing.", + ), + ] + goal_met_rate: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="goalMetRate"), + pydantic.Field( + alias="goalMetRate", description="Goal-met / evaluatedCallCount; omitted when there are no binary outcomes." + ), + ] = None + goal_not_met_rate: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="goalNotMetRate"), pydantic.Field(alias="goalNotMetRate") + ] = None + date: dt.date = pydantic.Field() + """ + UTC calendar date; the first and last buckets are clipped to the requested window. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_goal_definition_dto.py b/src/vapi/types/call_health_dashboard_goal_definition_dto.py new file mode 100644 index 000000000..75c013c49 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_goal_definition_dto.py @@ -0,0 +1,36 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardGoalDefinitionDto(UncheckedBaseModel): + goal_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="goalId"), + pydantic.Field(alias="goalId", description="Explicit selected goal identity, stable across its revisions."), + ] + succeeds_when: typing_extensions.Annotated[ + str, + FieldMetadata(alias="succeedsWhen"), + pydantic.Field(alias="succeedsWhen", description="Current visible revision of the selected goal."), + ] + leave_out: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="leaveOut"), + pydantic.Field(alias="leaveOut", description="Current optional semantic exclusions."), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_goal_gaps_dto.py b/src/vapi/types/call_health_dashboard_goal_gaps_dto.py new file mode 100644 index 000000000..633d31a90 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_goal_gaps_dto.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardGoalGapsDto(UncheckedBaseModel): + pending: int + unavailable: int + skipped: int + error: int + excluded: int + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_goal_option_dto.py b/src/vapi/types/call_health_dashboard_goal_option_dto.py new file mode 100644 index 000000000..deafcc609 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_goal_option_dto.py @@ -0,0 +1,44 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardGoalOptionDto(UncheckedBaseModel): + goal_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="goalId"), + pydantic.Field(alias="goalId", description="Explicit selected goal identity, stable across its revisions."), + ] + succeeds_when: typing_extensions.Annotated[ + str, + FieldMetadata(alias="succeedsWhen"), + pydantic.Field(alias="succeedsWhen", description="Current visible revision of the selected goal."), + ] + leave_out: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="leaveOut"), + pydantic.Field(alias="leaveOut", description="Current optional semantic exclusions."), + ] = None + goal_version: typing_extensions.Annotated[ + str, + FieldMetadata(alias="goalVersion"), + pydantic.Field( + alias="goalVersion", + description="Current revision for display; clients select by stable goalId, never by this version.", + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_goal_summary_dto.py b/src/vapi/types/call_health_dashboard_goal_summary_dto.py new file mode 100644 index 000000000..792501af4 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_goal_summary_dto.py @@ -0,0 +1,74 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardGoalSummaryDto(UncheckedBaseModel): + registered_call_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="registeredCallCount"), pydantic.Field(alias="registeredCallCount") + ] + eligible_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="eligibleCallCount"), + pydantic.Field( + alias="eligibleCallCount", + description="Calls with an accepted semantic eligibility decision and binary goal outcome.", + ), + ] + ineligible_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="ineligibleCallCount"), + pydantic.Field( + alias="ineligibleCallCount", description="Accepted semantic exclusions; absent from the goal denominator." + ), + ] + unassessed_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="unassessedCallCount"), + pydantic.Field( + alias="unassessedCallCount", + description="No accepted eligibility decision, including technical or privacy exclusions.", + ), + ] + goal_met_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="goalMetCount"), pydantic.Field(alias="goalMetCount") + ] + goal_not_met_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="goalNotMetCount"), pydantic.Field(alias="goalNotMetCount") + ] + evaluated_call_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="evaluatedCallCount"), pydantic.Field(alias="evaluatedCallCount") + ] + analyzed_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="analyzedCallCount"), + pydantic.Field( + alias="analyzedCallCount", + description="Accepted current-goal results, including ineligible; independent of issue processing.", + ), + ] + goal_met_rate: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="goalMetRate"), + pydantic.Field( + alias="goalMetRate", description="Goal-met / evaluatedCallCount; omitted when there are no binary outcomes." + ), + ] = None + goal_not_met_rate: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="goalNotMetRate"), pydantic.Field(alias="goalNotMetRate") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_intake_coverage_dto.py b/src/vapi/types/call_health_dashboard_intake_coverage_dto.py new file mode 100644 index 000000000..49e752549 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_intake_coverage_dto.py @@ -0,0 +1,35 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_intake_coverage_dto_delivery_mode import CallHealthDashboardIntakeCoverageDtoDeliveryMode +from .call_health_dashboard_intake_coverage_dto_end_to_end_coverage import ( + CallHealthDashboardIntakeCoverageDtoEndToEndCoverage, +) + + +class CallHealthDashboardIntakeCoverageDto(UncheckedBaseModel): + delivery_mode: typing_extensions.Annotated[ + CallHealthDashboardIntakeCoverageDtoDeliveryMode, + FieldMetadata(alias="deliveryMode"), + pydantic.Field(alias="deliveryMode"), + ] + end_to_end_coverage: typing_extensions.Annotated[ + CallHealthDashboardIntakeCoverageDtoEndToEndCoverage, + FieldMetadata(alias="endToEndCoverage"), + pydantic.Field(alias="endToEndCoverage"), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_intake_coverage_dto_delivery_mode.py b/src/vapi/types/call_health_dashboard_intake_coverage_dto_delivery_mode.py new file mode 100644 index 000000000..4acef2a93 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_intake_coverage_dto_delivery_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardIntakeCoverageDtoDeliveryMode = typing.Union[typing.Literal["bestEffort"], typing.Any] diff --git a/src/vapi/types/call_health_dashboard_intake_coverage_dto_end_to_end_coverage.py b/src/vapi/types/call_health_dashboard_intake_coverage_dto_end_to_end_coverage.py new file mode 100644 index 000000000..cf9bf3ba8 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_intake_coverage_dto_end_to_end_coverage.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardIntakeCoverageDtoEndToEndCoverage = typing.Union[typing.Literal["unknown"], typing.Any] diff --git a/src/vapi/types/call_health_dashboard_issue_activity_dto.py b/src/vapi/types/call_health_dashboard_issue_activity_dto.py new file mode 100644 index 000000000..402f80940 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_activity_dto.py @@ -0,0 +1,57 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_issue_activity_dto_action import CallHealthDashboardIssueActivityDtoAction + + +class CallHealthDashboardIssueActivityDto(UncheckedBaseModel): + row_version: typing_extensions.Annotated[ + int, + FieldMetadata(alias="rowVersion"), + pydantic.Field( + alias="rowVersion", + description="Existing issue version after this transition; also the per-issue activity identity.", + ), + ] + action: CallHealthDashboardIssueActivityDtoAction = pydantic.Field() + """ + User resolve, dismiss or restore, or the system reopen written when a new match reopens a resolved issue. + """ + + actor_user_id: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="actorUserId"), + pydantic.Field( + alias="actorUserId", + description="Omitted for private-key actors and system entries; names/emails are not copied.", + ), + ] = None + comment: typing.Optional[str] = pydantic.Field(default=None) + """ + Optional team-visible comment; omitted after privacy scrubbing. + """ + + created_at: typing_extensions.Annotated[ + dt.datetime, + FieldMetadata(alias="createdAt"), + pydantic.Field( + alias="createdAt", + description="Database action time; ordering uses rowVersion rather than rounded timestamps.", + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_activity_dto_action.py b/src/vapi/types/call_health_dashboard_issue_activity_dto_action.py new file mode 100644 index 000000000..6fb01c745 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_activity_dto_action.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardIssueActivityDtoAction = typing.Union[ + typing.Literal["resolve", "dismiss", "restore", "reopen"], typing.Any +] diff --git a/src/vapi/types/call_health_dashboard_issue_activity_list_response_dto.py b/src/vapi/types/call_health_dashboard_issue_activity_list_response_dto.py new file mode 100644 index 000000000..3292be901 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_activity_list_response_dto.py @@ -0,0 +1,35 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_issue_activity_dto import CallHealthDashboardIssueActivityDto + + +class CallHealthDashboardIssueActivityListResponseDto(UncheckedBaseModel): + results: typing.List[CallHealthDashboardIssueActivityDto] = pydantic.Field() + """ + Newest issue versions first; this is shared team activity, not per-user feedback. + """ + + next_cursor: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="nextCursor"), + pydantic.Field( + alias="nextCursor", + description="Signed continuation bound to the authenticated organization, issue and activity contract.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_coverage_dto.py b/src/vapi/types/call_health_dashboard_issue_coverage_dto.py new file mode 100644 index 000000000..7fa6a538f --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_coverage_dto.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_issue_coverage_dto_state import CallHealthDashboardIssueCoverageDtoState + + +class CallHealthDashboardIssueCoverageDto(UncheckedBaseModel): + state: CallHealthDashboardIssueCoverageDtoState + as_of: typing_extensions.Annotated[dt.datetime, FieldMetadata(alias="asOf"), pydantic.Field(alias="asOf")] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_coverage_dto_state.py b/src/vapi/types/call_health_dashboard_issue_coverage_dto_state.py new file mode 100644 index 000000000..2ae9b55a9 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_coverage_dto_state.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardIssueCoverageDtoState = typing.Union[ + typing.Literal["complete", "partial", "sweeping", "blocked"], typing.Any +] diff --git a/src/vapi/types/call_health_dashboard_issue_daily_dto.py b/src/vapi/types/call_health_dashboard_issue_daily_dto.py new file mode 100644 index 000000000..1ccddd726 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_daily_dto.py @@ -0,0 +1,50 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardIssueDailyDto(UncheckedBaseModel): + date: dt.date = pydantic.Field() + """ + UTC calendar date, with boundary buckets clipped to the requested window. + """ + + affected_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="affectedCallCount"), + pydantic.Field( + alias="affectedCallCount", description="Distinct visible calls matching this issue in the bucket." + ), + ] + analyzed_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="analyzedCallCount"), + pydantic.Field( + alias="analyzedCallCount", + description="All accepted current-goal outcomes for the issue's assistant in the bucket.", + ), + ] + affected_call_rate: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="affectedCallRate"), + pydantic.Field( + alias="affectedCallRate", + description="affectedCallCount / analyzedCallCount; omitted for a zero denominator.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_definition_dto.py b/src/vapi/types/call_health_dashboard_issue_definition_dto.py new file mode 100644 index 000000000..4c2f86a86 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_definition_dto.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardIssueDefinitionDto(UncheckedBaseModel): + applicability: typing.Optional[str] = None + problem: typing.Optional[str] = None + created_taxonomy_version: typing_extensions.Annotated[ + typing.Optional[int], + FieldMetadata(alias="createdTaxonomyVersion"), + pydantic.Field(alias="createdTaxonomyVersion"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_detail_response_dto.py b/src/vapi/types/call_health_dashboard_issue_detail_response_dto.py new file mode 100644 index 000000000..2175c6c01 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_detail_response_dto.py @@ -0,0 +1,31 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_coverage_dto import CallHealthDashboardCoverageDto +from .call_health_dashboard_issue_definition_dto import CallHealthDashboardIssueDefinitionDto +from .call_health_dashboard_issue_summary_dto import CallHealthDashboardIssueSummaryDto +from .call_health_dashboard_series_page_dto import CallHealthDashboardSeriesPageDto + + +class CallHealthDashboardIssueDetailResponseDto(UncheckedBaseModel): + issue: CallHealthDashboardIssueSummaryDto + series_page: typing_extensions.Annotated[ + CallHealthDashboardSeriesPageDto, FieldMetadata(alias="seriesPage"), pydantic.Field(alias="seriesPage") + ] + definition: CallHealthDashboardIssueDefinitionDto + coverage: CallHealthDashboardCoverageDto + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_list_response_dto.py b/src/vapi/types/call_health_dashboard_issue_list_response_dto.py new file mode 100644 index 000000000..159d76b03 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_list_response_dto.py @@ -0,0 +1,36 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_coverage_dto import CallHealthDashboardCoverageDto +from .call_health_dashboard_facets_dto import CallHealthDashboardFacetsDto +from .call_health_dashboard_issue_summary_dto import CallHealthDashboardIssueSummaryDto +from .call_health_dashboard_series_page_dto import CallHealthDashboardSeriesPageDto + + +class CallHealthDashboardIssueListResponseDto(UncheckedBaseModel): + results: typing.List[CallHealthDashboardIssueSummaryDto] + series_page: typing_extensions.Annotated[ + CallHealthDashboardSeriesPageDto, + FieldMetadata(alias="seriesPage"), + pydantic.Field(alias="seriesPage", description="Every row's dailySeries represents this same date page."), + ] + facets: CallHealthDashboardFacetsDto + next_cursor: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="nextCursor"), pydantic.Field(alias="nextCursor") + ] = None + coverage: CallHealthDashboardCoverageDto + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_reference_dto.py b/src/vapi/types/call_health_dashboard_issue_reference_dto.py new file mode 100644 index 000000000..fc67d635e --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_reference_dto.py @@ -0,0 +1,26 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_issue_reference_dto_status import CallHealthDashboardIssueReferenceDtoStatus + + +class CallHealthDashboardIssueReferenceDto(UncheckedBaseModel): + id: str + name: str + status: CallHealthDashboardIssueReferenceDtoStatus + row_version: typing_extensions.Annotated[int, FieldMetadata(alias="rowVersion"), pydantic.Field(alias="rowVersion")] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_reference_dto_status.py b/src/vapi/types/call_health_dashboard_issue_reference_dto_status.py new file mode 100644 index 000000000..4015f0c79 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_reference_dto_status.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardIssueReferenceDtoStatus = typing.Union[typing.Literal["active", "resolved", "dismissed"], typing.Any] diff --git a/src/vapi/types/call_health_dashboard_issue_summary_dto.py b/src/vapi/types/call_health_dashboard_issue_summary_dto.py new file mode 100644 index 000000000..fbc867667 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_summary_dto.py @@ -0,0 +1,70 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_assistant_reference_dto import CallHealthDashboardAssistantReferenceDto +from .call_health_dashboard_issue_coverage_dto import CallHealthDashboardIssueCoverageDto +from .call_health_dashboard_issue_daily_dto import CallHealthDashboardIssueDailyDto +from .call_health_dashboard_issue_summary_dto_status import CallHealthDashboardIssueSummaryDtoStatus + + +class CallHealthDashboardIssueSummaryDto(UncheckedBaseModel): + id: str + name: str + status: CallHealthDashboardIssueSummaryDtoStatus + row_version: typing_extensions.Annotated[int, FieldMetadata(alias="rowVersion"), pydantic.Field(alias="rowVersion")] + goal_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="goalId"), + pydantic.Field( + alias="goalId", description="Owning goal identity; issue-ID routes derive this selection from the issue." + ), + ] + summary: str + assistant: CallHealthDashboardAssistantReferenceDto + affected_call_count: typing_extensions.Annotated[ + int, FieldMetadata(alias="affectedCallCount"), pydantic.Field(alias="affectedCallCount") + ] + analyzed_call_count: typing_extensions.Annotated[ + int, + FieldMetadata(alias="analyzedCallCount"), + pydantic.Field( + alias="analyzedCallCount", + description="Same assistant/current-goal/window denominator used by the goal reads.", + ), + ] + affected_call_rate: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="affectedCallRate"), + pydantic.Field( + alias="affectedCallRate", + description="Distinct calls matching this issue / analyzedCallCount; absent at zero.", + ), + ] = None + daily_series: typing_extensions.Annotated[ + typing.List[CallHealthDashboardIssueDailyDto], + FieldMetadata(alias="dailySeries"), + pydantic.Field( + alias="dailySeries", + description="One ascending contiguous page of UTC buckets; memberships across issues are not unique calls.", + ), + ] + last_seen_at: typing_extensions.Annotated[ + typing.Optional[dt.datetime], FieldMetadata(alias="lastSeenAt"), pydantic.Field(alias="lastSeenAt") + ] = None + coverage: CallHealthDashboardIssueCoverageDto + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_issue_summary_dto_status.py b/src/vapi/types/call_health_dashboard_issue_summary_dto_status.py new file mode 100644 index 000000000..50345fc19 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_issue_summary_dto_status.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardIssueSummaryDtoStatus = typing.Union[typing.Literal["active", "resolved", "dismissed"], typing.Any] diff --git a/src/vapi/types/call_health_dashboard_series_page_dto.py b/src/vapi/types/call_health_dashboard_series_page_dto.py new file mode 100644 index 000000000..fc2b624b1 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_series_page_dto.py @@ -0,0 +1,41 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_window_dto import CallHealthDashboardWindowDto + + +class CallHealthDashboardSeriesPageDto(UncheckedBaseModel): + window: CallHealthDashboardWindowDto = pydantic.Field() + """ + Full resolved completion window used by every total, rate and coverage count. + """ + + page_window: typing_extensions.Annotated[ + CallHealthDashboardWindowDto, + FieldMetadata(alias="pageWindow"), + pydantic.Field( + alias="pageWindow", description="Clipped completion window represented by this page's daily buckets." + ), + ] + next_cursor: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="nextCursor"), + pydantic.Field( + alias="nextCursor", description="Continue chart dates only; independent of the issue-row nextCursor." + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_sweep_coverage_dto.py b/src/vapi/types/call_health_dashboard_sweep_coverage_dto.py new file mode 100644 index 000000000..1984a5313 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_sweep_coverage_dto.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_sweep_coverage_dto_state import CallHealthDashboardSweepCoverageDtoState + + +class CallHealthDashboardSweepCoverageDto(UncheckedBaseModel): + state: CallHealthDashboardSweepCoverageDtoState + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_sweep_coverage_dto_state.py b/src/vapi/types/call_health_dashboard_sweep_coverage_dto_state.py new file mode 100644 index 000000000..e2307bf4a --- /dev/null +++ b/src/vapi/types/call_health_dashboard_sweep_coverage_dto_state.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardSweepCoverageDtoState = typing.Union[ + typing.Literal["idle", "enumerating", "processing", "deduplicating", "blocked"], typing.Any +] diff --git a/src/vapi/types/call_health_dashboard_triage_request_dto.py b/src/vapi/types/call_health_dashboard_triage_request_dto.py new file mode 100644 index 000000000..453dd410e --- /dev/null +++ b/src/vapi/types/call_health_dashboard_triage_request_dto.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .call_health_dashboard_triage_request_dto_action import CallHealthDashboardTriageRequestDtoAction + + +class CallHealthDashboardTriageRequestDto(UncheckedBaseModel): + action: CallHealthDashboardTriageRequestDtoAction + expected_row_version: typing_extensions.Annotated[ + int, FieldMetadata(alias="expectedRowVersion"), pydantic.Field(alias="expectedRowVersion") + ] + comment: typing.Optional[str] = pydantic.Field(default=None) + """ + Trimmed; at most 2,048 UTF-16 code units. Empty comments are omitted from activity. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_health_dashboard_triage_request_dto_action.py b/src/vapi/types/call_health_dashboard_triage_request_dto_action.py new file mode 100644 index 000000000..8c47a4049 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_triage_request_dto_action.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CallHealthDashboardTriageRequestDtoAction = typing.Union[typing.Literal["resolve", "dismiss", "restore"], typing.Any] diff --git a/src/vapi/types/call_health_dashboard_window_dto.py b/src/vapi/types/call_health_dashboard_window_dto.py new file mode 100644 index 000000000..2013163c4 --- /dev/null +++ b/src/vapi/types/call_health_dashboard_window_dto.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CallHealthDashboardWindowDto(UncheckedBaseModel): + call_time_gte: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="callTimeGte"), pydantic.Field(alias="callTimeGte") + ] + call_time_lt: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="callTimeLt"), pydantic.Field(alias="callTimeLt") + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/call_hook_assistant_speech_interrupted.py b/src/vapi/types/call_hook_assistant_speech_interrupted.py index 053cf30e0..9eba35ac1 100644 --- a/src/vapi/types/call_hook_assistant_speech_interrupted.py +++ b/src/vapi/types/call_hook_assistant_speech_interrupted.py @@ -58,9 +58,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -95,6 +92,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -128,9 +128,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -165,6 +162,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_assistant_speech_interrupted_do_item.py b/src/vapi/types/call_hook_assistant_speech_interrupted_do_item.py index 24838fca2..2227096d0 100644 --- a/src/vapi/types/call_hook_assistant_speech_interrupted_do_item.py +++ b/src/vapi/types/call_hook_assistant_speech_interrupted_do_item.py @@ -96,9 +96,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -132,6 +129,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -166,9 +166,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -202,6 +199,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_call_ending.py b/src/vapi/types/call_hook_call_ending.py index 780783d22..08d8b7cb1 100644 --- a/src/vapi/types/call_hook_call_ending.py +++ b/src/vapi/types/call_hook_call_ending.py @@ -64,9 +64,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -101,6 +98,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -134,9 +134,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -171,6 +168,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_call_ending_do_item.py b/src/vapi/types/call_hook_call_ending_do_item.py index 3fdad2784..ef6738c74 100644 --- a/src/vapi/types/call_hook_call_ending_do_item.py +++ b/src/vapi/types/call_hook_call_ending_do_item.py @@ -74,9 +74,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -110,6 +107,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -144,9 +144,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -180,6 +177,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_customer_speech_interrupted.py b/src/vapi/types/call_hook_customer_speech_interrupted.py index 14db599ad..b7419bf9e 100644 --- a/src/vapi/types/call_hook_customer_speech_interrupted.py +++ b/src/vapi/types/call_hook_customer_speech_interrupted.py @@ -58,9 +58,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -95,6 +92,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -128,9 +128,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -165,6 +162,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_customer_speech_interrupted_do_item.py b/src/vapi/types/call_hook_customer_speech_interrupted_do_item.py index 0158d58bf..f96dc29c6 100644 --- a/src/vapi/types/call_hook_customer_speech_interrupted_do_item.py +++ b/src/vapi/types/call_hook_customer_speech_interrupted_do_item.py @@ -96,9 +96,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -132,6 +129,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -166,9 +166,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -202,6 +199,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_customer_speech_timeout.py b/src/vapi/types/call_hook_customer_speech_timeout.py index b8ffaf622..f9fe1cf74 100644 --- a/src/vapi/types/call_hook_customer_speech_timeout.py +++ b/src/vapi/types/call_hook_customer_speech_timeout.py @@ -71,9 +71,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -108,6 +105,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -141,9 +141,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -178,6 +175,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_customer_speech_timeout_do_item.py b/src/vapi/types/call_hook_customer_speech_timeout_do_item.py index 6fd0070e8..2324d98e7 100644 --- a/src/vapi/types/call_hook_customer_speech_timeout_do_item.py +++ b/src/vapi/types/call_hook_customer_speech_timeout_do_item.py @@ -96,9 +96,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -132,6 +129,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -166,9 +166,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -202,6 +199,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_model_response_timeout.py b/src/vapi/types/call_hook_model_response_timeout.py index be61ff8dd..334dd282d 100644 --- a/src/vapi/types/call_hook_model_response_timeout.py +++ b/src/vapi/types/call_hook_model_response_timeout.py @@ -58,9 +58,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -95,6 +92,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -128,9 +128,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -165,6 +162,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_model_response_timeout_do_item.py b/src/vapi/types/call_hook_model_response_timeout_do_item.py index 895c2ec85..e387c3961 100644 --- a/src/vapi/types/call_hook_model_response_timeout_do_item.py +++ b/src/vapi/types/call_hook_model_response_timeout_do_item.py @@ -96,9 +96,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -132,6 +129,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -166,9 +166,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -202,6 +199,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/call_hook_transcriber_endpointed_speech_low_confidence_do_item.py b/src/vapi/types/call_hook_transcriber_endpointed_speech_low_confidence_do_item.py index 619a25f0f..25e86b7e8 100644 --- a/src/vapi/types/call_hook_transcriber_endpointed_speech_low_confidence_do_item.py +++ b/src/vapi/types/call_hook_transcriber_endpointed_speech_low_confidence_do_item.py @@ -97,9 +97,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -133,6 +130,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -167,9 +167,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -203,6 +200,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/campaign.py b/src/vapi/types/campaign.py index 81e6bdce8..d616667a2 100644 --- a/src/vapi/types/campaign.py +++ b/src/vapi/types/campaign.py @@ -223,7 +223,6 @@ class Config: from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 from .cerebras_model import CerebrasModel # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -243,6 +242,7 @@ class Config: from .together_ai_model import TogetherAiModel # noqa: E402, I001 from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 from .xai_model import XaiModel # noqa: E402, I001 @@ -259,8 +259,6 @@ class Config: from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 @@ -276,6 +274,8 @@ class Config: from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 @@ -307,9 +307,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -344,6 +341,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/campaign_contact.py b/src/vapi/types/campaign_contact.py index 8400a275d..5c24175e5 100644 --- a/src/vapi/types/campaign_contact.py +++ b/src/vapi/types/campaign_contact.py @@ -72,9 +72,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -109,6 +106,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -143,9 +143,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -180,6 +177,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/campaign_summary.py b/src/vapi/types/campaign_summary.py index 2ce9b8bd9..bc342021b 100644 --- a/src/vapi/types/campaign_summary.py +++ b/src/vapi/types/campaign_summary.py @@ -190,9 +190,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -227,6 +224,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -261,9 +261,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -298,6 +295,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/cartesia_voice_language.py b/src/vapi/types/cartesia_voice_language.py index a72c35b40..3d83ab4bc 100644 --- a/src/vapi/types/cartesia_voice_language.py +++ b/src/vapi/types/cartesia_voice_language.py @@ -31,6 +31,7 @@ "ms", "nl", "no", + "or", "pa", "pl", "pt", @@ -44,6 +45,7 @@ "tl", "tr", "uk", + "ur", "vi", "zh", ], diff --git a/src/vapi/types/cartesia_voice_model.py b/src/vapi/types/cartesia_voice_model.py index cffdb756b..f21bf2c9c 100644 --- a/src/vapi/types/cartesia_voice_model.py +++ b/src/vapi/types/cartesia_voice_model.py @@ -6,6 +6,8 @@ typing.Literal[ "sonic-3.5", "sonic-3.5-2026-05-04", + "sonic-3.6", + "sonic-3.6-2026-08-27", "sonic-3", "sonic-3-2026-01-12", "sonic-3-2025-10-27", diff --git a/src/vapi/types/cerebras_model.py b/src/vapi/types/cerebras_model.py index 4b5503adc..0578be35d 100644 --- a/src/vapi/types/cerebras_model.py +++ b/src/vapi/types/cerebras_model.py @@ -68,7 +68,7 @@ class CerebrasModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -121,9 +121,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -158,6 +155,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -191,9 +191,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -228,6 +225,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/cerebras_model_tools_item.py b/src/vapi/types/cerebras_model_tools_item.py index 7f5e13e0b..5849bb118 100644 --- a/src/vapi/types/cerebras_model_tools_item.py +++ b/src/vapi/types/cerebras_model_tools_item.py @@ -615,9 +615,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/chat.py b/src/vapi/types/chat.py index 52c07108c..fbdb6b557 100644 --- a/src/vapi/types/chat.py +++ b/src/vapi/types/chat.py @@ -25,7 +25,7 @@ class Chat(UncheckedBaseModel): description="This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. """ @@ -165,9 +165,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -202,6 +199,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -236,9 +236,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -273,6 +270,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/chat_costs_item.py b/src/vapi/types/chat_costs_item.py index 7eda774a2..f0dad030b 100644 --- a/src/vapi/types/chat_costs_item.py +++ b/src/vapi/types/chat_costs_item.py @@ -9,6 +9,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2 from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from .model_cost_service_tier_breakdown import ModelCostServiceTierBreakdown class ChatCostsItem_Model(UncheckedBaseModel): @@ -30,6 +31,11 @@ class ChatCostsItem_Model(UncheckedBaseModel): reasoning_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") ] = None + service_tier_breakdown: typing_extensions.Annotated[ + typing.Optional[typing.List[ModelCostServiceTierBreakdown]], + FieldMetadata(alias="serviceTierBreakdown"), + pydantic.Field(alias="serviceTierBreakdown"), + ] = None cost: float if IS_PYDANTIC_V2: diff --git a/src/vapi/types/client_message_assistant_speech.py b/src/vapi/types/client_message_assistant_speech.py index 9ea6dc87d..9b5891964 100644 --- a/src/vapi/types/client_message_assistant_speech.py +++ b/src/vapi/types/client_message_assistant_speech.py @@ -14,6 +14,7 @@ from .client_message_assistant_speech_source import ClientMessageAssistantSpeechSource from .client_message_assistant_speech_timing import ClientMessageAssistantSpeechTiming from .client_message_assistant_speech_type import ClientMessageAssistantSpeechType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -90,7 +91,7 @@ class ClientMessageAssistantSpeech(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -105,143 +106,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageAssistantSpeech, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageAssistantSpeech) diff --git a/src/vapi/types/client_message_assistant_started.py b/src/vapi/types/client_message_assistant_started.py index 3699aef5f..f939abac3 100644 --- a/src/vapi/types/client_message_assistant_started.py +++ b/src/vapi/types/client_message_assistant_started.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_assistant_started_phone_number import ClientMessageAssistantStartedPhoneNumber from .client_message_assistant_started_type import ClientMessageAssistantStartedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,13 +52,13 @@ class ClientMessageAssistantStarted(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ new_assistant: typing_extensions.Annotated[ - "CreateAssistantDto", + CreateAssistantDto, FieldMetadata(alias="newAssistant"), pydantic.Field(alias="newAssistant", description="This is the assistant that was updated."), ] @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageAssistantStarted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageAssistantStarted) diff --git a/src/vapi/types/client_message_call_delete_failed.py b/src/vapi/types/client_message_call_delete_failed.py index a2f3c7e9d..ff4e0dcb0 100644 --- a/src/vapi/types/client_message_call_delete_failed.py +++ b/src/vapi/types/client_message_call_delete_failed.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_call_delete_failed_phone_number import ClientMessageCallDeleteFailedPhoneNumber from .client_message_call_delete_failed_type import ClientMessageCallDeleteFailedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageCallDeleteFailed(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -66,143 +67,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageCallDeleteFailed, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageCallDeleteFailed) diff --git a/src/vapi/types/client_message_call_deleted.py b/src/vapi/types/client_message_call_deleted.py index 8dba84e67..366d3f7e2 100644 --- a/src/vapi/types/client_message_call_deleted.py +++ b/src/vapi/types/client_message_call_deleted.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_call_deleted_phone_number import ClientMessageCallDeletedPhoneNumber from .client_message_call_deleted_type import ClientMessageCallDeletedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageCallDeleted(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -66,143 +67,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageCallDeleted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageCallDeleted) diff --git a/src/vapi/types/client_message_chat_created.py b/src/vapi/types/client_message_chat_created.py index ac1cefe83..90288b623 100644 --- a/src/vapi/types/client_message_chat_created.py +++ b/src/vapi/types/client_message_chat_created.py @@ -13,6 +13,7 @@ from .chat import Chat from .client_message_chat_created_phone_number import ClientMessageChatCreatedPhoneNumber from .client_message_chat_created_type import ClientMessageChatCreatedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -52,7 +53,7 @@ class ClientMessageChatCreated(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageChatCreated, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageChatCreated) diff --git a/src/vapi/types/client_message_chat_deleted.py b/src/vapi/types/client_message_chat_deleted.py index d5c6ee740..ff77661b8 100644 --- a/src/vapi/types/client_message_chat_deleted.py +++ b/src/vapi/types/client_message_chat_deleted.py @@ -13,6 +13,7 @@ from .chat import Chat from .client_message_chat_deleted_phone_number import ClientMessageChatDeletedPhoneNumber from .client_message_chat_deleted_type import ClientMessageChatDeletedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -52,7 +53,7 @@ class ClientMessageChatDeleted(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageChatDeleted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageChatDeleted) diff --git a/src/vapi/types/client_message_conversation_update.py b/src/vapi/types/client_message_conversation_update.py index 61959036f..ee8246a7c 100644 --- a/src/vapi/types/client_message_conversation_update.py +++ b/src/vapi/types/client_message_conversation_update.py @@ -13,6 +13,7 @@ from .client_message_conversation_update_messages_item import ClientMessageConversationUpdateMessagesItem from .client_message_conversation_update_phone_number import ClientMessageConversationUpdatePhoneNumber from .client_message_conversation_update_type import ClientMessageConversationUpdateType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .open_ai_message import OpenAiMessage @@ -66,7 +67,7 @@ class ClientMessageConversationUpdate(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -81,143 +82,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageConversationUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageConversationUpdate) diff --git a/src/vapi/types/client_message_hang.py b/src/vapi/types/client_message_hang.py index 32122ee4a..541bc658c 100644 --- a/src/vapi/types/client_message_hang.py +++ b/src/vapi/types/client_message_hang.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_hang_phone_number import ClientMessageHangPhoneNumber from .client_message_hang_type import ClientMessageHangType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -55,7 +56,7 @@ class ClientMessageHang(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -70,143 +71,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageHang, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageHang) diff --git a/src/vapi/types/client_message_language_change_detected.py b/src/vapi/types/client_message_language_change_detected.py index 4d7658093..80ed7d872 100644 --- a/src/vapi/types/client_message_language_change_detected.py +++ b/src/vapi/types/client_message_language_change_detected.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_language_change_detected_phone_number import ClientMessageLanguageChangeDetectedPhoneNumber from .client_message_language_change_detected_type import ClientMessageLanguageChangeDetectedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageLanguageChangeDetected(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -71,143 +72,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageLanguageChangeDetected, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageLanguageChangeDetected) diff --git a/src/vapi/types/client_message_metadata.py b/src/vapi/types/client_message_metadata.py index f603b355f..a2a6c2ad3 100644 --- a/src/vapi/types/client_message_metadata.py +++ b/src/vapi/types/client_message_metadata.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_metadata_phone_number import ClientMessageMetadataPhoneNumber from .client_message_metadata_type import ClientMessageMetadataType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageMetadata(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -71,143 +72,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageMetadata, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageMetadata) diff --git a/src/vapi/types/client_message_model_output.py b/src/vapi/types/client_message_model_output.py index 0823af488..b3046e49a 100644 --- a/src/vapi/types/client_message_model_output.py +++ b/src/vapi/types/client_message_model_output.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_model_output_phone_number import ClientMessageModelOutputPhoneNumber from .client_message_model_output_type import ClientMessageModelOutputType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -59,7 +60,7 @@ class ClientMessageModelOutput(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -79,143 +80,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageModelOutput, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageModelOutput) diff --git a/src/vapi/types/client_message_session_created.py b/src/vapi/types/client_message_session_created.py index c0ddafb17..977559ef7 100644 --- a/src/vapi/types/client_message_session_created.py +++ b/src/vapi/types/client_message_session_created.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_session_created_phone_number import ClientMessageSessionCreatedPhoneNumber from .client_message_session_created_type import ClientMessageSessionCreatedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .session import Session @@ -52,7 +53,7 @@ class ClientMessageSessionCreated(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageSessionCreated, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageSessionCreated) diff --git a/src/vapi/types/client_message_session_deleted.py b/src/vapi/types/client_message_session_deleted.py index 992981dea..c994b2e35 100644 --- a/src/vapi/types/client_message_session_deleted.py +++ b/src/vapi/types/client_message_session_deleted.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_session_deleted_phone_number import ClientMessageSessionDeletedPhoneNumber from .client_message_session_deleted_type import ClientMessageSessionDeletedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .session import Session @@ -52,7 +53,7 @@ class ClientMessageSessionDeleted(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageSessionDeleted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageSessionDeleted) diff --git a/src/vapi/types/client_message_session_updated.py b/src/vapi/types/client_message_session_updated.py index d67cc6926..efb534b27 100644 --- a/src/vapi/types/client_message_session_updated.py +++ b/src/vapi/types/client_message_session_updated.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_session_updated_phone_number import ClientMessageSessionUpdatedPhoneNumber from .client_message_session_updated_type import ClientMessageSessionUpdatedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .session import Session @@ -52,7 +53,7 @@ class ClientMessageSessionUpdated(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageSessionUpdated, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageSessionUpdated) diff --git a/src/vapi/types/client_message_speech_update.py b/src/vapi/types/client_message_speech_update.py index aba02f0ed..97cdddbc1 100644 --- a/src/vapi/types/client_message_speech_update.py +++ b/src/vapi/types/client_message_speech_update.py @@ -14,6 +14,7 @@ from .client_message_speech_update_role import ClientMessageSpeechUpdateRole from .client_message_speech_update_status import ClientMessageSpeechUpdateStatus from .client_message_speech_update_type import ClientMessageSpeechUpdateType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -68,7 +69,7 @@ class ClientMessageSpeechUpdate(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -83,143 +84,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageSpeechUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageSpeechUpdate) diff --git a/src/vapi/types/client_message_tool_calls.py b/src/vapi/types/client_message_tool_calls.py index e1ae8390e..ca192c41e 100644 --- a/src/vapi/types/client_message_tool_calls.py +++ b/src/vapi/types/client_message_tool_calls.py @@ -13,6 +13,7 @@ from .client_message_tool_calls_phone_number import ClientMessageToolCallsPhoneNumber from .client_message_tool_calls_tool_with_tool_call_list_item import ClientMessageToolCallsToolWithToolCallListItem from .client_message_tool_calls_type import ClientMessageToolCallsType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .tool_call import ToolCall @@ -61,7 +62,7 @@ class ClientMessageToolCalls(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -84,143 +85,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageToolCalls, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageToolCalls) diff --git a/src/vapi/types/client_message_tool_calls_result.py b/src/vapi/types/client_message_tool_calls_result.py index f39ed2f33..88a6c2536 100644 --- a/src/vapi/types/client_message_tool_calls_result.py +++ b/src/vapi/types/client_message_tool_calls_result.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_tool_calls_result_phone_number import ClientMessageToolCallsResultPhoneNumber from .client_message_tool_calls_result_type import ClientMessageToolCallsResultType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageToolCallsResult(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -72,143 +73,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageToolCallsResult, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageToolCallsResult) diff --git a/src/vapi/types/client_message_transcript.py b/src/vapi/types/client_message_transcript.py index 214feeea1..fffc7380f 100644 --- a/src/vapi/types/client_message_transcript.py +++ b/src/vapi/types/client_message_transcript.py @@ -15,6 +15,7 @@ from .client_message_transcript_role import ClientMessageTranscriptRole from .client_message_transcript_transcript_type import ClientMessageTranscriptTranscriptType from .client_message_transcript_type import ClientMessageTranscriptType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -54,7 +55,7 @@ class ClientMessageTranscript(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -144,143 +145,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageTranscript, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageTranscript) diff --git a/src/vapi/types/client_message_transfer_update.py b/src/vapi/types/client_message_transfer_update.py index 69edcb877..0987021e0 100644 --- a/src/vapi/types/client_message_transfer_update.py +++ b/src/vapi/types/client_message_transfer_update.py @@ -13,6 +13,7 @@ from .client_message_transfer_update_destination import ClientMessageTransferUpdateDestination from .client_message_transfer_update_phone_number import ClientMessageTransferUpdatePhoneNumber from .client_message_transfer_update_type import ClientMessageTransferUpdateType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -57,13 +58,13 @@ class ClientMessageTransferUpdate(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ to_assistant: typing_extensions.Annotated[ - typing.Optional["CreateAssistantDto"], + typing.Optional[CreateAssistantDto], FieldMetadata(alias="toAssistant"), pydantic.Field( alias="toAssistant", @@ -71,7 +72,7 @@ class ClientMessageTransferUpdate(UncheckedBaseModel): ), ] = None from_assistant: typing_extensions.Annotated[ - typing.Optional["CreateAssistantDto"], + typing.Optional[CreateAssistantDto], FieldMetadata(alias="fromAssistant"), pydantic.Field( alias="fromAssistant", @@ -99,143 +100,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageTransferUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageTransferUpdate) diff --git a/src/vapi/types/client_message_user_interrupted.py b/src/vapi/types/client_message_user_interrupted.py index 58d4a9de3..0cb67795a 100644 --- a/src/vapi/types/client_message_user_interrupted.py +++ b/src/vapi/types/client_message_user_interrupted.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_user_interrupted_phone_number import ClientMessageUserInterruptedPhoneNumber from .client_message_user_interrupted_type import ClientMessageUserInterruptedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -59,7 +60,7 @@ class ClientMessageUserInterrupted(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -74,143 +75,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageUserInterrupted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageUserInterrupted) diff --git a/src/vapi/types/client_message_voice_input.py b/src/vapi/types/client_message_voice_input.py index 9e1ea5353..c6980bca8 100644 --- a/src/vapi/types/client_message_voice_input.py +++ b/src/vapi/types/client_message_voice_input.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_voice_input_phone_number import ClientMessageVoiceInputPhoneNumber from .client_message_voice_input_type import ClientMessageVoiceInputType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageVoiceInput(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -71,143 +72,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageVoiceInput, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageVoiceInput) diff --git a/src/vapi/types/client_message_workflow_node_started.py b/src/vapi/types/client_message_workflow_node_started.py index 7ed237b13..cb452e06b 100644 --- a/src/vapi/types/client_message_workflow_node_started.py +++ b/src/vapi/types/client_message_workflow_node_started.py @@ -12,6 +12,7 @@ from .call import Call from .client_message_workflow_node_started_phone_number import ClientMessageWorkflowNodeStartedPhoneNumber from .client_message_workflow_node_started_type import ClientMessageWorkflowNodeStartedType +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto @@ -51,7 +52,7 @@ class ClientMessageWorkflowNodeStarted(UncheckedBaseModel): This is the customer that the message is associated with. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -71,143 +72,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ClientMessageWorkflowNodeStarted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ClientMessageWorkflowNodeStarted) diff --git a/src/vapi/types/code_tool.py b/src/vapi/types/code_tool.py index f741d8335..96d037045 100644 --- a/src/vapi/types/code_tool.py +++ b/src/vapi/types/code_tool.py @@ -26,6 +26,14 @@ class CodeTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[CodeToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/computer_tool.py b/src/vapi/types/computer_tool.py index b5ce1b585..92487cae0 100644 --- a/src/vapi/types/computer_tool.py +++ b/src/vapi/types/computer_tool.py @@ -25,6 +25,14 @@ class ComputerTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[ComputerToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/conversation_node.py b/src/vapi/types/conversation_node.py index 94f487148..c4a6d7739 100644 --- a/src/vapi/types/conversation_node.py +++ b/src/vapi/types/conversation_node.py @@ -123,9 +123,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -160,6 +157,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -193,9 +193,6 @@ class Config: CerebrasModel=CerebrasModel, CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -230,6 +227,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/conversation_node_model.py b/src/vapi/types/conversation_node_model.py index 7e43a4004..446512f35 100644 --- a/src/vapi/types/conversation_node_model.py +++ b/src/vapi/types/conversation_node_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class ConversationNodeModel_Openai(UncheckedBaseModel): @@ -28,6 +29,11 @@ class ConversationNodeModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") diff --git a/src/vapi/types/conversation_node_tools_item.py b/src/vapi/types/conversation_node_tools_item.py index c61966408..61a577f89 100644 --- a/src/vapi/types/conversation_node_tools_item.py +++ b/src/vapi/types/conversation_node_tools_item.py @@ -615,9 +615,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/conversation_node_transcriber.py b/src/vapi/types/conversation_node_transcriber.py index 977a03aba..4c1169b79 100644 --- a/src/vapi/types/conversation_node_transcriber.py +++ b/src/vapi/types/conversation_node_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -236,6 +238,11 @@ class ConversationNodeTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -489,6 +496,8 @@ class ConversationNodeTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -611,6 +620,51 @@ class Config: extra = pydantic.Extra.allow +class ConversationNodeTranscriber_Reson8(UncheckedBaseModel): + """ + This is the transcriber for the node. + + This overrides `workflow.transcriber`. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class ConversationNodeTranscriber_Vapi(UncheckedBaseModel): """ This is the transcriber for the node. @@ -654,6 +708,7 @@ class Config: ConversationNodeTranscriber_Cartesia, ConversationNodeTranscriber_Soniox, ConversationNodeTranscriber_Xai, + ConversationNodeTranscriber_Reson8, ConversationNodeTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/conversation_node_voice.py b/src/vapi/types/conversation_node_voice.py index 44b6a0834..5d6eaa5ef 100644 --- a/src/vapi/types/conversation_node_voice.py +++ b/src/vapi/types/conversation_node_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -552,55 +550,6 @@ class Config: extra = pydantic.Extra.allow -class ConversationNodeVoice_Tavus(UncheckedBaseModel): - """ - This is the voice for the node. - - This overrides `workflow.voice`. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class ConversationNodeVoice_Vapi(UncheckedBaseModel): """ This is the voice for the node. @@ -841,7 +790,6 @@ class Config: ConversationNodeVoice_Wellsaid, ConversationNodeVoice_RimeAi, ConversationNodeVoice_SmallestAi, - ConversationNodeVoice_Tavus, ConversationNodeVoice_Vapi, ConversationNodeVoice_Sesame, ConversationNodeVoice_Inworld, diff --git a/src/vapi/types/create_assistant_draft_dto.py b/src/vapi/types/create_assistant_draft_dto.py index 3eed6aebd..2652aa439 100644 --- a/src/vapi/types/create_assistant_draft_dto.py +++ b/src/vapi/types/create_assistant_draft_dto.py @@ -106,7 +106,7 @@ class CreateAssistantDraftDto(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -163,7 +163,7 @@ class CreateAssistantDraftDto(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ diff --git a/src/vapi/types/create_assistant_draft_dto_background_sound_zero.py b/src/vapi/types/create_assistant_draft_dto_background_sound_zero.py index 404f80dfb..efde1024f 100644 --- a/src/vapi/types/create_assistant_draft_dto_background_sound_zero.py +++ b/src/vapi/types/create_assistant_draft_dto_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -CreateAssistantDraftDtoBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +CreateAssistantDraftDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/create_assistant_draft_dto_credentials_item.py b/src/vapi/types/create_assistant_draft_dto_credentials_item.py index f69c4f990..08fc4ed30 100644 --- a/src/vapi/types/create_assistant_draft_dto_credentials_item.py +++ b/src/vapi/types/create_assistant_draft_dto_credentials_item.py @@ -433,6 +433,9 @@ class CreateAssistantDraftDtoCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class CreateAssistantDraftDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class CreateAssistantDraftDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: CreateAssistantDraftDtoCredentialsItem_Mistral, CreateAssistantDraftDtoCredentialsItem_Speechmatics, CreateAssistantDraftDtoCredentialsItem_Soniox, + CreateAssistantDraftDtoCredentialsItem_Reson8, CreateAssistantDraftDtoCredentialsItem_GoogleCalendarOauth2Client, CreateAssistantDraftDtoCredentialsItem_GoogleCalendarOauth2Authorization, CreateAssistantDraftDtoCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/create_assistant_draft_dto_model.py b/src/vapi/types/create_assistant_draft_dto_model.py index 5d68d388d..bd5243389 100644 --- a/src/vapi/types/create_assistant_draft_dto_model.py +++ b/src/vapi/types/create_assistant_draft_dto_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class CreateAssistantDraftDtoModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class CreateAssistantDraftDtoModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,9 +881,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -906,6 +915,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -940,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -977,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1010,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1047,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1080,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1117,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1150,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1187,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1221,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1257,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1291,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1327,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1361,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1397,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1431,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1467,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1501,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1537,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1571,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1607,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1641,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1677,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1711,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1747,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1781,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1817,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1851,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1887,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1921,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1957,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1991,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2028,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2061,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2098,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/create_assistant_draft_dto_transcriber.py b/src/vapi/types/create_assistant_draft_dto_transcriber.py index 01c14766f..d0d16ffd6 100644 --- a/src/vapi/types/create_assistant_draft_dto_transcriber.py +++ b/src/vapi/types/create_assistant_draft_dto_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class CreateAssistantDraftDtoTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class CreateAssistantDraftDtoTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class CreateAssistantDraftDtoTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class CreateAssistantDraftDtoTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: CreateAssistantDraftDtoTranscriber_Cartesia, CreateAssistantDraftDtoTranscriber_Soniox, CreateAssistantDraftDtoTranscriber_Xai, + CreateAssistantDraftDtoTranscriber_Reson8, CreateAssistantDraftDtoTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/create_assistant_draft_dto_voice.py b/src/vapi/types/create_assistant_draft_dto_voice.py index 24656b131..985f1ab32 100644 --- a/src/vapi/types/create_assistant_draft_dto_voice.py +++ b/src/vapi/types/create_assistant_draft_dto_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class CreateAssistantDraftDtoVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class CreateAssistantDraftDtoVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: CreateAssistantDraftDtoVoice_Wellsaid, CreateAssistantDraftDtoVoice_RimeAi, CreateAssistantDraftDtoVoice_SmallestAi, - CreateAssistantDraftDtoVoice_Tavus, CreateAssistantDraftDtoVoice_Vapi, CreateAssistantDraftDtoVoice_Sesame, CreateAssistantDraftDtoVoice_Inworld, diff --git a/src/vapi/types/create_assistant_dto.py b/src/vapi/types/create_assistant_dto.py index 05a861c0b..f2c504219 100644 --- a/src/vapi/types/create_assistant_dto.py +++ b/src/vapi/types/create_assistant_dto.py @@ -17,6 +17,8 @@ from .create_assistant_dto_client_messages_item import CreateAssistantDtoClientMessagesItem from .create_assistant_dto_credentials_item import CreateAssistantDtoCredentialsItem from .create_assistant_dto_first_message_mode import CreateAssistantDtoFirstMessageMode +from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem +from .create_assistant_dto_model import CreateAssistantDtoModel from .create_assistant_dto_server_messages_item import CreateAssistantDtoServerMessagesItem from .create_assistant_dto_transcriber import CreateAssistantDtoTranscriber from .create_assistant_dto_voice import CreateAssistantDtoVoice @@ -40,7 +42,7 @@ class CreateAssistantDto(UncheckedBaseModel): These are the options for the assistant's transcriber. """ - model: typing.Optional["CreateAssistantDtoModel"] = pydantic.Field(default=None) + model: typing.Optional[CreateAssistantDtoModel] = pydantic.Field(default=None) """ These are the options for the assistant's LLM. """ @@ -111,7 +113,7 @@ class CreateAssistantDto(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -143,7 +145,7 @@ class CreateAssistantDto(UncheckedBaseModel): These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. """ - hooks: typing.Optional[typing.List["CreateAssistantDtoHooksItem"]] = pydantic.Field(default=None) + hooks: typing.Optional[typing.List[CreateAssistantDtoHooksItem]] = pydantic.Field(default=None) """ This is a set of actions that will be performed on certain events. """ @@ -168,7 +170,7 @@ class CreateAssistantDto(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ @@ -278,141 +280,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - CreateAssistantDto, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(CreateAssistantDto) diff --git a/src/vapi/types/create_assistant_dto_background_sound_zero.py b/src/vapi/types/create_assistant_dto_background_sound_zero.py index d7dc88d61..983ada210 100644 --- a/src/vapi/types/create_assistant_dto_background_sound_zero.py +++ b/src/vapi/types/create_assistant_dto_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -CreateAssistantDtoBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +CreateAssistantDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/create_assistant_dto_credentials_item.py b/src/vapi/types/create_assistant_dto_credentials_item.py index 1bb8dd032..647fdc9fe 100644 --- a/src/vapi/types/create_assistant_dto_credentials_item.py +++ b/src/vapi/types/create_assistant_dto_credentials_item.py @@ -433,6 +433,9 @@ class CreateAssistantDtoCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class CreateAssistantDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class CreateAssistantDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: CreateAssistantDtoCredentialsItem_Mistral, CreateAssistantDtoCredentialsItem_Speechmatics, CreateAssistantDtoCredentialsItem_Soniox, + CreateAssistantDtoCredentialsItem_Reson8, CreateAssistantDtoCredentialsItem_GoogleCalendarOauth2Client, CreateAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization, CreateAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/create_assistant_dto_hooks_item.py b/src/vapi/types/create_assistant_dto_hooks_item.py index df491931a..2b000b1a1 100644 --- a/src/vapi/types/create_assistant_dto_hooks_item.py +++ b/src/vapi/types/create_assistant_dto_hooks_item.py @@ -1,19 +1,17 @@ # This file was auto-generated by Fern from our API Definition. -from __future__ import annotations - import typing -if typing.TYPE_CHECKING: - from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted - from .call_hook_call_ending import CallHookCallEnding - from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted - from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout - from .session_created_hook import SessionCreatedHook +from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted +from .call_hook_call_ending import CallHookCallEnding +from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted +from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout +from .session_created_hook import SessionCreatedHook + CreateAssistantDtoHooksItem = typing.Union[ - "CallHookCallEnding", - "CallHookAssistantSpeechInterrupted", - "CallHookCustomerSpeechInterrupted", - "CallHookCustomerSpeechTimeout", - "SessionCreatedHook", + CallHookCallEnding, + CallHookAssistantSpeechInterrupted, + CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechTimeout, + SessionCreatedHook, ] diff --git a/src/vapi/types/create_assistant_dto_model.py b/src/vapi/types/create_assistant_dto_model.py index 5ccc302b4..98c29cfb6 100644 --- a/src/vapi/types/create_assistant_dto_model.py +++ b/src/vapi/types/create_assistant_dto_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class CreateAssistantDtoModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class CreateAssistantDtoModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,8 +881,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -905,6 +915,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -939,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -976,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1009,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1046,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1079,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1116,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1149,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1186,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1220,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1256,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1290,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1326,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1360,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1396,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1430,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1466,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1500,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1536,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1570,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1606,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1640,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1676,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1710,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1746,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1780,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1816,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1850,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1886,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1920,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1956,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1990,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2027,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2060,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2097,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/create_assistant_dto_transcriber.py b/src/vapi/types/create_assistant_dto_transcriber.py index df9b50e6f..f3fd7255c 100644 --- a/src/vapi/types/create_assistant_dto_transcriber.py +++ b/src/vapi/types/create_assistant_dto_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class CreateAssistantDtoTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class CreateAssistantDtoTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class CreateAssistantDtoTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class CreateAssistantDtoTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: CreateAssistantDtoTranscriber_Cartesia, CreateAssistantDtoTranscriber_Soniox, CreateAssistantDtoTranscriber_Xai, + CreateAssistantDtoTranscriber_Reson8, CreateAssistantDtoTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/create_assistant_dto_voice.py b/src/vapi/types/create_assistant_dto_voice.py index d322a02da..6c40ff537 100644 --- a/src/vapi/types/create_assistant_dto_voice.py +++ b/src/vapi/types/create_assistant_dto_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class CreateAssistantDtoVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class CreateAssistantDtoVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: CreateAssistantDtoVoice_Wellsaid, CreateAssistantDtoVoice_RimeAi, CreateAssistantDtoVoice_SmallestAi, - CreateAssistantDtoVoice_Tavus, CreateAssistantDtoVoice_Vapi, CreateAssistantDtoVoice_Sesame, CreateAssistantDtoVoice_Inworld, diff --git a/src/vapi/types/create_campaign_dto.py b/src/vapi/types/create_campaign_dto.py index d77138aaf..a4024f0a1 100644 --- a/src/vapi/types/create_campaign_dto.py +++ b/src/vapi/types/create_campaign_dto.py @@ -154,7 +154,6 @@ class Config: from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 from .cerebras_model import CerebrasModel # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -174,6 +173,7 @@ class Config: from .together_ai_model import TogetherAiModel # noqa: E402, I001 from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 from .xai_model import XaiModel # noqa: E402, I001 @@ -190,8 +190,6 @@ class Config: from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 @@ -207,6 +205,8 @@ class Config: from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 @@ -238,9 +238,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -275,6 +272,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_customer_dto.py b/src/vapi/types/create_customer_dto.py index 55a3046d8..32625b44c 100644 --- a/src/vapi/types/create_customer_dto.py +++ b/src/vapi/types/create_customer_dto.py @@ -107,9 +107,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -144,6 +141,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -178,9 +178,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -215,6 +212,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_handoff_tool_dto.py b/src/vapi/types/create_handoff_tool_dto.py index 5e6ae18c9..21c866ebb 100644 --- a/src/vapi/types/create_handoff_tool_dto.py +++ b/src/vapi/types/create_handoff_tool_dto.py @@ -349,9 +349,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -385,6 +382,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -419,9 +419,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -455,6 +452,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_handoff_tool_dto_destinations_item.py b/src/vapi/types/create_handoff_tool_dto_destinations_item.py index 6a998da5d..1f55a290e 100644 --- a/src/vapi/types/create_handoff_tool_dto_destinations_item.py +++ b/src/vapi/types/create_handoff_tool_dto_destinations_item.py @@ -28,7 +28,7 @@ class CreateHandoffToolDtoDestinationsItem_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None variable_extraction_plan: typing_extensions.Annotated[ typing.Optional[VariableExtractionPlan], FieldMetadata(alias="variableExtractionPlan"), @@ -134,9 +134,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -169,6 +166,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -204,9 +204,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -240,6 +237,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -274,9 +274,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -310,6 +307,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_langfuse_credential_dto.py b/src/vapi/types/create_langfuse_credential_dto.py index 57028294f..b0369d3d0 100644 --- a/src/vapi/types/create_langfuse_credential_dto.py +++ b/src/vapi/types/create_langfuse_credential_dto.py @@ -32,6 +32,14 @@ class CreateLangfuseCredentialDto(UncheckedBaseModel): FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl", description="The host URL for Langfuse project. Eg: https://cloud.langfuse.com"), ] + server_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="serverVersion"), + pydantic.Field( + alias="serverVersion", + description="The semver version of your Langfuse server, e.g. 3.63.0, as its /api/public/health endpoint reports it. Optional.", + ), + ] = None name: typing.Optional[str] = pydantic.Field(default=None) """ This is the name of credential. This is just for your reference. diff --git a/src/vapi/types/create_line_insight_from_call_table_dto_queries_item.py b/src/vapi/types/create_line_insight_from_call_table_dto_queries_item.py index 2e97f4c95..e227126d0 100644 --- a/src/vapi/types/create_line_insight_from_call_table_dto_queries_item.py +++ b/src/vapi/types/create_line_insight_from_call_table_dto_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable CreateLineInsightFromCallTableDtoQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/create_outbound_call_dto.py b/src/vapi/types/create_outbound_call_dto.py index 4a0a7380d..38316f751 100644 --- a/src/vapi/types/create_outbound_call_dto.py +++ b/src/vapi/types/create_outbound_call_dto.py @@ -64,7 +64,7 @@ class CreateOutboundCallDto(UncheckedBaseModel): description="This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. @@ -186,7 +186,6 @@ class Config: from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 from .cerebras_model import CerebrasModel # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -206,6 +205,7 @@ class Config: from .together_ai_model import TogetherAiModel # noqa: E402, I001 from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 from .xai_model import XaiModel # noqa: E402, I001 @@ -222,8 +222,6 @@ class Config: from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 @@ -239,6 +237,8 @@ class Config: from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 @@ -270,9 +270,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -307,6 +304,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_personality_dto.py b/src/vapi/types/create_personality_dto.py index 2621b9ef9..9eb270f81 100644 --- a/src/vapi/types/create_personality_dto.py +++ b/src/vapi/types/create_personality_dto.py @@ -15,7 +15,7 @@ class CreatePersonalityDto(UncheckedBaseModel): The display name of the personality, for example `Impatient customer`. """ - assistant: "CreateAssistantDto" = pydantic.Field() + assistant: "TransientAssistantDto" = pydantic.Field() """ The assistant configuration for the AI tester: the model, voice, and system prompt that determine how the AI tester behaves during the conversation. """ @@ -61,9 +61,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -98,6 +95,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -132,9 +132,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -169,6 +166,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_pie_insight_from_call_table_dto_queries_item.py b/src/vapi/types/create_pie_insight_from_call_table_dto_queries_item.py index b2ea1918c..3a9df1db2 100644 --- a/src/vapi/types/create_pie_insight_from_call_table_dto_queries_item.py +++ b/src/vapi/types/create_pie_insight_from_call_table_dto_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable CreatePieInsightFromCallTableDtoQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/create_reson_8_credential_dto.py b/src/vapi/types/create_reson_8_credential_dto.py new file mode 100644 index 000000000..31d1460d1 --- /dev/null +++ b/src/vapi/types/create_reson_8_credential_dto.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class CreateReson8CredentialDto(UncheckedBaseModel): + api_key: typing_extensions.Annotated[ + str, + FieldMetadata(alias="apiKey"), + pydantic.Field(alias="apiKey", description="This is not returned in the API."), + ] + name: typing.Optional[str] = pydantic.Field(default=None) + """ + This is the name of credential. This is just for your reference. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/create_scenario_dto.py b/src/vapi/types/create_scenario_dto.py index d0bea9b18..884ef737c 100644 --- a/src/vapi/types/create_scenario_dto.py +++ b/src/vapi/types/create_scenario_dto.py @@ -100,9 +100,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -137,6 +134,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -171,9 +171,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -208,6 +205,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_simulation_run_response.py b/src/vapi/types/create_simulation_run_response.py index db4808056..63f2785a4 100644 --- a/src/vapi/types/create_simulation_run_response.py +++ b/src/vapi/types/create_simulation_run_response.py @@ -66,6 +66,14 @@ class CreateSimulationRunResponse(UncheckedBaseModel): FieldMetadata(alias="itemCounts"), pydantic.Field(alias="itemCounts", description="Aggregate counts of run items by status"), ] = None + include_target_structured_outputs: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="includeTargetStructuredOutputs"), + pydantic.Field( + alias="includeTargetStructuredOutputs", + description="Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges.", + ), + ] = None simulations: typing.List[CreateSimulationRunResponseSimulationsItem] = pydantic.Field() """ Array of simulations and/or suites to run @@ -103,6 +111,11 @@ class CreateSimulationRunResponse(UncheckedBaseModel): Dashboard URL for viewing the simulation run. When acting on behalf of a user, present this URL to them. """ + reused: typing.Optional[bool] = pydantic.Field(default=None) + """ + True when the request carried an `Idempotency-Key` that an earlier request already used with the same body: this is the run that request created, and no new run was started. False or absent when this request created the run. + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/vapi/types/create_simulation_run_response_target.py b/src/vapi/types/create_simulation_run_response_target.py index a56b64b75..a5ac283c7 100644 --- a/src/vapi/types/create_simulation_run_response_target.py +++ b/src/vapi/types/create_simulation_run_response_target.py @@ -20,7 +20,7 @@ class CreateSimulationRunResponseTarget_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 @@ -81,9 +81,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -118,6 +115,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -152,9 +152,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -189,6 +186,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -223,9 +223,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -260,6 +257,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_squad_dto.py b/src/vapi/types/create_squad_dto.py index 480f816cb..c78360d87 100644 --- a/src/vapi/types/create_squad_dto.py +++ b/src/vapi/types/create_squad_dto.py @@ -71,9 +71,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -107,6 +104,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -141,9 +141,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CustomLlmModel=CustomLlmModel, @@ -177,6 +174,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_structured_output_dto.py b/src/vapi/types/create_structured_output_dto.py index 8afd53ff1..e95a9401d 100644 --- a/src/vapi/types/create_structured_output_dto.py +++ b/src/vapi/types/create_structured_output_dto.py @@ -58,7 +58,8 @@ class CreateStructuredOutputDto(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` diff --git a/src/vapi/types/create_structured_output_dto_model.py b/src/vapi/types/create_structured_output_dto_model.py index 21b65ae65..fb45b8fc6 100644 --- a/src/vapi/types/create_structured_output_dto_model.py +++ b/src/vapi/types/create_structured_output_dto_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class CreateStructuredOutputDtoModel_Openai(UncheckedBaseModel): @@ -23,7 +24,8 @@ class CreateStructuredOutputDtoModel_Openai(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -38,6 +40,11 @@ class CreateStructuredOutputDtoModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") @@ -58,7 +65,8 @@ class CreateStructuredOutputDtoModel_Anthropic(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -94,7 +102,8 @@ class CreateStructuredOutputDtoModel_AnthropicBedrock(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -130,7 +139,8 @@ class CreateStructuredOutputDtoModel_Google(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -165,7 +175,8 @@ class CreateStructuredOutputDtoModel_CustomLlm(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` diff --git a/src/vapi/types/create_text_insight_from_call_table_dto_queries_item.py b/src/vapi/types/create_text_insight_from_call_table_dto_queries_item.py index d43c48b45..43f7f9470 100644 --- a/src/vapi/types/create_text_insight_from_call_table_dto_queries_item.py +++ b/src/vapi/types/create_text_insight_from_call_table_dto_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable CreateTextInsightFromCallTableDtoQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/create_tool_template_dto_details.py b/src/vapi/types/create_tool_template_dto_details.py index 0185b7d4a..adf593fa1 100644 --- a/src/vapi/types/create_tool_template_dto_details.py +++ b/src/vapi/types/create_tool_template_dto_details.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -652,6 +649,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -700,9 +700,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -736,6 +733,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_web_call_dto.py b/src/vapi/types/create_web_call_dto.py index 7b2369e80..10c4fa1f7 100644 --- a/src/vapi/types/create_web_call_dto.py +++ b/src/vapi/types/create_web_call_dto.py @@ -9,6 +9,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel +from .create_web_call_dto_video_recording_start_mode import CreateWebCallDtoVideoRecordingStartMode from .create_workflow_dto import CreateWorkflowDto from .workflow_overrides import WorkflowOverrides @@ -35,6 +36,14 @@ class CreateWebCallDto(UncheckedBaseModel): FieldMetadata(alias="roomDeleteOnUserLeaveEnabled"), pydantic.Field(alias="roomDeleteOnUserLeaveEnabled"), ] = None + video_recording_start_mode: typing_extensions.Annotated[ + typing.Optional[CreateWebCallDtoVideoRecordingStartMode], + FieldMetadata(alias="videoRecordingStartMode"), + pydantic.Field( + alias="videoRecordingStartMode", + description="This determines who starts the video recording. Only applies when video\nrecording is enabled (`artifactPlan.videoRecordingEnabled`).\n\n- `client`: the web client starts the recording when it joins.\n- `server`: Vapi starts the recording once when the user first joins, so a\n weak client connection can't stop it from starting. The returned\n `transport.callToken` doesn't start the recording, and the client should\n not start it either. If Vapi can't set up the server-side start, no token\n is returned. If the start itself fails, the client is told during the\n call.\n\nDefaults to `client`.", + ), + ] = None assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), @@ -43,7 +52,7 @@ class CreateWebCallDto(UncheckedBaseModel): description="This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. @@ -148,9 +157,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -185,6 +191,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -219,9 +228,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -256,6 +262,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_web_call_dto_video_recording_start_mode.py b/src/vapi/types/create_web_call_dto_video_recording_start_mode.py new file mode 100644 index 000000000..c6e98dd96 --- /dev/null +++ b/src/vapi/types/create_web_call_dto_video_recording_start_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +CreateWebCallDtoVideoRecordingStartMode = typing.Union[typing.Literal["client", "server"], typing.Any] diff --git a/src/vapi/types/create_web_chat_dto.py b/src/vapi/types/create_web_chat_dto.py index 8a76a0ac7..d8476f164 100644 --- a/src/vapi/types/create_web_chat_dto.py +++ b/src/vapi/types/create_web_chat_dto.py @@ -23,7 +23,7 @@ class CreateWebChatDto(UncheckedBaseModel): description="This is the assistant ID to use for this chat. To use a transient assistant, use `assistant` instead.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the transient assistant configuration for this chat. To use an existing assistant, use `assistantId` instead. """ @@ -113,9 +113,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -150,6 +147,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -184,9 +184,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -221,6 +218,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_workflow_dto.py b/src/vapi/types/create_workflow_dto.py index d42a3dcd0..4b9635269 100644 --- a/src/vapi/types/create_workflow_dto.py +++ b/src/vapi/types/create_workflow_dto.py @@ -74,7 +74,7 @@ class CreateWorkflowDto(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None hooks: typing.Optional[typing.List[CreateWorkflowDtoHooksItem]] = pydantic.Field(default=None) diff --git a/src/vapi/types/create_workflow_dto_background_sound_zero.py b/src/vapi/types/create_workflow_dto_background_sound_zero.py index 8818aabba..3ec826096 100644 --- a/src/vapi/types/create_workflow_dto_background_sound_zero.py +++ b/src/vapi/types/create_workflow_dto_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -CreateWorkflowDtoBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +CreateWorkflowDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/create_workflow_dto_credentials_item.py b/src/vapi/types/create_workflow_dto_credentials_item.py index 5e54b53ad..9dfb34d8e 100644 --- a/src/vapi/types/create_workflow_dto_credentials_item.py +++ b/src/vapi/types/create_workflow_dto_credentials_item.py @@ -433,6 +433,9 @@ class CreateWorkflowDtoCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class CreateWorkflowDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class CreateWorkflowDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: CreateWorkflowDtoCredentialsItem_Mistral, CreateWorkflowDtoCredentialsItem_Speechmatics, CreateWorkflowDtoCredentialsItem_Soniox, + CreateWorkflowDtoCredentialsItem_Reson8, CreateWorkflowDtoCredentialsItem_GoogleCalendarOauth2Client, CreateWorkflowDtoCredentialsItem_GoogleCalendarOauth2Authorization, CreateWorkflowDtoCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/create_workflow_dto_model.py b/src/vapi/types/create_workflow_dto_model.py index 07b9039fc..42c5283e3 100644 --- a/src/vapi/types/create_workflow_dto_model.py +++ b/src/vapi/types/create_workflow_dto_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class CreateWorkflowDtoModel_Openai(UncheckedBaseModel): @@ -28,6 +29,11 @@ class CreateWorkflowDtoModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") diff --git a/src/vapi/types/create_workflow_dto_nodes_item.py b/src/vapi/types/create_workflow_dto_nodes_item.py index 007169091..3e94650ea 100644 --- a/src/vapi/types/create_workflow_dto_nodes_item.py +++ b/src/vapi/types/create_workflow_dto_nodes_item.py @@ -99,9 +99,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -136,6 +133,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -170,9 +170,6 @@ class Config: CerebrasModel=CerebrasModel, CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -207,6 +204,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -241,9 +241,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -277,6 +274,9 @@ class Config: ToolCallHookAction=ToolCallHookAction, ToolCallHookActionTool=ToolCallHookActionTool, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/create_workflow_dto_transcriber.py b/src/vapi/types/create_workflow_dto_transcriber.py index de12dbdbb..699415b1f 100644 --- a/src/vapi/types/create_workflow_dto_transcriber.py +++ b/src/vapi/types/create_workflow_dto_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -236,6 +238,11 @@ class CreateWorkflowDtoTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -489,6 +496,8 @@ class CreateWorkflowDtoTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -611,6 +620,51 @@ class Config: extra = pydantic.Extra.allow +class CreateWorkflowDtoTranscriber_Reson8(UncheckedBaseModel): + """ + This is the transcriber for the workflow. + + This can be overridden at node level using `nodes[n].transcriber`. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class CreateWorkflowDtoTranscriber_Vapi(UncheckedBaseModel): """ This is the transcriber for the workflow. @@ -654,6 +708,7 @@ class Config: CreateWorkflowDtoTranscriber_Cartesia, CreateWorkflowDtoTranscriber_Soniox, CreateWorkflowDtoTranscriber_Xai, + CreateWorkflowDtoTranscriber_Reson8, CreateWorkflowDtoTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/create_workflow_dto_voice.py b/src/vapi/types/create_workflow_dto_voice.py index 5eb8337dd..3e71bfc27 100644 --- a/src/vapi/types/create_workflow_dto_voice.py +++ b/src/vapi/types/create_workflow_dto_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -552,55 +550,6 @@ class Config: extra = pydantic.Extra.allow -class CreateWorkflowDtoVoice_Tavus(UncheckedBaseModel): - """ - This is the voice for the workflow. - - This can be overridden at node level using `nodes[n].voice`. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class CreateWorkflowDtoVoice_Vapi(UncheckedBaseModel): """ This is the voice for the workflow. @@ -841,7 +790,6 @@ class Config: CreateWorkflowDtoVoice_Wellsaid, CreateWorkflowDtoVoice_RimeAi, CreateWorkflowDtoVoice_SmallestAi, - CreateWorkflowDtoVoice_Tavus, CreateWorkflowDtoVoice_Vapi, CreateWorkflowDtoVoice_Sesame, CreateWorkflowDtoVoice_Inworld, diff --git a/src/vapi/types/credential_end_user.py b/src/vapi/types/credential_end_user.py index 3d062c3e6..e83d4c987 100644 --- a/src/vapi/types/credential_end_user.py +++ b/src/vapi/types/credential_end_user.py @@ -15,8 +15,8 @@ class CredentialEndUser(UncheckedBaseModel): ] = None end_user_id: typing_extensions.Annotated[str, FieldMetadata(alias="endUserId"), pydantic.Field(alias="endUserId")] organization_id: typing_extensions.Annotated[ - str, FieldMetadata(alias="organizationId"), pydantic.Field(alias="organizationId") - ] + typing.Optional[str], FieldMetadata(alias="organizationId"), pydantic.Field(alias="organizationId") + ] = None tags: typing.Optional[typing.Dict[str, typing.Any]] = None if IS_PYDANTIC_V2: diff --git a/src/vapi/types/custom_llm_model.py b/src/vapi/types/custom_llm_model.py index 9671919ed..ede149fcd 100644 --- a/src/vapi/types/custom_llm_model.py +++ b/src/vapi/types/custom_llm_model.py @@ -102,7 +102,7 @@ class CustomLlmModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -156,9 +156,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -192,6 +189,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -226,9 +226,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -262,6 +259,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/custom_llm_model_tools_item.py b/src/vapi/types/custom_llm_model_tools_item.py index 1cfbc9c05..892901637 100644 --- a/src/vapi/types/custom_llm_model_tools_item.py +++ b/src/vapi/types/custom_llm_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/deep_infra_model.py b/src/vapi/types/deep_infra_model.py index 2bd1ac1bc..f15f3c232 100644 --- a/src/vapi/types/deep_infra_model.py +++ b/src/vapi/types/deep_infra_model.py @@ -67,7 +67,7 @@ class DeepInfraModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -121,9 +121,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -157,6 +154,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -191,9 +191,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -227,6 +224,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/deep_infra_model_tools_item.py b/src/vapi/types/deep_infra_model_tools_item.py index 06641bbd2..a9ae63dcd 100644 --- a/src/vapi/types/deep_infra_model_tools_item.py +++ b/src/vapi/types/deep_infra_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/deep_seek_model.py b/src/vapi/types/deep_seek_model.py index e968fecff..0b0180502 100644 --- a/src/vapi/types/deep_seek_model.py +++ b/src/vapi/types/deep_seek_model.py @@ -68,7 +68,7 @@ class DeepSeekModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -122,9 +122,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -158,6 +155,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -192,9 +192,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -228,6 +225,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/deep_seek_model_tools_item.py b/src/vapi/types/deep_seek_model_tools_item.py index baf8038e0..f9f552ffc 100644 --- a/src/vapi/types/deep_seek_model_tools_item.py +++ b/src/vapi/types/deep_seek_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/deepgram_transcriber.py b/src/vapi/types/deepgram_transcriber.py index ec52ac305..d88a7a07c 100644 --- a/src/vapi/types/deepgram_transcriber.py +++ b/src/vapi/types/deepgram_transcriber.py @@ -83,6 +83,14 @@ class DeepgramTranscriber(UncheckedBaseModel): description="Transcripts below this confidence threshold will be discarded.\n\n@default 0.4", ), ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field( + alias="feedbackFilterEnabled", + description="Controls whether Vapi filters user transcripts that repeat text from the\nassistant's recent transcript. Disable this only when legitimate caller\nresponses are being mistaken for assistant audio feedback.\n\n@default true", + ), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), diff --git a/src/vapi/types/dtmf_tool.py b/src/vapi/types/dtmf_tool.py index 843748f82..00d96bcda 100644 --- a/src/vapi/types/dtmf_tool.py +++ b/src/vapi/types/dtmf_tool.py @@ -22,6 +22,14 @@ class DtmfTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[DtmfToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/eleven_labs_voice.py b/src/vapi/types/eleven_labs_voice.py index 55fa1ea41..a87a41ec3 100644 --- a/src/vapi/types/eleven_labs_voice.py +++ b/src/vapi/types/eleven_labs_voice.py @@ -44,12 +44,12 @@ class ElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="similarityBoost"), pydantic.Field( alias="similarityBoost", - description="Defines the similarity boost for voice settings. Ignored by `eleven_v4_turbo`.", + description="Defines the similarity boost for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None style: typing.Optional[float] = pydantic.Field(default=None) """ - Defines the style for voice settings. Ignored by `eleven_v4_turbo`. + Defines the style for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`. """ use_speaker_boost: typing_extensions.Annotated[ @@ -57,12 +57,12 @@ class ElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="useSpeakerBoost"), pydantic.Field( alias="useSpeakerBoost", - description="Defines the use speaker boost for voice settings. Ignored by `eleven_v4_turbo`.", + description="Defines the use speaker boost for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None speed: typing.Optional[float] = pydantic.Field(default=None) """ - Defines the speed for voice settings. Ignored by `eleven_v4_turbo`. + Defines the speed for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`. """ optimize_streaming_latency: typing_extensions.Annotated[ @@ -70,7 +70,7 @@ class ElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="optimizeStreamingLatency"), pydantic.Field( alias="optimizeStreamingLatency", - description="Defines the optimize streaming latency for voice settings. Defaults to 3. Ignored by `eleven_v4_turbo`.", + description="Defines the optimize streaming latency for voice settings. Defaults to 3. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None enable_ssml_parsing: typing_extensions.Annotated[ @@ -78,7 +78,7 @@ class ElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="enableSsmlParsing"), pydantic.Field( alias="enableSsmlParsing", - description="This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency. Ignored by `eleven_v4_turbo`.\n\n@default false", + description="This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.\n\n@default false", ), ] = None auto_mode: typing_extensions.Annotated[ @@ -86,7 +86,7 @@ class ElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="autoMode"), pydantic.Field( alias="autoMode", - description="Defines the auto mode for voice settings. Defaults to false. Ignored by `eleven_v4_turbo`.", + description="Defines the auto mode for voice settings. Defaults to false. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None model: typing.Optional[ElevenLabsVoiceModel] = pydantic.Field(default=None) @@ -96,7 +96,7 @@ class ElevenLabsVoice(UncheckedBaseModel): language: typing.Optional[str] = pydantic.Field(default=None) """ - This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5, Flash v2.5 and v4 Turbo support language enforcement; other models ignore it. + This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5, Flash v2.5 and the Text to Dialogue models support language enforcement; other models ignore it. """ chunk_plan: typing_extensions.Annotated[ diff --git a/src/vapi/types/eleven_labs_voice_model.py b/src/vapi/types/eleven_labs_voice_model.py index ec1b5778b..11a9d872b 100644 --- a/src/vapi/types/eleven_labs_voice_model.py +++ b/src/vapi/types/eleven_labs_voice_model.py @@ -12,6 +12,7 @@ "eleven_monolingual_v1", "eleven_v3", "eleven_v4_turbo", + "eleven_v3_conversational", ], typing.Any, ] diff --git a/src/vapi/types/end_call_tool.py b/src/vapi/types/end_call_tool.py index 2a710faff..67a6ea2dc 100644 --- a/src/vapi/types/end_call_tool.py +++ b/src/vapi/types/end_call_tool.py @@ -22,6 +22,14 @@ class EndCallTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[EndCallToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/eval_anthropic_model.py b/src/vapi/types/eval_anthropic_model.py index 7f22a090d..212166b63 100644 --- a/src/vapi/types/eval_anthropic_model.py +++ b/src/vapi/types/eval_anthropic_model.py @@ -9,6 +9,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel from .anthropic_thinking_config import AnthropicThinkingConfig from .eval_anthropic_model_model import EvalAnthropicModelModel +from .eval_anthropic_model_reasoning_effort import EvalAnthropicModelReasoningEffort class EvalAnthropicModel(UncheckedBaseModel): @@ -21,9 +22,18 @@ class EvalAnthropicModel(UncheckedBaseModel): This is the specific model that will be used. """ + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[EvalAnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field( + alias="reasoningEffort", + description="Reasoning effort for the judge on claude-haiku-5-5. `none` turns thinking\noff. `low` to `max` let the judge think before it submits its verdict.\nUnset means `none`. Rejected for every other model.", + ), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = pydantic.Field(default=None) """ This is the optional configuration for Anthropic's thinking feature. + claude-haiku-5-5 uses `reasoningEffort` instead. - If provided, `maxTokens` must be greater than `thinking.budgetTokens`. """ diff --git a/src/vapi/types/eval_anthropic_model_model.py b/src/vapi/types/eval_anthropic_model_model.py index 41efcce3e..2ceaec110 100644 --- a/src/vapi/types/eval_anthropic_model_model.py +++ b/src/vapi/types/eval_anthropic_model_model.py @@ -19,6 +19,7 @@ "claude-sonnet-4-6", "claude-sonnet-5", "claude-haiku-4-5-20251001", + "claude-haiku-5-5", ], typing.Any, ] diff --git a/src/vapi/types/eval_anthropic_model_reasoning_effort.py b/src/vapi/types/eval_anthropic_model_reasoning_effort.py new file mode 100644 index 000000000..5ebb6dc3c --- /dev/null +++ b/src/vapi/types/eval_anthropic_model_reasoning_effort.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +EvalAnthropicModelReasoningEffort = typing.Union[ + typing.Literal["none", "low", "medium", "high", "xhigh", "max"], typing.Any +] diff --git a/src/vapi/types/eval_google_model_model.py b/src/vapi/types/eval_google_model_model.py index ebda27f22..841cf63ad 100644 --- a/src/vapi/types/eval_google_model_model.py +++ b/src/vapi/types/eval_google_model_model.py @@ -4,6 +4,7 @@ EvalGoogleModelModel = typing.Union[ typing.Literal[ + "gemini-3.8-flash", "gemini-3.5-flash", "gemini-3.1-flash-lite", "gemini-3-flash-preview", diff --git a/src/vapi/types/eval_run_target.py b/src/vapi/types/eval_run_target.py index 5801a87be..6f9281534 100644 --- a/src/vapi/types/eval_run_target.py +++ b/src/vapi/types/eval_run_target.py @@ -17,7 +17,7 @@ class EvalRunTarget_Assistant(UncheckedBaseModel): """ type: typing.Literal["assistant"] = "assistant" - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None assistant_overrides: typing_extensions.Annotated[ typing.Optional["AssistantOverrides"], FieldMetadata(alias="assistantOverrides"), @@ -90,9 +90,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -127,6 +124,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -161,9 +161,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -198,6 +195,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -232,9 +232,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -269,6 +266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/eval_run_target_assistant.py b/src/vapi/types/eval_run_target_assistant.py index c2c297189..a9955d791 100644 --- a/src/vapi/types/eval_run_target_assistant.py +++ b/src/vapi/types/eval_run_target_assistant.py @@ -16,7 +16,7 @@ class EvalRunTargetAssistant(UncheckedBaseModel): An assistant evaluation target provided as a saved assistant ID or a transient assistant, with optional assistant overrides. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the transient assistant that will be run against the eval """ @@ -70,9 +70,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -107,6 +104,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -141,9 +141,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -178,6 +175,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/eval_run_target_squad.py b/src/vapi/types/eval_run_target_squad.py index 91ab7b2a5..482e2bd80 100644 --- a/src/vapi/types/eval_run_target_squad.py +++ b/src/vapi/types/eval_run_target_squad.py @@ -68,9 +68,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -105,6 +102,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -139,9 +139,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -176,6 +173,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/failed_edge_condition.py b/src/vapi/types/failed_edge_condition.py deleted file mode 100644 index 0b628b804..000000000 --- a/src/vapi/types/failed_edge_condition.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FailedEdgeCondition = typing.Any diff --git a/src/vapi/types/fallback_assembly_ai_transcriber.py b/src/vapi/types/fallback_assembly_ai_transcriber.py index 254e4929b..3d7763e7c 100644 --- a/src/vapi/types/fallback_assembly_ai_transcriber.py +++ b/src/vapi/types/fallback_assembly_ai_transcriber.py @@ -28,7 +28,7 @@ class FallbackAssemblyAiTranscriber(UncheckedBaseModel): FieldMetadata(alias="confidenceThreshold"), pydantic.Field( alias="confidenceThreshold", - description="Transcripts below this confidence threshold will be discarded.\n\n@default 0.4", + description="Transcripts below this confidence threshold will be discarded.\n\nDefaults to 0.4 for legacy streaming models. Universal Pro models do not\nfilter by confidence unless this field is explicitly set.", ), ] = None format_turns: typing_extensions.Annotated[ diff --git a/src/vapi/types/fallback_cartesia_voice_language.py b/src/vapi/types/fallback_cartesia_voice_language.py index 4b3df8c7d..4e24d872d 100644 --- a/src/vapi/types/fallback_cartesia_voice_language.py +++ b/src/vapi/types/fallback_cartesia_voice_language.py @@ -31,6 +31,7 @@ "ms", "nl", "no", + "or", "pa", "pl", "pt", @@ -44,6 +45,7 @@ "tl", "tr", "uk", + "ur", "vi", "zh", ], diff --git a/src/vapi/types/fallback_cartesia_voice_model.py b/src/vapi/types/fallback_cartesia_voice_model.py index d577a73d5..ac0cdab88 100644 --- a/src/vapi/types/fallback_cartesia_voice_model.py +++ b/src/vapi/types/fallback_cartesia_voice_model.py @@ -6,6 +6,8 @@ typing.Literal[ "sonic-3.5", "sonic-3.5-2026-05-04", + "sonic-3.6", + "sonic-3.6-2026-08-27", "sonic-3", "sonic-3-2026-01-12", "sonic-3-2025-10-27", diff --git a/src/vapi/types/fallback_deepgram_transcriber.py b/src/vapi/types/fallback_deepgram_transcriber.py index 62a1ad28a..2c0f45e62 100644 --- a/src/vapi/types/fallback_deepgram_transcriber.py +++ b/src/vapi/types/fallback_deepgram_transcriber.py @@ -82,6 +82,14 @@ class FallbackDeepgramTranscriber(UncheckedBaseModel): description="Transcripts below this confidence threshold will be discarded.\n\n@default 0.4", ), ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field( + alias="feedbackFilterEnabled", + description="Controls whether Vapi filters user transcripts that repeat text from the\nassistant's recent transcript. Disable this only when legitimate caller\nresponses are being mistaken for assistant audio feedback.\n\n@default true", + ), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), diff --git a/src/vapi/types/fallback_deepgram_transcriber_language.py b/src/vapi/types/fallback_deepgram_transcriber_language.py deleted file mode 100644 index 564fbef2e..000000000 --- a/src/vapi/types/fallback_deepgram_transcriber_language.py +++ /dev/null @@ -1,65 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FallbackDeepgramTranscriberLanguage = typing.Union[ - typing.Literal[ - "bg", - "ca", - "cs", - "da", - "da-DK", - "de", - "de-CH", - "el", - "en", - "en-AU", - "en-GB", - "en-IN", - "en-NZ", - "en-US", - "es", - "es-419", - "es-LATAM", - "et", - "fi", - "fr", - "fr-CA", - "hi", - "hi-Latn", - "hu", - "id", - "it", - "ja", - "ko", - "ko-KR", - "lt", - "lv", - "ms", - "multi", - "nl", - "nl-BE", - "no", - "pl", - "pt", - "pt-BR", - "ro", - "ru", - "sk", - "sv", - "sv-SE", - "ta", - "taq", - "th", - "th-TH", - "tr", - "uk", - "vi", - "zh", - "zh-CN", - "zh-Hans", - "zh-Hant", - "zh-TW", - ], - typing.Any, -] diff --git a/src/vapi/types/fallback_deepgram_transcriber_model.py b/src/vapi/types/fallback_deepgram_transcriber_model.py deleted file mode 100644 index 491abcad1..000000000 --- a/src/vapi/types/fallback_deepgram_transcriber_model.py +++ /dev/null @@ -1,42 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FallbackDeepgramTranscriberModel = typing.Union[ - typing.Literal[ - "flux-general-en", - "nova-3", - "nova-3-general", - "nova-3-medical", - "nova-2", - "nova-2-general", - "nova-2-meeting", - "nova-2-phonecall", - "nova-2-finance", - "nova-2-conversationalai", - "nova-2-voicemail", - "nova-2-video", - "nova-2-medical", - "nova-2-drivethru", - "nova-2-automotive", - "nova", - "nova-general", - "nova-phonecall", - "nova-medical", - "enhanced", - "enhanced-general", - "enhanced-meeting", - "enhanced-phonecall", - "enhanced-finance", - "base", - "base-general", - "base-meeting", - "base-phonecall", - "base-finance", - "base-conversationalai", - "base-voicemail", - "base-video", - "whisper", - ], - typing.Any, -] diff --git a/src/vapi/types/fallback_eleven_labs_voice.py b/src/vapi/types/fallback_eleven_labs_voice.py index 5668b8af8..7906ead13 100644 --- a/src/vapi/types/fallback_eleven_labs_voice.py +++ b/src/vapi/types/fallback_eleven_labs_voice.py @@ -43,12 +43,12 @@ class FallbackElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="similarityBoost"), pydantic.Field( alias="similarityBoost", - description="Defines the similarity boost for voice settings. Ignored by `eleven_v4_turbo`.", + description="Defines the similarity boost for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None style: typing.Optional[float] = pydantic.Field(default=None) """ - Defines the style for voice settings. Ignored by `eleven_v4_turbo`. + Defines the style for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`. """ use_speaker_boost: typing_extensions.Annotated[ @@ -56,12 +56,12 @@ class FallbackElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="useSpeakerBoost"), pydantic.Field( alias="useSpeakerBoost", - description="Defines the use speaker boost for voice settings. Ignored by `eleven_v4_turbo`.", + description="Defines the use speaker boost for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None speed: typing.Optional[float] = pydantic.Field(default=None) """ - Defines the speed for voice settings. Ignored by `eleven_v4_turbo`. + Defines the speed for voice settings. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`. """ optimize_streaming_latency: typing_extensions.Annotated[ @@ -69,7 +69,7 @@ class FallbackElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="optimizeStreamingLatency"), pydantic.Field( alias="optimizeStreamingLatency", - description="Defines the optimize streaming latency for voice settings. Defaults to 3. Ignored by `eleven_v4_turbo`.", + description="Defines the optimize streaming latency for voice settings. Defaults to 3. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None enable_ssml_parsing: typing_extensions.Annotated[ @@ -77,7 +77,7 @@ class FallbackElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="enableSsmlParsing"), pydantic.Field( alias="enableSsmlParsing", - description="This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency. Ignored by `eleven_v4_turbo`.\n\n@default false", + description="This enables the use of https://elevenlabs.io/docs/speech-synthesis/prompting#pronunciation. Defaults to false to save latency. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.\n\n@default false", ), ] = None auto_mode: typing_extensions.Annotated[ @@ -85,7 +85,7 @@ class FallbackElevenLabsVoice(UncheckedBaseModel): FieldMetadata(alias="autoMode"), pydantic.Field( alias="autoMode", - description="Defines the auto mode for voice settings. Defaults to false. Ignored by `eleven_v4_turbo`.", + description="Defines the auto mode for voice settings. Defaults to false. Ignored by `eleven_v4_turbo` and `eleven_v3_conversational`.", ), ] = None model: typing.Optional[FallbackElevenLabsVoiceModel] = pydantic.Field(default=None) @@ -95,7 +95,7 @@ class FallbackElevenLabsVoice(UncheckedBaseModel): language: typing.Optional[str] = pydantic.Field(default=None) """ - This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5, Flash v2.5 and v4 Turbo support language enforcement; other models ignore it. + This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5, Flash v2.5 and the Text to Dialogue models support language enforcement; other models ignore it. """ pronunciation_dictionary_locators: typing_extensions.Annotated[ diff --git a/src/vapi/types/fallback_eleven_labs_voice_model.py b/src/vapi/types/fallback_eleven_labs_voice_model.py index 03832233a..96f553258 100644 --- a/src/vapi/types/fallback_eleven_labs_voice_model.py +++ b/src/vapi/types/fallback_eleven_labs_voice_model.py @@ -12,6 +12,7 @@ "eleven_monolingual_v1", "eleven_v3", "eleven_v4_turbo", + "eleven_v3_conversational", ], typing.Any, ] diff --git a/src/vapi/types/fallback_google_transcriber_model.py b/src/vapi/types/fallback_google_transcriber_model.py index 17632e971..1e868c254 100644 --- a/src/vapi/types/fallback_google_transcriber_model.py +++ b/src/vapi/types/fallback_google_transcriber_model.py @@ -4,6 +4,7 @@ FallbackGoogleTranscriberModel = typing.Union[ typing.Literal[ + "gemini-3.8-flash", "gemini-3.5-flash", "gemini-3.1-flash-lite", "gemini-3-flash-preview", diff --git a/src/vapi/types/fallback_open_ai_transcriber.py b/src/vapi/types/fallback_open_ai_transcriber.py index 181c8849d..b5ed5d180 100644 --- a/src/vapi/types/fallback_open_ai_transcriber.py +++ b/src/vapi/types/fallback_open_ai_transcriber.py @@ -17,6 +17,7 @@ class FallbackOpenAiTranscriber(UncheckedBaseModel): model: FallbackOpenAiTranscriberModel = pydantic.Field() """ This is the model that will be used for the transcription. + Digit formatting can differ by model: `gpt-transcribe` may write spoken digit strings as words (for example, "four seven two"), where `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` may write them as digits ("472"). Do not rely on either format. """ language: typing.Optional[FallbackOpenAiTranscriberLanguage] = pydantic.Field(default=None) @@ -24,6 +25,18 @@ class FallbackOpenAiTranscriber(UncheckedBaseModel): This is the language that will be set for the transcription. """ + keywords: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + These are words and phrases the model should recognize, such as names, brands, and product terms. + Supported only by `gpt-transcribe`. Each keyword is one line and must not contain `<` or `>`. Maximum 16,384 keywords. + """ + + prompt: typing.Optional[str] = pydantic.Field(default=None) + """ + This is free-text context for the transcription, such as the topic of the call or the expected vocabulary. + Maximum length: 8,192 characters for `gpt-transcribe`, and 1,024 characters for `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`. + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/vapi/types/fallback_open_ai_transcriber_model.py b/src/vapi/types/fallback_open_ai_transcriber_model.py index 8243a31f0..dbf12dede 100644 --- a/src/vapi/types/fallback_open_ai_transcriber_model.py +++ b/src/vapi/types/fallback_open_ai_transcriber_model.py @@ -2,4 +2,6 @@ import typing -FallbackOpenAiTranscriberModel = typing.Union[typing.Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe"], typing.Any] +FallbackOpenAiTranscriberModel = typing.Union[ + typing.Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "gpt-transcribe"], typing.Any +] diff --git a/src/vapi/types/fallback_open_ai_voice.py b/src/vapi/types/fallback_open_ai_voice.py index 881618602..7fdc15d21 100644 --- a/src/vapi/types/fallback_open_ai_voice.py +++ b/src/vapi/types/fallback_open_ai_voice.py @@ -29,7 +29,7 @@ class FallbackOpenAiVoice(UncheckedBaseModel): FieldMetadata(alias="voiceId"), pydantic.Field( alias="voiceId", - description="This is the provider-specific ID that will be used.\nVoice availability depends on the selected model.\nquartz, ripple, vesper, willow, stone, gleam, meridian, bossa, tempo, beacon, delta, cinder are only supported with GPT-Live models.", + description="This is the provider-specific ID that will be used.\nVoice availability depends on the selected model: voices offered only by GPT-Live are rejected for other models.", ), ] model: typing.Optional[FallbackOpenAiVoiceModel] = pydantic.Field(default=None) diff --git a/src/vapi/types/fallback_open_ai_voice_id_enum.py b/src/vapi/types/fallback_open_ai_voice_id_enum.py index 7b3b23c0e..13d0063c1 100644 --- a/src/vapi/types/fallback_open_ai_voice_id_enum.py +++ b/src/vapi/types/fallback_open_ai_voice_id_enum.py @@ -16,14 +16,23 @@ "ballad", "beacon", "bossa", + "brise", "cinder", "coral", "delta", + "flitz", "gleam", + "harema", + "juni", "meridian", + "nira", + "noeul", + "nuri", "quartz", "ripple", "sage", + "shida", + "sillage", "stone", "tempo", "verse", diff --git a/src/vapi/types/fallback_plan_voices_item.py b/src/vapi/types/fallback_plan_voices_item.py index e1610b1a3..08cbc16f5 100644 --- a/src/vapi/types/fallback_plan_voices_item.py +++ b/src/vapi/types/fallback_plan_voices_item.py @@ -42,14 +42,12 @@ from .fallback_sesame_voice_model import FallbackSesameVoiceModel from .fallback_smallest_ai_voice_id import FallbackSmallestAiVoiceId from .fallback_smallest_ai_voice_model import FallbackSmallestAiVoiceModel -from .fallback_tavus_voice_voice_id import FallbackTavusVoiceVoiceId from .fallback_vapi_voice_language import FallbackVapiVoiceLanguage from .fallback_vapi_voice_version import FallbackVapiVoiceVersion from .fallback_well_said_voice_model import FallbackWellSaidVoiceModel from .fallback_xai_voice_language import FallbackXaiVoiceLanguage from .fallback_xai_voice_voice_id import FallbackXaiVoiceVoiceId from .server import Server -from .tavus_conversation_properties import TavusConversationProperties from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator @@ -442,46 +440,6 @@ class Config: extra = pydantic.Extra.allow -class FallbackPlanVoicesItem_Tavus(UncheckedBaseModel): - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - FallbackTavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class FallbackPlanVoicesItem_Neuphonic(UncheckedBaseModel): provider: typing.Literal["neuphonic"] = "neuphonic" caching_enabled: typing_extensions.Annotated[ @@ -625,7 +583,6 @@ class Config: FallbackPlanVoicesItem_Wellsaid, FallbackPlanVoicesItem_RimeAi, FallbackPlanVoicesItem_SmallestAi, - FallbackPlanVoicesItem_Tavus, FallbackPlanVoicesItem_Neuphonic, FallbackPlanVoicesItem_Sesame, FallbackPlanVoicesItem_Inworld, diff --git a/src/vapi/types/fallback_reson_8_transcriber.py b/src/vapi/types/fallback_reson_8_transcriber.py new file mode 100644 index 000000000..d2e7680b0 --- /dev/null +++ b/src/vapi/types/fallback_reson_8_transcriber.py @@ -0,0 +1,70 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .fallback_reson_8_transcriber_filler_mode import FallbackReson8TranscriberFillerMode +from .fallback_reson_8_transcriber_model import FallbackReson8TranscriberModel + + +class FallbackReson8Transcriber(UncheckedBaseModel): + model: typing.Optional[FallbackReson8TranscriberModel] = pydantic.Field(default=None) + """ + The Reson8 speech-to-text endpoint to use. `turns` is Reson8's turn-detection endpoint. + """ + + language: typing.Optional[str] = pydantic.Field(default=None) + """ + Language for transcription (e.g. `nl`), or a comma-separated candidate list such as `nl,en` which constrains auto-detection. When omitted, Reson8 auto-detects the language per utterance. Supported: de, en, es, fr, fy, it, nl, pl, pt, sv. + """ + + keyterms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + Domain-specific terms to boost recognition (brand names, product codes, jargon). Sent to Reson8 as the `phrases` parameter. Max 250 phrases. + """ + + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="customModelId"), + pydantic.Field( + alias="customModelId", + description="A stored Reson8 phrase collection (custom model) id, managed via the Reson8 API or console.", + ), + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field( + alias="eagerTurnProbability", + description="Threshold (0-1) at which Reson8 emits an eager turn-end candidate. Provider default 0.5.", + ), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field( + alias="finalTurnProbability", + description="Threshold (0-1) at which Reson8 confirms the end of a turn. Provider default 0.92.", + ), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[FallbackReson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field( + alias="fillerMode", + description="How Reson8 renders filler words in transcripts. Provider default `natural`.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/fallback_reson_8_transcriber_filler_mode.py b/src/vapi/types/fallback_reson_8_transcriber_filler_mode.py new file mode 100644 index 000000000..f5460ef28 --- /dev/null +++ b/src/vapi/types/fallback_reson_8_transcriber_filler_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +FallbackReson8TranscriberFillerMode = typing.Union[typing.Literal["clean", "natural", "verbatim"], typing.Any] diff --git a/src/vapi/types/fallback_reson_8_transcriber_model.py b/src/vapi/types/fallback_reson_8_transcriber_model.py new file mode 100644 index 000000000..76f8465b0 --- /dev/null +++ b/src/vapi/types/fallback_reson_8_transcriber_model.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +FallbackReson8TranscriberModel = typing.Union[typing.Literal["turns"], typing.Any] diff --git a/src/vapi/types/fallback_tavus_voice.py b/src/vapi/types/fallback_tavus_voice.py index bf0ac9e59..01e6bbc7c 100644 --- a/src/vapi/types/fallback_tavus_voice.py +++ b/src/vapi/types/fallback_tavus_voice.py @@ -2,89 +2,7 @@ import typing -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from ..core.unchecked_base_model import UncheckedBaseModel -from .chunk_plan import ChunkPlan -from .fallback_tavus_voice_voice_id import FallbackTavusVoiceVoiceId -from .tavus_conversation_properties import TavusConversationProperties - - -class FallbackTavusVoice(UncheckedBaseModel): - """ - Fallback configuration for using Tavus as the assistant's voice provider, including persona, callback, context, greeting, conversation properties, chunking, and caching. - """ - - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="cachingEnabled"), - pydantic.Field( - alias="cachingEnabled", description="This is the flag to toggle voice caching for the assistant." - ), - ] = None - voice_id: typing_extensions.Annotated[ - FallbackTavusVoiceVoiceId, - FieldMetadata(alias="voiceId"), - pydantic.Field(alias="voiceId", description="This is the provider-specific ID that will be used."), - ] - persona_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="personaId"), - pydantic.Field( - alias="personaId", - description="This is the unique identifier for the persona that the replica will use in the conversation.", - ), - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="callbackUrl"), - pydantic.Field( - alias="callbackUrl", - description="This is the url that will receive webhooks with updates regarding the conversation state.", - ), - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationName"), - pydantic.Field(alias="conversationName", description="This is the name for the conversation."), - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field( - alias="conversationalContext", - description="This is the context that will be appended to any context provided in the persona, if one is provided.", - ), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="customGreeting"), - pydantic.Field( - alias="customGreeting", - description="This is the custom greeting that the replica will give once a participant joines the conversation.", - ), - ] = None - properties: typing.Optional[TavusConversationProperties] = pydantic.Field(default=None) - """ - These are optional properties used to customize the conversation. - """ - - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], - FieldMetadata(alias="chunkPlan"), - pydantic.Field( - alias="chunkPlan", - description="This is the plan for chunking the model output before it is sent to the voice provider.", - ), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow +FallbackTavusVoice = typing.Any +""" +Fallback configuration for using Tavus as the assistant's voice provider, including persona, callback, context, greeting, conversation properties, chunking, and caching. +""" diff --git a/src/vapi/types/fallback_tavus_voice_voice_id.py b/src/vapi/types/fallback_tavus_voice_voice_id.py deleted file mode 100644 index ce130c599..000000000 --- a/src/vapi/types/fallback_tavus_voice_voice_id.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .fallback_tavus_voice_voice_id_zero import FallbackTavusVoiceVoiceIdZero - -FallbackTavusVoiceVoiceId = typing.Union[FallbackTavusVoiceVoiceIdZero, str] diff --git a/src/vapi/types/fallback_tavus_voice_voice_id_zero.py b/src/vapi/types/fallback_tavus_voice_voice_id_zero.py deleted file mode 100644 index 68292fce0..000000000 --- a/src/vapi/types/fallback_tavus_voice_voice_id_zero.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FallbackTavusVoiceVoiceIdZero = typing.Union[typing.Literal["r52da2535a"], typing.Any] diff --git a/src/vapi/types/fallback_transcriber_plan_transcribers_item.py b/src/vapi/types/fallback_transcriber_plan_transcribers_item.py index f489982eb..f98316fe9 100644 --- a/src/vapi/types/fallback_transcriber_plan_transcribers_item.py +++ b/src/vapi/types/fallback_transcriber_plan_transcribers_item.py @@ -31,6 +31,8 @@ from .fallback_google_transcriber_model import FallbackGoogleTranscriberModel from .fallback_open_ai_transcriber_language import FallbackOpenAiTranscriberLanguage from .fallback_open_ai_transcriber_model import FallbackOpenAiTranscriberModel +from .fallback_reson_8_transcriber_filler_mode import FallbackReson8TranscriberFillerMode +from .fallback_reson_8_transcriber_model import FallbackReson8TranscriberModel from .fallback_soniox_transcriber_language import FallbackSonioxTranscriberLanguage from .fallback_soniox_transcriber_languages_item import FallbackSonioxTranscriberLanguagesItem from .fallback_soniox_transcriber_model import FallbackSonioxTranscriberModel @@ -192,6 +194,11 @@ class FallbackTranscriberPlanTranscribersItem_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -379,6 +386,8 @@ class FallbackTranscriberPlanTranscribersItem_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: FallbackOpenAiTranscriberModel language: typing.Optional[FallbackOpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 @@ -463,6 +472,40 @@ class Config: extra = pydantic.Extra.allow +class FallbackTranscriberPlanTranscribersItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[FallbackReson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[FallbackReson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + FallbackTranscriberPlanTranscribersItem = typing_extensions.Annotated[ typing.Union[ FallbackTranscriberPlanTranscribersItem_AssemblyAi, @@ -478,6 +521,7 @@ class Config: FallbackTranscriberPlanTranscribersItem_Cartesia, FallbackTranscriberPlanTranscribersItem_Soniox, FallbackTranscriberPlanTranscribersItem_Xai, + FallbackTranscriberPlanTranscribersItem_Reson8, ], UnionMetadata(discriminant="provider"), ] diff --git a/src/vapi/types/function_call_assistant_hook_action.py b/src/vapi/types/function_call_assistant_hook_action.py deleted file mode 100644 index d10642652..000000000 --- a/src/vapi/types/function_call_assistant_hook_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -FunctionCallAssistantHookAction = typing.Any diff --git a/src/vapi/types/function_tool.py b/src/vapi/types/function_tool.py index f48da7824..0f85a7d26 100644 --- a/src/vapi/types/function_tool.py +++ b/src/vapi/types/function_tool.py @@ -26,6 +26,14 @@ class FunctionTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[FunctionToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/generate_scenarios_dto.py b/src/vapi/types/generate_scenarios_dto.py new file mode 100644 index 000000000..9c1488306 --- /dev/null +++ b/src/vapi/types/generate_scenarios_dto.py @@ -0,0 +1,31 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class GenerateScenariosDto(UncheckedBaseModel): + assistant_id: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="assistantId"), + pydantic.Field(alias="assistantId", description="ID of the assistant to generate scenarios for"), + ] = None + squad_id: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="squadId"), + pydantic.Field(alias="squadId", description="ID of the squad to generate scenarios for"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/get_traffic_tab_metrics_dto.py b/src/vapi/types/get_traffic_tab_metrics_dto.py new file mode 100644 index 000000000..70a0c6f59 --- /dev/null +++ b/src/vapi/types/get_traffic_tab_metrics_dto.py @@ -0,0 +1,51 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .get_traffic_tab_metrics_dto_bucket import GetTrafficTabMetricsDtoBucket + + +class GetTrafficTabMetricsDto(UncheckedBaseModel): + assistant_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="assistantId"), + pydantic.Field(alias="assistantId", description="The assistant whose per-version traffic metrics to return."), + ] + from_: typing_extensions.Annotated[ + dt.datetime, + FieldMetadata(alias="from"), + pydantic.Field(alias="from", description="Start of the metrics window (inclusive), ISO 8601 datetime."), + ] + to: dt.datetime = pydantic.Field() + """ + End of the metrics window (exclusive), ISO 8601 datetime. Must be later than from, and the window may hold at most 2000 buckets of the requested width. + """ + + bucket: typing.Optional[GetTrafficTabMetricsDtoBucket] = pydantic.Field(default=None) + """ + Bucket size for the timeseries. Defaults to 'day'. + """ + + structured_output_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], + FieldMetadata(alias="structuredOutputIds"), + pydantic.Field( + alias="structuredOutputIds", + description="Structured output ids to aggregate per version, as an array or a comma-separated string. At most 5.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/get_traffic_tab_metrics_dto_bucket.py b/src/vapi/types/get_traffic_tab_metrics_dto_bucket.py new file mode 100644 index 000000000..aee6ff004 --- /dev/null +++ b/src/vapi/types/get_traffic_tab_metrics_dto_bucket.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GetTrafficTabMetricsDtoBucket = typing.Union[typing.Literal["hour", "day"], typing.Any] diff --git a/src/vapi/types/ghl_tool.py b/src/vapi/types/ghl_tool.py index 938a49430..4bffa0630 100644 --- a/src/vapi/types/ghl_tool.py +++ b/src/vapi/types/ghl_tool.py @@ -19,6 +19,14 @@ class GhlTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GhlToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/go_high_level_calendar_availability_tool.py b/src/vapi/types/go_high_level_calendar_availability_tool.py index 0cb91e9ee..086a99b39 100644 --- a/src/vapi/types/go_high_level_calendar_availability_tool.py +++ b/src/vapi/types/go_high_level_calendar_availability_tool.py @@ -22,6 +22,14 @@ class GoHighLevelCalendarAvailabilityTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarAvailabilityToolMessagesItem]] = pydantic.Field( default=None ) diff --git a/src/vapi/types/go_high_level_calendar_event_create_tool.py b/src/vapi/types/go_high_level_calendar_event_create_tool.py index 72e96957e..e1d26f0c2 100644 --- a/src/vapi/types/go_high_level_calendar_event_create_tool.py +++ b/src/vapi/types/go_high_level_calendar_event_create_tool.py @@ -22,6 +22,14 @@ class GoHighLevelCalendarEventCreateTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoHighLevelCalendarEventCreateToolMessagesItem]] = pydantic.Field( default=None ) diff --git a/src/vapi/types/go_high_level_contact_create_tool.py b/src/vapi/types/go_high_level_contact_create_tool.py index 2c823419a..69c37736f 100644 --- a/src/vapi/types/go_high_level_contact_create_tool.py +++ b/src/vapi/types/go_high_level_contact_create_tool.py @@ -22,6 +22,14 @@ class GoHighLevelContactCreateTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoHighLevelContactCreateToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/go_high_level_contact_get_tool.py b/src/vapi/types/go_high_level_contact_get_tool.py index 6246813e8..8f64b046d 100644 --- a/src/vapi/types/go_high_level_contact_get_tool.py +++ b/src/vapi/types/go_high_level_contact_get_tool.py @@ -22,6 +22,14 @@ class GoHighLevelContactGetTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoHighLevelContactGetToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/goal_evaluation_current_batch_request_dto.py b/src/vapi/types/goal_evaluation_current_batch_request_dto.py new file mode 100644 index 000000000..4e8f2d35e --- /dev/null +++ b/src/vapi/types/goal_evaluation_current_batch_request_dto.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .goal_evaluation_current_call_request_dto import GoalEvaluationCurrentCallRequestDto + + +class GoalEvaluationCurrentBatchRequestDto(UncheckedBaseModel): + evaluations: typing.List[GoalEvaluationCurrentCallRequestDto] = pydantic.Field() + """ + Explicit call/goal pairs. The organization comes from the authenticated caller. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/goal_evaluation_current_batch_response_dto.py b/src/vapi/types/goal_evaluation_current_batch_response_dto.py new file mode 100644 index 000000000..57235e2e2 --- /dev/null +++ b/src/vapi/types/goal_evaluation_current_batch_response_dto.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .goal_evaluation_current_call_response_dto import GoalEvaluationCurrentCallResponseDto + + +class GoalEvaluationCurrentBatchResponseDto(UncheckedBaseModel): + results: typing.List[GoalEvaluationCurrentCallResponseDto] = pydantic.Field() + """ + One entry per requested call/goal pair, in request order, including entries without a current evaluation. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/fallback_neets_voice.py b/src/vapi/types/goal_evaluation_current_call_request_dto.py similarity index 67% rename from src/vapi/types/fallback_neets_voice.py rename to src/vapi/types/goal_evaluation_current_call_request_dto.py index 3be5d74ee..e48f7de66 100644 --- a/src/vapi/types/fallback_neets_voice.py +++ b/src/vapi/types/goal_evaluation_current_call_request_dto.py @@ -9,10 +9,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel -class FallbackNeetsVoice(UncheckedBaseModel): - voice_id: typing_extensions.Annotated[ - typing.Optional[typing.Any], FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] = None +class GoalEvaluationCurrentCallRequestDto(UncheckedBaseModel): + call_id: typing_extensions.Annotated[str, FieldMetadata(alias="callId"), pydantic.Field(alias="callId")] + goal_id: typing_extensions.Annotated[str, FieldMetadata(alias="goalId"), pydantic.Field(alias="goalId")] if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/vapi/types/goal_evaluation_current_call_response_dto.py b/src/vapi/types/goal_evaluation_current_call_response_dto.py new file mode 100644 index 000000000..0caa7cae1 --- /dev/null +++ b/src/vapi/types/goal_evaluation_current_call_response_dto.py @@ -0,0 +1,37 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .goal_evaluation_current_dto import GoalEvaluationCurrentDto + + +class GoalEvaluationCurrentCallResponseDto(UncheckedBaseModel): + call_id: typing_extensions.Annotated[str, FieldMetadata(alias="callId"), pydantic.Field(alias="callId")] + goal_id: typing_extensions.Annotated[str, FieldMetadata(alias="goalId"), pydantic.Field(alias="goalId")] + current_goal_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="currentGoalVersion"), + pydantic.Field( + alias="currentGoalVersion", + description="Current revision of the requested goal for a visible call. Absent when that goal does not belong to the source assistant or the source is hidden. An absent evaluation does not imply queued or pending work.", + ), + ] = None + current_evaluation: typing_extensions.Annotated[ + typing.Optional[GoalEvaluationCurrentDto], + FieldMetadata(alias="currentEvaluation"), + pydantic.Field(alias="currentEvaluation"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/goal_evaluation_current_dto.py b/src/vapi/types/goal_evaluation_current_dto.py new file mode 100644 index 000000000..8bede208f --- /dev/null +++ b/src/vapi/types/goal_evaluation_current_dto.py @@ -0,0 +1,51 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .goal_evaluation_current_dto_goal_outcome import GoalEvaluationCurrentDtoGoalOutcome +from .goal_evaluation_current_dto_processing_state import GoalEvaluationCurrentDtoProcessingState + + +class GoalEvaluationCurrentDto(UncheckedBaseModel): + assistant_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") + ] + goal_id: typing_extensions.Annotated[str, FieldMetadata(alias="goalId"), pydantic.Field(alias="goalId")] + goal_version: typing_extensions.Annotated[ + str, + FieldMetadata(alias="goalVersion"), + pydantic.Field( + alias="goalVersion", description="Current immutable goal revision, encoded as a decimal bigint string." + ), + ] + call_ended_at: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="callEndedAt"), pydantic.Field(alias="callEndedAt") + ] + processing_state: typing_extensions.Annotated[ + GoalEvaluationCurrentDtoProcessingState, + FieldMetadata(alias="processingState"), + pydantic.Field(alias="processingState"), + ] + goal_outcome: typing_extensions.Annotated[ + typing.Optional[GoalEvaluationCurrentDtoGoalOutcome], + FieldMetadata(alias="goalOutcome"), + pydantic.Field( + alias="goalOutcome", + description="Absent until a semantic result is accepted. Processing failures are never goal_not_met.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/goal_evaluation_current_dto_goal_outcome.py b/src/vapi/types/goal_evaluation_current_dto_goal_outcome.py new file mode 100644 index 000000000..625c96281 --- /dev/null +++ b/src/vapi/types/goal_evaluation_current_dto_goal_outcome.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GoalEvaluationCurrentDtoGoalOutcome = typing.Union[ + typing.Literal["goal_met", "goal_not_met", "not_applicable"], typing.Any +] diff --git a/src/vapi/types/goal_evaluation_current_dto_processing_state.py b/src/vapi/types/goal_evaluation_current_dto_processing_state.py new file mode 100644 index 000000000..2b824e230 --- /dev/null +++ b/src/vapi/types/goal_evaluation_current_dto_processing_state.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GoalEvaluationCurrentDtoProcessingState = typing.Union[ + typing.Literal["pending", "running", "parked", "unavailable", "excluded", "completed"], typing.Any +] diff --git a/src/vapi/types/google_calendar_check_availability_tool.py b/src/vapi/types/google_calendar_check_availability_tool.py index 3d53653dc..ce009273b 100644 --- a/src/vapi/types/google_calendar_check_availability_tool.py +++ b/src/vapi/types/google_calendar_check_availability_tool.py @@ -22,6 +22,14 @@ class GoogleCalendarCheckAvailabilityTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoogleCalendarCheckAvailabilityToolMessagesItem]] = pydantic.Field( default=None ) diff --git a/src/vapi/types/google_calendar_create_event_tool.py b/src/vapi/types/google_calendar_create_event_tool.py index 827d15c50..1ecb8b4d6 100644 --- a/src/vapi/types/google_calendar_create_event_tool.py +++ b/src/vapi/types/google_calendar_create_event_tool.py @@ -22,6 +22,14 @@ class GoogleCalendarCreateEventTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoogleCalendarCreateEventToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/google_model.py b/src/vapi/types/google_model.py index 2e2071b9e..ea2a0d668 100644 --- a/src/vapi/types/google_model.py +++ b/src/vapi/types/google_model.py @@ -77,7 +77,7 @@ class GoogleModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -131,9 +131,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -167,6 +164,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -201,9 +201,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -237,6 +234,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/google_model_model.py b/src/vapi/types/google_model_model.py index ca510fea9..718f53965 100644 --- a/src/vapi/types/google_model_model.py +++ b/src/vapi/types/google_model_model.py @@ -4,6 +4,7 @@ GoogleModelModel = typing.Union[ typing.Literal[ + "gemini-3.8-flash", "gemini-3.5-flash", "gemini-3.1-flash-lite", "gemini-3-flash-preview", diff --git a/src/vapi/types/google_model_tools_item.py b/src/vapi/types/google_model_tools_item.py index a200e9c7a..fd25ff132 100644 --- a/src/vapi/types/google_model_tools_item.py +++ b/src/vapi/types/google_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/google_sheets_row_append_tool.py b/src/vapi/types/google_sheets_row_append_tool.py index 216b68e4e..03533bf23 100644 --- a/src/vapi/types/google_sheets_row_append_tool.py +++ b/src/vapi/types/google_sheets_row_append_tool.py @@ -22,6 +22,14 @@ class GoogleSheetsRowAppendTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[GoogleSheetsRowAppendToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/google_transcriber_model.py b/src/vapi/types/google_transcriber_model.py index d406d174f..64b35f739 100644 --- a/src/vapi/types/google_transcriber_model.py +++ b/src/vapi/types/google_transcriber_model.py @@ -4,6 +4,7 @@ GoogleTranscriberModel = typing.Union[ typing.Literal[ + "gemini-3.8-flash", "gemini-3.5-flash", "gemini-3.1-flash-lite", "gemini-3-flash-preview", diff --git a/src/vapi/types/groq_model.py b/src/vapi/types/groq_model.py index cae41f3c3..d8c591d24 100644 --- a/src/vapi/types/groq_model.py +++ b/src/vapi/types/groq_model.py @@ -68,7 +68,7 @@ class GroqModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -122,9 +122,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -158,6 +155,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -192,9 +192,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -228,6 +225,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/groq_model_tools_item.py b/src/vapi/types/groq_model_tools_item.py index 32da57406..b0c27340c 100644 --- a/src/vapi/types/groq_model_tools_item.py +++ b/src/vapi/types/groq_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/guardrail_authoring.py b/src/vapi/types/guardrail_authoring.py new file mode 100644 index 000000000..13558a70f --- /dev/null +++ b/src/vapi/types/guardrail_authoring.py @@ -0,0 +1,26 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_authoring_mode import GuardrailAuthoringMode + + +class GuardrailAuthoring(UncheckedBaseModel): + mode: GuardrailAuthoringMode + behavior: str + condition: typing.Optional[str] = pydantic.Field(default=None) + """ + Natural-language condition evaluated using the candidate and call history. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_authoring_mode.py b/src/vapi/types/guardrail_authoring_mode.py new file mode 100644 index 000000000..9aa335d68 --- /dev/null +++ b/src/vapi/types/guardrail_authoring_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailAuthoringMode = typing.Union[typing.Literal["always", "never"], typing.Any] diff --git a/src/vapi/types/guardrail_escalate_action.py b/src/vapi/types/guardrail_escalate_action.py new file mode 100644 index 000000000..ac3fe13d6 --- /dev/null +++ b/src/vapi/types/guardrail_escalate_action.py @@ -0,0 +1,35 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_escalate_action_type import GuardrailEscalateActionType + + +class GuardrailEscalateAction(UncheckedBaseModel): + type: GuardrailEscalateActionType + tool_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="toolId"), + pydantic.Field( + alias="toolId", + description="Existing same-organization tool; attachment is checked at assignment. Tool edits/deletion can invalidate the action: activation must revalidate the current tool and arguments, and use failurePolicy on failure.", + ), + ] + arguments: typing.Dict[str, typing.Any] = pydantic.Field() + """ + Parameter names follow the normalized tool schema (SMS uses body/to). + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_escalate_action_type.py b/src/vapi/types/guardrail_escalate_action_type.py new file mode 100644 index 000000000..fb447536f --- /dev/null +++ b/src/vapi/types/guardrail_escalate_action_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailEscalateActionType = typing.Union[typing.Literal["escalate"], typing.Any] diff --git a/src/vapi/types/guardrail_fixed_response_action.py b/src/vapi/types/guardrail_fixed_response_action.py new file mode 100644 index 000000000..b121245cc --- /dev/null +++ b/src/vapi/types/guardrail_fixed_response_action.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_fixed_response_action_type import GuardrailFixedResponseActionType + + +class GuardrailFixedResponseAction(UncheckedBaseModel): + type: GuardrailFixedResponseActionType + text: str = pydantic.Field() + """ + Replacement speech; it must pass its own guardrail evaluation. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_fixed_response_action_type.py b/src/vapi/types/guardrail_fixed_response_action_type.py new file mode 100644 index 000000000..2583bd016 --- /dev/null +++ b/src/vapi/types/guardrail_fixed_response_action_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailFixedResponseActionType = typing.Union[typing.Literal["auto-response"], typing.Any] diff --git a/src/vapi/types/guardrail_pack.py b/src/vapi/types/guardrail_pack.py new file mode 100644 index 000000000..3f4f94c27 --- /dev/null +++ b/src/vapi/types/guardrail_pack.py @@ -0,0 +1,38 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class GuardrailPack(UncheckedBaseModel): + id: str + org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] + created_at: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="createdAt"), pydantic.Field(alias="createdAt") + ] + updated_at: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="updatedAt"), pydantic.Field(alias="updatedAt") + ] + name: str + rule_ids: typing_extensions.Annotated[ + typing.List[str], + FieldMetadata(alias="ruleIds"), + pydantic.Field( + alias="ruleIds", description="Projected from membership rows; a supplied array replaces membership." + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_packs_page.py b/src/vapi/types/guardrail_packs_page.py new file mode 100644 index 000000000..4adde9603 --- /dev/null +++ b/src/vapi/types/guardrail_packs_page.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_pack import GuardrailPack +from .pagination_meta import PaginationMeta + + +class GuardrailPacksPage(UncheckedBaseModel): + results: typing.List[GuardrailPack] + metadata: PaginationMeta + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_redirect_action.py b/src/vapi/types/guardrail_redirect_action.py new file mode 100644 index 000000000..b9ccc336b --- /dev/null +++ b/src/vapi/types/guardrail_redirect_action.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_redirect_action_type import GuardrailRedirectActionType + + +class GuardrailRedirectAction(UncheckedBaseModel): + type: GuardrailRedirectActionType + instructions: str = pydantic.Field() + """ + Steering instructions for generating a replacement candidate. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_redirect_action_type.py b/src/vapi/types/guardrail_redirect_action_type.py new file mode 100644 index 000000000..5f19460e1 --- /dev/null +++ b/src/vapi/types/guardrail_redirect_action_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailRedirectActionType = typing.Union[typing.Literal["auto-response"], typing.Any] diff --git a/src/vapi/types/guardrail_rule.py b/src/vapi/types/guardrail_rule.py new file mode 100644 index 000000000..4494fffe2 --- /dev/null +++ b/src/vapi/types/guardrail_rule.py @@ -0,0 +1,53 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_authoring import GuardrailAuthoring +from .guardrail_rule_action import GuardrailRuleAction +from .guardrail_rule_sensitivity import GuardrailRuleSensitivity + + +class GuardrailRule(UncheckedBaseModel): + id: str + org_id: typing_extensions.Annotated[str, FieldMetadata(alias="orgId"), pydantic.Field(alias="orgId")] + created_at: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="createdAt"), pydantic.Field(alias="createdAt") + ] + updated_at: typing_extensions.Annotated[ + dt.datetime, FieldMetadata(alias="updatedAt"), pydantic.Field(alias="updatedAt") + ] + name: str + authoring: typing.Optional[GuardrailAuthoring] = pydantic.Field(default=None) + """ + Structured editor input. Supplied PATCH authoring replaces the complete object; advanced text writes clear it to null. + """ + + instructions: typing.Optional[str] = pydantic.Field(default=None) + """ + Evaluated instructions, generated from authoring or supplied in advanced mode. + """ + + sensitivity: GuardrailRuleSensitivity = pydantic.Field() + """ + Evaluation sensitivity; numeric cutoffs are internal and provisional. + """ + + action: GuardrailRuleAction = pydantic.Field() + """ + Supplied PATCH actions replace the complete variant. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/guardrail_rule_action.py b/src/vapi/types/guardrail_rule_action.py new file mode 100644 index 000000000..59758f7b4 --- /dev/null +++ b/src/vapi/types/guardrail_rule_action.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .guardrail_escalate_action import GuardrailEscalateAction +from .guardrail_rule_action_zero import GuardrailRuleActionZero + +GuardrailRuleAction = typing.Union[GuardrailRuleActionZero, GuardrailEscalateAction] diff --git a/src/vapi/types/guardrail_rule_action_zero.py b/src/vapi/types/guardrail_rule_action_zero.py new file mode 100644 index 000000000..71b3a2cbb --- /dev/null +++ b/src/vapi/types/guardrail_rule_action_zero.py @@ -0,0 +1,47 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from .guardrail_fixed_response_action_type import GuardrailFixedResponseActionType +from .guardrail_redirect_action_type import GuardrailRedirectActionType + + +class GuardrailRuleActionZero_Fixed(UncheckedBaseModel): + mode: typing.Literal["fixed"] = "fixed" + type: GuardrailFixedResponseActionType + text: str + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class GuardrailRuleActionZero_Redirect(UncheckedBaseModel): + mode: typing.Literal["redirect"] = "redirect" + type: GuardrailRedirectActionType + instructions: str + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +GuardrailRuleActionZero = typing_extensions.Annotated[ + typing.Union[GuardrailRuleActionZero_Fixed, GuardrailRuleActionZero_Redirect], UnionMetadata(discriminant="mode") +] diff --git a/src/vapi/types/guardrail_rule_sensitivity.py b/src/vapi/types/guardrail_rule_sensitivity.py new file mode 100644 index 000000000..8b319c470 --- /dev/null +++ b/src/vapi/types/guardrail_rule_sensitivity.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GuardrailRuleSensitivity = typing.Union[typing.Literal["low", "medium", "aggressive"], typing.Any] diff --git a/src/vapi/types/guardrail_rules_page.py b/src/vapi/types/guardrail_rules_page.py new file mode 100644 index 000000000..402935ac6 --- /dev/null +++ b/src/vapi/types/guardrail_rules_page.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .guardrail_rule import GuardrailRule +from .pagination_meta import PaginationMeta + + +class GuardrailRulesPage(UncheckedBaseModel): + results: typing.List[GuardrailRule] + metadata: PaginationMeta + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/handoff_destination_assistant.py b/src/vapi/types/handoff_destination_assistant.py index 898422f2f..9d2b687b7 100644 --- a/src/vapi/types/handoff_destination_assistant.py +++ b/src/vapi/types/handoff_destination_assistant.py @@ -48,7 +48,7 @@ class HandoffDestinationAssistant(UncheckedBaseModel): description="This is the assistant id to transfer the call to. You must provide either assistantName or assistantId.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is a transient assistant to transfer the call to. You may provide a transient assistant in the response `handoff-destination-request` in a dynamic handoff. """ @@ -107,9 +107,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -143,6 +140,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -177,9 +177,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -213,6 +210,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/handoff_destination_squad.py b/src/vapi/types/handoff_destination_squad.py index 9b8cd6044..528090e81 100644 --- a/src/vapi/types/handoff_destination_squad.py +++ b/src/vapi/types/handoff_destination_squad.py @@ -98,9 +98,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -134,6 +131,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -168,9 +168,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -204,6 +201,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/handoff_tool.py b/src/vapi/types/handoff_tool.py index 57a7582d8..ddb34ea20 100644 --- a/src/vapi/types/handoff_tool.py +++ b/src/vapi/types/handoff_tool.py @@ -24,6 +24,14 @@ class HandoffTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[HandoffToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/handoff_tool_destinations_item.py b/src/vapi/types/handoff_tool_destinations_item.py index 650695dbb..e29e4fed6 100644 --- a/src/vapi/types/handoff_tool_destinations_item.py +++ b/src/vapi/types/handoff_tool_destinations_item.py @@ -28,7 +28,7 @@ class HandoffToolDestinationsItem_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None variable_extraction_plan: typing_extensions.Annotated[ typing.Optional[VariableExtractionPlan], FieldMetadata(alias="variableExtractionPlan"), @@ -132,9 +132,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -168,6 +165,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -203,9 +203,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -239,6 +236,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -273,9 +273,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -309,6 +306,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/inflection_ai_model.py b/src/vapi/types/inflection_ai_model.py index e13a790ed..f9a5f3a18 100644 --- a/src/vapi/types/inflection_ai_model.py +++ b/src/vapi/types/inflection_ai_model.py @@ -68,7 +68,7 @@ class InflectionAiModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -122,9 +122,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -158,6 +155,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -192,9 +192,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -228,6 +225,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/inflection_ai_model_tools_item.py b/src/vapi/types/inflection_ai_model_tools_item.py index 80b29c97c..44c903a6c 100644 --- a/src/vapi/types/inflection_ai_model_tools_item.py +++ b/src/vapi/types/inflection_ai_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/json_query_on_call_table_with_number_type_column.py b/src/vapi/types/json_query_on_call_table_with_number_type_column.py index 307db56a9..5b3f9e403 100644 --- a/src/vapi/types/json_query_on_call_table_with_number_type_column.py +++ b/src/vapi/types/json_query_on_call_table_with_number_type_column.py @@ -50,6 +50,7 @@ class JsonQueryOnCallTableWithNumberTypeColumn(UncheckedBaseModel): """ This is the aggregation operation to perform on the column. When the column is a number type, the operation must be one of the following: + - count - average - sum - min diff --git a/src/vapi/types/json_query_on_call_table_with_number_type_column_operation.py b/src/vapi/types/json_query_on_call_table_with_number_type_column_operation.py index af08f990b..3299bcedc 100644 --- a/src/vapi/types/json_query_on_call_table_with_number_type_column_operation.py +++ b/src/vapi/types/json_query_on_call_table_with_number_type_column_operation.py @@ -3,5 +3,5 @@ import typing JsonQueryOnCallTableWithNumberTypeColumnOperation = typing.Union[ - typing.Literal["average", "sum", "min", "max"], typing.Any + typing.Literal["count", "average", "sum", "min", "max"], typing.Any ] diff --git a/src/vapi/types/json_query_on_events_table.py b/src/vapi/types/json_query_on_events_table.py index 9368744a3..4daa85da5 100644 --- a/src/vapi/types/json_query_on_events_table.py +++ b/src/vapi/types/json_query_on_events_table.py @@ -33,6 +33,11 @@ class JsonQueryOnEventsTable(UncheckedBaseModel): The event type to query """ + column: typing.Optional[str] = pydantic.Field(default=None) + """ + The structured output an evaluation monitor tracks, as artifact.structuredOutputs[OutputID] + """ + operation: JsonQueryOnEventsTableOperation = pydantic.Field() """ This is the operation to perform on matching events. diff --git a/src/vapi/types/json_query_on_events_table_on.py b/src/vapi/types/json_query_on_events_table_on.py index 27a73e1d1..4ce492efb 100644 --- a/src/vapi/types/json_query_on_events_table_on.py +++ b/src/vapi/types/json_query_on_events_table_on.py @@ -35,6 +35,8 @@ "call.hookTriggered", "call.hookSucceeded", "call.hookFailed", + "serverMessage.requestSucceeded", + "serverMessage.requestFailed", "call.statusReceived", "call.silenceTimeout", "call.microphoneTimeout", @@ -104,6 +106,7 @@ "pipeline.endpointingTriggered", "pipeline.firstMessageStarted", "pipeline.firstMessageCompleted", + "pipeline.denoiserFailed", ], typing.Any, ] diff --git a/src/vapi/types/knowledge_base_model.py b/src/vapi/types/knowledge_base_model.py index ab42fc6ea..cb333b5a3 100644 --- a/src/vapi/types/knowledge_base_model.py +++ b/src/vapi/types/knowledge_base_model.py @@ -4,6 +4,7 @@ KnowledgeBaseModel = typing.Union[ typing.Literal[ + "gemini-3.8-flash", "gemini-3.5-flash", "gemini-3.1-flash-lite", "gemini-3-flash-preview", diff --git a/src/vapi/types/knowledge_base_tool.py b/src/vapi/types/knowledge_base_tool.py index 5a7c32754..130e9fa1b 100644 --- a/src/vapi/types/knowledge_base_tool.py +++ b/src/vapi/types/knowledge_base_tool.py @@ -19,6 +19,14 @@ class KnowledgeBaseTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[KnowledgeBaseToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/langfuse_credential.py b/src/vapi/types/langfuse_credential.py index 35d474443..17d371a85 100644 --- a/src/vapi/types/langfuse_credential.py +++ b/src/vapi/types/langfuse_credential.py @@ -31,6 +31,14 @@ class LangfuseCredential(UncheckedBaseModel): FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl", description="The host URL for Langfuse project. Eg: https://cloud.langfuse.com"), ] + server_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="serverVersion"), + pydantic.Field( + alias="serverVersion", + description="The semver version of your Langfuse server, e.g. 3.63.0, as its /api/public/health endpoint reports it. Optional.", + ), + ] = None id: str = pydantic.Field() """ This is the unique identifier for the credential. diff --git a/src/vapi/types/line_insight_from_call_table_queries_item.py b/src/vapi/types/line_insight_from_call_table_queries_item.py index e6b1758d0..59972d276 100644 --- a/src/vapi/types/line_insight_from_call_table_queries_item.py +++ b/src/vapi/types/line_insight_from_call_table_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable LineInsightFromCallTableQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/line_insight_queries_item.py b/src/vapi/types/line_insight_queries_item.py index 8a4425b7a..70c177659 100644 --- a/src/vapi/types/line_insight_queries_item.py +++ b/src/vapi/types/line_insight_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable LineInsightQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/logic_edge_condition.py b/src/vapi/types/logic_edge_condition.py deleted file mode 100644 index 8d04e30f9..000000000 --- a/src/vapi/types/logic_edge_condition.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -LogicEdgeCondition = typing.Any diff --git a/src/vapi/types/make_tool.py b/src/vapi/types/make_tool.py index ff4753bad..7134f9dbc 100644 --- a/src/vapi/types/make_tool.py +++ b/src/vapi/types/make_tool.py @@ -20,6 +20,14 @@ class MakeTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[MakeToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/mcp_tool.py b/src/vapi/types/mcp_tool.py index 0e76da18b..0e17ebb2f 100644 --- a/src/vapi/types/mcp_tool.py +++ b/src/vapi/types/mcp_tool.py @@ -25,6 +25,14 @@ class McpTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[McpToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/minimax_llm_model.py b/src/vapi/types/minimax_llm_model.py index d7c550822..69bcd7528 100644 --- a/src/vapi/types/minimax_llm_model.py +++ b/src/vapi/types/minimax_llm_model.py @@ -68,7 +68,7 @@ class MinimaxLlmModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -122,9 +122,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -158,6 +155,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -192,9 +192,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -228,6 +225,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/minimax_llm_model_tools_item.py b/src/vapi/types/minimax_llm_model_tools_item.py index e5fc958d1..81a862a5d 100644 --- a/src/vapi/types/minimax_llm_model_tools_item.py +++ b/src/vapi/types/minimax_llm_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/model_cost.py b/src/vapi/types/model_cost.py index 5eac12beb..cb5433210 100644 --- a/src/vapi/types/model_cost.py +++ b/src/vapi/types/model_cost.py @@ -7,6 +7,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2 from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel +from .model_cost_service_tier_breakdown import ModelCostServiceTierBreakdown class ModelCost(UncheckedBaseModel): @@ -72,6 +73,14 @@ class ModelCost(UncheckedBaseModel): description="This is the number of reasoning tokens generated in the call. This is only applicable to reasoning models (e.g., OpenAI o-series, GPT-5) on providers that report them.\n\nThis is a **subset of `completionTokens`**, not an addition to it: reasoning tokens are already counted in `completionTokens` and are already billed at the output-token rate. It is reported separately for visibility only and does not affect `cost`.", ), ] = None + service_tier_breakdown: typing_extensions.Annotated[ + typing.Optional[typing.List[ModelCostServiceTierBreakdown]], + FieldMetadata(alias="serviceTierBreakdown"), + pydantic.Field( + alias="serviceTierBreakdown", + description="This is the cost split by OpenAI service tier. It is only set on call costs, and only when OpenAI reported the tier it served for a request that asked for Fast mode.\n\nThere is one row per reported tier, plus one row without `serviceTier` for usage with no reported tier. The rows add up to the token counts above, and to `cost` within rounding.", + ), + ] = None cost: float = pydantic.Field() """ This is the cost of the component in USD. diff --git a/src/vapi/types/model_cost_service_tier_breakdown.py b/src/vapi/types/model_cost_service_tier_breakdown.py new file mode 100644 index 000000000..32660eba6 --- /dev/null +++ b/src/vapi/types/model_cost_service_tier_breakdown.py @@ -0,0 +1,62 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class ModelCostServiceTierBreakdown(UncheckedBaseModel): + service_tier: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="serviceTier"), + pydantic.Field( + alias="serviceTier", + description="This is the service tier OpenAI reported serving a request that asked for Fast mode, in Vapi's names: `fast` when Fast mode was served, otherwise the tier served, such as `default`. It is absent on the row for usage with no reported tier: requests that did not ask for Fast mode, requests that ended before OpenAI reported a tier, and other providers.", + ), + ] = None + cost: float = pydantic.Field() + """ + This is the cost in USD of the usage at this tier, rounded to 8 decimal places. + """ + + prompt_tokens: typing_extensions.Annotated[ + float, + FieldMetadata(alias="promptTokens"), + pydantic.Field(alias="promptTokens", description="This is the number of prompt tokens used at this tier."), + ] + completion_tokens: typing_extensions.Annotated[ + float, + FieldMetadata(alias="completionTokens"), + pydantic.Field( + alias="completionTokens", description="This is the number of completion tokens generated at this tier." + ), + ] + cached_prompt_tokens: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="cachedPromptTokens"), + pydantic.Field( + alias="cachedPromptTokens", + description="This is the number of cached prompt tokens used at this tier. This is a subset of `promptTokens`, not an addition to it.", + ), + ] = None + reasoning_tokens: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="reasoningTokens"), + pydantic.Field( + alias="reasoningTokens", + description="This is the number of reasoning tokens generated at this tier. This is a subset of `completionTokens`, not an addition to it.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/open_ai_model.py b/src/vapi/types/open_ai_model.py index 03d5b52ea..98ce860d1 100644 --- a/src/vapi/types/open_ai_model.py +++ b/src/vapi/types/open_ai_model.py @@ -118,7 +118,7 @@ class OpenAiModel(UncheckedBaseModel): FieldMetadata(alias="serviceTier"), pydantic.Field( alias="serviceTier", - description="This is the OpenAI service tier used for chat completions requests.\n\n- `fast`: OpenAI's fast processing tier (renamed from `priority` on 2026-07-30; both values are accepted and billed identically) — up to ~2.5x faster inference at 2x the standard token rates. OpenAI may silently downgrade a fast request to standard processing under ramp limits; when that happens the response reports the served tier and the request is billed at standard rates.\n- `auto`: uses the service tier configured for the OpenAI project.\n- `default`: standard processing and billing.\n\nOnly applies to models that support fast processing: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5. Ignored for other models.\n\n@default undefined (uses the service tier configured for the OpenAI project)", + description="This is the OpenAI service tier to request.\n\n- `fast`: requests Fast mode, which gives faster responses at a higher per-token rate. How much faster depends on the model.\n- `priority`: the old name for `fast`, accepted and billed the same.\n- `default`: standard processing.\n- `auto`: the default when unset. On Vapi's OpenAI keys this is standard processing; on your own OpenAI key, OpenAI applies your project's default tier.\n\nOpenAI sets Fast mode rates per model, and they are not a fixed multiple of the standard rates. Vapi bills them only when OpenAI reports that it served the request in Fast mode. Otherwise the request is billed at standard rates, for example when Fast mode isn't available for the model on Vapi, OpenAI downgrades the request, or the request runs on Azure OpenAI.\n\nSupported models and their Fast mode rates: https://docs.vapi.ai/providers/model/openai", ), ] = None reasoning_effort: typing_extensions.Annotated[ @@ -139,7 +139,7 @@ class OpenAiModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -193,9 +193,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -229,6 +226,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -263,9 +263,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -299,6 +296,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/open_ai_model_tools_item.py b/src/vapi/types/open_ai_model_tools_item.py index 80d3e1a32..85b36fb82 100644 --- a/src/vapi/types/open_ai_model_tools_item.py +++ b/src/vapi/types/open_ai_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/open_ai_transcriber.py b/src/vapi/types/open_ai_transcriber.py index a0d99b568..5a8d39ffd 100644 --- a/src/vapi/types/open_ai_transcriber.py +++ b/src/vapi/types/open_ai_transcriber.py @@ -20,6 +20,7 @@ class OpenAiTranscriber(UncheckedBaseModel): model: OpenAiTranscriberModel = pydantic.Field() """ This is the model that will be used for the transcription. + Digit formatting can differ by model: `gpt-transcribe` may write spoken digit strings as words (for example, "four seven two"), where `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` may write them as digits ("472"). Do not rely on either format. """ language: typing.Optional[OpenAiTranscriberLanguage] = pydantic.Field(default=None) @@ -27,6 +28,18 @@ class OpenAiTranscriber(UncheckedBaseModel): This is the language that will be set for the transcription. """ + keywords: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + These are words and phrases the model should recognize, such as names, brands, and product terms. + Supported only by `gpt-transcribe`. Each keyword is one line and must not contain `<` or `>`. Maximum 16,384 keywords. + """ + + prompt: typing.Optional[str] = pydantic.Field(default=None) + """ + This is free-text context for the transcription, such as the topic of the call or the expected vocabulary. + Maximum length: 8,192 characters for `gpt-transcribe`, and 1,024 characters for `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`. + """ + fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), diff --git a/src/vapi/types/open_ai_transcriber_model.py b/src/vapi/types/open_ai_transcriber_model.py index 22c9a3294..8dcd7665b 100644 --- a/src/vapi/types/open_ai_transcriber_model.py +++ b/src/vapi/types/open_ai_transcriber_model.py @@ -2,4 +2,6 @@ import typing -OpenAiTranscriberModel = typing.Union[typing.Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe"], typing.Any] +OpenAiTranscriberModel = typing.Union[ + typing.Literal["gpt-4o-transcribe", "gpt-4o-mini-transcribe", "gpt-transcribe"], typing.Any +] diff --git a/src/vapi/types/open_ai_voice.py b/src/vapi/types/open_ai_voice.py index 786553c48..8c87d09eb 100644 --- a/src/vapi/types/open_ai_voice.py +++ b/src/vapi/types/open_ai_voice.py @@ -30,7 +30,7 @@ class OpenAiVoice(UncheckedBaseModel): FieldMetadata(alias="voiceId"), pydantic.Field( alias="voiceId", - description="This is the provider-specific ID that will be used.\nVoice availability depends on the selected model.\nquartz, ripple, vesper, willow, stone, gleam, meridian, bossa, tempo, beacon, delta, cinder are only supported with GPT-Live models.", + description="This is the provider-specific ID that will be used.\nVoice availability depends on the selected model: voices offered only by GPT-Live are rejected for other models.", ), ] model: typing.Optional[OpenAiVoiceModel] = pydantic.Field(default=None) diff --git a/src/vapi/types/open_ai_voice_id_enum.py b/src/vapi/types/open_ai_voice_id_enum.py index 26e31dbd8..15def31df 100644 --- a/src/vapi/types/open_ai_voice_id_enum.py +++ b/src/vapi/types/open_ai_voice_id_enum.py @@ -16,14 +16,23 @@ "ballad", "beacon", "bossa", + "brise", "cinder", "coral", "delta", + "flitz", "gleam", + "harema", + "juni", "meridian", + "nira", + "noeul", + "nuri", "quartz", "ripple", "sage", + "shida", + "sillage", "stone", "tempo", "verse", diff --git a/src/vapi/types/open_ai_web_chat_request.py b/src/vapi/types/open_ai_web_chat_request.py index 6263702e5..ea4e09bd9 100644 --- a/src/vapi/types/open_ai_web_chat_request.py +++ b/src/vapi/types/open_ai_web_chat_request.py @@ -23,7 +23,7 @@ class OpenAiWebChatRequest(UncheckedBaseModel): description="This is the assistant ID to use for this chat. To use a transient assistant, use `assistant` instead.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the transient assistant configuration for this chat. To use an existing assistant, use `assistantId` instead. """ @@ -112,9 +112,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -149,6 +146,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -183,9 +183,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -220,6 +217,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/open_router_model.py b/src/vapi/types/open_router_model.py index e456811ce..4ee0063f3 100644 --- a/src/vapi/types/open_router_model.py +++ b/src/vapi/types/open_router_model.py @@ -67,7 +67,7 @@ class OpenRouterModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -121,9 +121,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -157,6 +154,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -191,9 +191,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -227,6 +224,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/open_router_model_tools_item.py b/src/vapi/types/open_router_model_tools_item.py index cf3b600d9..3257ec1e0 100644 --- a/src/vapi/types/open_router_model_tools_item.py +++ b/src/vapi/types/open_router_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/output_tool.py b/src/vapi/types/output_tool.py index a1a1e2a2d..beb6d6b7f 100644 --- a/src/vapi/types/output_tool.py +++ b/src/vapi/types/output_tool.py @@ -19,6 +19,14 @@ class OutputTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[OutputToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/performance_metrics.py b/src/vapi/types/performance_metrics.py index 530d3f5d2..21f19fe2e 100644 --- a/src/vapi/types/performance_metrics.py +++ b/src/vapi/types/performance_metrics.py @@ -18,20 +18,26 @@ class PerformanceMetrics(UncheckedBaseModel): turn_latencies: typing_extensions.Annotated[ typing.Optional[typing.List[TurnLatency]], FieldMetadata(alias="turnLatencies"), - pydantic.Field(alias="turnLatencies", description="These are the individual latencies for each turn."), + pydantic.Field( + alias="turnLatencies", + description="These are the individual latencies for each turn, in milliseconds, measured on Vapi's servers without network or playback time.\nA turn is recorded only when the assistant replies to the user. A first message the assistant speaks first is not recorded; with `assistant-waits-for-user` it is recorded, with `endpointingLatency` 0. A component that was not measured on a turn is 0.", + ), ] = None model_latency_average: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="modelLatencyAverage"), pydantic.Field( alias="modelLatencyAverage", - description="This is the average latency for the model to output the first token.", + description="This is the average `modelLatency` across `turnLatencies`, in milliseconds.\nTurns that recorded 0 because the model latency was not measured are included in the average.", ), ] = None voice_latency_average: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="voiceLatencyAverage"), - pydantic.Field(alias="voiceLatencyAverage", description="This is the average latency for the text to speech."), + pydantic.Field( + alias="voiceLatencyAverage", + description="This is the average `voiceLatency` across `turnLatencies`, in milliseconds.\nTurns that recorded 0 because the voice latency was not measured are included in the average.", + ), ] = None transcriber_latency_average: typing_extensions.Annotated[ typing.Optional[float], diff --git a/src/vapi/types/perplexity_ai_model.py b/src/vapi/types/perplexity_ai_model.py index 17f237231..bfd3d4905 100644 --- a/src/vapi/types/perplexity_ai_model.py +++ b/src/vapi/types/perplexity_ai_model.py @@ -67,7 +67,7 @@ class PerplexityAiModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -121,9 +121,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -157,6 +154,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -191,9 +191,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -227,6 +224,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/perplexity_ai_model_tools_item.py b/src/vapi/types/perplexity_ai_model_tools_item.py index 5c8bd4e5b..b87c23379 100644 --- a/src/vapi/types/perplexity_ai_model_tools_item.py +++ b/src/vapi/types/perplexity_ai_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/personality.py b/src/vapi/types/personality.py index f8e5efa9a..c8c8395a7 100644 --- a/src/vapi/types/personality.py +++ b/src/vapi/types/personality.py @@ -46,7 +46,7 @@ class Personality(UncheckedBaseModel): This is the name of the personality (e.g., "Confused Carl", "Rude Rob"). """ - assistant: "CreateAssistantDto" = pydantic.Field() + assistant: "TransientAssistantDto" = pydantic.Field() """ This is the full assistant configuration for this personality. It defines the tester's voice, model, behavior via system prompt, and other settings. @@ -93,9 +93,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -130,6 +127,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -164,9 +164,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -201,6 +198,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/pie_insight_from_call_table_queries_item.py b/src/vapi/types/pie_insight_from_call_table_queries_item.py index a113027ea..1a7252b8b 100644 --- a/src/vapi/types/pie_insight_from_call_table_queries_item.py +++ b/src/vapi/types/pie_insight_from_call_table_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable PieInsightFromCallTableQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/pie_insight_queries_item.py b/src/vapi/types/pie_insight_queries_item.py index 8d5ab510c..21161e6d4 100644 --- a/src/vapi/types/pie_insight_queries_item.py +++ b/src/vapi/types/pie_insight_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable PieInsightQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/query_tool.py b/src/vapi/types/query_tool.py index 207ffe854..e8443096b 100644 --- a/src/vapi/types/query_tool.py +++ b/src/vapi/types/query_tool.py @@ -23,6 +23,14 @@ class QueryTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[QueryToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/recording_consent_plan_stay_on_line_voice.py b/src/vapi/types/recording_consent_plan_stay_on_line_voice.py index 3efb11320..b85a2a70e 100644 --- a/src/vapi/types/recording_consent_plan_stay_on_line_voice.py +++ b/src/vapi/types/recording_consent_plan_stay_on_line_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -539,54 +537,6 @@ class Config: extra = pydantic.Extra.allow -class RecordingConsentPlanStayOnLineVoice_Tavus(UncheckedBaseModel): - """ - This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. - Use a different voice for the consent message for a better user experience. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class RecordingConsentPlanStayOnLineVoice_Vapi(UncheckedBaseModel): """ This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. @@ -821,7 +771,6 @@ class Config: RecordingConsentPlanStayOnLineVoice_Wellsaid, RecordingConsentPlanStayOnLineVoice_RimeAi, RecordingConsentPlanStayOnLineVoice_SmallestAi, - RecordingConsentPlanStayOnLineVoice_Tavus, RecordingConsentPlanStayOnLineVoice_Vapi, RecordingConsentPlanStayOnLineVoice_Sesame, RecordingConsentPlanStayOnLineVoice_Inworld, diff --git a/src/vapi/types/recording_consent_plan_verbal_voice.py b/src/vapi/types/recording_consent_plan_verbal_voice.py index ad0bf61e9..8afdab14a 100644 --- a/src/vapi/types/recording_consent_plan_verbal_voice.py +++ b/src/vapi/types/recording_consent_plan_verbal_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -539,54 +537,6 @@ class Config: extra = pydantic.Extra.allow -class RecordingConsentPlanVerbalVoice_Tavus(UncheckedBaseModel): - """ - This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. - Use a different voice for the consent message for a better user experience. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class RecordingConsentPlanVerbalVoice_Vapi(UncheckedBaseModel): """ This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. @@ -821,7 +771,6 @@ class Config: RecordingConsentPlanVerbalVoice_Wellsaid, RecordingConsentPlanVerbalVoice_RimeAi, RecordingConsentPlanVerbalVoice_SmallestAi, - RecordingConsentPlanVerbalVoice_Tavus, RecordingConsentPlanVerbalVoice_Vapi, RecordingConsentPlanVerbalVoice_Sesame, RecordingConsentPlanVerbalVoice_Inworld, diff --git a/src/vapi/types/reson_8_credential.py b/src/vapi/types/reson_8_credential.py new file mode 100644 index 000000000..b46bebd68 --- /dev/null +++ b/src/vapi/types/reson_8_credential.py @@ -0,0 +1,60 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .reson_8_credential_provider import Reson8CredentialProvider + + +class Reson8Credential(UncheckedBaseModel): + provider: Reson8CredentialProvider + api_key: typing_extensions.Annotated[ + str, + FieldMetadata(alias="apiKey"), + pydantic.Field(alias="apiKey", description="This is not returned in the API."), + ] + id: str = pydantic.Field() + """ + This is the unique identifier for the credential. + """ + + org_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="orgId"), + pydantic.Field( + alias="orgId", description="This is the unique identifier for the org that this credential belongs to." + ), + ] + created_at: typing_extensions.Annotated[ + dt.datetime, + FieldMetadata(alias="createdAt"), + pydantic.Field( + alias="createdAt", description="This is the ISO 8601 date-time string of when the credential was created." + ), + ] + updated_at: typing_extensions.Annotated[ + dt.datetime, + FieldMetadata(alias="updatedAt"), + pydantic.Field( + alias="updatedAt", + description="This is the ISO 8601 date-time string of when the assistant was last updated.", + ), + ] + name: typing.Optional[str] = pydantic.Field(default=None) + """ + This is the name of credential. This is just for your reference. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/assistant_hook_call_ending.py b/src/vapi/types/reson_8_credential_provider.py similarity index 50% rename from src/vapi/types/assistant_hook_call_ending.py rename to src/vapi/types/reson_8_credential_provider.py index eca858470..2cd053f29 100644 --- a/src/vapi/types/assistant_hook_call_ending.py +++ b/src/vapi/types/reson_8_credential_provider.py @@ -2,4 +2,4 @@ import typing -AssistantHookCallEnding = typing.Any +Reson8CredentialProvider = typing.Union[typing.Literal["reson8"], typing.Any] diff --git a/src/vapi/types/reson_8_transcriber.py b/src/vapi/types/reson_8_transcriber.py new file mode 100644 index 000000000..e898e2fa6 --- /dev/null +++ b/src/vapi/types/reson_8_transcriber.py @@ -0,0 +1,79 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .fallback_transcriber_plan import FallbackTranscriberPlan +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel + + +class Reson8Transcriber(UncheckedBaseModel): + model: typing.Optional[Reson8TranscriberModel] = pydantic.Field(default=None) + """ + The Reson8 speech-to-text endpoint to use. `turns` is Reson8's turn-detection endpoint. + """ + + language: typing.Optional[str] = pydantic.Field(default=None) + """ + Language for transcription (e.g. `nl`), or a comma-separated candidate list such as `nl,en` which constrains auto-detection. When omitted, Reson8 auto-detects the language per utterance. Supported: de, en, es, fr, fy, it, nl, pl, pt, sv. + """ + + keyterms: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + Domain-specific terms to boost recognition (brand names, product codes, jargon). Sent to Reson8 as the `phrases` parameter. Max 250 phrases. + """ + + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="customModelId"), + pydantic.Field( + alias="customModelId", + description="A stored Reson8 phrase collection (custom model) id, managed via the Reson8 API or console.", + ), + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field( + alias="eagerTurnProbability", + description="Threshold (0-1) at which Reson8 emits an eager turn-end candidate. Provider default 0.5.", + ), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field( + alias="finalTurnProbability", + description="Threshold (0-1) at which Reson8 confirms the end of a turn. Provider default 0.92.", + ), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field( + alias="fillerMode", + description="How Reson8 renders filler words in transcripts. Provider default `natural`.", + ), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field( + alias="fallbackPlan", + description="This is the plan for transcriber provider fallbacks in the event that the primary transcriber provider fails.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/reson_8_transcriber_filler_mode.py b/src/vapi/types/reson_8_transcriber_filler_mode.py new file mode 100644 index 000000000..d0f467834 --- /dev/null +++ b/src/vapi/types/reson_8_transcriber_filler_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +Reson8TranscriberFillerMode = typing.Union[typing.Literal["clean", "natural", "verbatim"], typing.Any] diff --git a/src/vapi/types/assistant_hook_assistant_speech_interrupted.py b/src/vapi/types/reson_8_transcriber_model.py similarity index 51% rename from src/vapi/types/assistant_hook_assistant_speech_interrupted.py rename to src/vapi/types/reson_8_transcriber_model.py index bd0826c01..a52a8cb58 100644 --- a/src/vapi/types/assistant_hook_assistant_speech_interrupted.py +++ b/src/vapi/types/reson_8_transcriber_model.py @@ -2,4 +2,4 @@ import typing -AssistantHookAssistantSpeechInterrupted = typing.Any +Reson8TranscriberModel = typing.Union[typing.Literal["turns"], typing.Any] diff --git a/src/vapi/types/say_assistant_hook_action.py b/src/vapi/types/say_assistant_hook_action.py deleted file mode 100644 index 0f339e2e5..000000000 --- a/src/vapi/types/say_assistant_hook_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SayAssistantHookAction = typing.Any diff --git a/src/vapi/types/sbc_configuration.py b/src/vapi/types/sbc_configuration.py deleted file mode 100644 index 390ba5a59..000000000 --- a/src/vapi/types/sbc_configuration.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -SbcConfiguration = typing.Any -""" -Routes bring-your-own SIP traffic through an on-premises session border controller instead of Vapi's managed controller. -""" diff --git a/src/vapi/types/scenario.py b/src/vapi/types/scenario.py index 179ba66e9..0674fcc50 100644 --- a/src/vapi/types/scenario.py +++ b/src/vapi/types/scenario.py @@ -126,9 +126,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -163,6 +160,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -197,9 +197,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -234,6 +231,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/server_message_assistant_request.py b/src/vapi/types/server_message_assistant_request.py index 85c9d373d..9492b114a 100644 --- a/src/vapi/types/server_message_assistant_request.py +++ b/src/vapi/types/server_message_assistant_request.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_assistant_request_phone_number import ServerMessageAssistantRequestPhoneNumber from .server_message_assistant_request_type import ServerMessageAssistantRequestType @@ -50,7 +51,7 @@ class ServerMessageAssistantRequest(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -80,143 +81,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageAssistantRequest, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageAssistantRequest) diff --git a/src/vapi/types/server_message_assistant_speech.py b/src/vapi/types/server_message_assistant_speech.py index aabf9bb18..2d01fa896 100644 --- a/src/vapi/types/server_message_assistant_speech.py +++ b/src/vapi/types/server_message_assistant_speech.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_assistant_speech_phone_number import ServerMessageAssistantSpeechPhoneNumber from .server_message_assistant_speech_source import ServerMessageAssistantSpeechSource @@ -89,7 +90,7 @@ class ServerMessageAssistantSpeech(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -119,143 +120,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageAssistantSpeech, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageAssistantSpeech) diff --git a/src/vapi/types/server_message_call_artifact_upload.py b/src/vapi/types/server_message_call_artifact_upload.py index bfaa79d18..66f717911 100644 --- a/src/vapi/types/server_message_call_artifact_upload.py +++ b/src/vapi/types/server_message_call_artifact_upload.py @@ -13,6 +13,7 @@ from .call import Call from .call_artifact_upload_item import CallArtifactUploadItem from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_call_artifact_upload_phone_number import ServerMessageCallArtifactUploadPhoneNumber from .server_message_call_artifact_upload_type import ServerMessageCallArtifactUploadType @@ -61,7 +62,7 @@ class ServerMessageCallArtifactUpload(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -91,143 +92,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageCallArtifactUpload, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageCallArtifactUpload) diff --git a/src/vapi/types/server_message_call_delete_failed.py b/src/vapi/types/server_message_call_delete_failed.py index d3bc4f984..fa843f580 100644 --- a/src/vapi/types/server_message_call_delete_failed.py +++ b/src/vapi/types/server_message_call_delete_failed.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_call_delete_failed_phone_number import ServerMessageCallDeleteFailedPhoneNumber from .server_message_call_delete_failed_type import ServerMessageCallDeleteFailedType @@ -50,7 +51,7 @@ class ServerMessageCallDeleteFailed(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -80,143 +81,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageCallDeleteFailed, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageCallDeleteFailed) diff --git a/src/vapi/types/server_message_call_deleted.py b/src/vapi/types/server_message_call_deleted.py index a4ecce88c..23102d3aa 100644 --- a/src/vapi/types/server_message_call_deleted.py +++ b/src/vapi/types/server_message_call_deleted.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_call_deleted_phone_number import ServerMessageCallDeletedPhoneNumber from .server_message_call_deleted_type import ServerMessageCallDeletedType @@ -50,7 +51,7 @@ class ServerMessageCallDeleted(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -80,143 +81,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageCallDeleted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageCallDeleted) diff --git a/src/vapi/types/server_message_call_endpointing_request.py b/src/vapi/types/server_message_call_endpointing_request.py index 567dc73d0..6b3029a39 100644 --- a/src/vapi/types/server_message_call_endpointing_request.py +++ b/src/vapi/types/server_message_call_endpointing_request.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .open_ai_message import OpenAiMessage from .server_message_call_endpointing_request_messages_item import ServerMessageCallEndpointingRequestMessagesItem @@ -89,7 +90,7 @@ class ServerMessageCallEndpointingRequest(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -119,143 +120,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageCallEndpointingRequest, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageCallEndpointingRequest) diff --git a/src/vapi/types/server_message_campaign_predial.py b/src/vapi/types/server_message_campaign_predial.py index 19d45f967..5395f7ffb 100644 --- a/src/vapi/types/server_message_campaign_predial.py +++ b/src/vapi/types/server_message_campaign_predial.py @@ -13,6 +13,7 @@ from .call import Call from .campaign_contact import CampaignContact from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_campaign_predial_phone_number import ServerMessageCampaignPredialPhoneNumber from .server_message_campaign_predial_type import ServerMessageCampaignPredialType @@ -61,7 +62,7 @@ class ServerMessageCampaignPredial(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -91,143 +92,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageCampaignPredial, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageCampaignPredial) diff --git a/src/vapi/types/server_message_chat_created.py b/src/vapi/types/server_message_chat_created.py index 892e6974f..06f23994d 100644 --- a/src/vapi/types/server_message_chat_created.py +++ b/src/vapi/types/server_message_chat_created.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_chat_created_phone_number import ServerMessageChatCreatedPhoneNumber from .server_message_chat_created_type import ServerMessageChatCreatedType @@ -50,7 +51,7 @@ class ServerMessageChatCreated(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -80,143 +81,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageChatCreated, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageChatCreated) diff --git a/src/vapi/types/server_message_chat_deleted.py b/src/vapi/types/server_message_chat_deleted.py index 9e247ad94..947099cd0 100644 --- a/src/vapi/types/server_message_chat_deleted.py +++ b/src/vapi/types/server_message_chat_deleted.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_chat_deleted_phone_number import ServerMessageChatDeletedPhoneNumber from .server_message_chat_deleted_type import ServerMessageChatDeletedType @@ -50,7 +51,7 @@ class ServerMessageChatDeleted(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -80,143 +81,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageChatDeleted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageChatDeleted) diff --git a/src/vapi/types/server_message_conversation_update.py b/src/vapi/types/server_message_conversation_update.py index b13aa4631..6880ec56e 100644 --- a/src/vapi/types/server_message_conversation_update.py +++ b/src/vapi/types/server_message_conversation_update.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .open_ai_message import OpenAiMessage from .server_message_conversation_update_messages_item import ServerMessageConversationUpdateMessagesItem @@ -65,7 +66,7 @@ class ServerMessageConversationUpdate(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -95,143 +96,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageConversationUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageConversationUpdate) diff --git a/src/vapi/types/server_message_end_of_call_report.py b/src/vapi/types/server_message_end_of_call_report.py index f29e9e09b..38bc84003 100644 --- a/src/vapi/types/server_message_end_of_call_report.py +++ b/src/vapi/types/server_message_end_of_call_report.py @@ -15,6 +15,7 @@ from .call import Call from .chat import Chat from .compliance import Compliance +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_end_of_call_report_costs_item import ServerMessageEndOfCallReportCostsItem from .server_message_end_of_call_report_destination import ServerMessageEndOfCallReportDestination @@ -78,7 +79,7 @@ class ServerMessageEndOfCallReport(UncheckedBaseModel): These are the artifacts from the call. This can also be found at `call.artifact` on GET /call/:id. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -134,143 +135,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageEndOfCallReport, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageEndOfCallReport) diff --git a/src/vapi/types/server_message_end_of_call_report_costs_item.py b/src/vapi/types/server_message_end_of_call_report_costs_item.py index a24b985df..02f00f8c2 100644 --- a/src/vapi/types/server_message_end_of_call_report_costs_item.py +++ b/src/vapi/types/server_message_end_of_call_report_costs_item.py @@ -10,6 +10,7 @@ from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .analysis_cost_analysis_type import AnalysisCostAnalysisType +from .model_cost_service_tier_breakdown import ModelCostServiceTierBreakdown from .structured_output_cost_breakdown import StructuredOutputCostBreakdown from .transport_cost_provider import TransportCostProvider from .vapi_cost_sub_type import VapiCostSubType @@ -67,6 +68,11 @@ class ServerMessageEndOfCallReportCostsItem_Model(UncheckedBaseModel): reasoning_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") ] = None + service_tier_breakdown: typing_extensions.Annotated[ + typing.Optional[typing.List[ModelCostServiceTierBreakdown]], + FieldMetadata(alias="serviceTierBreakdown"), + pydantic.Field(alias="serviceTierBreakdown"), + ] = None cost: float if IS_PYDANTIC_V2: @@ -156,6 +162,9 @@ class ServerMessageEndOfCallReportCostsItem_Analysis(UncheckedBaseModel): cached_prompt_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="cachedPromptTokens"), pydantic.Field(alias="cachedPromptTokens") ] = None + reasoning_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") + ] = None structured_output_breakdown: typing_extensions.Annotated[ typing.Optional[typing.List[StructuredOutputCostBreakdown]], FieldMetadata(alias="structuredOutputBreakdown"), diff --git a/src/vapi/types/server_message_end_of_call_report_ended_reason.py b/src/vapi/types/server_message_end_of_call_report_ended_reason.py index f66405a55..3254bf971 100644 --- a/src/vapi/types/server_message_end_of_call_report_ended_reason.py +++ b/src/vapi/types/server_message_end_of_call_report_ended_reason.py @@ -4,6 +4,11 @@ ServerMessageEndOfCallReportEndedReason = typing.Union[ typing.Literal[ + "call.in-progress.error-vapifault-guardrail-evaluation-failed", + "call.in-progress.error-vapifault-guardrail-playback-timeout", + "call.in-progress.guardrail-blocked", + "call.in-progress.error-vapifault-call-start-failed", + "call.in-progress.error-vapifault-assistant-handoff-start-failed", "call-start-error-neither-assistant-nor-server-set", "assistant-request-failed", "assistant-request-returned-error", @@ -140,6 +145,16 @@ "call.in-progress.error-vapifault-xai-transcriber-invalid-config", "call.in-progress.error-vapifault-xai-transcriber-server-error", "call.in-progress.error-vapifault-xai-transcriber-failed", + "pipeline-error-reson8-transcriber-auth-failed", + "pipeline-error-reson8-transcriber-rate-limited", + "pipeline-error-reson8-transcriber-invalid-config", + "pipeline-error-reson8-transcriber-closed", + "pipeline-error-reson8-transcriber-failed", + "call.in-progress.error-vapifault-reson8-transcriber-auth-failed", + "call.in-progress.error-vapifault-reson8-transcriber-rate-limited", + "call.in-progress.error-vapifault-reson8-transcriber-invalid-config", + "call.in-progress.error-vapifault-reson8-transcriber-closed", + "call.in-progress.error-vapifault-reson8-transcriber-failed", "pipeline-error-cartesia-transcriber-failed", "call.in-progress.error-vapifault-cartesia-transcriber-failed", "call.in-progress.error-pipeline-no-available-llm-model", @@ -475,6 +490,7 @@ "call.in-progress.error-vapifault-cartesia-socket-hang-up", "call.in-progress.error-vapifault-cartesia-requested-payment", "call.in-progress.error-providerfault-cartesia-500-server-error", + "call.in-progress.error-providerfault-cartesia-502-server-error", "call.in-progress.error-providerfault-cartesia-503-server-error", "call.in-progress.error-providerfault-cartesia-522-server-error", "pipeline-error-eleven-labs-voice-not-found", @@ -498,6 +514,7 @@ "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", "pipeline-error-eleven-labs-max-character-limit-exceeded", "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + "pipeline-error-eleven-labs-unsupported-model", "pipeline-error-eleven-labs-500-server-error", "pipeline-error-eleven-labs-503-server-error", "call.in-progress.error-vapifault-eleven-labs-voice-not-found", @@ -520,6 +537,7 @@ "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + "call.in-progress.error-vapifault-eleven-labs-unsupported-model", "call.in-progress.error-providerfault-eleven-labs-system-busy-and-requested-upgrade", "call.in-progress.error-providerfault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", "call.in-progress.error-providerfault-eleven-labs-voice-disabled-by-owner", diff --git a/src/vapi/types/server_message_handoff_destination_request.py b/src/vapi/types/server_message_handoff_destination_request.py index a41b0bae7..69bb8e10c 100644 --- a/src/vapi/types/server_message_handoff_destination_request.py +++ b/src/vapi/types/server_message_handoff_destination_request.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_handoff_destination_request_phone_number import ServerMessageHandoffDestinationRequestPhoneNumber from .server_message_handoff_destination_request_type import ServerMessageHandoffDestinationRequestType @@ -50,7 +51,7 @@ class ServerMessageHandoffDestinationRequest(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -85,143 +86,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageHandoffDestinationRequest, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageHandoffDestinationRequest) diff --git a/src/vapi/types/server_message_hang.py b/src/vapi/types/server_message_hang.py index 2ad340609..c9ac8b55b 100644 --- a/src/vapi/types/server_message_hang.py +++ b/src/vapi/types/server_message_hang.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_hang_phone_number import ServerMessageHangPhoneNumber from .server_message_hang_type import ServerMessageHangType @@ -54,7 +55,7 @@ class ServerMessageHang(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -84,143 +85,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageHang, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageHang) diff --git a/src/vapi/types/server_message_knowledge_base_request.py b/src/vapi/types/server_message_knowledge_base_request.py index 94cad3605..8af64dc78 100644 --- a/src/vapi/types/server_message_knowledge_base_request.py +++ b/src/vapi/types/server_message_knowledge_base_request.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .open_ai_message import OpenAiMessage from .server_message_knowledge_base_request_messages_item import ServerMessageKnowledgeBaseRequestMessagesItem @@ -62,7 +63,7 @@ class ServerMessageKnowledgeBaseRequest(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -92,143 +93,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageKnowledgeBaseRequest, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageKnowledgeBaseRequest) diff --git a/src/vapi/types/server_message_language_change_detected.py b/src/vapi/types/server_message_language_change_detected.py index baebade26..9d23421ae 100644 --- a/src/vapi/types/server_message_language_change_detected.py +++ b/src/vapi/types/server_message_language_change_detected.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_language_change_detected_phone_number import ServerMessageLanguageChangeDetectedPhoneNumber from .server_message_language_change_detected_type import ServerMessageLanguageChangeDetectedType @@ -50,7 +51,7 @@ class ServerMessageLanguageChangeDetected(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -85,143 +86,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageLanguageChangeDetected, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageLanguageChangeDetected) diff --git a/src/vapi/types/server_message_model_output.py b/src/vapi/types/server_message_model_output.py index ab2e98717..f35227c94 100644 --- a/src/vapi/types/server_message_model_output.py +++ b/src/vapi/types/server_message_model_output.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_model_output_phone_number import ServerMessageModelOutputPhoneNumber from .server_message_model_output_type import ServerMessageModelOutputType @@ -58,7 +59,7 @@ class ServerMessageModelOutput(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -93,143 +94,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageModelOutput, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageModelOutput) diff --git a/src/vapi/types/server_message_phone_call_control.py b/src/vapi/types/server_message_phone_call_control.py index 64adb84fe..395b42889 100644 --- a/src/vapi/types/server_message_phone_call_control.py +++ b/src/vapi/types/server_message_phone_call_control.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_phone_call_control_destination import ServerMessagePhoneCallControlDestination from .server_message_phone_call_control_phone_number import ServerMessagePhoneCallControlPhoneNumber @@ -64,7 +65,7 @@ class ServerMessagePhoneCallControl(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -94,143 +95,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessagePhoneCallControl, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessagePhoneCallControl) diff --git a/src/vapi/types/server_message_response_assistant_request.py b/src/vapi/types/server_message_response_assistant_request.py index f6fed787e..79cb25ec7 100644 --- a/src/vapi/types/server_message_response_assistant_request.py +++ b/src/vapi/types/server_message_response_assistant_request.py @@ -30,7 +30,7 @@ class ServerMessageResponseAssistantRequest(UncheckedBaseModel): description="This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead.\n\nTo start a call with:\n- Assistant, use `assistantId` or `assistant`\n- Squad, use `squadId` or `squad`\n- Workflow, use `workflowId` or `workflow`", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. @@ -141,9 +141,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -178,6 +175,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -212,9 +212,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -249,6 +246,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/server_message_session_created.py b/src/vapi/types/server_message_session_created.py index 6d3916592..9b9b4369f 100644 --- a/src/vapi/types/server_message_session_created.py +++ b/src/vapi/types/server_message_session_created.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_session_created_phone_number import ServerMessageSessionCreatedPhoneNumber from .server_message_session_created_type import ServerMessageSessionCreatedType @@ -51,7 +52,7 @@ class ServerMessageSessionCreated(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -86,143 +87,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageSessionCreated, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageSessionCreated) diff --git a/src/vapi/types/server_message_session_deleted.py b/src/vapi/types/server_message_session_deleted.py index a007a16cd..2c6d3e873 100644 --- a/src/vapi/types/server_message_session_deleted.py +++ b/src/vapi/types/server_message_session_deleted.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_session_deleted_phone_number import ServerMessageSessionDeletedPhoneNumber from .server_message_session_deleted_type import ServerMessageSessionDeletedType @@ -51,7 +52,7 @@ class ServerMessageSessionDeleted(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -86,143 +87,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageSessionDeleted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageSessionDeleted) diff --git a/src/vapi/types/server_message_session_updated.py b/src/vapi/types/server_message_session_updated.py index a81029c6a..681bc773f 100644 --- a/src/vapi/types/server_message_session_updated.py +++ b/src/vapi/types/server_message_session_updated.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_session_updated_phone_number import ServerMessageSessionUpdatedPhoneNumber from .server_message_session_updated_type import ServerMessageSessionUpdatedType @@ -51,7 +52,7 @@ class ServerMessageSessionUpdated(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -86,143 +87,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageSessionUpdated, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageSessionUpdated) diff --git a/src/vapi/types/server_message_speech_update.py b/src/vapi/types/server_message_speech_update.py index d33aec535..19ee7167f 100644 --- a/src/vapi/types/server_message_speech_update.py +++ b/src/vapi/types/server_message_speech_update.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_speech_update_phone_number import ServerMessageSpeechUpdatePhoneNumber from .server_message_speech_update_role import ServerMessageSpeechUpdateRole @@ -67,7 +68,7 @@ class ServerMessageSpeechUpdate(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -97,143 +98,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageSpeechUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageSpeechUpdate) diff --git a/src/vapi/types/server_message_status_update.py b/src/vapi/types/server_message_status_update.py index 9831aaa8c..2e0847ef0 100644 --- a/src/vapi/types/server_message_status_update.py +++ b/src/vapi/types/server_message_status_update.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .open_ai_message import OpenAiMessage from .server_message_status_update_destination import ServerMessageStatusUpdateDestination @@ -86,7 +87,7 @@ class ServerMessageStatusUpdate(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -135,143 +136,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageStatusUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageStatusUpdate) diff --git a/src/vapi/types/server_message_status_update_ended_reason.py b/src/vapi/types/server_message_status_update_ended_reason.py index e751da824..22b8e817e 100644 --- a/src/vapi/types/server_message_status_update_ended_reason.py +++ b/src/vapi/types/server_message_status_update_ended_reason.py @@ -4,6 +4,11 @@ ServerMessageStatusUpdateEndedReason = typing.Union[ typing.Literal[ + "call.in-progress.error-vapifault-guardrail-evaluation-failed", + "call.in-progress.error-vapifault-guardrail-playback-timeout", + "call.in-progress.guardrail-blocked", + "call.in-progress.error-vapifault-call-start-failed", + "call.in-progress.error-vapifault-assistant-handoff-start-failed", "call-start-error-neither-assistant-nor-server-set", "assistant-request-failed", "assistant-request-returned-error", @@ -140,6 +145,16 @@ "call.in-progress.error-vapifault-xai-transcriber-invalid-config", "call.in-progress.error-vapifault-xai-transcriber-server-error", "call.in-progress.error-vapifault-xai-transcriber-failed", + "pipeline-error-reson8-transcriber-auth-failed", + "pipeline-error-reson8-transcriber-rate-limited", + "pipeline-error-reson8-transcriber-invalid-config", + "pipeline-error-reson8-transcriber-closed", + "pipeline-error-reson8-transcriber-failed", + "call.in-progress.error-vapifault-reson8-transcriber-auth-failed", + "call.in-progress.error-vapifault-reson8-transcriber-rate-limited", + "call.in-progress.error-vapifault-reson8-transcriber-invalid-config", + "call.in-progress.error-vapifault-reson8-transcriber-closed", + "call.in-progress.error-vapifault-reson8-transcriber-failed", "pipeline-error-cartesia-transcriber-failed", "call.in-progress.error-vapifault-cartesia-transcriber-failed", "call.in-progress.error-pipeline-no-available-llm-model", @@ -475,6 +490,7 @@ "call.in-progress.error-vapifault-cartesia-socket-hang-up", "call.in-progress.error-vapifault-cartesia-requested-payment", "call.in-progress.error-providerfault-cartesia-500-server-error", + "call.in-progress.error-providerfault-cartesia-502-server-error", "call.in-progress.error-providerfault-cartesia-503-server-error", "call.in-progress.error-providerfault-cartesia-522-server-error", "pipeline-error-eleven-labs-voice-not-found", @@ -498,6 +514,7 @@ "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", "pipeline-error-eleven-labs-max-character-limit-exceeded", "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + "pipeline-error-eleven-labs-unsupported-model", "pipeline-error-eleven-labs-500-server-error", "pipeline-error-eleven-labs-503-server-error", "call.in-progress.error-vapifault-eleven-labs-voice-not-found", @@ -520,6 +537,7 @@ "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + "call.in-progress.error-vapifault-eleven-labs-unsupported-model", "call.in-progress.error-providerfault-eleven-labs-system-busy-and-requested-upgrade", "call.in-progress.error-providerfault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", "call.in-progress.error-providerfault-eleven-labs-voice-disabled-by-owner", diff --git a/src/vapi/types/server_message_tool_calls.py b/src/vapi/types/server_message_tool_calls.py index e7e8df4e4..c3a86ff9a 100644 --- a/src/vapi/types/server_message_tool_calls.py +++ b/src/vapi/types/server_message_tool_calls.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_tool_calls_phone_number import ServerMessageToolCallsPhoneNumber from .server_message_tool_calls_tool_with_tool_call_list_item import ServerMessageToolCallsToolWithToolCallListItem @@ -60,7 +61,7 @@ class ServerMessageToolCalls(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -98,143 +99,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageToolCalls, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageToolCalls) diff --git a/src/vapi/types/server_message_transcript.py b/src/vapi/types/server_message_transcript.py index 9090b8dc5..f9ebff62e 100644 --- a/src/vapi/types/server_message_transcript.py +++ b/src/vapi/types/server_message_transcript.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_transcript_confidence_source import ServerMessageTranscriptConfidenceSource from .server_message_transcript_phone_number import ServerMessageTranscriptPhoneNumber @@ -53,7 +54,7 @@ class ServerMessageTranscript(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -158,143 +159,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageTranscript, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageTranscript) diff --git a/src/vapi/types/server_message_transfer_destination_request.py b/src/vapi/types/server_message_transfer_destination_request.py index 397351599..e6ef7214c 100644 --- a/src/vapi/types/server_message_transfer_destination_request.py +++ b/src/vapi/types/server_message_transfer_destination_request.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_transfer_destination_request_phone_number import ServerMessageTransferDestinationRequestPhoneNumber from .server_message_transfer_destination_request_type import ServerMessageTransferDestinationRequestType @@ -50,7 +51,7 @@ class ServerMessageTransferDestinationRequest(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -80,143 +81,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageTransferDestinationRequest, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageTransferDestinationRequest) diff --git a/src/vapi/types/server_message_transfer_update.py b/src/vapi/types/server_message_transfer_update.py index 397008d97..932ecdc74 100644 --- a/src/vapi/types/server_message_transfer_update.py +++ b/src/vapi/types/server_message_transfer_update.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_transfer_update_destination import ServerMessageTransferUpdateDestination from .server_message_transfer_update_phone_number import ServerMessageTransferUpdatePhoneNumber @@ -56,7 +57,7 @@ class ServerMessageTransferUpdate(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -77,7 +78,7 @@ class ServerMessageTransferUpdate(UncheckedBaseModel): """ to_assistant: typing_extensions.Annotated[ - typing.Optional["CreateAssistantDto"], + typing.Optional[CreateAssistantDto], FieldMetadata(alias="toAssistant"), pydantic.Field( alias="toAssistant", @@ -85,7 +86,7 @@ class ServerMessageTransferUpdate(UncheckedBaseModel): ), ] = None from_assistant: typing_extensions.Annotated[ - typing.Optional["CreateAssistantDto"], + typing.Optional[CreateAssistantDto], FieldMetadata(alias="fromAssistant"), pydantic.Field( alias="fromAssistant", @@ -113,143 +114,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageTransferUpdate, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageTransferUpdate) diff --git a/src/vapi/types/server_message_user_interrupted.py b/src/vapi/types/server_message_user_interrupted.py index d55a4064a..aba861184 100644 --- a/src/vapi/types/server_message_user_interrupted.py +++ b/src/vapi/types/server_message_user_interrupted.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_user_interrupted_phone_number import ServerMessageUserInterruptedPhoneNumber from .server_message_user_interrupted_type import ServerMessageUserInterruptedType @@ -58,7 +59,7 @@ class ServerMessageUserInterrupted(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -88,143 +89,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageUserInterrupted, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageUserInterrupted) diff --git a/src/vapi/types/server_message_voice_input.py b/src/vapi/types/server_message_voice_input.py index 5fdd5590c..9ecf5b9b8 100644 --- a/src/vapi/types/server_message_voice_input.py +++ b/src/vapi/types/server_message_voice_input.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_voice_input_phone_number import ServerMessageVoiceInputPhoneNumber from .server_message_voice_input_type import ServerMessageVoiceInputType @@ -50,7 +51,7 @@ class ServerMessageVoiceInput(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -85,143 +86,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageVoiceInput, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageVoiceInput) diff --git a/src/vapi/types/server_message_voice_request.py b/src/vapi/types/server_message_voice_request.py index 8c8d91ce9..570f2812b 100644 --- a/src/vapi/types/server_message_voice_request.py +++ b/src/vapi/types/server_message_voice_request.py @@ -12,6 +12,7 @@ from .artifact import Artifact from .call import Call from .chat import Chat +from .create_assistant_dto import CreateAssistantDto from .create_customer_dto import CreateCustomerDto from .server_message_voice_request_phone_number import ServerMessageVoiceRequestPhoneNumber from .server_message_voice_request_type import ServerMessageVoiceRequestType @@ -71,7 +72,7 @@ class ServerMessageVoiceRequest(UncheckedBaseModel): This matches what is stored on `call.artifact` after the call. """ - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional[CreateAssistantDto] = pydantic.Field(default=None) """ This is the assistant that the message is associated with. """ @@ -112,143 +113,4 @@ class Config: extra = pydantic.Extra.allow -from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 -from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 -from .anthropic_model import AnthropicModel # noqa: E402, I001 -from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 -from .anyscale_model import AnyscaleModel # noqa: E402, I001 -from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 -from .assistant_overrides import AssistantOverrides # noqa: E402, I001 -from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 -from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 -from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 -from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 -from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 -from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 -from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 -from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 -from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 -from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 -from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 -from .cerebras_model import CerebrasModel # noqa: E402, I001 -from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 -from .conversation_node import ConversationNode # noqa: E402, I001 -from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 -from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 -from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 -from .create_squad_dto import CreateSquadDto # noqa: E402, I001 -from .custom_llm_model import CustomLlmModel # noqa: E402, I001 -from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 -from .deep_infra_model import DeepInfraModel # noqa: E402, I001 -from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 -from .deep_seek_model import DeepSeekModel # noqa: E402, I001 -from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 -from .google_model import GoogleModel # noqa: E402, I001 -from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 -from .groq_model import GroqModel # noqa: E402, I001 -from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 -from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 -from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 -from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 -from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 -from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 -from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 -from .open_ai_model import OpenAiModel # noqa: E402, I001 -from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 -from .open_router_model import OpenRouterModel # noqa: E402, I001 -from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 -from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 -from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 -from .session_created_hook import SessionCreatedHook # noqa: E402, I001 -from .squad_member_dto import SquadMemberDto # noqa: E402, I001 -from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 -from .together_ai_model import TogetherAiModel # noqa: E402, I001 -from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 -from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 -from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 -from .tool_node import ToolNode # noqa: E402, I001 -from .tool_node_tool import ToolNodeTool # noqa: E402, I001 -from .vapi_model import VapiModel # noqa: E402, I001 -from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 -from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 -from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 -from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 -from .xai_model import XaiModel # noqa: E402, I001 -from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 - -update_forward_refs( - ServerMessageVoiceRequest, - AnthropicBedrockModel=AnthropicBedrockModel, - AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, - AnthropicModel=AnthropicModel, - AnthropicModelToolsItem=AnthropicModelToolsItem, - AnyscaleModel=AnyscaleModel, - AnyscaleModelToolsItem=AnyscaleModelToolsItem, - AssistantOverrides=AssistantOverrides, - AssistantOverridesHooksItem=AssistantOverridesHooksItem, - AssistantOverridesModel=AssistantOverridesModel, - AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, - CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, - CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, - CallHookCallEnding=CallHookCallEnding, - CallHookCallEndingDoItem=CallHookCallEndingDoItem, - CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, - CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, - CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, - CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, - CallHookModelResponseTimeout=CallHookModelResponseTimeout, - CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, - CerebrasModel=CerebrasModel, - CerebrasModelToolsItem=CerebrasModelToolsItem, - ConversationNode=ConversationNode, - ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, - CreateHandoffToolDto=CreateHandoffToolDto, - CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, - CreateSquadDto=CreateSquadDto, - CustomLlmModel=CustomLlmModel, - CustomLlmModelToolsItem=CustomLlmModelToolsItem, - DeepInfraModel=DeepInfraModel, - DeepInfraModelToolsItem=DeepInfraModelToolsItem, - DeepSeekModel=DeepSeekModel, - DeepSeekModelToolsItem=DeepSeekModelToolsItem, - GoogleModel=GoogleModel, - GoogleModelToolsItem=GoogleModelToolsItem, - GroqModel=GroqModel, - GroqModelToolsItem=GroqModelToolsItem, - HandoffDestinationAssistant=HandoffDestinationAssistant, - HandoffDestinationSquad=HandoffDestinationSquad, - InflectionAiModel=InflectionAiModel, - InflectionAiModelToolsItem=InflectionAiModelToolsItem, - MinimaxLlmModel=MinimaxLlmModel, - MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, - OpenAiModel=OpenAiModel, - OpenAiModelToolsItem=OpenAiModelToolsItem, - OpenRouterModel=OpenRouterModel, - OpenRouterModelToolsItem=OpenRouterModelToolsItem, - PerplexityAiModel=PerplexityAiModel, - PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, - SessionCreatedHook=SessionCreatedHook, - SquadMemberDto=SquadMemberDto, - SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, - TogetherAiModel=TogetherAiModel, - TogetherAiModelToolsItem=TogetherAiModelToolsItem, - ToolCallHookAction=ToolCallHookAction, - ToolCallHookActionTool=ToolCallHookActionTool, - ToolNode=ToolNode, - ToolNodeTool=ToolNodeTool, - VapiModel=VapiModel, - VapiModelToolsItem=VapiModelToolsItem, - WorkflowUserEditable=WorkflowUserEditable, - WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, - WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, - XaiModel=XaiModel, - XaiModelToolsItem=XaiModelToolsItem, -) +update_forward_refs(ServerMessageVoiceRequest) diff --git a/src/vapi/types/service_unavailable_error_body.py b/src/vapi/types/service_unavailable_error_body.py new file mode 100644 index 000000000..f956b2fe4 --- /dev/null +++ b/src/vapi/types/service_unavailable_error_body.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .service_unavailable_error_body_error import ServiceUnavailableErrorBodyError +from .simulation_onboarding_error_dto import SimulationOnboardingErrorDto + +ServiceUnavailableErrorBody = typing.Union[SimulationOnboardingErrorDto, ServiceUnavailableErrorBodyError] diff --git a/src/vapi/types/neets_voice.py b/src/vapi/types/service_unavailable_error_body_error.py similarity index 71% rename from src/vapi/types/neets_voice.py rename to src/vapi/types/service_unavailable_error_body_error.py index 2c15276db..4d930a253 100644 --- a/src/vapi/types/neets_voice.py +++ b/src/vapi/types/service_unavailable_error_body_error.py @@ -9,10 +9,12 @@ from ..core.unchecked_base_model import UncheckedBaseModel -class NeetsVoice(UncheckedBaseModel): - voice_id: typing_extensions.Annotated[ - typing.Optional[typing.Any], FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] = None +class ServiceUnavailableErrorBodyError(UncheckedBaseModel): + status_code: typing_extensions.Annotated[ + float, FieldMetadata(alias="statusCode"), pydantic.Field(alias="statusCode") + ] + message: str + error: str if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/vapi/types/session.py b/src/vapi/types/session.py index bbdc1453a..669aaf991 100644 --- a/src/vapi/types/session.py +++ b/src/vapi/types/session.py @@ -82,7 +82,7 @@ class Session(UncheckedBaseModel): description="This is the ID of the assistant associated with this session. Use this when referencing an existing assistant.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored. @@ -182,9 +182,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -219,6 +216,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -253,9 +253,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -290,6 +287,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/session_costs_item.py b/src/vapi/types/session_costs_item.py index 76e464a28..fd8bcf0a6 100644 --- a/src/vapi/types/session_costs_item.py +++ b/src/vapi/types/session_costs_item.py @@ -10,6 +10,7 @@ from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .analysis_cost_analysis_type import AnalysisCostAnalysisType +from .model_cost_service_tier_breakdown import ModelCostServiceTierBreakdown from .structured_output_cost_breakdown import StructuredOutputCostBreakdown @@ -32,6 +33,11 @@ class SessionCostsItem_Model(UncheckedBaseModel): reasoning_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") ] = None + service_tier_breakdown: typing_extensions.Annotated[ + typing.Optional[typing.List[ModelCostServiceTierBreakdown]], + FieldMetadata(alias="serviceTierBreakdown"), + pydantic.Field(alias="serviceTierBreakdown"), + ] = None cost: float if IS_PYDANTIC_V2: @@ -59,6 +65,9 @@ class SessionCostsItem_Analysis(UncheckedBaseModel): cached_prompt_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="cachedPromptTokens"), pydantic.Field(alias="cachedPromptTokens") ] = None + reasoning_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="reasoningTokens"), pydantic.Field(alias="reasoningTokens") + ] = None structured_output_breakdown: typing_extensions.Annotated[ typing.Optional[typing.List[StructuredOutputCostBreakdown]], FieldMetadata(alias="structuredOutputBreakdown"), diff --git a/src/vapi/types/session_created_hook.py b/src/vapi/types/session_created_hook.py index 5f7da0c94..4dc67ac04 100644 --- a/src/vapi/types/session_created_hook.py +++ b/src/vapi/types/session_created_hook.py @@ -63,9 +63,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -99,6 +96,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -133,9 +133,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -169,6 +166,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/simulation_onboarding_coverage_gap_dto.py b/src/vapi/types/simulation_onboarding_coverage_gap_dto.py new file mode 100644 index 000000000..a82ac34ae --- /dev/null +++ b/src/vapi/types/simulation_onboarding_coverage_gap_dto.py @@ -0,0 +1,36 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_coverage_gap_dto_reason import SimulationOnboardingCoverageGapDtoReason + + +class SimulationOnboardingCoverageGapDto(UncheckedBaseModel): + requirement_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="requirementId"), + pydantic.Field(alias="requirementId", description="Requirement the gap is for, e.g. `R4`."), + ] + reason: SimulationOnboardingCoverageGapDtoReason = pydantic.Field() + """ + Why no simulation covers it. `failed` and `budget` gaps are regenerated by an edit with `retryFailed`. + """ + + detail: typing.Optional[str] = pydantic.Field(default=None) + """ + A short explanation for the user. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_coverage_gap_dto_reason.py b/src/vapi/types/simulation_onboarding_coverage_gap_dto_reason.py new file mode 100644 index 000000000..77a1c9352 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_coverage_gap_dto_reason.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SimulationOnboardingCoverageGapDtoReason = typing.Union[ + typing.Literal["not-testable", "unmapped", "failed", "budget"], typing.Any +] diff --git a/src/vapi/types/simulation_onboarding_error_dto.py b/src/vapi/types/simulation_onboarding_error_dto.py new file mode 100644 index 000000000..1b76ee2d0 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_error_dto.py @@ -0,0 +1,44 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_error_dto_code import SimulationOnboardingErrorDtoCode + + +class SimulationOnboardingErrorDto(UncheckedBaseModel): + code: SimulationOnboardingErrorDtoCode = pydantic.Field() + """ + Which refusal this is. Retry `SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS` with the same key and `SIMULATION_ONBOARDING_CONCURRENCY_LIMITED` or `SIMULATION_ONBOARDING_QUOTA_UNAVAILABLE` after `retryAfterSeconds`, send a new key for `SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED`, and stop for `SIMULATION_ONBOARDING_QUOTA_EXCEEDED`. + """ + + message: str = pydantic.Field() + """ + What happened, written for the user. + """ + + retry_after_seconds: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="retryAfterSeconds"), + pydantic.Field( + alias="retryAfterSeconds", + description="Seconds to wait before retrying, the same value as the `Retry-After` header. For a daily limit, the seconds until 00:00 UTC.", + ), + ] = None + limit: typing.Optional[float] = pydantic.Field(default=None) + """ + The daily limit that was reached, on a daily-limit refusal only. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_error_dto_code.py b/src/vapi/types/simulation_onboarding_error_dto_code.py new file mode 100644 index 000000000..9d4699a01 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_error_dto_code.py @@ -0,0 +1,14 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SimulationOnboardingErrorDtoCode = typing.Union[ + typing.Literal[ + "SIMULATION_ONBOARDING_GENERATION_IN_PROGRESS", + "SIMULATION_ONBOARDING_IDEMPOTENCY_KEY_REUSED", + "SIMULATION_ONBOARDING_CONCURRENCY_LIMITED", + "SIMULATION_ONBOARDING_QUOTA_EXCEEDED", + "SIMULATION_ONBOARDING_QUOTA_UNAVAILABLE", + ], + typing.Any, +] diff --git a/src/vapi/types/simulation_onboarding_open_question_dto.py b/src/vapi/types/simulation_onboarding_open_question_dto.py new file mode 100644 index 000000000..62698d95f --- /dev/null +++ b/src/vapi/types/simulation_onboarding_open_question_dto.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class SimulationOnboardingOpenQuestionDto(UncheckedBaseModel): + id: str = pydantic.Field() + """ + Question id within its draft, e.g. `Q1`. + """ + + text: str = pydantic.Field() + """ + A question about expected assistant behavior that needs clarification. + """ + + why: str = pydantic.Field() + """ + Which requirement the answer changes, and how. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_requirement_dto.py b/src/vapi/types/simulation_onboarding_requirement_dto.py new file mode 100644 index 000000000..cf1750cdf --- /dev/null +++ b/src/vapi/types/simulation_onboarding_requirement_dto.py @@ -0,0 +1,39 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_requirement_dto_tag import SimulationOnboardingRequirementDtoTag + + +class SimulationOnboardingRequirementDto(UncheckedBaseModel): + id: str = pydantic.Field() + """ + Stable requirement id, e.g. `R3`. + """ + + text: str = pydantic.Field() + """ + One observable behaviour the assistant must get right. + """ + + tag: typing.Optional[SimulationOnboardingRequirementDtoTag] = pydantic.Field(default=None) + """ + Indicates an assumption, a requirement that needs a voice simulation, or a requirement that cannot be tested. + """ + + note: typing.Optional[str] = pydantic.Field(default=None) + """ + What was assumed, why only a voice run can check it, or why it cannot be tested. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_requirement_dto_tag.py b/src/vapi/types/simulation_onboarding_requirement_dto_tag.py new file mode 100644 index 000000000..043c62b0d --- /dev/null +++ b/src/vapi/types/simulation_onboarding_requirement_dto_tag.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SimulationOnboardingRequirementDtoTag = typing.Union[ + typing.Literal["assumption", "not-testable", "voice-only"], typing.Any +] diff --git a/src/vapi/types/simulation_onboarding_requirements_draft_dto.py b/src/vapi/types/simulation_onboarding_requirements_draft_dto.py new file mode 100644 index 000000000..c6f5d16d0 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_requirements_draft_dto.py @@ -0,0 +1,51 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_open_question_dto import SimulationOnboardingOpenQuestionDto +from .simulation_onboarding_requirement_dto import SimulationOnboardingRequirementDto + + +class SimulationOnboardingRequirementsDraftDto(UncheckedBaseModel): + version: float = pydantic.Field() + """ + Draft version, 1 for a first draft. + """ + + change_note: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="changeNote"), + pydantic.Field(alias="changeNote", description="What changed since the previous draft."), + ] = None + sources: typing.List[str] = pydantic.Field() + """ + What the draft was based on, e.g. the prompt and tools. + """ + + requirements: typing.List[SimulationOnboardingRequirementDto] = pydantic.Field() + """ + Draft test requirements describing the expected assistant behavior. Review and refine these before generating a simulation suite. + """ + + open_questions: typing_extensions.Annotated[ + typing.List[SimulationOnboardingOpenQuestionDto], + FieldMetadata(alias="openQuestions"), + pydantic.Field( + alias="openQuestions", + description="Questions about ambiguous or missing assistant behavior to resolve before generating a simulation suite.", + ), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_suite_coverage_dto.py b/src/vapi/types/simulation_onboarding_suite_coverage_dto.py new file mode 100644 index 000000000..a4d834db9 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_suite_coverage_dto.py @@ -0,0 +1,39 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_coverage_gap_dto import SimulationOnboardingCoverageGapDto + + +class SimulationOnboardingSuiteCoverageDto(UncheckedBaseModel): + covered: float = pydantic.Field() + """ + Requirements at least one simulation covers. + """ + + total: float = pydantic.Field() + """ + Requirements in the agreed draft. + """ + + gaps: typing.List[SimulationOnboardingCoverageGapDto] = pydantic.Field() + """ + Requirements no simulation covers, and why. + """ + + retryable: float = pydantic.Field() + """ + Planned scenarios an edit with `retryFailed` would regenerate. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_suite_docs_dto.py b/src/vapi/types/simulation_onboarding_suite_docs_dto.py new file mode 100644 index 000000000..d38c4a74f --- /dev/null +++ b/src/vapi/types/simulation_onboarding_suite_docs_dto.py @@ -0,0 +1,31 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class SimulationOnboardingSuiteDocsDto(UncheckedBaseModel): + best_practices: typing_extensions.Annotated[ + str, + FieldMetadata(alias="bestPractices"), + pydantic.Field(alias="bestPractices", description="Link to testing best practices."), + ] + tool_mocks: typing_extensions.Annotated[ + str, + FieldMetadata(alias="toolMocks"), + pydantic.Field(alias="toolMocks", description="Link explaining why tools are mocked by default."), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_suite_edit_dto.py b/src/vapi/types/simulation_onboarding_suite_edit_dto.py new file mode 100644 index 000000000..524b87d71 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_suite_edit_dto.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class SimulationOnboardingSuiteEditDto(UncheckedBaseModel): + simulation_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="simulationId"), + pydantic.Field(alias="simulationId", description="Simulation in the suite whose scenario is rewritten."), + ] + instruction: str = pydantic.Field() + """ + Natural-language instructions for revising this simulation's scenario, such as "Have the caller ask for a refund after 30 days." + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_suite_ref_dto.py b/src/vapi/types/simulation_onboarding_suite_ref_dto.py new file mode 100644 index 000000000..872e21fb0 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_suite_ref_dto.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class SimulationOnboardingSuiteRefDto(UncheckedBaseModel): + id: str = pydantic.Field() + """ + Suite id; pass it to edit or run the suite. + """ + + name: str = pydantic.Field() + """ + Suite name. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_suite_simulation_dto.py b/src/vapi/types/simulation_onboarding_suite_simulation_dto.py new file mode 100644 index 000000000..d3bec432f --- /dev/null +++ b/src/vapi/types/simulation_onboarding_suite_simulation_dto.py @@ -0,0 +1,58 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class SimulationOnboardingSuiteSimulationDto(UncheckedBaseModel): + id: str = pydantic.Field() + """ + Simulation id; pass it back to edit or remove the simulation. + """ + + scenario_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="scenarioId"), + pydantic.Field(alias="scenarioId", description="Scenario the simulation runs."), + ] + name: str = pydantic.Field() + """ + Scenario name. + """ + + personality_name: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="personalityName"), + pydantic.Field(alias="personalityName", description="Name of the simulated caller's personality."), + ] = None + success_criteria: typing_extensions.Annotated[ + typing.List[str], + FieldMetadata(alias="successCriteria"), + pydantic.Field( + alias="successCriteria", description="Each success criterion, as the yes/no question it is judged by." + ), + ] + requirement_ids: typing_extensions.Annotated[ + typing.List[str], + FieldMetadata(alias="requirementIds"), + pydantic.Field(alias="requirementIds", description="Requirement ids this simulation covers, e.g. `R3`."), + ] + mocked_tools: typing_extensions.Annotated[ + typing.List[str], + FieldMetadata(alias="mockedTools"), + pydantic.Field(alias="mockedTools", description="Tools the scenario mocks."), + ] + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_suite_view_dto.py b/src/vapi/types/simulation_onboarding_suite_view_dto.py new file mode 100644 index 000000000..cb945ccbe --- /dev/null +++ b/src/vapi/types/simulation_onboarding_suite_view_dto.py @@ -0,0 +1,78 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_requirement_dto import SimulationOnboardingRequirementDto +from .simulation_onboarding_suite_coverage_dto import SimulationOnboardingSuiteCoverageDto +from .simulation_onboarding_suite_docs_dto import SimulationOnboardingSuiteDocsDto +from .simulation_onboarding_suite_ref_dto import SimulationOnboardingSuiteRefDto +from .simulation_onboarding_suite_simulation_dto import SimulationOnboardingSuiteSimulationDto +from .simulation_onboarding_tool_gap_dto import SimulationOnboardingToolGapDto + + +class SimulationOnboardingSuiteViewDto(UncheckedBaseModel): + suite: SimulationOnboardingSuiteRefDto = pydantic.Field() + """ + The generated simulation suite id and name. + """ + + assistant_id: typing_extensions.Annotated[ + str, + FieldMetadata(alias="assistantId"), + pydantic.Field(alias="assistantId", description="Assistant the suite is assigned to."), + ] + simulations: typing.List[SimulationOnboardingSuiteSimulationDto] = pydantic.Field() + """ + The suite's simulations, in order. + """ + + coverage: SimulationOnboardingSuiteCoverageDto = pydantic.Field() + """ + Counts of covered and total requirements, uncovered requirements, and scenarios available to retry. + """ + + requirements: typing.List[SimulationOnboardingRequirementDto] = pydantic.Field() + """ + The test requirements used to generate the suite. Match their ids to `coverage.gaps` to identify uncovered requirements. + """ + + docs: SimulationOnboardingSuiteDocsDto = pydantic.Field() + """ + Links to simulation testing best practices and tool mocking documentation. + """ + + reused: bool = pydantic.Field() + """ + True when the request matched one already applied (same `idempotencyKey` or `patchKey`) and nothing changed. + """ + + failed_edit_simulation_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], + FieldMetadata(alias="failedEditSimulationIds"), + pydantic.Field( + alias="failedEditSimulationIds", + description="Simulations an edit asked to rewrite that were not rewritten, for example because the rewrite did not generate in time. Retry them with a new `patchKey`.", + ), + ] = None + tool_gaps: typing_extensions.Annotated[ + typing.Optional[typing.List[SimulationOnboardingToolGapDto]], + FieldMetadata(alias="toolGaps"), + pydantic.Field( + alias="toolGaps", + description="Tool paths the suite's simulations do not exercise as configured, such as a tool mocked although it runs natively. Omitted when there are none.", + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_tool_gap_dto.py b/src/vapi/types/simulation_onboarding_tool_gap_dto.py new file mode 100644 index 000000000..3a6bf33e0 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_tool_gap_dto.py @@ -0,0 +1,49 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_onboarding_tool_gap_dto_reason import SimulationOnboardingToolGapDtoReason + + +class SimulationOnboardingToolGapDto(UncheckedBaseModel): + tool_name: typing_extensions.Annotated[ + str, + FieldMetadata(alias="toolName"), + pydantic.Field( + alias="toolName", description="Function name of the tool, e.g. `handoff_to_group_1` or `transferCall`." + ), + ] + assistant_name: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="assistantName"), + pydantic.Field( + alias="assistantName", + description="Assistant the tool belongs to, when it is a handoff destination's tool. Unset for the assistant's own tools.", + ), + ] = None + reason: SimulationOnboardingToolGapDtoReason = pydantic.Field() + """ + Why the path is not exercised: a reason the simulations mock the tool, or why a native path is never reached. New reasons may be added. + """ + + destination_names: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], + FieldMetadata(alias="destinationNames"), + pydantic.Field( + alias="destinationNames", description="Static destinations the simulations do not reach through this tool." + ), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_onboarding_tool_gap_dto_reason.py b/src/vapi/types/simulation_onboarding_tool_gap_dto_reason.py new file mode 100644 index 000000000..81b2013c5 --- /dev/null +++ b/src/vapi/types/simulation_onboarding_tool_gap_dto_reason.py @@ -0,0 +1,16 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SimulationOnboardingToolGapDtoReason = typing.Union[ + typing.Literal[ + "dynamic-handoff", + "destination-not-plain", + "destination-unresolved", + "destination-truncated", + "transfer-external", + "destination-name-unscoped", + "native-tool-shadowed", + ], + typing.Any, +] diff --git a/src/vapi/types/simulation_run.py b/src/vapi/types/simulation_run.py index a362333f5..85ecffc34 100644 --- a/src/vapi/types/simulation_run.py +++ b/src/vapi/types/simulation_run.py @@ -66,6 +66,14 @@ class SimulationRun(UncheckedBaseModel): FieldMetadata(alias="itemCounts"), pydantic.Field(alias="itemCounts", description="Aggregate counts of the run's items by status."), ] = None + include_target_structured_outputs: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="includeTargetStructuredOutputs"), + pydantic.Field( + alias="includeTargetStructuredOutputs", + description="Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges.", + ), + ] = None simulations: typing.List[SimulationRunSimulationsItem] = pydantic.Field() """ The simulations and suites included in the run. diff --git a/src/vapi/types/simulation_run_configuration.py b/src/vapi/types/simulation_run_configuration.py index 3f120ac2f..b70996483 100644 --- a/src/vapi/types/simulation_run_configuration.py +++ b/src/vapi/types/simulation_run_configuration.py @@ -3,12 +3,22 @@ import typing import pydantic +import typing_extensions from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel from .simulation_run_transport_configuration import SimulationRunTransportConfiguration class SimulationRunConfiguration(UncheckedBaseModel): + include_target_structured_outputs: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="includeTargetStructuredOutputs"), + pydantic.Field( + alias="includeTargetStructuredOutputs", + description="Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges.", + ), + ] = None transport: typing.Optional[SimulationRunTransportConfiguration] = pydantic.Field(default=None) """ Transport configuration for the simulation run diff --git a/src/vapi/types/simulation_run_item_results.py b/src/vapi/types/simulation_run_item_results.py index fa3ddfb97..bf370450b 100644 --- a/src/vapi/types/simulation_run_item_results.py +++ b/src/vapi/types/simulation_run_item_results.py @@ -11,10 +11,38 @@ from ..core.unchecked_base_model import UncheckedBaseModel from .latency_evaluation_result import LatencyEvaluationResult from .latency_metrics import LatencyMetrics +from .simulation_run_item_results_skipped_structured_outputs_value import ( + SimulationRunItemResultsSkippedStructuredOutputsValue, +) +from .simulation_run_item_results_structured_outputs_value import SimulationRunItemResultsStructuredOutputsValue from .structured_output_evaluation_result import StructuredOutputEvaluationResult class SimulationRunItemResults(UncheckedBaseModel): + structured_outputs: typing_extensions.Annotated[ + typing.Optional[typing.Dict[str, SimulationRunItemResultsStructuredOutputsValue]], + FieldMetadata(alias="structuredOutputs"), + pydantic.Field( + alias="structuredOutputs", + description="Retention-permitted target extraction values, present only when enabled.", + ), + ] = None + skipped_structured_outputs: typing_extensions.Annotated[ + typing.Optional[typing.Dict[str, SimulationRunItemResultsSkippedStructuredOutputsValue]], + FieldMetadata(alias="skippedStructuredOutputs"), + pydantic.Field( + alias="skippedStructuredOutputs", + description="Condition-gated outputs or audio outputs unsupported by chat.", + ), + ] = None + structured_output_error: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="structuredOutputError"), + pydantic.Field( + alias="structuredOutputError", + description="Sanitized diagnostic; optional target extraction never changes pass/fail.", + ), + ] = None evaluations: typing.List[StructuredOutputEvaluationResult] = pydantic.Field() """ This is the list of results from structured output evaluations. diff --git a/src/vapi/types/simulation_run_item_results_skipped_structured_outputs_value.py b/src/vapi/types/simulation_run_item_results_skipped_structured_outputs_value.py new file mode 100644 index 000000000..b2490b785 --- /dev/null +++ b/src/vapi/types/simulation_run_item_results_skipped_structured_outputs_value.py @@ -0,0 +1,31 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .simulation_run_item_results_skipped_structured_outputs_value_reason import ( + SimulationRunItemResultsSkippedStructuredOutputsValueReason, +) + + +class SimulationRunItemResultsSkippedStructuredOutputsValue(UncheckedBaseModel): + name: str + unmet_condition: typing_extensions.Annotated[ + typing.Optional[typing.Dict[str, typing.Any]], + FieldMetadata(alias="unmetCondition"), + pydantic.Field(alias="unmetCondition"), + ] = None + reason: typing.Optional[SimulationRunItemResultsSkippedStructuredOutputsValueReason] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_run_item_results_skipped_structured_outputs_value_reason.py b/src/vapi/types/simulation_run_item_results_skipped_structured_outputs_value_reason.py new file mode 100644 index 000000000..789500bc5 --- /dev/null +++ b/src/vapi/types/simulation_run_item_results_skipped_structured_outputs_value_reason.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SimulationRunItemResultsSkippedStructuredOutputsValueReason = typing.Union[ + typing.Literal["audio-not-supported"], typing.Any +] diff --git a/src/vapi/types/simulation_run_item_results_structured_outputs_value.py b/src/vapi/types/simulation_run_item_results_structured_outputs_value.py new file mode 100644 index 000000000..32154acd0 --- /dev/null +++ b/src/vapi/types/simulation_run_item_results_structured_outputs_value.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class SimulationRunItemResultsStructuredOutputsValue(UncheckedBaseModel): + name: str + result: typing.Optional[typing.Any] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/simulation_run_items_paginated_response.py b/src/vapi/types/simulation_run_items_paginated_response.py new file mode 100644 index 000000000..a85f3d81a --- /dev/null +++ b/src/vapi/types/simulation_run_items_paginated_response.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs +from ..core.unchecked_base_model import UncheckedBaseModel +from .pagination_meta import PaginationMeta +from .simulation_run_item import SimulationRunItem + + +class SimulationRunItemsPaginatedResponse(UncheckedBaseModel): + results: typing.List[SimulationRunItem] + metadata: PaginationMeta + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +update_forward_refs(SimulationRunItemsPaginatedResponse) diff --git a/src/vapi/types/simulation_run_list_item.py b/src/vapi/types/simulation_run_list_item.py index 42b909408..9fc7a9cd2 100644 --- a/src/vapi/types/simulation_run_list_item.py +++ b/src/vapi/types/simulation_run_list_item.py @@ -67,6 +67,14 @@ class SimulationRunListItem(UncheckedBaseModel): FieldMetadata(alias="itemCounts"), pydantic.Field(alias="itemCounts", description="Aggregate counts of run items by status"), ] = None + include_target_structured_outputs: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="includeTargetStructuredOutputs"), + pydantic.Field( + alias="includeTargetStructuredOutputs", + description="Generate directly attached target structured outputs. Default false. Enabled extraction may incur additional model charges.", + ), + ] = None simulations: typing.List[SimulationRunListItemSimulationsItem] = pydantic.Field() """ Array of simulations and/or suites to run diff --git a/src/vapi/types/simulation_run_list_item_target.py b/src/vapi/types/simulation_run_list_item_target.py index aa91d55fa..32caa9022 100644 --- a/src/vapi/types/simulation_run_list_item_target.py +++ b/src/vapi/types/simulation_run_list_item_target.py @@ -20,7 +20,7 @@ class SimulationRunListItemTarget_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 @@ -81,9 +81,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -118,6 +115,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -152,9 +152,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -189,6 +186,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -223,9 +223,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -260,6 +257,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/simulation_run_target.py b/src/vapi/types/simulation_run_target.py index fee3b7588..3446180af 100644 --- a/src/vapi/types/simulation_run_target.py +++ b/src/vapi/types/simulation_run_target.py @@ -20,7 +20,7 @@ class SimulationRunTarget_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 @@ -80,9 +80,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -117,6 +114,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -151,9 +151,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -188,6 +185,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -222,9 +222,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -259,6 +256,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/simulation_run_target_assistant.py b/src/vapi/types/simulation_run_target_assistant.py index 293f9e365..737dc01f3 100644 --- a/src/vapi/types/simulation_run_target_assistant.py +++ b/src/vapi/types/simulation_run_target_assistant.py @@ -20,7 +20,7 @@ class SimulationRunTargetAssistant(UncheckedBaseModel): description="ID of an existing assistant to test against. Cannot be combined with inline assistant.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ Inline assistant configuration to test against. Cannot be combined with assistantId. """ @@ -59,9 +59,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -96,6 +93,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -130,9 +130,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -167,6 +164,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/simulation_run_target_squad.py b/src/vapi/types/simulation_run_target_squad.py index 17987302f..68a378d58 100644 --- a/src/vapi/types/simulation_run_target_squad.py +++ b/src/vapi/types/simulation_run_target_squad.py @@ -59,9 +59,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -96,6 +93,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -130,9 +130,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -167,6 +164,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/simulation_suites_paginated_response.py b/src/vapi/types/simulation_suites_paginated_response.py new file mode 100644 index 000000000..e905c0838 --- /dev/null +++ b/src/vapi/types/simulation_suites_paginated_response.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .pagination_meta import PaginationMeta +from .simulation_suite import SimulationSuite + + +class SimulationSuitesPaginatedResponse(UncheckedBaseModel): + results: typing.List[SimulationSuite] + metadata: PaginationMeta + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/sip_request_tool.py b/src/vapi/types/sip_request_tool.py index 9d5a87907..c12ceed27 100644 --- a/src/vapi/types/sip_request_tool.py +++ b/src/vapi/types/sip_request_tool.py @@ -24,6 +24,14 @@ class SipRequestTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[SipRequestToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/slack_send_message_tool.py b/src/vapi/types/slack_send_message_tool.py index 2d3f96488..ff78a6497 100644 --- a/src/vapi/types/slack_send_message_tool.py +++ b/src/vapi/types/slack_send_message_tool.py @@ -22,6 +22,14 @@ class SlackSendMessageTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[SlackSendMessageToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/sms_tool.py b/src/vapi/types/sms_tool.py index d48cd4b0c..5bc780e33 100644 --- a/src/vapi/types/sms_tool.py +++ b/src/vapi/types/sms_tool.py @@ -22,6 +22,14 @@ class SmsTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[SmsToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/squad.py b/src/vapi/types/squad.py index 126500fd8..935a20978 100644 --- a/src/vapi/types/squad.py +++ b/src/vapi/types/squad.py @@ -115,9 +115,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -152,6 +149,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -186,9 +186,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -223,6 +220,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/squad_member_dto.py b/src/vapi/types/squad_member_dto.py index 1dfebb881..4fd060451 100644 --- a/src/vapi/types/squad_member_dto.py +++ b/src/vapi/types/squad_member_dto.py @@ -40,7 +40,7 @@ class SquadMemberDto(UncheckedBaseModel): description="This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead.", ), ] = None - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. """ @@ -88,9 +88,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -124,6 +121,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -158,9 +158,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -194,6 +191,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/squad_version.py b/src/vapi/types/squad_version.py index 5c8bcd45d..b54b6db5e 100644 --- a/src/vapi/types/squad_version.py +++ b/src/vapi/types/squad_version.py @@ -151,9 +151,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -188,6 +185,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -222,9 +222,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -259,6 +256,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/structured_output.py b/src/vapi/types/structured_output.py index 1c1c6e594..7402bc0f8 100644 --- a/src/vapi/types/structured_output.py +++ b/src/vapi/types/structured_output.py @@ -57,7 +57,8 @@ class StructuredOutput(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` diff --git a/src/vapi/types/structured_output_cost_breakdown.py b/src/vapi/types/structured_output_cost_breakdown.py index 5904982ff..5196ef080 100644 --- a/src/vapi/types/structured_output_cost_breakdown.py +++ b/src/vapi/types/structured_output_cost_breakdown.py @@ -52,6 +52,14 @@ class StructuredOutputCostBreakdown(UncheckedBaseModel): description="This is the number of cached prompt tokens used to evaluate this structured output. This is a subset of `promptTokens`, not an addition to it.", ), ] = None + reasoning_tokens: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="reasoningTokens"), + pydantic.Field( + alias="reasoningTokens", + description="This is the number of reasoning tokens the model generated for this structured output. This is a subset of `completionTokens`, not an addition to it: reasoning tokens are already billed at the output-token rate, so this is for visibility only and does not affect `cost`.", + ), + ] = None if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/vapi/types/structured_output_model.py b/src/vapi/types/structured_output_model.py index 55c1ca504..356ce7750 100644 --- a/src/vapi/types/structured_output_model.py +++ b/src/vapi/types/structured_output_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class StructuredOutputModel_Openai(UncheckedBaseModel): @@ -23,7 +24,8 @@ class StructuredOutputModel_Openai(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -38,6 +40,11 @@ class StructuredOutputModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") @@ -58,7 +65,8 @@ class StructuredOutputModel_Anthropic(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -94,7 +102,8 @@ class StructuredOutputModel_AnthropicBedrock(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -130,7 +139,8 @@ class StructuredOutputModel_Google(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` @@ -165,7 +175,8 @@ class StructuredOutputModel_CustomLlm(UncheckedBaseModel): This is the model that will be used to extract the structured output. To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - Between the system or user messages, you must reference either 'transcript' or 'messages' with the `{{}}` syntax to access the conversation history. + For text extraction, you must reference 'transcript', 'messages', or 'messagesWithConfidence' with the `{{}}` syntax to access the conversation history. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results but omits caller transcription-confidence fields. Text extraction can use `{{messagesWithConfidence}}` when the output needs the original message history with transcription confidence. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. Between the system or user messages, you must reference a variation of the structured output with the `{{}}` syntax to access the structured output definition. i.e.: `{{structuredOutput}}` diff --git a/src/vapi/types/subscription_status.py b/src/vapi/types/subscription_status.py index e41f4421a..b504a92f6 100644 --- a/src/vapi/types/subscription_status.py +++ b/src/vapi/types/subscription_status.py @@ -2,4 +2,4 @@ import typing -SubscriptionStatus = typing.Union[typing.Literal["active", "frozen"], typing.Any] +SubscriptionStatus = typing.Union[typing.Literal["active", "frozen", "blocked"], typing.Any] diff --git a/src/vapi/types/target_plan.py b/src/vapi/types/target_plan.py index 8740dadf3..1b6ceb1c7 100644 --- a/src/vapi/types/target_plan.py +++ b/src/vapi/types/target_plan.py @@ -80,9 +80,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -117,6 +114,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -151,9 +151,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -188,6 +185,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/tavus_conversation_properties.py b/src/vapi/types/tavus_conversation_properties.py index d9cc80d87..58c7c1028 100644 --- a/src/vapi/types/tavus_conversation_properties.py +++ b/src/vapi/types/tavus_conversation_properties.py @@ -2,101 +2,7 @@ import typing -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from ..core.unchecked_base_model import UncheckedBaseModel - - -class TavusConversationProperties(UncheckedBaseModel): - """ - Tavus conversation behavior and media settings, including duration, participant timeouts, recording, transcription, background, language, and recording storage. - """ - - max_call_duration: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="maxCallDuration"), - pydantic.Field( - alias="maxCallDuration", - description="The maximum duration of the call in seconds. The default `maxCallDuration` is 3600 seconds (1 hour).\nOnce the time limit specified by this parameter has been reached, the conversation will automatically shut down.", - ), - ] = None - participant_left_timeout: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="participantLeftTimeout"), - pydantic.Field( - alias="participantLeftTimeout", - description="The duration in seconds after which the call will be automatically shut down once the last participant leaves.", - ), - ] = None - participant_absent_timeout: typing_extensions.Annotated[ - typing.Optional[float], - FieldMetadata(alias="participantAbsentTimeout"), - pydantic.Field( - alias="participantAbsentTimeout", - description="Starting from conversation creation, the duration in seconds after which the call will be automatically shut down if no participant joins the call.\nDefault is 300 seconds (5 minutes).", - ), - ] = None - enable_recording: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="enableRecording"), - pydantic.Field( - alias="enableRecording", description="If true, the user will be able to record the conversation." - ), - ] = None - enable_transcription: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="enableTranscription"), - pydantic.Field( - alias="enableTranscription", - description="If true, the user will be able to transcribe the conversation.\nYou can find more instructions on displaying transcriptions if you are using your custom DailyJS components here.\nYou need to have an event listener on Daily that listens for `app-messages`.", - ), - ] = None - apply_greenscreen: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="applyGreenscreen"), - pydantic.Field( - alias="applyGreenscreen", - description="If true, the background will be replaced with a greenscreen (RGB values: `[0, 255, 155]`).\nYou can use WebGL on the frontend to make the greenscreen transparent or change its color.", - ), - ] = None - language: typing.Optional[str] = pydantic.Field(default=None) - """ - The language of the conversation. Please provide the **full language name**, not the two-letter code. - If you are using your own TTS voice, please ensure it supports the language you provide. - If you are using a stock replica or default persona, please note that only ElevenLabs and Cartesia supported languages are available. - You can find a full list of supported languages for Cartesia here, for ElevenLabs here, and for PlayHT here. - """ - - recording_s_3_bucket_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recordingS3BucketName"), - pydantic.Field( - alias="recordingS3BucketName", description="The name of the S3 bucket where the recording will be stored." - ), - ] = None - recording_s_3_bucket_region: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="recordingS3BucketRegion"), - pydantic.Field( - alias="recordingS3BucketRegion", - description="The region of the S3 bucket where the recording will be stored.", - ), - ] = None - aws_assume_role_arn: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="awsAssumeRoleArn"), - pydantic.Field( - alias="awsAssumeRoleArn", description="The ARN of the role that will be assumed to access the S3 bucket." - ), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow +TavusConversationProperties = typing.Any +""" +Tavus conversation behavior and media settings, including duration, participant timeouts, recording, transcription, background, language, and recording storage. +""" diff --git a/src/vapi/types/tavus_voice.py b/src/vapi/types/tavus_voice.py index ad984956b..462e31d14 100644 --- a/src/vapi/types/tavus_voice.py +++ b/src/vapi/types/tavus_voice.py @@ -2,98 +2,7 @@ import typing -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 -from ..core.serialization import FieldMetadata -from ..core.unchecked_base_model import UncheckedBaseModel -from .chunk_plan import ChunkPlan -from .fallback_plan import FallbackPlan -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId - - -class TavusVoice(UncheckedBaseModel): - """ - Configuration for using Tavus as the assistant's voice provider, including persona, callback, context, greeting, conversation properties, chunking, caching, and fallback settings. - """ - - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], - FieldMetadata(alias="cachingEnabled"), - pydantic.Field( - alias="cachingEnabled", description="This is the flag to toggle voice caching for the assistant." - ), - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, - FieldMetadata(alias="voiceId"), - pydantic.Field(alias="voiceId", description="This is the provider-specific ID that will be used."), - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], - FieldMetadata(alias="chunkPlan"), - pydantic.Field( - alias="chunkPlan", - description="This is the plan for chunking the model output before it is sent to the voice provider.", - ), - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="personaId"), - pydantic.Field( - alias="personaId", - description="This is the unique identifier for the persona that the replica will use in the conversation.", - ), - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="callbackUrl"), - pydantic.Field( - alias="callbackUrl", - description="This is the url that will receive webhooks with updates regarding the conversation state.", - ), - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationName"), - pydantic.Field(alias="conversationName", description="This is the name for the conversation."), - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field( - alias="conversationalContext", - description="This is the context that will be appended to any context provided in the persona, if one is provided.", - ), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="customGreeting"), - pydantic.Field( - alias="customGreeting", - description="This is the custom greeting that the replica will give once a participant joines the conversation.", - ), - ] = None - properties: typing.Optional[TavusConversationProperties] = pydantic.Field(default=None) - """ - These are optional properties used to customize the conversation. - """ - - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], - FieldMetadata(alias="fallbackPlan"), - pydantic.Field( - alias="fallbackPlan", - description="This is the plan for voice provider fallbacks in the event that the primary voice provider fails.", - ), - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow +TavusVoice = typing.Any +""" +Configuration for using Tavus as the assistant's voice provider, including persona, callback, context, greeting, conversation properties, chunking, caching, and fallback settings. +""" diff --git a/src/vapi/types/tavus_voice_voice_id.py b/src/vapi/types/tavus_voice_voice_id.py deleted file mode 100644 index 093843fd4..000000000 --- a/src/vapi/types/tavus_voice_voice_id.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .tavus_voice_voice_id_zero import TavusVoiceVoiceIdZero - -TavusVoiceVoiceId = typing.Union[TavusVoiceVoiceIdZero, str] diff --git a/src/vapi/types/tavus_voice_voice_id_zero.py b/src/vapi/types/tavus_voice_voice_id_zero.py deleted file mode 100644 index 416f3b60e..000000000 --- a/src/vapi/types/tavus_voice_voice_id_zero.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TavusVoiceVoiceIdZero = typing.Union[typing.Literal["r52da2535a"], typing.Any] diff --git a/src/vapi/types/template_details.py b/src/vapi/types/template_details.py index ac7ee19cd..7abc1f3e4 100644 --- a/src/vapi/types/template_details.py +++ b/src/vapi/types/template_details.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -652,6 +649,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -700,9 +700,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -736,6 +733,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/tester_plan.py b/src/vapi/types/tester_plan.py index 224106edd..1bf5212b2 100644 --- a/src/vapi/types/tester_plan.py +++ b/src/vapi/types/tester_plan.py @@ -12,7 +12,7 @@ class TesterPlan(UncheckedBaseModel): - assistant: typing.Optional["CreateAssistantDto"] = pydantic.Field(default=None) + assistant: typing.Optional["TransientAssistantDto"] = pydantic.Field(default=None) """ Pass a transient assistant to use for the test assistant. @@ -70,9 +70,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -107,6 +104,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -141,9 +141,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -178,6 +175,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/text_editor_tool.py b/src/vapi/types/text_editor_tool.py index ac3fdc7ba..17fe020af 100644 --- a/src/vapi/types/text_editor_tool.py +++ b/src/vapi/types/text_editor_tool.py @@ -25,6 +25,14 @@ class TextEditorTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[TextEditorToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/text_insight_from_call_table_queries_item.py b/src/vapi/types/text_insight_from_call_table_queries_item.py index e1aabe826..dca65db83 100644 --- a/src/vapi/types/text_insight_from_call_table_queries_item.py +++ b/src/vapi/types/text_insight_from_call_table_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable TextInsightFromCallTableQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/text_insight_queries_item.py b/src/vapi/types/text_insight_queries_item.py index 9075bdf9f..6d9e1d26a 100644 --- a/src/vapi/types/text_insight_queries_item.py +++ b/src/vapi/types/text_insight_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable TextInsightQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/together_ai_model.py b/src/vapi/types/together_ai_model.py index 712cdea9f..53a18553b 100644 --- a/src/vapi/types/together_ai_model.py +++ b/src/vapi/types/together_ai_model.py @@ -67,7 +67,7 @@ class TogetherAiModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -121,9 +121,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -157,6 +154,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -191,9 +191,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -227,6 +224,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/together_ai_model_tools_item.py b/src/vapi/types/together_ai_model_tools_item.py index d9b63ad7b..28d2f037a 100644 --- a/src/vapi/types/together_ai_model_tools_item.py +++ b/src/vapi/types/together_ai_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -651,6 +648,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/tool_call_hook_action.py b/src/vapi/types/tool_call_hook_action.py index 56a13fe8d..bccfd8fe3 100644 --- a/src/vapi/types/tool_call_hook_action.py +++ b/src/vapi/types/tool_call_hook_action.py @@ -69,9 +69,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -105,6 +102,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -139,9 +139,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -175,6 +172,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/tool_call_hook_action_tool.py b/src/vapi/types/tool_call_hook_action_tool.py index 96ecd79b8..a5a8ee819 100644 --- a/src/vapi/types/tool_call_hook_action_tool.py +++ b/src/vapi/types/tool_call_hook_action_tool.py @@ -708,9 +708,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -743,6 +740,9 @@ class Config: from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -791,9 +791,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -827,6 +824,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/tool_node.py b/src/vapi/types/tool_node.py index 68e004d0e..695cac057 100644 --- a/src/vapi/types/tool_node.py +++ b/src/vapi/types/tool_node.py @@ -77,9 +77,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -113,6 +110,9 @@ class Config: from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -147,9 +147,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -183,6 +180,9 @@ class Config: ToolCallHookAction=ToolCallHookAction, ToolCallHookActionTool=ToolCallHookActionTool, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/tool_node_tool.py b/src/vapi/types/tool_node_tool.py index 7890ed969..451fd13d9 100644 --- a/src/vapi/types/tool_node_tool.py +++ b/src/vapi/types/tool_node_tool.py @@ -708,9 +708,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -743,6 +740,9 @@ class Config: from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -791,9 +791,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -827,6 +824,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/traffic_allocation_stale_conflict_response_dto.py b/src/vapi/types/traffic_allocation_stale_conflict_response_dto.py index 2a773ef9a..9fd873e7a 100644 --- a/src/vapi/types/traffic_allocation_stale_conflict_response_dto.py +++ b/src/vapi/types/traffic_allocation_stale_conflict_response_dto.py @@ -7,11 +7,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2 from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel -from .traffic_allocation_stale_conflict_response_dto_error import TrafficAllocationStaleConflictResponseDtoError class TrafficAllocationStaleConflictResponseDto(UncheckedBaseModel): - error: TrafficAllocationStaleConflictResponseDtoError message: str = pydantic.Field() """ Human-readable reason the create was rejected. diff --git a/src/vapi/types/traffic_allocation_stale_conflict_response_dto_error.py b/src/vapi/types/traffic_allocation_stale_conflict_response_dto_error.py deleted file mode 100644 index 521c9bdd9..000000000 --- a/src/vapi/types/traffic_allocation_stale_conflict_response_dto_error.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TrafficAllocationStaleConflictResponseDtoError = typing.Union[typing.Literal["stale_allocation"], typing.Any] diff --git a/src/vapi/types/traffic_tab_cost_breakdown_per_minute_dto.py b/src/vapi/types/traffic_tab_cost_breakdown_per_minute_dto.py new file mode 100644 index 000000000..06364b7cd --- /dev/null +++ b/src/vapi/types/traffic_tab_cost_breakdown_per_minute_dto.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabCostBreakdownPerMinuteDto(UncheckedBaseModel): + llm: typing.Optional[float] = None + stt: typing.Optional[float] = None + tts: typing.Optional[float] = None + vapi: typing.Optional[float] = None + transport: typing.Optional[float] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_cost_per_minute_dto.py b/src/vapi/types/traffic_tab_cost_per_minute_dto.py new file mode 100644 index 000000000..27d60616a --- /dev/null +++ b/src/vapi/types/traffic_tab_cost_per_minute_dto.py @@ -0,0 +1,22 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .traffic_tab_cost_breakdown_per_minute_dto import TrafficTabCostBreakdownPerMinuteDto + + +class TrafficTabCostPerMinuteDto(UncheckedBaseModel): + mean: typing.Optional[float] = None + breakdown: TrafficTabCostBreakdownPerMinuteDto + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_duration_seconds_dto.py b/src/vapi/types/traffic_tab_duration_seconds_dto.py new file mode 100644 index 000000000..bca5cb643 --- /dev/null +++ b/src/vapi/types/traffic_tab_duration_seconds_dto.py @@ -0,0 +1,29 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabDurationSecondsDto(UncheckedBaseModel): + mean: typing.Optional[float] = None + stddev: typing.Optional[float] = None + p_50: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="p50"), pydantic.Field(alias="p50") + ] = None + p_95: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="p95"), pydantic.Field(alias="p95") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_ended_reason_count_dto.py b/src/vapi/types/traffic_tab_ended_reason_count_dto.py new file mode 100644 index 000000000..71bb0d91a --- /dev/null +++ b/src/vapi/types/traffic_tab_ended_reason_count_dto.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabEndedReasonCountDto(UncheckedBaseModel): + reason: str + count: float + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_latency_ms_dto.py b/src/vapi/types/traffic_tab_latency_ms_dto.py new file mode 100644 index 000000000..486b44c77 --- /dev/null +++ b/src/vapi/types/traffic_tab_latency_ms_dto.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel +from .traffic_tab_latency_stats_dto import TrafficTabLatencyStatsDto + + +class TrafficTabLatencyMsDto(UncheckedBaseModel): + model: TrafficTabLatencyStatsDto + voice: TrafficTabLatencyStatsDto + transcriber: TrafficTabLatencyStatsDto + turn: TrafficTabLatencyStatsDto + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_latency_stats_dto.py b/src/vapi/types/traffic_tab_latency_stats_dto.py new file mode 100644 index 000000000..6bf0821fa --- /dev/null +++ b/src/vapi/types/traffic_tab_latency_stats_dto.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabLatencyStatsDto(UncheckedBaseModel): + mean: typing.Optional[float] = None + p_50: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="p50"), pydantic.Field(alias="p50") + ] = None + p_95: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="p95"), pydantic.Field(alias="p95") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_metrics_dto.py b/src/vapi/types/traffic_tab_metrics_dto.py new file mode 100644 index 000000000..a8fc5e056 --- /dev/null +++ b/src/vapi/types/traffic_tab_metrics_dto.py @@ -0,0 +1,42 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .traffic_allocation import TrafficAllocation +from .traffic_tab_metrics_window_dto import TrafficTabMetricsWindowDto +from .traffic_tab_version_metrics_dto import TrafficTabVersionMetricsDto + + +class TrafficTabMetricsDto(UncheckedBaseModel): + window: TrafficTabMetricsWindowDto + total_calls: typing_extensions.Annotated[ + float, + FieldMetadata(alias="totalCalls"), + pydantic.Field(alias="totalCalls", description="All calls for the assistant in the window, every version."), + ] + current_allocation: typing_extensions.Annotated[ + typing.Optional[TrafficAllocation], + FieldMetadata(alias="currentAllocation"), + pydantic.Field( + alias="currentAllocation", + description="The allocation currently governing the assistant. Null when traffic splitting was never configured.", + ), + ] = None + versions: typing.List[TrafficTabVersionMetricsDto] = pydantic.Field() + """ + One row per version with calls in the window, plus the unversioned row when it has any. Ordered by calls descending, then by version label (numeric-aware), the unversioned row last among equals. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_metrics_window_dto.py b/src/vapi/types/traffic_tab_metrics_window_dto.py new file mode 100644 index 000000000..7179272c2 --- /dev/null +++ b/src/vapi/types/traffic_tab_metrics_window_dto.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .traffic_tab_metrics_window_dto_bucket import TrafficTabMetricsWindowDtoBucket + + +class TrafficTabMetricsWindowDto(UncheckedBaseModel): + from_: typing_extensions.Annotated[ + str, + FieldMetadata(alias="from"), + pydantic.Field(alias="from", description="Start of the window (inclusive), ISO 8601."), + ] + to: str = pydantic.Field() + """ + End of the window (exclusive), ISO 8601. + """ + + bucket: TrafficTabMetricsWindowDtoBucket + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_metrics_window_dto_bucket.py b/src/vapi/types/traffic_tab_metrics_window_dto_bucket.py new file mode 100644 index 000000000..6ea0dce98 --- /dev/null +++ b/src/vapi/types/traffic_tab_metrics_window_dto_bucket.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TrafficTabMetricsWindowDtoBucket = typing.Union[typing.Literal["hour", "day"], typing.Any] diff --git a/src/vapi/types/traffic_tab_structured_output_dto.py b/src/vapi/types/traffic_tab_structured_output_dto.py new file mode 100644 index 000000000..13aa548f5 --- /dev/null +++ b/src/vapi/types/traffic_tab_structured_output_dto.py @@ -0,0 +1,39 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .traffic_tab_structured_output_dto_type import TrafficTabStructuredOutputDtoType +from .traffic_tab_structured_output_numeric_dto import TrafficTabStructuredOutputNumericDto +from .traffic_tab_structured_output_value_count_dto import TrafficTabStructuredOutputValueCountDto + + +class TrafficTabStructuredOutputDto(UncheckedBaseModel): + structured_output_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="structuredOutputId"), pydantic.Field(alias="structuredOutputId") + ] + type: TrafficTabStructuredOutputDtoType + present: float = pydantic.Field() + """ + Calls in the window where this output produced a result. + """ + + numeric: typing.Optional[TrafficTabStructuredOutputNumericDto] = None + value_counts: typing_extensions.Annotated[ + typing.Optional[typing.List[TrafficTabStructuredOutputValueCountDto]], + FieldMetadata(alias="valueCounts"), + pydantic.Field(alias="valueCounts", description="Top 10 values by count, for string/boolean outputs."), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_structured_output_dto_type.py b/src/vapi/types/traffic_tab_structured_output_dto_type.py new file mode 100644 index 000000000..c9248683d --- /dev/null +++ b/src/vapi/types/traffic_tab_structured_output_dto_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TrafficTabStructuredOutputDtoType = typing.Union[typing.Literal["number", "string", "boolean", "unknown"], typing.Any] diff --git a/src/vapi/types/traffic_tab_structured_output_numeric_dto.py b/src/vapi/types/traffic_tab_structured_output_numeric_dto.py new file mode 100644 index 000000000..f8044c846 --- /dev/null +++ b/src/vapi/types/traffic_tab_structured_output_numeric_dto.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabStructuredOutputNumericDto(UncheckedBaseModel): + mean: typing.Optional[float] = None + stddev: typing.Optional[float] = None + p_50: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="p50"), pydantic.Field(alias="p50") + ] = None + p_95: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="p95"), pydantic.Field(alias="p95") + ] = None + sum: typing.Optional[float] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_structured_output_value_count_dto.py b/src/vapi/types/traffic_tab_structured_output_value_count_dto.py new file mode 100644 index 000000000..e1d1efc24 --- /dev/null +++ b/src/vapi/types/traffic_tab_structured_output_value_count_dto.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabStructuredOutputValueCountDto(UncheckedBaseModel): + value: str + count: float + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_timeseries_point_dto.py b/src/vapi/types/traffic_tab_timeseries_point_dto.py new file mode 100644 index 000000000..b1494cc70 --- /dev/null +++ b/src/vapi/types/traffic_tab_timeseries_point_dto.py @@ -0,0 +1,36 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel + + +class TrafficTabTimeseriesPointDto(UncheckedBaseModel): + bucket_start: typing_extensions.Annotated[ + str, + FieldMetadata(alias="bucketStart"), + pydantic.Field(alias="bucketStart", description="Start of the bucket, ISO 8601 (UTC)."), + ] + calls: float + duration_seconds_mean: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="durationSecondsMean"), pydantic.Field(alias="durationSecondsMean") + ] = None + cost_per_minute_mean: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="costPerMinuteMean"), pydantic.Field(alias="costPerMinuteMean") + ] = None + turn_latency_ms_mean: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="turnLatencyMsMean"), pydantic.Field(alias="turnLatencyMsMean") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/traffic_tab_version_metrics_dto.py b/src/vapi/types/traffic_tab_version_metrics_dto.py new file mode 100644 index 000000000..6aea9a723 --- /dev/null +++ b/src/vapi/types/traffic_tab_version_metrics_dto.py @@ -0,0 +1,79 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .traffic_tab_cost_per_minute_dto import TrafficTabCostPerMinuteDto +from .traffic_tab_duration_seconds_dto import TrafficTabDurationSecondsDto +from .traffic_tab_ended_reason_count_dto import TrafficTabEndedReasonCountDto +from .traffic_tab_latency_ms_dto import TrafficTabLatencyMsDto +from .traffic_tab_structured_output_dto import TrafficTabStructuredOutputDto +from .traffic_tab_timeseries_point_dto import TrafficTabTimeseriesPointDto + + +class TrafficTabVersionMetricsDto(UncheckedBaseModel): + assistant_version_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="assistantVersionId"), pydantic.Field(alias="assistantVersionId") + ] = None + assistant_version_label: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="assistantVersionLabel"), + pydantic.Field( + alias="assistantVersionLabel", + description='The published version label, such as "v7". Null when no version row resolves (unversioned calls, or a since-purged version).', + ), + ] = None + unversioned: typing.Optional[bool] = pydantic.Field(default=None) + """ + True for the row aggregating calls with no assistant version (stored as SQL NULL). + """ + + calls: float + configured_percentage: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="configuredPercentage"), + pydantic.Field( + alias="configuredPercentage", + description="The version's share in the currently-governing allocation. Null when the version is not in the current split — never rendered as 0%.", + ), + ] = None + actual_percentage: typing_extensions.Annotated[ + float, + FieldMetadata(alias="actualPercentage"), + pydantic.Field( + alias="actualPercentage", description="calls / totalCalls * 100 over the window, rounded to 3 decimals." + ), + ] + duration_seconds: typing_extensions.Annotated[ + TrafficTabDurationSecondsDto, FieldMetadata(alias="durationSeconds"), pydantic.Field(alias="durationSeconds") + ] + cost_per_minute: typing_extensions.Annotated[ + TrafficTabCostPerMinuteDto, FieldMetadata(alias="costPerMinute"), pydantic.Field(alias="costPerMinute") + ] + latency_ms: typing_extensions.Annotated[ + TrafficTabLatencyMsDto, FieldMetadata(alias="latencyMs"), pydantic.Field(alias="latencyMs") + ] + ended_reasons: typing_extensions.Annotated[ + typing.List[TrafficTabEndedReasonCountDto], + FieldMetadata(alias="endedReasons"), + pydantic.Field(alias="endedReasons", description="Full per-reason counts; the UI unions and top-Ns."), + ] + timeseries: typing.List[TrafficTabTimeseriesPointDto] + structured_outputs: typing_extensions.Annotated[ + typing.Optional[typing.List[TrafficTabStructuredOutputDto]], + FieldMetadata(alias="structuredOutputs"), + pydantic.Field(alias="structuredOutputs", description="Present only when structuredOutputIds was given."), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/transfer_assistant.py b/src/vapi/types/transfer_assistant.py index cc3e43561..d59b29f90 100644 --- a/src/vapi/types/transfer_assistant.py +++ b/src/vapi/types/transfer_assistant.py @@ -1,16 +1,19 @@ # This file was auto-generated by Fern from our API Definition. +from __future__ import annotations + import typing import pydantic import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel from .background_speech_denoising_plan import BackgroundSpeechDenoisingPlan from .start_speaking_plan import StartSpeakingPlan from .transfer_assistant_background_sound import TransferAssistantBackgroundSound from .transfer_assistant_first_message_mode import TransferAssistantFirstMessageMode +from .transfer_assistant_hooks_item import TransferAssistantHooksItem from .transfer_assistant_model import TransferAssistantModel from .transfer_assistant_transcriber import TransferAssistantTranscriber from .transfer_assistant_voice import TransferAssistantVoice @@ -50,7 +53,7 @@ class TransferAssistant(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the transfer assistant call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the transfer assistant call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None start_speaking_plan: typing_extensions.Annotated[ @@ -77,6 +80,19 @@ class TransferAssistant(UncheckedBaseModel): description="This is the maximum duration in seconds for the transfer assistant conversation.\nAfter this time, the transfer will be cancelled automatically.\n@default 120", ), ] = None + assistant_hooks_inherit_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="assistantHooksInheritEnabled"), + pydantic.Field( + alias="assistantHooksInheritEnabled", + description="This decides whether the transfer assistant runs the main assistant's hooks on the operator leg of a `warm-transfer-experimental` transfer. The operator is the \"customer\" there. When unset or `true`, the transfer assistant runs all of the main assistant's hooks, plus `hooks`. When `false`, it runs only `hooks`, plus the main assistant's `call.ending` hooks. An `endCall` in an inherited `customer.speech.timeout` hook ends the whole call when the operator is silent, so set this to `false` to stop that.", + ), + ] = None + hooks: typing.Optional[typing.List[TransferAssistantHooksItem]] = pydantic.Field(default=None) + """ + These are the hooks the transfer assistant runs on the operator leg of a `warm-transfer-experimental` transfer. The operator is the "customer" there, so `customer.speech.timeout` fires on operator silence. Whether the main assistant's other hooks also run on the operator leg depends on `assistantHooksInheritEnabled`. These hooks run after them. `call.ending` and `call.timeElapsed` are not allowed here. The main assistant's `call.ending` hooks are kept automatically. Time-elapsed hooks are not armed on the operator leg. An `endCall` tool in these hooks ends the whole call, not only the operator leg. A `tool` action must carry an inline `tool`, because `toolId` is not resolved for the transfer assistant. + """ + background_speech_denoising_plan: typing_extensions.Annotated[ typing.Optional[BackgroundSpeechDenoisingPlan], FieldMetadata(alias="backgroundSpeechDenoisingPlan"), @@ -102,3 +118,6 @@ class Config: frozen = True smart_union = True extra = pydantic.Extra.allow + + +update_forward_refs(TransferAssistant) diff --git a/src/vapi/types/transfer_assistant_background_sound_zero.py b/src/vapi/types/transfer_assistant_background_sound_zero.py index cea4324c2..69b8a1e44 100644 --- a/src/vapi/types/transfer_assistant_background_sound_zero.py +++ b/src/vapi/types/transfer_assistant_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -TransferAssistantBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +TransferAssistantBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/transfer_assistant_hook_action.py b/src/vapi/types/transfer_assistant_hook_action.py deleted file mode 100644 index 8897e0618..000000000 --- a/src/vapi/types/transfer_assistant_hook_action.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -TransferAssistantHookAction = typing.Any diff --git a/src/vapi/types/transfer_assistant_hooks_item.py b/src/vapi/types/transfer_assistant_hooks_item.py new file mode 100644 index 000000000..c65a444ba --- /dev/null +++ b/src/vapi/types/transfer_assistant_hooks_item.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted +from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted +from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout +from .call_hook_model_response_timeout import CallHookModelResponseTimeout +from .call_hook_transcriber_endpointed_speech_low_confidence import CallHookTranscriberEndpointedSpeechLowConfidence + +TransferAssistantHooksItem = typing.Union[ + CallHookAssistantSpeechInterrupted, + CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechTimeout, + CallHookModelResponseTimeout, + CallHookTranscriberEndpointedSpeechLowConfidence, +] diff --git a/src/vapi/types/transfer_assistant_transcriber.py b/src/vapi/types/transfer_assistant_transcriber.py index 33dabf77c..b07f80c25 100644 --- a/src/vapi/types/transfer_assistant_transcriber.py +++ b/src/vapi/types/transfer_assistant_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class TransferAssistantTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class TransferAssistantTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class TransferAssistantTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the transfer assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class TransferAssistantTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the transfer assistant's transcriber. @@ -626,6 +678,7 @@ class Config: TransferAssistantTranscriber_Cartesia, TransferAssistantTranscriber_Soniox, TransferAssistantTranscriber_Xai, + TransferAssistantTranscriber_Reson8, TransferAssistantTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/transfer_assistant_voice.py b/src/vapi/types/transfer_assistant_voice.py index bc6593250..53586cc72 100644 --- a/src/vapi/types/transfer_assistant_voice.py +++ b/src/vapi/types/transfer_assistant_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class TransferAssistantVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the transfer assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class TransferAssistantVoice_Vapi(UncheckedBaseModel): """ These are the options for the transfer assistant's voice. @@ -801,7 +752,6 @@ class Config: TransferAssistantVoice_Wellsaid, TransferAssistantVoice_RimeAi, TransferAssistantVoice_SmallestAi, - TransferAssistantVoice_Tavus, TransferAssistantVoice_Vapi, TransferAssistantVoice_Sesame, TransferAssistantVoice_Inworld, diff --git a/src/vapi/types/transfer_call_tool.py b/src/vapi/types/transfer_call_tool.py index 80ad8e966..2ce795c1e 100644 --- a/src/vapi/types/transfer_call_tool.py +++ b/src/vapi/types/transfer_call_tool.py @@ -23,6 +23,14 @@ class TransferCallTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[TransferCallToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/transient_assistant_dto.py b/src/vapi/types/transient_assistant_dto.py new file mode 100644 index 000000000..cba12ca22 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto.py @@ -0,0 +1,403 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .analysis_plan import AnalysisPlan +from .artifact_plan import ArtifactPlan +from .background_speech_denoising_plan import BackgroundSpeechDenoisingPlan +from .compliance_plan import CompliancePlan +from .keypad_input_plan import KeypadInputPlan +from .langfuse_observability_plan import LangfuseObservabilityPlan +from .monitor_plan import MonitorPlan +from .server import Server +from .start_speaking_plan import StartSpeakingPlan +from .stop_speaking_plan import StopSpeakingPlan +from .transient_assistant_dto_background_sound import TransientAssistantDtoBackgroundSound +from .transient_assistant_dto_client_messages_item import TransientAssistantDtoClientMessagesItem +from .transient_assistant_dto_credentials_item import TransientAssistantDtoCredentialsItem +from .transient_assistant_dto_first_message_mode import TransientAssistantDtoFirstMessageMode +from .transient_assistant_dto_server_messages_item import TransientAssistantDtoServerMessagesItem +from .transient_assistant_dto_transcriber import TransientAssistantDtoTranscriber +from .transient_assistant_dto_voice import TransientAssistantDtoVoice +from .transient_assistant_dto_voicemail_detection import TransientAssistantDtoVoicemailDetection +from .transport_configuration_twilio import TransportConfigurationTwilio + + +class TransientAssistantDto(UncheckedBaseModel): + transcriber: typing.Optional[TransientAssistantDtoTranscriber] = pydantic.Field(default=None) + """ + These are the options for the assistant's transcriber. + """ + + model: typing.Optional["TransientAssistantDtoModel"] = pydantic.Field(default=None) + """ + These are the options for the assistant's LLM. + """ + + voice: typing.Optional[TransientAssistantDtoVoice] = pydantic.Field(default=None) + """ + These are the options for the assistant's voice. + """ + + first_message: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="firstMessage"), + pydantic.Field( + alias="firstMessage", + description="This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.).\n\nIf unspecified, assistant will wait for user to speak and use the model to respond once they speak.", + ), + ] = None + first_message_interruptions_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="firstMessageInterruptionsEnabled"), + pydantic.Field(alias="firstMessageInterruptionsEnabled"), + ] = None + first_message_mode: typing_extensions.Annotated[ + typing.Optional[TransientAssistantDtoFirstMessageMode], + FieldMetadata(alias="firstMessageMode"), + pydantic.Field( + alias="firstMessageMode", + description="This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points).\n\n@default 'assistant-speaks-first'", + ), + ] = None + voicemail_detection: typing_extensions.Annotated[ + typing.Optional[TransientAssistantDtoVoicemailDetection], + FieldMetadata(alias="voicemailDetection"), + pydantic.Field( + alias="voicemailDetection", + description="These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool].\nBy default, voicemail detection is disabled.", + ), + ] = None + client_messages: typing_extensions.Annotated[ + typing.Optional[typing.List[TransientAssistantDtoClientMessagesItem]], + FieldMetadata(alias="clientMessages"), + pydantic.Field( + alias="clientMessages", + description="These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started,assistant.started. You can check the shape of the messages in ClientMessage schema.", + ), + ] = None + server_messages: typing_extensions.Annotated[ + typing.Optional[typing.List[TransientAssistantDtoServerMessagesItem]], + FieldMetadata(alias="serverMessages"), + pydantic.Field( + alias="serverMessages", + description="These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted,assistant.started. You can check the shape of the messages in ServerMessage schema.", + ), + ] = None + max_duration_seconds: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="maxDurationSeconds"), + pydantic.Field( + alias="maxDurationSeconds", + description="This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended.\n\n@default 600 (10 minutes)", + ), + ] = None + background_sound: typing_extensions.Annotated[ + typing.Optional[TransientAssistantDtoBackgroundSound], + FieldMetadata(alias="backgroundSound"), + pydantic.Field( + alias="backgroundSound", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", + ), + ] = None + model_output_in_messages_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="modelOutputInMessagesEnabled"), + pydantic.Field( + alias="modelOutputInMessagesEnabled", + description="This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech.\n\n@default false", + ), + ] = None + transport_configurations: typing_extensions.Annotated[ + typing.Optional[typing.List[TransportConfigurationTwilio]], + FieldMetadata(alias="transportConfigurations"), + pydantic.Field( + alias="transportConfigurations", + description="These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used.", + ), + ] = None + observability_plan: typing_extensions.Annotated[ + typing.Optional[LangfuseObservabilityPlan], + FieldMetadata(alias="observabilityPlan"), + pydantic.Field( + alias="observabilityPlan", + description="This is the plan for observability of assistant's calls.\n\nCurrently, only Langfuse is supported.", + ), + ] = None + credentials: typing.Optional[typing.List[TransientAssistantDtoCredentialsItem]] = pydantic.Field(default=None) + """ + These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. + """ + + hooks: typing.Optional[typing.List["TransientAssistantDtoHooksItem"]] = pydantic.Field(default=None) + """ + This is a set of actions that will be performed on certain events. + """ + + name: typing.Optional[str] = pydantic.Field(default=None) + """ + This is the name of the assistant. + + This is required when you want to transfer between assistants in a call. + """ + + voicemail_message: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="voicemailMessage"), + pydantic.Field( + alias="voicemailMessage", + description="This is the message that the assistant will say if the call is forwarded to voicemail.\n\nIf unspecified, it will hang up.", + ), + ] = None + end_call_message: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="endCallMessage"), + pydantic.Field( + alias="endCallMessage", + description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + ), + ] = None + end_call_phrases: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], + FieldMetadata(alias="endCallPhrases"), + pydantic.Field( + alias="endCallPhrases", + description="This list contains phrases that, if spoken by the assistant, will trigger the call to be hung up. Case insensitive.", + ), + ] = None + compliance_plan: typing_extensions.Annotated[ + typing.Optional[CompliancePlan], FieldMetadata(alias="compliancePlan"), pydantic.Field(alias="compliancePlan") + ] = None + metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) + """ + This is for metadata you want to store on the assistant. + """ + + background_speech_denoising_plan: typing_extensions.Annotated[ + typing.Optional[BackgroundSpeechDenoisingPlan], + FieldMetadata(alias="backgroundSpeechDenoisingPlan"), + pydantic.Field( + alias="backgroundSpeechDenoisingPlan", + description="This enables filtering of noise and background speech while the user is talking.\n\nFeatures:\n- Smart denoising using Krisp\n- Fourier denoising\n\nSmart denoising can be combined with or used independently of Fourier denoising.\n\nOrder of precedence:\n- Smart denoising\n- Fourier denoising", + ), + ] = None + analysis_plan: typing_extensions.Annotated[ + typing.Optional[AnalysisPlan], + FieldMetadata(alias="analysisPlan"), + pydantic.Field( + alias="analysisPlan", + description="This is the plan for analysis of assistant's calls. Stored in `call.analysis`.", + ), + ] = None + artifact_plan: typing_extensions.Annotated[ + typing.Optional[ArtifactPlan], + FieldMetadata(alias="artifactPlan"), + pydantic.Field( + alias="artifactPlan", + description="This is the plan for artifacts generated during assistant's calls. Stored in `call.artifact`.", + ), + ] = None + start_speaking_plan: typing_extensions.Annotated[ + typing.Optional[StartSpeakingPlan], + FieldMetadata(alias="startSpeakingPlan"), + pydantic.Field( + alias="startSpeakingPlan", + description="This is the plan for when the assistant should start talking.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to start talking after the customer is done speaking.\n- The assistant is too fast to start talking after the customer is done speaking.\n- The assistant is so fast that it's actually interrupting the customer.", + ), + ] = None + stop_speaking_plan: typing_extensions.Annotated[ + typing.Optional[StopSpeakingPlan], + FieldMetadata(alias="stopSpeakingPlan"), + pydantic.Field( + alias="stopSpeakingPlan", + description="This is the plan for when assistant should stop talking on customer interruption.\n\nYou should configure this if you're running into these issues:\n- The assistant is too slow to recognize customer's interruption.\n- The assistant is too fast to recognize customer's interruption.\n- The assistant is getting interrupted by phrases that are just acknowledgments.\n- The assistant is getting interrupted by background noises.\n- The assistant is not properly stopping -- it starts talking right after getting interrupted.", + ), + ] = None + monitor_plan: typing_extensions.Annotated[ + typing.Optional[MonitorPlan], + FieldMetadata(alias="monitorPlan"), + pydantic.Field( + alias="monitorPlan", + description="This is the plan for real-time monitoring of the assistant's calls.\n\nUsage:\n- To enable live listening of the assistant's calls, set `monitorPlan.listenEnabled` to `true`.\n- To enable live control of the assistant's calls, set `monitorPlan.controlEnabled` to `true`.\n- To attach monitors to the assistant, set `monitorPlan.monitorIds` to the set of monitor ids.", + ), + ] = None + credential_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], + FieldMetadata(alias="credentialIds"), + pydantic.Field( + alias="credentialIds", + description="These are the credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can provide a subset using this.", + ), + ] = None + server: typing.Optional[Server] = pydantic.Field(default=None) + """ + This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. + + The order of precedence is: + + 1. assistant.server.url + 2. phoneNumber.serverUrl + 3. org.serverUrl + """ + + keypad_input_plan: typing_extensions.Annotated[ + typing.Optional[KeypadInputPlan], + FieldMetadata(alias="keypadInputPlan"), + pydantic.Field(alias="keypadInputPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 +from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 +from .anthropic_model import AnthropicModel # noqa: E402, I001 +from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 +from .anyscale_model import AnyscaleModel # noqa: E402, I001 +from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 +from .assistant_overrides import AssistantOverrides # noqa: E402, I001 +from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 +from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 +from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 +from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 +from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 +from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 +from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 +from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 +from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 +from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 +from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 +from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 +from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 +from .cerebras_model import CerebrasModel # noqa: E402, I001 +from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 +from .conversation_node import ConversationNode # noqa: E402, I001 +from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 +from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 +from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 +from .create_squad_dto import CreateSquadDto # noqa: E402, I001 +from .custom_llm_model import CustomLlmModel # noqa: E402, I001 +from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 +from .deep_infra_model import DeepInfraModel # noqa: E402, I001 +from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 +from .deep_seek_model import DeepSeekModel # noqa: E402, I001 +from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 +from .google_model import GoogleModel # noqa: E402, I001 +from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 +from .groq_model import GroqModel # noqa: E402, I001 +from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 +from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 +from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 +from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 +from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 +from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 +from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 +from .open_ai_model import OpenAiModel # noqa: E402, I001 +from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 +from .open_router_model import OpenRouterModel # noqa: E402, I001 +from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 +from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 +from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 +from .session_created_hook import SessionCreatedHook # noqa: E402, I001 +from .squad_member_dto import SquadMemberDto # noqa: E402, I001 +from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 +from .together_ai_model import TogetherAiModel # noqa: E402, I001 +from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 +from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 +from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 +from .tool_node import ToolNode # noqa: E402, I001 +from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 +from .vapi_model import VapiModel # noqa: E402, I001 +from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 +from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 +from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 +from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 +from .xai_model import XaiModel # noqa: E402, I001 +from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 + +update_forward_refs( + TransientAssistantDto, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) diff --git a/src/vapi/types/transient_assistant_dto_background_sound.py b/src/vapi/types/transient_assistant_dto_background_sound.py new file mode 100644 index 000000000..e1595210c --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_background_sound.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .transient_assistant_dto_background_sound_zero import TransientAssistantDtoBackgroundSoundZero + +TransientAssistantDtoBackgroundSound = typing.Union[TransientAssistantDtoBackgroundSoundZero, str] diff --git a/src/vapi/types/transient_assistant_dto_background_sound_zero.py b/src/vapi/types/transient_assistant_dto_background_sound_zero.py new file mode 100644 index 000000000..3f2eccd9e --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_background_sound_zero.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TransientAssistantDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/transient_assistant_dto_client_messages_item.py b/src/vapi/types/transient_assistant_dto_client_messages_item.py new file mode 100644 index 000000000..760982170 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_client_messages_item.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TransientAssistantDtoClientMessagesItem = typing.Union[ + typing.Literal[ + "conversation-update", + "assistant.speechStarted", + "function-call", + "function-call-result", + "hang", + "language-changed", + "metadata", + "model-output", + "speech-update", + "status-update", + "transcript", + "tool-calls", + "tool-calls-result", + "tool.completed", + "transfer-update", + "user-interrupted", + "voice-input", + "workflow.node.started", + "assistant.started", + ], + typing.Any, +] diff --git a/src/vapi/types/transient_assistant_dto_credentials_item.py b/src/vapi/types/transient_assistant_dto_credentials_item.py new file mode 100644 index 000000000..c0fa15001 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_credentials_item.py @@ -0,0 +1,1118 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from .azure_blob_storage_bucket_plan import AzureBlobStorageBucketPlan +from .bucket_plan import BucketPlan +from .cloudflare_r_2_bucket_plan import CloudflareR2BucketPlan +from .create_anthropic_bedrock_credential_dto_authentication_plan import ( + CreateAnthropicBedrockCredentialDtoAuthenticationPlan, +) +from .create_anthropic_bedrock_credential_dto_region import CreateAnthropicBedrockCredentialDtoRegion +from .create_azure_credential_dto_region import CreateAzureCredentialDtoRegion +from .create_azure_credential_dto_service import CreateAzureCredentialDtoService +from .create_azure_open_ai_credential_dto_models_item import CreateAzureOpenAiCredentialDtoModelsItem +from .create_azure_open_ai_credential_dto_region import CreateAzureOpenAiCredentialDtoRegion +from .create_custom_credential_dto_authentication_plan import CreateCustomCredentialDtoAuthenticationPlan +from .create_custom_credential_dto_encryption_plan import CreateCustomCredentialDtoEncryptionPlan +from .create_eleven_labs_credential_dto_api_url import CreateElevenLabsCredentialDtoApiUrl +from .create_webhook_credential_dto_authentication_plan import CreateWebhookCredentialDtoAuthenticationPlan +from .gcp_key import GcpKey +from .o_auth_2_authentication_plan import OAuth2AuthenticationPlan +from .oauth_2_authentication_session import Oauth2AuthenticationSession +from .s_3_compatible_bucket_plan import S3CompatibleBucketPlan +from .sip_trunk_gateway import SipTrunkGateway +from .sip_trunk_outbound_authentication_plan import SipTrunkOutboundAuthenticationPlan +from .supabase_bucket_plan import SupabaseBucketPlan + + +class TransientAssistantDtoCredentialsItem_11Labs(UncheckedBaseModel): + provider: typing.Literal["11labs"] = "11labs" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + api_url: typing_extensions.Annotated[ + typing.Optional[CreateElevenLabsCredentialDtoApiUrl], + FieldMetadata(alias="apiUrl"), + pydantic.Field(alias="apiUrl"), + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Anthropic(UncheckedBaseModel): + provider: typing.Literal["anthropic"] = "anthropic" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_AnthropicBedrock(UncheckedBaseModel): + provider: typing.Literal["anthropic-bedrock"] = "anthropic-bedrock" + region: CreateAnthropicBedrockCredentialDtoRegion + authentication_plan: typing_extensions.Annotated[ + CreateAnthropicBedrockCredentialDtoAuthenticationPlan, + FieldMetadata(alias="authenticationPlan"), + pydantic.Field(alias="authenticationPlan"), + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Anyscale(UncheckedBaseModel): + provider: typing.Literal["anyscale"] = "anyscale" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_AssemblyAi(UncheckedBaseModel): + provider: typing.Literal["assembly-ai"] = "assembly-ai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_AzureOpenai(UncheckedBaseModel): + provider: typing.Literal["azure-openai"] = "azure-openai" + region: CreateAzureOpenAiCredentialDtoRegion + models: typing.List[CreateAzureOpenAiCredentialDtoModelsItem] + open_ai_key: typing_extensions.Annotated[str, FieldMetadata(alias="openAIKey"), pydantic.Field(alias="openAIKey")] + ocp_apim_subscription_key: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="ocpApimSubscriptionKey"), + pydantic.Field(alias="ocpApimSubscriptionKey"), + ] = None + open_ai_endpoint: typing_extensions.Annotated[ + str, FieldMetadata(alias="openAIEndpoint"), pydantic.Field(alias="openAIEndpoint") + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Azure(UncheckedBaseModel): + provider: typing.Literal["azure"] = "azure" + service: CreateAzureCredentialDtoService + region: typing.Optional[CreateAzureCredentialDtoRegion] = None + api_key: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey") + ] = None + fallback_index: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="fallbackIndex"), pydantic.Field(alias="fallbackIndex") + ] = None + bucket_plan: typing_extensions.Annotated[ + typing.Optional[AzureBlobStorageBucketPlan], + FieldMetadata(alias="bucketPlan"), + pydantic.Field(alias="bucketPlan"), + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_ByoSipTrunk(UncheckedBaseModel): + provider: typing.Literal["byo-sip-trunk"] = "byo-sip-trunk" + gateways: typing.List[SipTrunkGateway] + outbound_authentication_plan: typing_extensions.Annotated[ + typing.Optional[SipTrunkOutboundAuthenticationPlan], + FieldMetadata(alias="outboundAuthenticationPlan"), + pydantic.Field(alias="outboundAuthenticationPlan"), + ] = None + outbound_leading_plus_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="outboundLeadingPlusEnabled"), + pydantic.Field(alias="outboundLeadingPlusEnabled"), + ] = None + tech_prefix: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="techPrefix"), pydantic.Field(alias="techPrefix") + ] = None + sip_diversion_header: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="sipDiversionHeader"), pydantic.Field(alias="sipDiversionHeader") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Cartesia(UncheckedBaseModel): + provider: typing.Literal["cartesia"] = "cartesia" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + api_url: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Cerebras(UncheckedBaseModel): + provider: typing.Literal["cerebras"] = "cerebras" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Cloudflare(UncheckedBaseModel): + provider: typing.Literal["cloudflare"] = "cloudflare" + account_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="accountId"), pydantic.Field(alias="accountId") + ] = None + api_key: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey") + ] = None + account_email: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="accountEmail"), pydantic.Field(alias="accountEmail") + ] = None + fallback_index: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="fallbackIndex"), pydantic.Field(alias="fallbackIndex") + ] = None + bucket_plan: typing_extensions.Annotated[ + typing.Optional[CloudflareR2BucketPlan], FieldMetadata(alias="bucketPlan"), pydantic.Field(alias="bucketPlan") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_CustomLlm(UncheckedBaseModel): + provider: typing.Literal["custom-llm"] = "custom-llm" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + authentication_plan: typing_extensions.Annotated[ + typing.Optional[OAuth2AuthenticationPlan], + FieldMetadata(alias="authenticationPlan"), + pydantic.Field(alias="authenticationPlan"), + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Deepgram(UncheckedBaseModel): + provider: typing.Literal["deepgram"] = "deepgram" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + api_url: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Deepinfra(UncheckedBaseModel): + provider: typing.Literal["deepinfra"] = "deepinfra" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_DeepSeek(UncheckedBaseModel): + provider: typing.Literal["deep-seek"] = "deep-seek" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Gcp(UncheckedBaseModel): + provider: typing.Literal["gcp"] = "gcp" + fallback_index: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="fallbackIndex"), pydantic.Field(alias="fallbackIndex") + ] = None + gcp_key: typing_extensions.Annotated[GcpKey, FieldMetadata(alias="gcpKey"), pydantic.Field(alias="gcpKey")] + region: typing.Optional[str] = None + bucket_plan: typing_extensions.Annotated[ + typing.Optional[BucketPlan], FieldMetadata(alias="bucketPlan"), pydantic.Field(alias="bucketPlan") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Gladia(UncheckedBaseModel): + provider: typing.Literal["gladia"] = "gladia" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Gohighlevel(UncheckedBaseModel): + provider: typing.Literal["gohighlevel"] = "gohighlevel" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Google(UncheckedBaseModel): + provider: typing.Literal["google"] = "google" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Groq(UncheckedBaseModel): + provider: typing.Literal["groq"] = "groq" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_InflectionAi(UncheckedBaseModel): + provider: typing.Literal["inflection-ai"] = "inflection-ai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Langfuse(UncheckedBaseModel): + provider: typing.Literal["langfuse"] = "langfuse" + public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Lmnt(UncheckedBaseModel): + provider: typing.Literal["lmnt"] = "lmnt" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Make(UncheckedBaseModel): + provider: typing.Literal["make"] = "make" + team_id: typing_extensions.Annotated[str, FieldMetadata(alias="teamId"), pydantic.Field(alias="teamId")] + region: str + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Openai(UncheckedBaseModel): + provider: typing.Literal["openai"] = "openai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Openrouter(UncheckedBaseModel): + provider: typing.Literal["openrouter"] = "openrouter" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_PerplexityAi(UncheckedBaseModel): + provider: typing.Literal["perplexity-ai"] = "perplexity-ai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Playht(UncheckedBaseModel): + provider: typing.Literal["playht"] = "playht" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + user_id: typing_extensions.Annotated[str, FieldMetadata(alias="userId"), pydantic.Field(alias="userId")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_RimeAi(UncheckedBaseModel): + provider: typing.Literal["rime-ai"] = "rime-ai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Runpod(UncheckedBaseModel): + provider: typing.Literal["runpod"] = "runpod" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_S3(UncheckedBaseModel): + provider: typing.Literal["s3"] = "s3" + aws_access_key_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="awsAccessKeyId"), pydantic.Field(alias="awsAccessKeyId") + ] + aws_secret_access_key: typing_extensions.Annotated[ + str, FieldMetadata(alias="awsSecretAccessKey"), pydantic.Field(alias="awsSecretAccessKey") + ] + region: str + s_3_bucket_name: typing_extensions.Annotated[ + str, FieldMetadata(alias="s3BucketName"), pydantic.Field(alias="s3BucketName") + ] + s_3_path_prefix: typing_extensions.Annotated[ + str, FieldMetadata(alias="s3PathPrefix"), pydantic.Field(alias="s3PathPrefix") + ] + fallback_index: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="fallbackIndex"), pydantic.Field(alias="fallbackIndex") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_S3Compatible(UncheckedBaseModel): + provider: typing.Literal["s3-compatible"] = "s3-compatible" + bucket_plan: typing_extensions.Annotated[ + S3CompatibleBucketPlan, FieldMetadata(alias="bucketPlan"), pydantic.Field(alias="bucketPlan") + ] + fallback_index: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="fallbackIndex"), pydantic.Field(alias="fallbackIndex") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Supabase(UncheckedBaseModel): + provider: typing.Literal["supabase"] = "supabase" + fallback_index: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="fallbackIndex"), pydantic.Field(alias="fallbackIndex") + ] = None + bucket_plan: typing_extensions.Annotated[ + typing.Optional[SupabaseBucketPlan], FieldMetadata(alias="bucketPlan"), pydantic.Field(alias="bucketPlan") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_SmallestAi(UncheckedBaseModel): + provider: typing.Literal["smallest-ai"] = "smallest-ai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Tavus(UncheckedBaseModel): + provider: typing.Literal["tavus"] = "tavus" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_TogetherAi(UncheckedBaseModel): + provider: typing.Literal["together-ai"] = "together-ai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Twilio(UncheckedBaseModel): + provider: typing.Literal["twilio"] = "twilio" + auth_token: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="authToken"), pydantic.Field(alias="authToken") + ] = None + api_key: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey") + ] = None + api_secret: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiSecret"), pydantic.Field(alias="apiSecret") + ] = None + account_sid: typing_extensions.Annotated[str, FieldMetadata(alias="accountSid"), pydantic.Field(alias="accountSid")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Vonage(UncheckedBaseModel): + provider: typing.Literal["vonage"] = "vonage" + api_secret: typing_extensions.Annotated[str, FieldMetadata(alias="apiSecret"), pydantic.Field(alias="apiSecret")] + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Webhook(UncheckedBaseModel): + provider: typing.Literal["webhook"] = "webhook" + authentication_plan: typing_extensions.Annotated[ + CreateWebhookCredentialDtoAuthenticationPlan, + FieldMetadata(alias="authenticationPlan"), + pydantic.Field(alias="authenticationPlan"), + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_CustomCredential(UncheckedBaseModel): + provider: typing.Literal["custom-credential"] = "custom-credential" + authentication_plan: typing_extensions.Annotated[ + CreateCustomCredentialDtoAuthenticationPlan, + FieldMetadata(alias="authenticationPlan"), + pydantic.Field(alias="authenticationPlan"), + ] + encryption_plan: typing_extensions.Annotated[ + typing.Optional[CreateCustomCredentialDtoEncryptionPlan], + FieldMetadata(alias="encryptionPlan"), + pydantic.Field(alias="encryptionPlan"), + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Xai(UncheckedBaseModel): + provider: typing.Literal["xai"] = "xai" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Microsoft(UncheckedBaseModel): + provider: typing.Literal["microsoft"] = "microsoft" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + region: typing.Optional[str] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Neuphonic(UncheckedBaseModel): + provider: typing.Literal["neuphonic"] = "neuphonic" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Hume(UncheckedBaseModel): + provider: typing.Literal["hume"] = "hume" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Mistral(UncheckedBaseModel): + provider: typing.Literal["mistral"] = "mistral" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Speechmatics(UncheckedBaseModel): + provider: typing.Literal["speechmatics"] = "speechmatics" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Soniox(UncheckedBaseModel): + provider: typing.Literal["soniox"] = "soniox" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + api_url: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl") + ] = None + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): + provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization(UncheckedBaseModel): + provider: typing.Literal["google.calendar.oauth2-authorization"] = "google.calendar.oauth2-authorization" + authorization_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="authorizationId"), pydantic.Field(alias="authorizationId") + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization(UncheckedBaseModel): + provider: typing.Literal["google.sheets.oauth2-authorization"] = "google.sheets.oauth2-authorization" + authorization_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="authorizationId"), pydantic.Field(alias="authorizationId") + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_SlackOauth2Authorization(UncheckedBaseModel): + provider: typing.Literal["slack.oauth2-authorization"] = "slack.oauth2-authorization" + authorization_id: typing_extensions.Annotated[ + str, FieldMetadata(alias="authorizationId"), pydantic.Field(alias="authorizationId") + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_GhlOauth2Authorization(UncheckedBaseModel): + provider: typing.Literal["ghl.oauth2-authorization"] = "ghl.oauth2-authorization" + authentication_session: typing_extensions.Annotated[ + Oauth2AuthenticationSession, + FieldMetadata(alias="authenticationSession"), + pydantic.Field(alias="authenticationSession"), + ] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Inworld(UncheckedBaseModel): + provider: typing.Literal["inworld"] = "inworld" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Minimax(UncheckedBaseModel): + provider: typing.Literal["minimax"] = "minimax" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + group_id: typing_extensions.Annotated[str, FieldMetadata(alias="groupId"), pydantic.Field(alias="groupId")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Wellsaid(UncheckedBaseModel): + provider: typing.Literal["wellsaid"] = "wellsaid" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_Email(UncheckedBaseModel): + provider: typing.Literal["email"] = "email" + email: str + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoCredentialsItem_SlackWebhook(UncheckedBaseModel): + provider: typing.Literal["slack-webhook"] = "slack-webhook" + webhook_url: typing_extensions.Annotated[str, FieldMetadata(alias="webhookUrl"), pydantic.Field(alias="webhookUrl")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +TransientAssistantDtoCredentialsItem = typing_extensions.Annotated[ + typing.Union[ + TransientAssistantDtoCredentialsItem_11Labs, + TransientAssistantDtoCredentialsItem_Anthropic, + TransientAssistantDtoCredentialsItem_AnthropicBedrock, + TransientAssistantDtoCredentialsItem_Anyscale, + TransientAssistantDtoCredentialsItem_AssemblyAi, + TransientAssistantDtoCredentialsItem_AzureOpenai, + TransientAssistantDtoCredentialsItem_Azure, + TransientAssistantDtoCredentialsItem_ByoSipTrunk, + TransientAssistantDtoCredentialsItem_Cartesia, + TransientAssistantDtoCredentialsItem_Cerebras, + TransientAssistantDtoCredentialsItem_Cloudflare, + TransientAssistantDtoCredentialsItem_CustomLlm, + TransientAssistantDtoCredentialsItem_Deepgram, + TransientAssistantDtoCredentialsItem_Deepinfra, + TransientAssistantDtoCredentialsItem_DeepSeek, + TransientAssistantDtoCredentialsItem_Gcp, + TransientAssistantDtoCredentialsItem_Gladia, + TransientAssistantDtoCredentialsItem_Gohighlevel, + TransientAssistantDtoCredentialsItem_Google, + TransientAssistantDtoCredentialsItem_Groq, + TransientAssistantDtoCredentialsItem_InflectionAi, + TransientAssistantDtoCredentialsItem_Langfuse, + TransientAssistantDtoCredentialsItem_Lmnt, + TransientAssistantDtoCredentialsItem_Make, + TransientAssistantDtoCredentialsItem_Openai, + TransientAssistantDtoCredentialsItem_Openrouter, + TransientAssistantDtoCredentialsItem_PerplexityAi, + TransientAssistantDtoCredentialsItem_Playht, + TransientAssistantDtoCredentialsItem_RimeAi, + TransientAssistantDtoCredentialsItem_Runpod, + TransientAssistantDtoCredentialsItem_S3, + TransientAssistantDtoCredentialsItem_S3Compatible, + TransientAssistantDtoCredentialsItem_Supabase, + TransientAssistantDtoCredentialsItem_SmallestAi, + TransientAssistantDtoCredentialsItem_Tavus, + TransientAssistantDtoCredentialsItem_TogetherAi, + TransientAssistantDtoCredentialsItem_Twilio, + TransientAssistantDtoCredentialsItem_Vonage, + TransientAssistantDtoCredentialsItem_Webhook, + TransientAssistantDtoCredentialsItem_CustomCredential, + TransientAssistantDtoCredentialsItem_Xai, + TransientAssistantDtoCredentialsItem_Microsoft, + TransientAssistantDtoCredentialsItem_Neuphonic, + TransientAssistantDtoCredentialsItem_Hume, + TransientAssistantDtoCredentialsItem_Mistral, + TransientAssistantDtoCredentialsItem_Speechmatics, + TransientAssistantDtoCredentialsItem_Soniox, + TransientAssistantDtoCredentialsItem_Reson8, + TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Client, + TransientAssistantDtoCredentialsItem_GoogleCalendarOauth2Authorization, + TransientAssistantDtoCredentialsItem_GoogleSheetsOauth2Authorization, + TransientAssistantDtoCredentialsItem_SlackOauth2Authorization, + TransientAssistantDtoCredentialsItem_GhlOauth2Authorization, + TransientAssistantDtoCredentialsItem_Inworld, + TransientAssistantDtoCredentialsItem_Minimax, + TransientAssistantDtoCredentialsItem_Wellsaid, + TransientAssistantDtoCredentialsItem_Email, + TransientAssistantDtoCredentialsItem_SlackWebhook, + ], + UnionMetadata(discriminant="provider"), +] diff --git a/src/vapi/types/transient_assistant_dto_first_message_mode.py b/src/vapi/types/transient_assistant_dto_first_message_mode.py new file mode 100644 index 000000000..7346f8b90 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_first_message_mode.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TransientAssistantDtoFirstMessageMode = typing.Union[ + typing.Literal[ + "assistant-speaks-first", "assistant-speaks-first-with-model-generated-message", "assistant-waits-for-user" + ], + typing.Any, +] diff --git a/src/vapi/types/transient_assistant_dto_hooks_item.py b/src/vapi/types/transient_assistant_dto_hooks_item.py new file mode 100644 index 000000000..d3ed1fd6d --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_hooks_item.py @@ -0,0 +1,19 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +if typing.TYPE_CHECKING: + from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted + from .call_hook_call_ending import CallHookCallEnding + from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted + from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout + from .session_created_hook import SessionCreatedHook +TransientAssistantDtoHooksItem = typing.Union[ + "CallHookCallEnding", + "CallHookAssistantSpeechInterrupted", + "CallHookCustomerSpeechInterrupted", + "CallHookCustomerSpeechTimeout", + "SessionCreatedHook", +] diff --git a/src/vapi/types/transient_assistant_dto_model.py b/src/vapi/types/transient_assistant_dto_model.py new file mode 100644 index 000000000..ee38f8160 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_model.py @@ -0,0 +1,2118 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem +from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort +from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort +from .anthropic_thinking_config import AnthropicThinkingConfig +from .cerebras_model_model import CerebrasModelModel +from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto +from .custom_llm_model_metadata_send_mode import CustomLlmModelMetadataSendMode +from .deep_seek_model_model import DeepSeekModelModel +from .google_model_model import GoogleModelModel +from .google_realtime_config import GoogleRealtimeConfig +from .groq_model_model import GroqModelModel +from .inflection_ai_model_model import InflectionAiModelModel +from .minimax_llm_model_model import MinimaxLlmModelModel +from .open_ai_message import OpenAiMessage +from .open_ai_model_fallback_models_item import OpenAiModelFallbackModelsItem +from .open_ai_model_model import OpenAiModelModel +from .open_ai_model_prompt_cache_retention import OpenAiModelPromptCacheRetention +from .open_ai_model_reasoning_effort import OpenAiModelReasoningEffort +from .open_ai_model_service_tier import OpenAiModelServiceTier +from .open_ai_model_tool_strict_compatibility_mode import OpenAiModelToolStrictCompatibilityMode +from .open_ai_reasoner import OpenAiReasoner +from .open_ai_speaker import OpenAiSpeaker +from .tool_ref import ToolRef +from .vapi_model_version import VapiModelVersion +from .xai_model_model import XaiModelModel + + +class TransientAssistantDtoModel_Anthropic(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["anthropic"] = "anthropic" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["AnthropicModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None + thinking: typing.Optional[AnthropicThinkingConfig] = None + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_AnthropicBedrock(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["anthropic-bedrock"] = "anthropic-bedrock" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["AnthropicBedrockModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: AnthropicBedrockModelModel + fallback_models: typing_extensions.Annotated[ + typing.Optional[typing.List[AnthropicBedrockModelFallbackModelsItem]], + FieldMetadata(alias="fallbackModels"), + pydantic.Field(alias="fallbackModels"), + ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None + thinking: typing.Optional[AnthropicThinkingConfig] = None + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Anyscale(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["anyscale"] = "anyscale" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["AnyscaleModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: str + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Cerebras(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["cerebras"] = "cerebras" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["CerebrasModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: CerebrasModelModel + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_CustomLlm(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["custom-llm"] = "custom-llm" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["CustomLlmModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + metadata_send_mode: typing_extensions.Annotated[ + typing.Optional[CustomLlmModelMetadataSendMode], + FieldMetadata(alias="metadataSendMode"), + pydantic.Field(alias="metadataSendMode"), + ] = None + headers: typing.Optional[typing.Dict[str, str]] = None + url: str + word_level_confidence_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="wordLevelConfidenceEnabled"), + pydantic.Field(alias="wordLevelConfidenceEnabled"), + ] = None + timeout_seconds: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="timeoutSeconds"), pydantic.Field(alias="timeoutSeconds") + ] = None + model: str + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Deepinfra(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["deepinfra"] = "deepinfra" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["DeepInfraModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: str + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_DeepSeek(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["deep-seek"] = "deep-seek" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["DeepSeekModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: DeepSeekModelModel + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Google(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["google"] = "google" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["GoogleModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: GoogleModelModel + realtime_config: typing_extensions.Annotated[ + typing.Optional[GoogleRealtimeConfig], + FieldMetadata(alias="realtimeConfig"), + pydantic.Field(alias="realtimeConfig"), + ] = None + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Groq(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["groq"] = "groq" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["GroqModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: GroqModelModel + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_InflectionAi(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["inflection-ai"] = "inflection-ai" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["InflectionAiModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: InflectionAiModelModel + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Minimax(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["minimax"] = "minimax" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["MinimaxLlmModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: MinimaxLlmModelModel + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Openai(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["openai"] = "openai" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["OpenAiModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + speaker: typing.Optional[OpenAiSpeaker] = None + reasoner: typing.Optional[OpenAiReasoner] = None + model: OpenAiModelModel + fallback_models: typing_extensions.Annotated[ + typing.Optional[typing.List[OpenAiModelFallbackModelsItem]], + FieldMetadata(alias="fallbackModels"), + pydantic.Field(alias="fallbackModels"), + ] = None + tool_strict_compatibility_mode: typing_extensions.Annotated[ + typing.Optional[OpenAiModelToolStrictCompatibilityMode], + FieldMetadata(alias="toolStrictCompatibilityMode"), + pydantic.Field(alias="toolStrictCompatibilityMode"), + ] = None + prompt_cache_retention: typing_extensions.Annotated[ + typing.Optional[OpenAiModelPromptCacheRetention], + FieldMetadata(alias="promptCacheRetention"), + pydantic.Field(alias="promptCacheRetention"), + ] = None + prompt_cache_key: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="promptCacheKey"), pydantic.Field(alias="promptCacheKey") + ] = None + service_tier: typing_extensions.Annotated[ + typing.Optional[OpenAiModelServiceTier], FieldMetadata(alias="serviceTier"), pydantic.Field(alias="serviceTier") + ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[OpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Openrouter(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["openrouter"] = "openrouter" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["OpenRouterModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: str + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_PerplexityAi(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["perplexity-ai"] = "perplexity-ai" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["PerplexityAiModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: str + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_TogetherAi(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["together-ai"] = "together-ai" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["TogetherAiModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: str + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Xai(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["xai"] = "xai" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["XaiModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: XaiModelModel + temperature: typing.Optional[float] = None + max_tokens: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") + ] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoModel_Vapi(UncheckedBaseModel): + """ + These are the options for the assistant's LLM. + """ + + provider: typing.Literal["vapi"] = "vapi" + messages: typing.Optional[typing.List[OpenAiMessage]] = None + tools: typing.Optional[typing.List["VapiModelToolsItem"]] = None + tool_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds"), pydantic.Field(alias="toolIds") + ] = None + tool_refs: typing_extensions.Annotated[ + typing.Optional[typing.List[ToolRef]], FieldMetadata(alias="toolRefs"), pydantic.Field(alias="toolRefs") + ] = None + knowledge_base: typing_extensions.Annotated[ + typing.Optional[CreateCustomKnowledgeBaseDto], + FieldMetadata(alias="knowledgeBase"), + pydantic.Field(alias="knowledgeBase"), + ] = None + model: typing.Optional[str] = None + version: typing.Optional[VapiModelVersion] = None + workflow_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="workflowId"), pydantic.Field(alias="workflowId") + ] = None + workflow: typing.Optional["WorkflowUserEditable"] = None + temperature: typing.Optional[float] = None + emotion_recognition_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="emotionRecognitionEnabled"), + pydantic.Field(alias="emotionRecognitionEnabled"), + ] = None + num_fast_turns: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="numFastTurns"), pydantic.Field(alias="numFastTurns") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +TransientAssistantDtoModel = typing_extensions.Annotated[ + typing.Union[ + TransientAssistantDtoModel_Anthropic, + TransientAssistantDtoModel_AnthropicBedrock, + TransientAssistantDtoModel_Anyscale, + TransientAssistantDtoModel_Cerebras, + TransientAssistantDtoModel_CustomLlm, + TransientAssistantDtoModel_Deepinfra, + TransientAssistantDtoModel_DeepSeek, + TransientAssistantDtoModel_Google, + TransientAssistantDtoModel_Groq, + TransientAssistantDtoModel_InflectionAi, + TransientAssistantDtoModel_Minimax, + TransientAssistantDtoModel_Openai, + TransientAssistantDtoModel_Openrouter, + TransientAssistantDtoModel_PerplexityAi, + TransientAssistantDtoModel_TogetherAi, + TransientAssistantDtoModel_Xai, + TransientAssistantDtoModel_Vapi, + ], + UnionMetadata(discriminant="provider"), +] +from .anthropic_bedrock_model import AnthropicBedrockModel # noqa: E402, I001 +from .anthropic_bedrock_model_tools_item import AnthropicBedrockModelToolsItem # noqa: E402, I001 +from .anthropic_model_tools_item import AnthropicModelToolsItem # noqa: E402, I001 +from .anyscale_model import AnyscaleModel # noqa: E402, I001 +from .anyscale_model_tools_item import AnyscaleModelToolsItem # noqa: E402, I001 +from .assistant_overrides import AssistantOverrides # noqa: E402, I001 +from .assistant_overrides_hooks_item import AssistantOverridesHooksItem # noqa: E402, I001 +from .assistant_overrides_model import AssistantOverridesModel # noqa: E402, I001 +from .assistant_overrides_tools_append_item import AssistantOverridesToolsAppendItem # noqa: E402, I001 +from .call_hook_assistant_speech_interrupted import CallHookAssistantSpeechInterrupted # noqa: E402, I001 +from .call_hook_assistant_speech_interrupted_do_item import CallHookAssistantSpeechInterruptedDoItem # noqa: E402, I001 +from .call_hook_call_ending import CallHookCallEnding # noqa: E402, I001 +from .call_hook_call_ending_do_item import CallHookCallEndingDoItem # noqa: E402, I001 +from .call_hook_customer_speech_interrupted import CallHookCustomerSpeechInterrupted # noqa: E402, I001 +from .call_hook_customer_speech_interrupted_do_item import CallHookCustomerSpeechInterruptedDoItem # noqa: E402, I001 +from .call_hook_customer_speech_timeout import CallHookCustomerSpeechTimeout # noqa: E402, I001 +from .call_hook_customer_speech_timeout_do_item import CallHookCustomerSpeechTimeoutDoItem # noqa: E402, I001 +from .call_hook_model_response_timeout import CallHookModelResponseTimeout # noqa: E402, I001 +from .call_hook_model_response_timeout_do_item import CallHookModelResponseTimeoutDoItem # noqa: E402, I001 +from .cerebras_model import CerebrasModel # noqa: E402, I001 +from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 +from .conversation_node import ConversationNode # noqa: E402, I001 +from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 +from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 +from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 +from .create_squad_dto import CreateSquadDto # noqa: E402, I001 +from .custom_llm_model import CustomLlmModel # noqa: E402, I001 +from .custom_llm_model_tools_item import CustomLlmModelToolsItem # noqa: E402, I001 +from .deep_infra_model import DeepInfraModel # noqa: E402, I001 +from .deep_infra_model_tools_item import DeepInfraModelToolsItem # noqa: E402, I001 +from .deep_seek_model import DeepSeekModel # noqa: E402, I001 +from .deep_seek_model_tools_item import DeepSeekModelToolsItem # noqa: E402, I001 +from .google_model import GoogleModel # noqa: E402, I001 +from .google_model_tools_item import GoogleModelToolsItem # noqa: E402, I001 +from .groq_model import GroqModel # noqa: E402, I001 +from .groq_model_tools_item import GroqModelToolsItem # noqa: E402, I001 +from .handoff_destination_assistant import HandoffDestinationAssistant # noqa: E402, I001 +from .handoff_destination_squad import HandoffDestinationSquad # noqa: E402, I001 +from .inflection_ai_model import InflectionAiModel # noqa: E402, I001 +from .inflection_ai_model_tools_item import InflectionAiModelToolsItem # noqa: E402, I001 +from .minimax_llm_model import MinimaxLlmModel # noqa: E402, I001 +from .minimax_llm_model_tools_item import MinimaxLlmModelToolsItem # noqa: E402, I001 +from .open_ai_model import OpenAiModel # noqa: E402, I001 +from .open_ai_model_tools_item import OpenAiModelToolsItem # noqa: E402, I001 +from .open_router_model import OpenRouterModel # noqa: E402, I001 +from .open_router_model_tools_item import OpenRouterModelToolsItem # noqa: E402, I001 +from .perplexity_ai_model import PerplexityAiModel # noqa: E402, I001 +from .perplexity_ai_model_tools_item import PerplexityAiModelToolsItem # noqa: E402, I001 +from .session_created_hook import SessionCreatedHook # noqa: E402, I001 +from .squad_member_dto import SquadMemberDto # noqa: E402, I001 +from .squad_member_dto_assistant_destinations_item import SquadMemberDtoAssistantDestinationsItem # noqa: E402, I001 +from .together_ai_model import TogetherAiModel # noqa: E402, I001 +from .together_ai_model_tools_item import TogetherAiModelToolsItem # noqa: E402, I001 +from .tool_call_hook_action import ToolCallHookAction # noqa: E402, I001 +from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 +from .tool_node import ToolNode # noqa: E402, I001 +from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .vapi_model import VapiModel # noqa: E402, I001 +from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 +from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 +from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 +from .workflow_user_editable_nodes_item import WorkflowUserEditableNodesItem # noqa: E402, I001 +from .xai_model import XaiModel # noqa: E402, I001 +from .xai_model_tools_item import XaiModelToolsItem # noqa: E402, I001 +from .anthropic_model import AnthropicModel # noqa: E402, I001 + +update_forward_refs( + TransientAssistantDtoModel_Anthropic, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_AnthropicBedrock, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Anyscale, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Cerebras, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_CustomLlm, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Deepinfra, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_DeepSeek, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Google, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Groq, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_InflectionAi, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Minimax, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Openai, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Openrouter, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_PerplexityAi, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_TogetherAi, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Xai, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModel=VapiModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModelToolsItem=XaiModelToolsItem, +) +update_forward_refs( + TransientAssistantDtoModel_Vapi, + AnthropicBedrockModel=AnthropicBedrockModel, + AnthropicBedrockModelToolsItem=AnthropicBedrockModelToolsItem, + AnthropicModel=AnthropicModel, + AnthropicModelToolsItem=AnthropicModelToolsItem, + AnyscaleModel=AnyscaleModel, + AnyscaleModelToolsItem=AnyscaleModelToolsItem, + AssistantOverrides=AssistantOverrides, + AssistantOverridesHooksItem=AssistantOverridesHooksItem, + AssistantOverridesModel=AssistantOverridesModel, + AssistantOverridesToolsAppendItem=AssistantOverridesToolsAppendItem, + CallHookAssistantSpeechInterrupted=CallHookAssistantSpeechInterrupted, + CallHookAssistantSpeechInterruptedDoItem=CallHookAssistantSpeechInterruptedDoItem, + CallHookCallEnding=CallHookCallEnding, + CallHookCallEndingDoItem=CallHookCallEndingDoItem, + CallHookCustomerSpeechInterrupted=CallHookCustomerSpeechInterrupted, + CallHookCustomerSpeechInterruptedDoItem=CallHookCustomerSpeechInterruptedDoItem, + CallHookCustomerSpeechTimeout=CallHookCustomerSpeechTimeout, + CallHookCustomerSpeechTimeoutDoItem=CallHookCustomerSpeechTimeoutDoItem, + CallHookModelResponseTimeout=CallHookModelResponseTimeout, + CallHookModelResponseTimeoutDoItem=CallHookModelResponseTimeoutDoItem, + CerebrasModel=CerebrasModel, + CerebrasModelToolsItem=CerebrasModelToolsItem, + ConversationNode=ConversationNode, + ConversationNodeToolsItem=ConversationNodeToolsItem, + CreateHandoffToolDto=CreateHandoffToolDto, + CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, + CreateSquadDto=CreateSquadDto, + CustomLlmModel=CustomLlmModel, + CustomLlmModelToolsItem=CustomLlmModelToolsItem, + DeepInfraModel=DeepInfraModel, + DeepInfraModelToolsItem=DeepInfraModelToolsItem, + DeepSeekModel=DeepSeekModel, + DeepSeekModelToolsItem=DeepSeekModelToolsItem, + GoogleModel=GoogleModel, + GoogleModelToolsItem=GoogleModelToolsItem, + GroqModel=GroqModel, + GroqModelToolsItem=GroqModelToolsItem, + HandoffDestinationAssistant=HandoffDestinationAssistant, + HandoffDestinationSquad=HandoffDestinationSquad, + InflectionAiModel=InflectionAiModel, + InflectionAiModelToolsItem=InflectionAiModelToolsItem, + MinimaxLlmModel=MinimaxLlmModel, + MinimaxLlmModelToolsItem=MinimaxLlmModelToolsItem, + OpenAiModel=OpenAiModel, + OpenAiModelToolsItem=OpenAiModelToolsItem, + OpenRouterModel=OpenRouterModel, + OpenRouterModelToolsItem=OpenRouterModelToolsItem, + PerplexityAiModel=PerplexityAiModel, + PerplexityAiModelToolsItem=PerplexityAiModelToolsItem, + SessionCreatedHook=SessionCreatedHook, + SquadMemberDto=SquadMemberDto, + SquadMemberDtoAssistantDestinationsItem=SquadMemberDtoAssistantDestinationsItem, + TogetherAiModel=TogetherAiModel, + TogetherAiModelToolsItem=TogetherAiModelToolsItem, + ToolCallHookAction=ToolCallHookAction, + ToolCallHookActionTool=ToolCallHookActionTool, + ToolNode=ToolNode, + ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, + VapiModelToolsItem=VapiModelToolsItem, + WorkflowUserEditable=WorkflowUserEditable, + WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, + WorkflowUserEditableNodesItem=WorkflowUserEditableNodesItem, + XaiModel=XaiModel, + XaiModelToolsItem=XaiModelToolsItem, +) diff --git a/src/vapi/types/transient_assistant_dto_server_messages_item.py b/src/vapi/types/transient_assistant_dto_server_messages_item.py new file mode 100644 index 000000000..3a2a9a2b9 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_server_messages_item.py @@ -0,0 +1,37 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TransientAssistantDtoServerMessagesItem = typing.Union[ + typing.Literal[ + "assistant.started", + "assistant.speechStarted", + "conversation-update", + "end-of-call-report", + "function-call", + "hang", + "language-changed", + "language-change-detected", + "model-output", + "phone-call-control", + "speech-update", + "status-update", + "transcript", + 'transcript[transcriptType="final"]', + "tool-calls", + "transfer-destination-request", + "handoff-destination-request", + "transfer-update", + "user-interrupted", + "voice-input", + "chat.created", + "chat.deleted", + "session.created", + "session.updated", + "session.deleted", + "call.deleted", + "call.delete.failed", + "call.artifact.upload", + ], + typing.Any, +] diff --git a/src/vapi/types/transient_assistant_dto_transcriber.py b/src/vapi/types/transient_assistant_dto_transcriber.py new file mode 100644 index 000000000..e400b74d1 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_transcriber.py @@ -0,0 +1,685 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from .assembly_ai_transcriber_language import AssemblyAiTranscriberLanguage +from .assembly_ai_transcriber_language_codes_item import AssemblyAiTranscriberLanguageCodesItem +from .assembly_ai_transcriber_mode import AssemblyAiTranscriberMode +from .assembly_ai_transcriber_speech_model import AssemblyAiTranscriberSpeechModel +from .azure_speech_transcriber_language import AzureSpeechTranscriberLanguage +from .azure_speech_transcriber_segmentation_strategy import AzureSpeechTranscriberSegmentationStrategy +from .cartesia_transcriber_language import CartesiaTranscriberLanguage +from .cartesia_transcriber_model import CartesiaTranscriberModel +from .deepgram_transcriber_language import DeepgramTranscriberLanguage +from .deepgram_transcriber_model import DeepgramTranscriberModel +from .deepgram_transcriber_redaction_item import DeepgramTranscriberRedactionItem +from .eleven_labs_transcriber_language import ElevenLabsTranscriberLanguage +from .eleven_labs_transcriber_model import ElevenLabsTranscriberModel +from .fallback_transcriber_plan import FallbackTranscriberPlan +from .gladia_custom_vocabulary_config_dto import GladiaCustomVocabularyConfigDto +from .gladia_transcriber_language import GladiaTranscriberLanguage +from .gladia_transcriber_language_behaviour import GladiaTranscriberLanguageBehaviour +from .gladia_transcriber_languages_item import GladiaTranscriberLanguagesItem +from .gladia_transcriber_model import GladiaTranscriberModel +from .gladia_transcriber_region import GladiaTranscriberRegion +from .google_transcriber_language import GoogleTranscriberLanguage +from .google_transcriber_model import GoogleTranscriberModel +from .open_ai_transcriber_language import OpenAiTranscriberLanguage +from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel +from .server import Server +from .soniox_context_general_item import SonioxContextGeneralItem +from .soniox_transcriber_language import SonioxTranscriberLanguage +from .soniox_transcriber_languages_item import SonioxTranscriberLanguagesItem +from .soniox_transcriber_model import SonioxTranscriberModel +from .speechmatics_custom_vocabulary_item import SpeechmaticsCustomVocabularyItem +from .speechmatics_transcriber_language import SpeechmaticsTranscriberLanguage +from .speechmatics_transcriber_model import SpeechmaticsTranscriberModel +from .speechmatics_transcriber_numeral_style import SpeechmaticsTranscriberNumeralStyle +from .speechmatics_transcriber_operating_point import SpeechmaticsTranscriberOperatingPoint +from .speechmatics_transcriber_region import SpeechmaticsTranscriberRegion +from .talkscriber_transcriber_language import TalkscriberTranscriberLanguage +from .talkscriber_transcriber_model import TalkscriberTranscriberModel +from .vapi_transcriber_language import VapiTranscriberLanguage +from .vapi_transcriber_languages_item import VapiTranscriberLanguagesItem +from .vapi_transcriber_turn_taking import VapiTranscriberTurnTaking +from .vapi_transcriber_version import VapiTranscriberVersion +from .xai_transcriber_language import XaiTranscriberLanguage +from .xai_transcriber_model import XaiTranscriberModel + + +class TransientAssistantDtoTranscriber_AssemblyAi(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["assembly-ai"] = "assembly-ai" + language: typing.Optional[AssemblyAiTranscriberLanguage] = None + confidence_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") + ] = None + format_turns: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="formatTurns"), pydantic.Field(alias="formatTurns") + ] = None + end_of_turn_confidence_threshold: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="endOfTurnConfidenceThreshold"), + pydantic.Field(alias="endOfTurnConfidenceThreshold"), + ] = None + min_end_of_turn_silence_when_confident: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="minEndOfTurnSilenceWhenConfident"), + pydantic.Field(alias="minEndOfTurnSilenceWhenConfident"), + ] = None + word_finalization_max_wait_time: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="wordFinalizationMaxWaitTime"), + pydantic.Field(alias="wordFinalizationMaxWaitTime"), + ] = None + max_turn_silence: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxTurnSilence"), pydantic.Field(alias="maxTurnSilence") + ] = None + vad_assisted_endpointing_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="vadAssistedEndpointingEnabled"), + pydantic.Field(alias="vadAssistedEndpointingEnabled"), + ] = None + mode: typing.Optional[AssemblyAiTranscriberMode] = None + prompt: typing.Optional[str] = None + agent_context: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="agentContext"), pydantic.Field(alias="agentContext") + ] = None + agent_context_auto_update_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="agentContextAutoUpdateEnabled"), + pydantic.Field(alias="agentContextAutoUpdateEnabled"), + ] = None + language_codes: typing_extensions.Annotated[ + typing.Optional[typing.List[AssemblyAiTranscriberLanguageCodesItem]], + FieldMetadata(alias="languageCodes"), + pydantic.Field(alias="languageCodes"), + ] = None + speech_model: typing_extensions.Annotated[ + typing.Optional[AssemblyAiTranscriberSpeechModel], + FieldMetadata(alias="speechModel"), + pydantic.Field(alias="speechModel"), + ] = None + realtime_url: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="realtimeUrl"), pydantic.Field(alias="realtimeUrl") + ] = None + word_boost: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="wordBoost"), pydantic.Field(alias="wordBoost") + ] = None + keyterms_prompt: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="keytermsPrompt"), pydantic.Field(alias="keytermsPrompt") + ] = None + end_utterance_silence_threshold: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="endUtteranceSilenceThreshold"), + pydantic.Field(alias="endUtteranceSilenceThreshold"), + ] = None + disable_partial_transcripts: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="disablePartialTranscripts"), + pydantic.Field(alias="disablePartialTranscripts"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Azure(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["azure"] = "azure" + language: typing.Optional[AzureSpeechTranscriberLanguage] = None + segmentation_strategy: typing_extensions.Annotated[ + typing.Optional[AzureSpeechTranscriberSegmentationStrategy], + FieldMetadata(alias="segmentationStrategy"), + pydantic.Field(alias="segmentationStrategy"), + ] = None + segmentation_silence_timeout_ms: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="segmentationSilenceTimeoutMs"), + pydantic.Field(alias="segmentationSilenceTimeoutMs"), + ] = None + segmentation_maximum_time_ms: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="segmentationMaximumTimeMs"), + pydantic.Field(alias="segmentationMaximumTimeMs"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_CustomTranscriber(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["custom-transcriber"] = "custom-transcriber" + server: Server + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Deepgram(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["deepgram"] = "deepgram" + model: typing.Optional[DeepgramTranscriberModel] = None + language: typing.Optional[DeepgramTranscriberLanguage] = None + smart_format: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="smartFormat"), pydantic.Field(alias="smartFormat") + ] = None + mip_opt_out: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="mipOptOut"), pydantic.Field(alias="mipOptOut") + ] = None + numerals: typing.Optional[bool] = None + profanity_filter: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="profanityFilter"), pydantic.Field(alias="profanityFilter") + ] = None + redaction: typing.Optional[typing.List[DeepgramTranscriberRedactionItem]] = None + confidence_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") + ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None + eot_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") + ] = None + eot_timeout_ms: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="eotTimeoutMs"), pydantic.Field(alias="eotTimeoutMs") + ] = None + languages: typing.Optional[typing.List[str]] = None + keywords: typing.Optional[typing.List[str]] = None + keyterm: typing.Optional[typing.List[str]] = None + endpointing: typing.Optional[float] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_11Labs(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["11labs"] = "11labs" + model: typing.Optional[ElevenLabsTranscriberModel] = None + language: typing.Optional[ElevenLabsTranscriberLanguage] = None + silence_threshold_seconds: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="silenceThresholdSeconds"), + pydantic.Field(alias="silenceThresholdSeconds"), + ] = None + confidence_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") + ] = None + min_speech_duration_ms: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="minSpeechDurationMs"), pydantic.Field(alias="minSpeechDurationMs") + ] = None + min_silence_duration_ms: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="minSilenceDurationMs"), + pydantic.Field(alias="minSilenceDurationMs"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Gladia(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["gladia"] = "gladia" + model: typing.Optional[GladiaTranscriberModel] = None + language_behaviour: typing_extensions.Annotated[ + typing.Optional[GladiaTranscriberLanguageBehaviour], + FieldMetadata(alias="languageBehaviour"), + pydantic.Field(alias="languageBehaviour"), + ] = None + language: typing.Optional[GladiaTranscriberLanguage] = None + languages: typing.Optional[typing.List[GladiaTranscriberLanguagesItem]] = None + transcription_hint: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="transcriptionHint"), pydantic.Field(alias="transcriptionHint") + ] = None + prosody: typing.Optional[bool] = None + audio_enhancer: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="audioEnhancer"), pydantic.Field(alias="audioEnhancer") + ] = None + confidence_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") + ] = None + endpointing: typing.Optional[float] = None + speech_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="speechThreshold"), pydantic.Field(alias="speechThreshold") + ] = None + custom_vocabulary_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="customVocabularyEnabled"), + pydantic.Field(alias="customVocabularyEnabled"), + ] = None + custom_vocabulary_config: typing_extensions.Annotated[ + typing.Optional[GladiaCustomVocabularyConfigDto], + FieldMetadata(alias="customVocabularyConfig"), + pydantic.Field(alias="customVocabularyConfig"), + ] = None + region: typing.Optional[GladiaTranscriberRegion] = None + receive_partial_transcripts: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="receivePartialTranscripts"), + pydantic.Field(alias="receivePartialTranscripts"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Google(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["google"] = "google" + model: typing.Optional[GoogleTranscriberModel] = None + language: typing.Optional[GoogleTranscriberLanguage] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Speechmatics(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["speechmatics"] = "speechmatics" + model: typing.Optional[SpeechmaticsTranscriberModel] = None + language: typing.Optional[SpeechmaticsTranscriberLanguage] = None + operating_point: typing_extensions.Annotated[ + typing.Optional[SpeechmaticsTranscriberOperatingPoint], + FieldMetadata(alias="operatingPoint"), + pydantic.Field(alias="operatingPoint"), + ] = None + region: typing.Optional[SpeechmaticsTranscriberRegion] = None + enable_diarization: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="enableDiarization"), pydantic.Field(alias="enableDiarization") + ] = None + max_delay: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxDelay"), pydantic.Field(alias="maxDelay") + ] = None + custom_vocabulary: typing_extensions.Annotated[ + typing.List[SpeechmaticsCustomVocabularyItem], + FieldMetadata(alias="customVocabulary"), + pydantic.Field(alias="customVocabulary"), + ] + numeral_style: typing_extensions.Annotated[ + typing.Optional[SpeechmaticsTranscriberNumeralStyle], + FieldMetadata(alias="numeralStyle"), + pydantic.Field(alias="numeralStyle"), + ] = None + end_of_turn_sensitivity: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="endOfTurnSensitivity"), + pydantic.Field(alias="endOfTurnSensitivity"), + ] = None + remove_disfluencies: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="removeDisfluencies"), pydantic.Field(alias="removeDisfluencies") + ] = None + minimum_speech_duration: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="minimumSpeechDuration"), + pydantic.Field(alias="minimumSpeechDuration"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Talkscriber(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["talkscriber"] = "talkscriber" + model: typing.Optional[TalkscriberTranscriberModel] = None + language: typing.Optional[TalkscriberTranscriberLanguage] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Openai(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["openai"] = "openai" + model: OpenAiTranscriberModel + language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Cartesia(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["cartesia"] = "cartesia" + model: typing.Optional[CartesiaTranscriberModel] = None + language: typing.Optional[CartesiaTranscriberLanguage] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Soniox(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["soniox"] = "soniox" + model: typing.Optional[SonioxTranscriberModel] = None + language: typing.Optional[SonioxTranscriberLanguage] = None + languages: typing.Optional[typing.List[SonioxTranscriberLanguagesItem]] = None + language_hints_strict: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="languageHintsStrict"), pydantic.Field(alias="languageHintsStrict") + ] = None + max_endpoint_delay_ms: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="maxEndpointDelayMs"), pydantic.Field(alias="maxEndpointDelayMs") + ] = None + endpoint_sensitivity: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="endpointSensitivity"), pydantic.Field(alias="endpointSensitivity") + ] = None + endpoint_latency_adjustment_level: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="endpointLatencyAdjustmentLevel"), + pydantic.Field(alias="endpointLatencyAdjustmentLevel"), + ] = None + custom_vocabulary: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], + FieldMetadata(alias="customVocabulary"), + pydantic.Field(alias="customVocabulary"), + ] = None + context_general: typing_extensions.Annotated[ + typing.Optional[typing.List[SonioxContextGeneralItem]], + FieldMetadata(alias="contextGeneral"), + pydantic.Field(alias="contextGeneral"), + ] = None + confidence_threshold: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Xai(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["xai"] = "xai" + model: typing.Optional[XaiTranscriberModel] = None + language: typing.Optional[XaiTranscriberLanguage] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoTranscriber_Vapi(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["vapi"] = "vapi" + version: typing.Optional[VapiTranscriberVersion] = None + language: typing.Optional[VapiTranscriberLanguage] = None + languages: typing.Optional[typing.List[VapiTranscriberLanguagesItem]] = None + keywords: typing.Optional[typing.List[str]] = None + turn_taking: typing_extensions.Annotated[ + typing.Optional[VapiTranscriberTurnTaking], + FieldMetadata(alias="turnTaking"), + pydantic.Field(alias="turnTaking"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +TransientAssistantDtoTranscriber = typing_extensions.Annotated[ + typing.Union[ + TransientAssistantDtoTranscriber_AssemblyAi, + TransientAssistantDtoTranscriber_Azure, + TransientAssistantDtoTranscriber_CustomTranscriber, + TransientAssistantDtoTranscriber_Deepgram, + TransientAssistantDtoTranscriber_11Labs, + TransientAssistantDtoTranscriber_Gladia, + TransientAssistantDtoTranscriber_Google, + TransientAssistantDtoTranscriber_Speechmatics, + TransientAssistantDtoTranscriber_Talkscriber, + TransientAssistantDtoTranscriber_Openai, + TransientAssistantDtoTranscriber_Cartesia, + TransientAssistantDtoTranscriber_Soniox, + TransientAssistantDtoTranscriber_Xai, + TransientAssistantDtoTranscriber_Reson8, + TransientAssistantDtoTranscriber_Vapi, + ], + UnionMetadata(discriminant="provider"), +] diff --git a/src/vapi/types/transient_assistant_dto_voice.py b/src/vapi/types/transient_assistant_dto_voice.py new file mode 100644 index 000000000..87a05a064 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_voice.py @@ -0,0 +1,763 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata +from .azure_voice_id import AzureVoiceId +from .cartesia_experimental_controls import CartesiaExperimentalControls +from .cartesia_generation_config import CartesiaGenerationConfig +from .cartesia_voice_language import CartesiaVoiceLanguage +from .cartesia_voice_model import CartesiaVoiceModel +from .chunk_plan import ChunkPlan +from .deepgram_voice_id import DeepgramVoiceId +from .deepgram_voice_model import DeepgramVoiceModel +from .eleven_labs_pronunciation_dictionary_locator import ElevenLabsPronunciationDictionaryLocator +from .eleven_labs_voice_id import ElevenLabsVoiceId +from .eleven_labs_voice_model import ElevenLabsVoiceModel +from .fallback_plan import FallbackPlan +from .hume_voice_model import HumeVoiceModel +from .inworld_voice_language_code import InworldVoiceLanguageCode +from .inworld_voice_model import InworldVoiceModel +from .inworld_voice_voice_id import InworldVoiceVoiceId +from .lmnt_voice_id import LmntVoiceId +from .lmnt_voice_language import LmntVoiceLanguage +from .microsoft_voice_role import MicrosoftVoiceRole +from .microsoft_voice_style import MicrosoftVoiceStyle +from .microsoft_voice_voice_id import MicrosoftVoiceVoiceId +from .minimax_voice_language_boost import MinimaxVoiceLanguageBoost +from .minimax_voice_model import MinimaxVoiceModel +from .minimax_voice_region import MinimaxVoiceRegion +from .minimax_voice_subtitle_type import MinimaxVoiceSubtitleType +from .neuphonic_voice_model import NeuphonicVoiceModel +from .open_ai_voice_id import OpenAiVoiceId +from .open_ai_voice_model import OpenAiVoiceModel +from .play_ht_voice_emotion import PlayHtVoiceEmotion +from .play_ht_voice_id import PlayHtVoiceId +from .play_ht_voice_language import PlayHtVoiceLanguage +from .play_ht_voice_model import PlayHtVoiceModel +from .rime_ai_voice_id import RimeAiVoiceId +from .rime_ai_voice_language import RimeAiVoiceLanguage +from .rime_ai_voice_model import RimeAiVoiceModel +from .server import Server +from .sesame_voice_model import SesameVoiceModel +from .smallest_ai_voice_id import SmallestAiVoiceId +from .smallest_ai_voice_model import SmallestAiVoiceModel +from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator +from .vapi_voice_language import VapiVoiceLanguage +from .vapi_voice_version import VapiVoiceVersion +from .well_said_voice_model import WellSaidVoiceModel +from .xai_voice_language import XaiVoiceLanguage +from .xai_voice_voice_id import XaiVoiceVoiceId + + +class TransientAssistantDtoVoice_Azure(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["azure"] = "azure" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[AzureVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + speed: typing.Optional[float] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Cartesia(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["cartesia"] = "cartesia" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + model: typing.Optional[CartesiaVoiceModel] = None + language: typing.Optional[CartesiaVoiceLanguage] = None + experimental_controls: typing_extensions.Annotated[ + typing.Optional[CartesiaExperimentalControls], + FieldMetadata(alias="experimentalControls"), + pydantic.Field(alias="experimentalControls"), + ] = None + generation_config: typing_extensions.Annotated[ + typing.Optional[CartesiaGenerationConfig], + FieldMetadata(alias="generationConfig"), + pydantic.Field(alias="generationConfig"), + ] = None + pronunciation_dict_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="pronunciationDictId"), pydantic.Field(alias="pronunciationDictId") + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_CustomVoice(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["custom-voice"] = "custom-voice" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + server: Server + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Deepgram(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["deepgram"] = "deepgram" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + DeepgramVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + model: typing.Optional[DeepgramVoiceModel] = None + mip_opt_out: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="mipOptOut"), pydantic.Field(alias="mipOptOut") + ] = None + speed: typing.Optional[float] = None + expressivity: typing.Optional[float] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_11Labs(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["11labs"] = "11labs" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + ElevenLabsVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + stability: typing.Optional[float] = None + similarity_boost: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="similarityBoost"), pydantic.Field(alias="similarityBoost") + ] = None + style: typing.Optional[float] = None + use_speaker_boost: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="useSpeakerBoost"), pydantic.Field(alias="useSpeakerBoost") + ] = None + speed: typing.Optional[float] = None + optimize_streaming_latency: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="optimizeStreamingLatency"), + pydantic.Field(alias="optimizeStreamingLatency"), + ] = None + enable_ssml_parsing: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="enableSsmlParsing"), pydantic.Field(alias="enableSsmlParsing") + ] = None + auto_mode: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="autoMode"), pydantic.Field(alias="autoMode") + ] = None + model: typing.Optional[ElevenLabsVoiceModel] = None + language: typing.Optional[str] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + pronunciation_dictionary_locators: typing_extensions.Annotated[ + typing.Optional[typing.List[ElevenLabsPronunciationDictionaryLocator]], + FieldMetadata(alias="pronunciationDictionaryLocators"), + pydantic.Field(alias="pronunciationDictionaryLocators"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Hume(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["hume"] = "hume" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + model: typing.Optional[HumeVoiceModel] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + is_custom_hume_voice: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="isCustomHumeVoice"), pydantic.Field(alias="isCustomHumeVoice") + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + description: typing.Optional[str] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Lmnt(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["lmnt"] = "lmnt" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[LmntVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + speed: typing.Optional[float] = None + language: typing.Optional[LmntVoiceLanguage] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Neuphonic(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["neuphonic"] = "neuphonic" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + model: typing.Optional[NeuphonicVoiceModel] = None + language: typing.Dict[str, typing.Any] + speed: typing.Optional[float] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Openai(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["openai"] = "openai" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + OpenAiVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + model: typing.Optional[OpenAiVoiceModel] = None + instructions: typing.Optional[str] = None + speed: typing.Optional[float] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Playht(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["playht"] = "playht" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + PlayHtVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + speed: typing.Optional[float] = None + temperature: typing.Optional[float] = None + emotion: typing.Optional[PlayHtVoiceEmotion] = None + voice_guidance: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="voiceGuidance"), pydantic.Field(alias="voiceGuidance") + ] = None + style_guidance: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="styleGuidance"), pydantic.Field(alias="styleGuidance") + ] = None + text_guidance: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="textGuidance"), pydantic.Field(alias="textGuidance") + ] = None + model: typing.Optional[PlayHtVoiceModel] = None + language: typing.Optional[PlayHtVoiceLanguage] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Wellsaid(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["wellsaid"] = "wellsaid" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + model: typing.Optional[WellSaidVoiceModel] = None + enable_ssml: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="enableSsml"), pydantic.Field(alias="enableSsml") + ] = None + library_ids: typing_extensions.Annotated[ + typing.Optional[typing.List[str]], FieldMetadata(alias="libraryIds"), pydantic.Field(alias="libraryIds") + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_RimeAi(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["rime-ai"] = "rime-ai" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + RimeAiVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + model: typing.Optional[RimeAiVoiceModel] = None + speed: typing.Optional[float] = None + pause_between_brackets: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="pauseBetweenBrackets"), pydantic.Field(alias="pauseBetweenBrackets") + ] = None + phonemize_between_brackets: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="phonemizeBetweenBrackets"), + pydantic.Field(alias="phonemizeBetweenBrackets"), + ] = None + reduce_latency: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="reduceLatency"), pydantic.Field(alias="reduceLatency") + ] = None + inline_speed_alpha: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="inlineSpeedAlpha"), pydantic.Field(alias="inlineSpeedAlpha") + ] = None + language: typing.Optional[RimeAiVoiceLanguage] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_SmallestAi(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["smallest-ai"] = "smallest-ai" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + SmallestAiVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + model: typing.Optional[SmallestAiVoiceModel] = None + speed: typing.Optional[float] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Vapi(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["vapi"] = "vapi" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + version: typing.Optional[VapiVoiceVersion] = None + speed: typing.Optional[float] = None + language: typing.Optional[VapiVoiceLanguage] = None + pronunciation_dictionary: typing_extensions.Annotated[ + typing.Optional[typing.List[VapiPronunciationDictionaryLocator]], + FieldMetadata(alias="pronunciationDictionary"), + pydantic.Field(alias="pronunciationDictionary"), + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Sesame(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["sesame"] = "sesame" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + model: SesameVoiceModel + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Inworld(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["inworld"] = "inworld" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + InworldVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + model: typing.Optional[InworldVoiceModel] = None + language_code: typing_extensions.Annotated[ + typing.Optional[InworldVoiceLanguageCode], + FieldMetadata(alias="languageCode"), + pydantic.Field(alias="languageCode"), + ] = None + temperature: typing.Optional[float] = None + speaking_rate: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="speakingRate"), pydantic.Field(alias="speakingRate") + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Minimax(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["minimax"] = "minimax" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[str, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId")] + model: typing.Optional[MinimaxVoiceModel] = None + emotion: typing.Optional[str] = None + subtitle_type: typing_extensions.Annotated[ + typing.Optional[MinimaxVoiceSubtitleType], + FieldMetadata(alias="subtitleType"), + pydantic.Field(alias="subtitleType"), + ] = None + pitch: typing.Optional[float] = None + speed: typing.Optional[float] = None + volume: typing.Optional[float] = None + region: typing.Optional[MinimaxVoiceRegion] = None + language_boost: typing_extensions.Annotated[ + typing.Optional[MinimaxVoiceLanguageBoost], + FieldMetadata(alias="languageBoost"), + pydantic.Field(alias="languageBoost"), + ] = None + text_normalization_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="textNormalizationEnabled"), + pydantic.Field(alias="textNormalizationEnabled"), + ] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Xai(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["xai"] = "xai" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + XaiVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + language: typing.Optional[XaiVoiceLanguage] = None + speed: typing.Optional[float] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +class TransientAssistantDtoVoice_Microsoft(UncheckedBaseModel): + """ + These are the options for the assistant's voice. + """ + + provider: typing.Literal["microsoft"] = "microsoft" + caching_enabled: typing_extensions.Annotated[ + typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") + ] = None + voice_id: typing_extensions.Annotated[ + MicrosoftVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") + ] + style: typing.Optional[MicrosoftVoiceStyle] = None + style_degree: typing_extensions.Annotated[ + typing.Optional[float], FieldMetadata(alias="styleDegree"), pydantic.Field(alias="styleDegree") + ] = None + role: typing.Optional[MicrosoftVoiceRole] = None + chunk_plan: typing_extensions.Annotated[ + typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") + ] = None + speed: typing.Optional[float] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + +TransientAssistantDtoVoice = typing_extensions.Annotated[ + typing.Union[ + TransientAssistantDtoVoice_Azure, + TransientAssistantDtoVoice_Cartesia, + TransientAssistantDtoVoice_CustomVoice, + TransientAssistantDtoVoice_Deepgram, + TransientAssistantDtoVoice_11Labs, + TransientAssistantDtoVoice_Hume, + TransientAssistantDtoVoice_Lmnt, + TransientAssistantDtoVoice_Neuphonic, + TransientAssistantDtoVoice_Openai, + TransientAssistantDtoVoice_Playht, + TransientAssistantDtoVoice_Wellsaid, + TransientAssistantDtoVoice_RimeAi, + TransientAssistantDtoVoice_SmallestAi, + TransientAssistantDtoVoice_Vapi, + TransientAssistantDtoVoice_Sesame, + TransientAssistantDtoVoice_Inworld, + TransientAssistantDtoVoice_Minimax, + TransientAssistantDtoVoice_Xai, + TransientAssistantDtoVoice_Microsoft, + ], + UnionMetadata(discriminant="provider"), +] diff --git a/src/vapi/types/transient_assistant_dto_voicemail_detection.py b/src/vapi/types/transient_assistant_dto_voicemail_detection.py new file mode 100644 index 000000000..3ad4e8714 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_voicemail_detection.py @@ -0,0 +1,17 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .google_voicemail_detection_plan import GoogleVoicemailDetectionPlan +from .open_ai_voicemail_detection_plan import OpenAiVoicemailDetectionPlan +from .transient_assistant_dto_voicemail_detection_zero import TransientAssistantDtoVoicemailDetectionZero +from .twilio_voicemail_detection_plan import TwilioVoicemailDetectionPlan +from .vapi_voicemail_detection_plan import VapiVoicemailDetectionPlan + +TransientAssistantDtoVoicemailDetection = typing.Union[ + TransientAssistantDtoVoicemailDetectionZero, + GoogleVoicemailDetectionPlan, + OpenAiVoicemailDetectionPlan, + TwilioVoicemailDetectionPlan, + VapiVoicemailDetectionPlan, +] diff --git a/src/vapi/types/transient_assistant_dto_voicemail_detection_zero.py b/src/vapi/types/transient_assistant_dto_voicemail_detection_zero.py new file mode 100644 index 000000000..2f7a44dd0 --- /dev/null +++ b/src/vapi/types/transient_assistant_dto_voicemail_detection_zero.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +TransientAssistantDtoVoicemailDetectionZero = typing.Union[typing.Literal["off"], typing.Any] diff --git a/src/vapi/types/turn_latency.py b/src/vapi/types/turn_latency.py index e406b82a2..d4e78dbfe 100644 --- a/src/vapi/types/turn_latency.py +++ b/src/vapi/types/turn_latency.py @@ -17,27 +17,42 @@ class TurnLatency(UncheckedBaseModel): model_latency: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="modelLatency"), - pydantic.Field(alias="modelLatency", description="This is the model latency for the first token."), + pydantic.Field( + alias="modelLatency", + description="This is the time in milliseconds from the start of the turn's model stage to the model's first output token.\nIt includes knowledge-base retrieval and request routing before the provider request. 0 when it was not measured on this turn.", + ), ] = None voice_latency: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="voiceLatency"), - pydantic.Field(alias="voiceLatency", description="This is the voice latency from the model output."), + pydantic.Field( + alias="voiceLatency", + description="This is the time in milliseconds from the model's first output token to the first reply audio reaching Vapi's turn-taking buffer.\nIt includes the wait to collect enough text for the first voice request (set by `voice.chunkPlan`), the voice provider's time to first audio, and any sample-rate conversion. 0 when it was not measured on this turn.", + ), ] = None transcriber_latency: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="transcriberLatency"), - pydantic.Field(alias="transcriberLatency", description="This is the transcriber latency from the user speech."), + pydantic.Field( + alias="transcriberLatency", + description="This is the time in milliseconds from the user's last voice activity signal, normally the end of speech, to the transcriber returning the words of that speech.\n0 when it was not measured, including when the words arrived before that signal.", + ), ] = None endpointing_latency: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="endpointingLatency"), - pydantic.Field(alias="endpointingLatency", description="This is the endpointing latency."), + pydantic.Field( + alias="endpointingLatency", + description="This is the time in milliseconds from the transcriber returning the words to Vapi deciding the turn is over and sending it to the model.\n0 when the reply was not triggered by sending a user transcript to the model.", + ), ] = None turn_latency: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="turnLatency"), - pydantic.Field(alias="turnLatency", description="This is the latency for the whole turn."), + pydantic.Field( + alias="turnLatency", + description="This is the time in milliseconds from the user's last voice activity signal to Vapi starting to send the assistant's reply audio.\nIt is computed as `transcriberLatency` + `endpointingLatency` + the time from that decision to the reply starting, so when `transcriberLatency` is 0 because it was not measured, this total leaves that interval out. `modelLatency` and `voiceLatency` fall inside the last part, so the fields do not add up to this value.", + ), ] = None if IS_PYDANTIC_V2: diff --git a/src/vapi/types/update_assistant_draft_dto.py b/src/vapi/types/update_assistant_draft_dto.py index 52c326c0c..0fb9bce01 100644 --- a/src/vapi/types/update_assistant_draft_dto.py +++ b/src/vapi/types/update_assistant_draft_dto.py @@ -106,7 +106,7 @@ class UpdateAssistantDraftDto(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None model_output_in_messages_enabled: typing_extensions.Annotated[ @@ -163,7 +163,7 @@ class UpdateAssistantDraftDto(UncheckedBaseModel): FieldMetadata(alias="endCallMessage"), pydantic.Field( alias="endCallMessage", - description="This is the message that the assistant will say if it ends the call.\n\nIf unspecified, it will hang up without saying anything.", + description='The message the assistant says when it ends the call with the Hang Up tool (`endCall`) and that tool has no messages. If the tool has a `request-start` message, the assistant says that message instead. If this field is unspecified or empty, the assistant says "Goodbye" in the transcriber\'s language. When an assistant hook runs `endCall`, this field isn\'t used and the assistant says "Goodbye" in English.', ), ] = None end_call_phrases: typing_extensions.Annotated[ diff --git a/src/vapi/types/update_assistant_draft_dto_background_sound_zero.py b/src/vapi/types/update_assistant_draft_dto_background_sound_zero.py index a94465913..6e01a0d4a 100644 --- a/src/vapi/types/update_assistant_draft_dto_background_sound_zero.py +++ b/src/vapi/types/update_assistant_draft_dto_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -UpdateAssistantDraftDtoBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +UpdateAssistantDraftDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/update_assistant_draft_dto_credentials_item.py b/src/vapi/types/update_assistant_draft_dto_credentials_item.py index 0bb875a7e..ccddc93fc 100644 --- a/src/vapi/types/update_assistant_draft_dto_credentials_item.py +++ b/src/vapi/types/update_assistant_draft_dto_credentials_item.py @@ -433,6 +433,9 @@ class UpdateAssistantDraftDtoCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class UpdateAssistantDraftDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class UpdateAssistantDraftDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: UpdateAssistantDraftDtoCredentialsItem_Mistral, UpdateAssistantDraftDtoCredentialsItem_Speechmatics, UpdateAssistantDraftDtoCredentialsItem_Soniox, + UpdateAssistantDraftDtoCredentialsItem_Reson8, UpdateAssistantDraftDtoCredentialsItem_GoogleCalendarOauth2Client, UpdateAssistantDraftDtoCredentialsItem_GoogleCalendarOauth2Authorization, UpdateAssistantDraftDtoCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/update_assistant_draft_dto_model.py b/src/vapi/types/update_assistant_draft_dto_model.py index 314c666b4..785e6610f 100644 --- a/src/vapi/types/update_assistant_draft_dto_model.py +++ b/src/vapi/types/update_assistant_draft_dto_model.py @@ -11,7 +11,9 @@ from ..core.unchecked_base_model import UncheckedBaseModel, UnionMetadata from .anthropic_bedrock_model_fallback_models_item import AnthropicBedrockModelFallbackModelsItem from .anthropic_bedrock_model_model import AnthropicBedrockModelModel +from .anthropic_bedrock_model_reasoning_effort import AnthropicBedrockModelReasoningEffort from .anthropic_model_model import AnthropicModelModel +from .anthropic_model_reasoning_effort import AnthropicModelReasoningEffort from .anthropic_thinking_config import AnthropicThinkingConfig from .cerebras_model_model import CerebrasModelModel from .create_custom_knowledge_base_dto import CreateCustomKnowledgeBaseDto @@ -56,6 +58,11 @@ class UpdateAssistantDraftDtoModel_Anthropic(UncheckedBaseModel): pydantic.Field(alias="knowledgeBase"), ] = None model: AnthropicModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -105,6 +112,11 @@ class UpdateAssistantDraftDtoModel_AnthropicBedrock(UncheckedBaseModel): FieldMetadata(alias="fallbackModels"), pydantic.Field(alias="fallbackModels"), ] = None + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[AnthropicBedrockModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None thinking: typing.Optional[AnthropicThinkingConfig] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ @@ -869,9 +881,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -906,6 +915,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -940,9 +952,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -977,6 +986,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1010,9 +1022,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1047,6 +1056,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1080,9 +1092,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1117,6 +1126,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1150,9 +1162,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1187,6 +1196,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1221,9 +1233,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1257,6 +1266,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1291,9 +1303,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1327,6 +1336,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1361,9 +1373,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1397,6 +1406,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1431,9 +1443,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1467,6 +1476,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1501,9 +1513,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1537,6 +1546,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1571,9 +1583,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1607,6 +1616,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1641,9 +1653,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1677,6 +1686,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1711,9 +1723,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1747,6 +1756,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1781,9 +1793,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1817,6 +1826,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1851,9 +1863,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1887,6 +1896,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1921,9 +1933,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -1957,6 +1966,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -1991,9 +2003,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2028,6 +2037,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -2061,9 +2073,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -2098,6 +2107,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/update_assistant_draft_dto_transcriber.py b/src/vapi/types/update_assistant_draft_dto_transcriber.py index 45e7fc79e..c463c6a3d 100644 --- a/src/vapi/types/update_assistant_draft_dto_transcriber.py +++ b/src/vapi/types/update_assistant_draft_dto_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -228,6 +230,11 @@ class UpdateAssistantDraftDtoTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -469,6 +476,8 @@ class UpdateAssistantDraftDtoTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -585,6 +594,49 @@ class Config: extra = pydantic.Extra.allow +class UpdateAssistantDraftDtoTranscriber_Reson8(UncheckedBaseModel): + """ + These are the options for the assistant's transcriber. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class UpdateAssistantDraftDtoTranscriber_Vapi(UncheckedBaseModel): """ These are the options for the assistant's transcriber. @@ -626,6 +678,7 @@ class Config: UpdateAssistantDraftDtoTranscriber_Cartesia, UpdateAssistantDraftDtoTranscriber_Soniox, UpdateAssistantDraftDtoTranscriber_Xai, + UpdateAssistantDraftDtoTranscriber_Reson8, UpdateAssistantDraftDtoTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/update_assistant_draft_dto_voice.py b/src/vapi/types/update_assistant_draft_dto_voice.py index f1eeefb43..48124c4c6 100644 --- a/src/vapi/types/update_assistant_draft_dto_voice.py +++ b/src/vapi/types/update_assistant_draft_dto_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -526,53 +524,6 @@ class Config: extra = pydantic.Extra.allow -class UpdateAssistantDraftDtoVoice_Tavus(UncheckedBaseModel): - """ - These are the options for the assistant's voice. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class UpdateAssistantDraftDtoVoice_Vapi(UncheckedBaseModel): """ These are the options for the assistant's voice. @@ -801,7 +752,6 @@ class Config: UpdateAssistantDraftDtoVoice_Wellsaid, UpdateAssistantDraftDtoVoice_RimeAi, UpdateAssistantDraftDtoVoice_SmallestAi, - UpdateAssistantDraftDtoVoice_Tavus, UpdateAssistantDraftDtoVoice_Vapi, UpdateAssistantDraftDtoVoice_Sesame, UpdateAssistantDraftDtoVoice_Inworld, diff --git a/src/vapi/types/update_handoff_tool_dto_destinations_item.py b/src/vapi/types/update_handoff_tool_dto_destinations_item.py index 1f9c6a5fc..dc642f00b 100644 --- a/src/vapi/types/update_handoff_tool_dto_destinations_item.py +++ b/src/vapi/types/update_handoff_tool_dto_destinations_item.py @@ -28,7 +28,7 @@ class UpdateHandoffToolDtoDestinationsItem_Assistant(UncheckedBaseModel): assistant_id: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="assistantId"), pydantic.Field(alias="assistantId") ] = None - assistant: typing.Optional["CreateAssistantDto"] = None + assistant: typing.Optional["TransientAssistantDto"] = None variable_extraction_plan: typing_extensions.Annotated[ typing.Optional[VariableExtractionPlan], FieldMetadata(alias="variableExtractionPlan"), @@ -134,9 +134,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -170,6 +167,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -205,9 +205,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -241,6 +238,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -275,9 +275,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -311,6 +308,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/update_langfuse_credential_dto.py b/src/vapi/types/update_langfuse_credential_dto.py index d3b7d867b..2155fde33 100644 --- a/src/vapi/types/update_langfuse_credential_dto.py +++ b/src/vapi/types/update_langfuse_credential_dto.py @@ -30,6 +30,14 @@ class UpdateLangfuseCredentialDto(UncheckedBaseModel): FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl", description="The host URL for Langfuse project. Eg: https://cloud.langfuse.com"), ] = None + server_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="serverVersion"), + pydantic.Field( + alias="serverVersion", + description="The semver version of your Langfuse server, e.g. 3.63.0, as its /api/public/health endpoint reports it. Optional.", + ), + ] = None name: typing.Optional[str] = pydantic.Field(default=None) """ This is the name of credential. This is just for your reference. diff --git a/src/vapi/types/update_line_insight_from_call_table_dto_queries_item.py b/src/vapi/types/update_line_insight_from_call_table_dto_queries_item.py index d34c9ff50..1b53c31f9 100644 --- a/src/vapi/types/update_line_insight_from_call_table_dto_queries_item.py +++ b/src/vapi/types/update_line_insight_from_call_table_dto_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable UpdateLineInsightFromCallTableDtoQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/update_pie_insight_from_call_table_dto_queries_item.py b/src/vapi/types/update_pie_insight_from_call_table_dto_queries_item.py index 4520ac310..3c383624f 100644 --- a/src/vapi/types/update_pie_insight_from_call_table_dto_queries_item.py +++ b/src/vapi/types/update_pie_insight_from_call_table_dto_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable UpdatePieInsightFromCallTableDtoQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/update_reson_8_credential_dto.py b/src/vapi/types/update_reson_8_credential_dto.py new file mode 100644 index 000000000..8ca94992d --- /dev/null +++ b/src/vapi/types/update_reson_8_credential_dto.py @@ -0,0 +1,32 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.serialization import FieldMetadata +from ..core.unchecked_base_model import UncheckedBaseModel +from .update_reson_8_credential_dto_provider import UpdateReson8CredentialDtoProvider + + +class UpdateReson8CredentialDto(UncheckedBaseModel): + provider: typing.Optional[UpdateReson8CredentialDtoProvider] = None + api_key: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="apiKey"), + pydantic.Field(alias="apiKey", description="This is not returned in the API."), + ] = None + name: typing.Optional[str] = pydantic.Field(default=None) + """ + This is the name of credential. This is just for your reference. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/update_reson_8_credential_dto_provider.py b/src/vapi/types/update_reson_8_credential_dto_provider.py new file mode 100644 index 000000000..c40306eb0 --- /dev/null +++ b/src/vapi/types/update_reson_8_credential_dto_provider.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UpdateReson8CredentialDtoProvider = typing.Union[typing.Literal["reson8"], typing.Any] diff --git a/src/vapi/types/update_text_insight_from_call_table_dto_queries_item.py b/src/vapi/types/update_text_insight_from_call_table_dto_queries_item.py index 47acc7ad3..9e6094009 100644 --- a/src/vapi/types/update_text_insight_from_call_table_dto_queries_item.py +++ b/src/vapi/types/update_text_insight_from_call_table_dto_queries_item.py @@ -5,9 +5,11 @@ from .json_query_on_call_table_with_number_type_column import JsonQueryOnCallTableWithNumberTypeColumn from .json_query_on_call_table_with_string_type_column import JsonQueryOnCallTableWithStringTypeColumn from .json_query_on_call_table_with_structured_output_column import JsonQueryOnCallTableWithStructuredOutputColumn +from .json_query_on_events_table import JsonQueryOnEventsTable UpdateTextInsightFromCallTableDtoQueriesItem = typing.Union[ JsonQueryOnCallTableWithStringTypeColumn, JsonQueryOnCallTableWithNumberTypeColumn, JsonQueryOnCallTableWithStructuredOutputColumn, + JsonQueryOnEventsTable, ] diff --git a/src/vapi/types/update_tool_template_dto_details.py b/src/vapi/types/update_tool_template_dto_details.py index 922887110..776cf2eee 100644 --- a/src/vapi/types/update_tool_template_dto_details.py +++ b/src/vapi/types/update_tool_template_dto_details.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -652,6 +649,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -700,9 +700,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -736,6 +733,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/update_workflow_dto.py b/src/vapi/types/update_workflow_dto.py index 5b7322bf3..f6823dc21 100644 --- a/src/vapi/types/update_workflow_dto.py +++ b/src/vapi/types/update_workflow_dto.py @@ -66,7 +66,7 @@ class UpdateWorkflowDto(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None hooks: typing.Optional[typing.List[UpdateWorkflowDtoHooksItem]] = pydantic.Field(default=None) diff --git a/src/vapi/types/update_workflow_dto_background_sound_zero.py b/src/vapi/types/update_workflow_dto_background_sound_zero.py index ff4bc623c..29cbb847d 100644 --- a/src/vapi/types/update_workflow_dto_background_sound_zero.py +++ b/src/vapi/types/update_workflow_dto_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -UpdateWorkflowDtoBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +UpdateWorkflowDtoBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/update_workflow_dto_credentials_item.py b/src/vapi/types/update_workflow_dto_credentials_item.py index 847b9f8f3..ba57c876b 100644 --- a/src/vapi/types/update_workflow_dto_credentials_item.py +++ b/src/vapi/types/update_workflow_dto_credentials_item.py @@ -433,6 +433,9 @@ class UpdateWorkflowDtoCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class UpdateWorkflowDtoCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class UpdateWorkflowDtoCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: UpdateWorkflowDtoCredentialsItem_Mistral, UpdateWorkflowDtoCredentialsItem_Speechmatics, UpdateWorkflowDtoCredentialsItem_Soniox, + UpdateWorkflowDtoCredentialsItem_Reson8, UpdateWorkflowDtoCredentialsItem_GoogleCalendarOauth2Client, UpdateWorkflowDtoCredentialsItem_GoogleCalendarOauth2Authorization, UpdateWorkflowDtoCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/update_workflow_dto_model.py b/src/vapi/types/update_workflow_dto_model.py index 98012e10b..e9978ab7e 100644 --- a/src/vapi/types/update_workflow_dto_model.py +++ b/src/vapi/types/update_workflow_dto_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class UpdateWorkflowDtoModel_Openai(UncheckedBaseModel): @@ -28,6 +29,11 @@ class UpdateWorkflowDtoModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") diff --git a/src/vapi/types/update_workflow_dto_nodes_item.py b/src/vapi/types/update_workflow_dto_nodes_item.py index 845c2fc50..49c4044fc 100644 --- a/src/vapi/types/update_workflow_dto_nodes_item.py +++ b/src/vapi/types/update_workflow_dto_nodes_item.py @@ -99,9 +99,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -136,6 +133,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -170,9 +170,6 @@ class Config: CerebrasModel=CerebrasModel, CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -207,6 +204,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -241,9 +241,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -277,6 +274,9 @@ class Config: ToolCallHookAction=ToolCallHookAction, ToolCallHookActionTool=ToolCallHookActionTool, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/update_workflow_dto_transcriber.py b/src/vapi/types/update_workflow_dto_transcriber.py index eda7d1509..c69e9f9c2 100644 --- a/src/vapi/types/update_workflow_dto_transcriber.py +++ b/src/vapi/types/update_workflow_dto_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -236,6 +238,11 @@ class UpdateWorkflowDtoTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -489,6 +496,8 @@ class UpdateWorkflowDtoTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -611,6 +620,51 @@ class Config: extra = pydantic.Extra.allow +class UpdateWorkflowDtoTranscriber_Reson8(UncheckedBaseModel): + """ + This is the transcriber for the workflow. + + This can be overridden at node level using `nodes[n].transcriber`. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class UpdateWorkflowDtoTranscriber_Vapi(UncheckedBaseModel): """ This is the transcriber for the workflow. @@ -654,6 +708,7 @@ class Config: UpdateWorkflowDtoTranscriber_Cartesia, UpdateWorkflowDtoTranscriber_Soniox, UpdateWorkflowDtoTranscriber_Xai, + UpdateWorkflowDtoTranscriber_Reson8, UpdateWorkflowDtoTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/update_workflow_dto_voice.py b/src/vapi/types/update_workflow_dto_voice.py index 31861af1e..123153c70 100644 --- a/src/vapi/types/update_workflow_dto_voice.py +++ b/src/vapi/types/update_workflow_dto_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -552,55 +550,6 @@ class Config: extra = pydantic.Extra.allow -class UpdateWorkflowDtoVoice_Tavus(UncheckedBaseModel): - """ - This is the voice for the workflow. - - This can be overridden at node level using `nodes[n].voice`. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class UpdateWorkflowDtoVoice_Vapi(UncheckedBaseModel): """ This is the voice for the workflow. @@ -841,7 +790,6 @@ class Config: UpdateWorkflowDtoVoice_Wellsaid, UpdateWorkflowDtoVoice_RimeAi, UpdateWorkflowDtoVoice_SmallestAi, - UpdateWorkflowDtoVoice_Tavus, UpdateWorkflowDtoVoice_Vapi, UpdateWorkflowDtoVoice_Sesame, UpdateWorkflowDtoVoice_Inworld, diff --git a/src/vapi/types/user.py b/src/vapi/types/user_with_role.py similarity index 65% rename from src/vapi/types/user.py rename to src/vapi/types/user_with_role.py index 26d8f8c40..539d259b3 100644 --- a/src/vapi/types/user.py +++ b/src/vapi/types/user_with_role.py @@ -8,9 +8,23 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2 from ..core.serialization import FieldMetadata from ..core.unchecked_base_model import UncheckedBaseModel +from .user_with_role_role import UserWithRoleRole -class User(UncheckedBaseModel): +class UserWithRole(UncheckedBaseModel): + role: UserWithRoleRole = pydantic.Field() + """ + This is the user's role in the org: a built-in role, the HIPAA special role, or a custom WorkOS role slug prefixed with `org-`. + """ + + last_active_at: typing_extensions.Annotated[ + typing.Optional[dt.datetime], + FieldMetadata(alias="lastActiveAt"), + pydantic.Field( + alias="lastActiveAt", + description="This is the ISO 8601 date-time string of the user's most recent sign-in to the org's identity provider (WorkOS). It is a property of the user, not of this org membership, so a sign-in to another WorkOS org counts. Only returned to org admins; absent when the requester is not an admin, no sign-in has been recorded, or the org is not linked to WorkOS.", + ), + ] = None id: str = pydantic.Field() """ This is the unique identifier for the profile or user. diff --git a/src/vapi/types/user_with_role_role.py b/src/vapi/types/user_with_role_role.py new file mode 100644 index 000000000..23a7cd090 --- /dev/null +++ b/src/vapi/types/user_with_role_role.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .user_with_role_role_zero import UserWithRoleRoleZero + +UserWithRoleRole = typing.Union[UserWithRoleRoleZero, str] diff --git a/src/vapi/types/user_with_role_role_zero.py b/src/vapi/types/user_with_role_role_zero.py new file mode 100644 index 000000000..0594e80d8 --- /dev/null +++ b/src/vapi/types/user_with_role_role_zero.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +UserWithRoleRoleZero = typing.Union[typing.Literal["admin", "editor", "viewer", "hipaa-special"], typing.Any] diff --git a/src/vapi/types/validate_background_sound_url_dto.py b/src/vapi/types/validate_background_sound_url_dto.py new file mode 100644 index 000000000..2e17b40dc --- /dev/null +++ b/src/vapi/types/validate_background_sound_url_dto.py @@ -0,0 +1,23 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from ..core.unchecked_base_model import UncheckedBaseModel + + +class ValidateBackgroundSoundUrlDto(UncheckedBaseModel): + url: str = pydantic.Field() + """ + This is the background sound URL to validate. The server performs a ranged request and checks that the URL serves a live media file. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/vapi/types/vapi_model.py b/src/vapi/types/vapi_model.py index 50be00f78..ee77f7ad7 100644 --- a/src/vapi/types/vapi_model.py +++ b/src/vapi/types/vapi_model.py @@ -136,9 +136,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -173,6 +170,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 @@ -206,9 +206,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -243,6 +240,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/vapi_model_tools_item.py b/src/vapi/types/vapi_model_tools_item.py index 5daf47bb6..d5f90fe7c 100644 --- a/src/vapi/types/vapi_model_tools_item.py +++ b/src/vapi/types/vapi_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -652,6 +649,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/vapi_web_call_transport.py b/src/vapi/types/vapi_web_call_transport.py index fd3ae09fd..727c56588 100644 --- a/src/vapi/types/vapi_web_call_transport.py +++ b/src/vapi/types/vapi_web_call_transport.py @@ -31,7 +31,7 @@ class VapiWebCallTransport(UncheckedBaseModel): FieldMetadata(alias="callToken"), pydantic.Field( alias="callToken", - description="This is the meeting token the web client should join the call with.\nWhen video recording is enabled, joining with this token starts the cloud\nrecording automatically server-side, which is more reliable than the\nclient starting it after joining. Set by the server; only present when\nvideo recording is enabled.", + description="This is the meeting token the web client should join the call with.\nWhen video recording is enabled, joining with this token starts the cloud\nrecording automatically server-side, which is more reliable than the\nclient starting it after joining. Set by the server; only present when\nvideo recording is enabled.\n\nWith `videoRecordingStartMode: 'server'`, joining with the token doesn't\nstart the recording: Vapi starts it once the user joins, and the client\nmust not start it either.", ), ] = None call_url: typing_extensions.Annotated[ diff --git a/src/vapi/types/voicemail_tool.py b/src/vapi/types/voicemail_tool.py index 228a66b9c..6e84fa5f6 100644 --- a/src/vapi/types/voicemail_tool.py +++ b/src/vapi/types/voicemail_tool.py @@ -22,6 +22,14 @@ class VoicemailTool(UncheckedBaseModel): latest_version: typing_extensions.Annotated[ typing.Optional[str], FieldMetadata(alias="latestVersion"), pydantic.Field(alias="latestVersion") ] = None + baseline_version: typing_extensions.Annotated[ + typing.Optional[str], + FieldMetadata(alias="baselineVersion"), + pydantic.Field( + alias="baselineVersion", + description="Display-only baseline label returned by the tool list before a version is stored. Fetch version history to initialize it before using it as a pin.", + ), + ] = None messages: typing.Optional[typing.List[VoicemailToolMessagesItem]] = pydantic.Field(default=None) """ Messages spoken while the tool is running. Multiple request-start messages are variants. For request-response-delayed, same timing means variants and different timings mean staged updates. diff --git a/src/vapi/types/workflow.py b/src/vapi/types/workflow.py index fff5b0a01..1dd0e709b 100644 --- a/src/vapi/types/workflow.py +++ b/src/vapi/types/workflow.py @@ -67,7 +67,7 @@ class Workflow(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None hooks: typing.Optional[typing.List[WorkflowHooksItem]] = pydantic.Field(default=None) diff --git a/src/vapi/types/workflow_anthropic_bedrock_model.py b/src/vapi/types/workflow_anthropic_bedrock_model.py index 29b00d08b..b904a7ece 100644 --- a/src/vapi/types/workflow_anthropic_bedrock_model.py +++ b/src/vapi/types/workflow_anthropic_bedrock_model.py @@ -21,12 +21,12 @@ class WorkflowAnthropicBedrockModel(UncheckedBaseModel): """ These are the messages used to customize the prompt used for structured output extraction. - When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables: - - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required) + When provided, these messages replace the default prompts. For text extraction, message contents support LiquidJS templating with the following variables: + - `{{transcript}}`, `{{messages}}`, or `{{messagesWithConfidence}}` to reference the conversation (one is required) - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required) - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues` - `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results, but omits caller transcription-confidence fields. For text extraction, `{{messagesWithConfidence}}` includes the original message history with transcription confidence for outputs that explicitly need it. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. If not provided, default system and user prompts are used. """ diff --git a/src/vapi/types/workflow_anthropic_bedrock_model_model.py b/src/vapi/types/workflow_anthropic_bedrock_model_model.py index de14e4474..8a43e6f96 100644 --- a/src/vapi/types/workflow_anthropic_bedrock_model_model.py +++ b/src/vapi/types/workflow_anthropic_bedrock_model_model.py @@ -18,6 +18,7 @@ "claude-sonnet-4-5-20250929", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", + "claude-haiku-5-5", "global.anthropic.claude-haiku-4-5-20251001-v1:0", ], typing.Any, diff --git a/src/vapi/types/workflow_anthropic_model.py b/src/vapi/types/workflow_anthropic_model.py index bc678c4a1..c388fe958 100644 --- a/src/vapi/types/workflow_anthropic_model.py +++ b/src/vapi/types/workflow_anthropic_model.py @@ -21,12 +21,12 @@ class WorkflowAnthropicModel(UncheckedBaseModel): """ These are the messages used to customize the prompt used for structured output extraction. - When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables: - - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required) + When provided, these messages replace the default prompts. For text extraction, message contents support LiquidJS templating with the following variables: + - `{{transcript}}`, `{{messages}}`, or `{{messagesWithConfidence}}` to reference the conversation (one is required) - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required) - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues` - `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results, but omits caller transcription-confidence fields. For text extraction, `{{messagesWithConfidence}}` includes the original message history with transcription confidence for outputs that explicitly need it. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. If not provided, default system and user prompts are used. """ diff --git a/src/vapi/types/workflow_anthropic_model_model.py b/src/vapi/types/workflow_anthropic_model_model.py index 406265c48..7b0d90346 100644 --- a/src/vapi/types/workflow_anthropic_model_model.py +++ b/src/vapi/types/workflow_anthropic_model_model.py @@ -19,6 +19,7 @@ "claude-sonnet-4-6", "claude-sonnet-5", "claude-haiku-4-5-20251001", + "claude-haiku-5-5", ], typing.Any, ] diff --git a/src/vapi/types/workflow_background_sound_zero.py b/src/vapi/types/workflow_background_sound_zero.py index 0ea08630a..ffe25e1f9 100644 --- a/src/vapi/types/workflow_background_sound_zero.py +++ b/src/vapi/types/workflow_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -WorkflowBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +WorkflowBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/workflow_credentials_item.py b/src/vapi/types/workflow_credentials_item.py index 78808175a..7bac21301 100644 --- a/src/vapi/types/workflow_credentials_item.py +++ b/src/vapi/types/workflow_credentials_item.py @@ -433,6 +433,9 @@ class WorkflowCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class WorkflowCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class WorkflowCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: WorkflowCredentialsItem_Mistral, WorkflowCredentialsItem_Speechmatics, WorkflowCredentialsItem_Soniox, + WorkflowCredentialsItem_Reson8, WorkflowCredentialsItem_GoogleCalendarOauth2Client, WorkflowCredentialsItem_GoogleCalendarOauth2Authorization, WorkflowCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/workflow_custom_model.py b/src/vapi/types/workflow_custom_model.py index 77fd390fe..753483199 100644 --- a/src/vapi/types/workflow_custom_model.py +++ b/src/vapi/types/workflow_custom_model.py @@ -20,12 +20,12 @@ class WorkflowCustomModel(UncheckedBaseModel): """ These are the messages used to customize the prompt used for structured output extraction. - When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables: - - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required) + When provided, these messages replace the default prompts. For text extraction, message contents support LiquidJS templating with the following variables: + - `{{transcript}}`, `{{messages}}`, or `{{messagesWithConfidence}}` to reference the conversation (one is required) - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required) - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues` - `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results, but omits caller transcription-confidence fields. For text extraction, `{{messagesWithConfidence}}` includes the original message history with transcription confidence for outputs that explicitly need it. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. If not provided, default system and user prompts are used. """ diff --git a/src/vapi/types/workflow_google_model.py b/src/vapi/types/workflow_google_model.py index 45ab29118..151fc3b48 100644 --- a/src/vapi/types/workflow_google_model.py +++ b/src/vapi/types/workflow_google_model.py @@ -20,12 +20,12 @@ class WorkflowGoogleModel(UncheckedBaseModel): """ These are the messages used to customize the prompt used for structured output extraction. - When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables: - - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required) + When provided, these messages replace the default prompts. For text extraction, message contents support LiquidJS templating with the following variables: + - `{{transcript}}`, `{{messages}}`, or `{{messagesWithConfidence}}` to reference the conversation (one is required) - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required) - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues` - `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results, but omits caller transcription-confidence fields. For text extraction, `{{messagesWithConfidence}}` includes the original message history with transcription confidence for outputs that explicitly need it. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. If not provided, default system and user prompts are used. """ diff --git a/src/vapi/types/workflow_google_model_model.py b/src/vapi/types/workflow_google_model_model.py index 602f92171..f49f6808c 100644 --- a/src/vapi/types/workflow_google_model_model.py +++ b/src/vapi/types/workflow_google_model_model.py @@ -4,6 +4,7 @@ WorkflowGoogleModelModel = typing.Union[ typing.Literal[ + "gemini-3.8-flash", "gemini-3.5-flash", "gemini-3.1-flash-lite", "gemini-3-flash-preview", diff --git a/src/vapi/types/workflow_model.py b/src/vapi/types/workflow_model.py index 2e5066fd4..9f48d8d89 100644 --- a/src/vapi/types/workflow_model.py +++ b/src/vapi/types/workflow_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class WorkflowModel_Openai(UncheckedBaseModel): @@ -28,6 +29,11 @@ class WorkflowModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") diff --git a/src/vapi/types/workflow_nodes_item.py b/src/vapi/types/workflow_nodes_item.py index a580a13b6..092cf486a 100644 --- a/src/vapi/types/workflow_nodes_item.py +++ b/src/vapi/types/workflow_nodes_item.py @@ -98,9 +98,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -135,6 +132,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -169,9 +169,6 @@ class Config: CerebrasModel=CerebrasModel, CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -206,6 +203,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -240,9 +240,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -276,6 +273,9 @@ class Config: ToolCallHookAction=ToolCallHookAction, ToolCallHookActionTool=ToolCallHookActionTool, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/workflow_open_ai_model.py b/src/vapi/types/workflow_open_ai_model.py index 00b5efcd5..e30892578 100644 --- a/src/vapi/types/workflow_open_ai_model.py +++ b/src/vapi/types/workflow_open_ai_model.py @@ -9,6 +9,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel from .open_ai_message import OpenAiMessage from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class WorkflowOpenAiModel(UncheckedBaseModel): @@ -20,12 +21,12 @@ class WorkflowOpenAiModel(UncheckedBaseModel): """ These are the messages used to customize the prompt used for structured output extraction. - When provided, these messages replace the default prompts. Message contents support LiquidJS templating with the following variables: - - `{{transcript}}` or `{{messages}}` to reference the conversation (one is required) + When provided, these messages replace the default prompts. For text extraction, message contents support LiquidJS templating with the following variables: + - `{{transcript}}`, `{{messages}}`, or `{{messagesWithConfidence}}` to reference the conversation (one is required) - `{{structuredOutput.name}}`, `{{structuredOutput.description}}`, or `{{structuredOutput.schema}}` to reference the structured output definition (one is required) - `{{systemPrompt}}`, `{{callEndedReason}}`, `{{duration}}`, `{{startedAt}}`, `{{endedAt}}`, and any `assistantOverrides.variableValues` - `{{messages}}` is the full message history including tool calls; `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. + In structured outputs, `{{messages}}` includes conversation text and tool calls/results, but omits caller transcription-confidence fields. For text extraction, `{{messagesWithConfidence}}` includes the original message history with transcription confidence for outputs that explicitly need it. These variables also apply in structured-output schema descriptions. Audio-targeted (`messages-with-audio`) extraction ignores custom messages. Stored call artifacts and API messages retain their confidence data. `{{transcript}}` is the spoken text only, which uses significantly fewer tokens. If not provided, default system and user prompts are used. """ @@ -38,6 +39,14 @@ class WorkflowOpenAiModel(UncheckedBaseModel): This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. """ + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field( + alias="reasoningEffort", + description="This is the reasoning effort for structured output extraction. It applies to the primary extraction attempt only; the GPT-4.1 and Gemini fallbacks run without it. Other features that use this model type ignore it.\n\nOnly reasoning models accept it, and each accepts only the efforts OpenAI supports for it (for example `none` and `xhigh` on gpt-5.6, `minimal` on gpt-5). When unset, OpenAI's default effort for the model applies, except on GPT-6 models, which Vapi sends with `none`.\n\nReasoning tokens are billed as output tokens.", + ), + ] = None temperature: typing.Optional[float] = pydantic.Field(default=None) """ This is the temperature of the model. diff --git a/src/vapi/types/workflow_open_ai_model_reasoning_effort.py b/src/vapi/types/workflow_open_ai_model_reasoning_effort.py new file mode 100644 index 000000000..500f0b175 --- /dev/null +++ b/src/vapi/types/workflow_open_ai_model_reasoning_effort.py @@ -0,0 +1,7 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WorkflowOpenAiModelReasoningEffort = typing.Union[ + typing.Literal["minimal", "none", "low", "medium", "high", "xhigh"], typing.Any +] diff --git a/src/vapi/types/workflow_transcriber.py b/src/vapi/types/workflow_transcriber.py index aa13df8de..a4cae6feb 100644 --- a/src/vapi/types/workflow_transcriber.py +++ b/src/vapi/types/workflow_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -236,6 +238,11 @@ class WorkflowTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -489,6 +496,8 @@ class WorkflowTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -611,6 +620,51 @@ class Config: extra = pydantic.Extra.allow +class WorkflowTranscriber_Reson8(UncheckedBaseModel): + """ + This is the transcriber for the workflow. + + This can be overridden at node level using `nodes[n].transcriber`. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class WorkflowTranscriber_Vapi(UncheckedBaseModel): """ This is the transcriber for the workflow. @@ -654,6 +708,7 @@ class Config: WorkflowTranscriber_Cartesia, WorkflowTranscriber_Soniox, WorkflowTranscriber_Xai, + WorkflowTranscriber_Reson8, WorkflowTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/workflow_user_editable.py b/src/vapi/types/workflow_user_editable.py index 0ff502d51..73d848260 100644 --- a/src/vapi/types/workflow_user_editable.py +++ b/src/vapi/types/workflow_user_editable.py @@ -64,7 +64,7 @@ class WorkflowUserEditable(UncheckedBaseModel): FieldMetadata(alias="backgroundSound"), pydantic.Field( alias="backgroundSound", - description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nYou can also provide a custom sound by providing a URL to an audio file.", + description="This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'.\nBundled sounds: 'office', 'white-noise', 'city', 'crowd' and 'farm'. GPT Live assistants don't play 'office'.\nYou can also provide a custom sound by providing a URL to an audio file.", ), ] = None hooks: typing.Optional[typing.List["WorkflowUserEditableHooksItem"]] = pydantic.Field(default=None) @@ -223,9 +223,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -260,6 +257,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable_hooks_item import WorkflowUserEditableHooksItem # noqa: E402, I001 @@ -293,9 +293,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -330,6 +327,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditableHooksItem=WorkflowUserEditableHooksItem, diff --git a/src/vapi/types/workflow_user_editable_background_sound_zero.py b/src/vapi/types/workflow_user_editable_background_sound_zero.py index f95f7758a..aec2c311d 100644 --- a/src/vapi/types/workflow_user_editable_background_sound_zero.py +++ b/src/vapi/types/workflow_user_editable_background_sound_zero.py @@ -2,4 +2,6 @@ import typing -WorkflowUserEditableBackgroundSoundZero = typing.Union[typing.Literal["off", "office"], typing.Any] +WorkflowUserEditableBackgroundSoundZero = typing.Union[ + typing.Literal["off", "office", "white-noise", "city", "crowd", "farm"], typing.Any +] diff --git a/src/vapi/types/workflow_user_editable_credentials_item.py b/src/vapi/types/workflow_user_editable_credentials_item.py index 8e0a7a155..25cbec334 100644 --- a/src/vapi/types/workflow_user_editable_credentials_item.py +++ b/src/vapi/types/workflow_user_editable_credentials_item.py @@ -433,6 +433,9 @@ class WorkflowUserEditableCredentialsItem_Langfuse(UncheckedBaseModel): public_key: typing_extensions.Annotated[str, FieldMetadata(alias="publicKey"), pydantic.Field(alias="publicKey")] api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] api_url: typing_extensions.Annotated[str, FieldMetadata(alias="apiUrl"), pydantic.Field(alias="apiUrl")] + server_version: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="serverVersion"), pydantic.Field(alias="serverVersion") + ] = None name: typing.Optional[str] = None if IS_PYDANTIC_V2: @@ -875,6 +878,21 @@ class Config: extra = pydantic.Extra.allow +class WorkflowUserEditableCredentialsItem_Reson8(UncheckedBaseModel): + provider: typing.Literal["reson8"] = "reson8" + api_key: typing_extensions.Annotated[str, FieldMetadata(alias="apiKey"), pydantic.Field(alias="apiKey")] + name: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class WorkflowUserEditableCredentialsItem_GoogleCalendarOauth2Client(UncheckedBaseModel): provider: typing.Literal["google.calendar.oauth2-client"] = "google.calendar.oauth2-client" name: typing.Optional[str] = None @@ -1084,6 +1102,7 @@ class Config: WorkflowUserEditableCredentialsItem_Mistral, WorkflowUserEditableCredentialsItem_Speechmatics, WorkflowUserEditableCredentialsItem_Soniox, + WorkflowUserEditableCredentialsItem_Reson8, WorkflowUserEditableCredentialsItem_GoogleCalendarOauth2Client, WorkflowUserEditableCredentialsItem_GoogleCalendarOauth2Authorization, WorkflowUserEditableCredentialsItem_GoogleSheetsOauth2Authorization, diff --git a/src/vapi/types/workflow_user_editable_model.py b/src/vapi/types/workflow_user_editable_model.py index 7a727069b..a2ca26b5f 100644 --- a/src/vapi/types/workflow_user_editable_model.py +++ b/src/vapi/types/workflow_user_editable_model.py @@ -16,6 +16,7 @@ from .workflow_custom_model_metadata_send_mode import WorkflowCustomModelMetadataSendMode from .workflow_google_model_model import WorkflowGoogleModelModel from .workflow_open_ai_model_model import WorkflowOpenAiModelModel +from .workflow_open_ai_model_reasoning_effort import WorkflowOpenAiModelReasoningEffort class WorkflowUserEditableModel_Openai(UncheckedBaseModel): @@ -28,6 +29,11 @@ class WorkflowUserEditableModel_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" messages: typing.Optional[typing.List[OpenAiMessage]] = None model: WorkflowOpenAiModelModel + reasoning_effort: typing_extensions.Annotated[ + typing.Optional[WorkflowOpenAiModelReasoningEffort], + FieldMetadata(alias="reasoningEffort"), + pydantic.Field(alias="reasoningEffort"), + ] = None temperature: typing.Optional[float] = None max_tokens: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="maxTokens"), pydantic.Field(alias="maxTokens") diff --git a/src/vapi/types/workflow_user_editable_nodes_item.py b/src/vapi/types/workflow_user_editable_nodes_item.py index ca6384c5c..a1cbec09a 100644 --- a/src/vapi/types/workflow_user_editable_nodes_item.py +++ b/src/vapi/types/workflow_user_editable_nodes_item.py @@ -99,9 +99,6 @@ class Config: from .cerebras_model import CerebrasModel # noqa: E402, I001 from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -136,6 +133,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -169,9 +169,6 @@ class Config: CerebrasModel=CerebrasModel, CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -206,6 +203,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, @@ -240,9 +240,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -276,6 +273,9 @@ class Config: ToolCallHookAction=ToolCallHookAction, ToolCallHookActionTool=ToolCallHookActionTool, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/workflow_user_editable_transcriber.py b/src/vapi/types/workflow_user_editable_transcriber.py index aac453601..707d8d2d3 100644 --- a/src/vapi/types/workflow_user_editable_transcriber.py +++ b/src/vapi/types/workflow_user_editable_transcriber.py @@ -33,6 +33,8 @@ from .google_transcriber_model import GoogleTranscriberModel from .open_ai_transcriber_language import OpenAiTranscriberLanguage from .open_ai_transcriber_model import OpenAiTranscriberModel +from .reson_8_transcriber_filler_mode import Reson8TranscriberFillerMode +from .reson_8_transcriber_model import Reson8TranscriberModel from .server import Server from .soniox_context_general_item import SonioxContextGeneralItem from .soniox_transcriber_language import SonioxTranscriberLanguage @@ -236,6 +238,11 @@ class WorkflowUserEditableTranscriber_Deepgram(UncheckedBaseModel): confidence_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="confidenceThreshold"), pydantic.Field(alias="confidenceThreshold") ] = None + feedback_filter_enabled: typing_extensions.Annotated[ + typing.Optional[bool], + FieldMetadata(alias="feedbackFilterEnabled"), + pydantic.Field(alias="feedbackFilterEnabled"), + ] = None eot_threshold: typing_extensions.Annotated[ typing.Optional[float], FieldMetadata(alias="eotThreshold"), pydantic.Field(alias="eotThreshold") ] = None @@ -489,6 +496,8 @@ class WorkflowUserEditableTranscriber_Openai(UncheckedBaseModel): provider: typing.Literal["openai"] = "openai" model: OpenAiTranscriberModel language: typing.Optional[OpenAiTranscriberLanguage] = None + keywords: typing.Optional[typing.List[str]] = None + prompt: typing.Optional[str] = None fallback_plan: typing_extensions.Annotated[ typing.Optional[FallbackTranscriberPlan], FieldMetadata(alias="fallbackPlan"), @@ -611,6 +620,51 @@ class Config: extra = pydantic.Extra.allow +class WorkflowUserEditableTranscriber_Reson8(UncheckedBaseModel): + """ + This is the transcriber for the workflow. + + This can be overridden at node level using `nodes[n].transcriber`. + """ + + provider: typing.Literal["reson8"] = "reson8" + model: typing.Optional[Reson8TranscriberModel] = None + language: typing.Optional[str] = None + keyterms: typing.Optional[typing.List[str]] = None + custom_model_id: typing_extensions.Annotated[ + typing.Optional[str], FieldMetadata(alias="customModelId"), pydantic.Field(alias="customModelId") + ] = None + eager_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="eagerTurnProbability"), + pydantic.Field(alias="eagerTurnProbability"), + ] = None + final_turn_probability: typing_extensions.Annotated[ + typing.Optional[float], + FieldMetadata(alias="finalTurnProbability"), + pydantic.Field(alias="finalTurnProbability"), + ] = None + filler_mode: typing_extensions.Annotated[ + typing.Optional[Reson8TranscriberFillerMode], + FieldMetadata(alias="fillerMode"), + pydantic.Field(alias="fillerMode"), + ] = None + fallback_plan: typing_extensions.Annotated[ + typing.Optional[FallbackTranscriberPlan], + FieldMetadata(alias="fallbackPlan"), + pydantic.Field(alias="fallbackPlan"), + ] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow + + class WorkflowUserEditableTranscriber_Vapi(UncheckedBaseModel): """ This is the transcriber for the workflow. @@ -654,6 +708,7 @@ class Config: WorkflowUserEditableTranscriber_Cartesia, WorkflowUserEditableTranscriber_Soniox, WorkflowUserEditableTranscriber_Xai, + WorkflowUserEditableTranscriber_Reson8, WorkflowUserEditableTranscriber_Vapi, ], UnionMetadata(discriminant="provider"), diff --git a/src/vapi/types/workflow_user_editable_voice.py b/src/vapi/types/workflow_user_editable_voice.py index 03dd18fdb..c119d215d 100644 --- a/src/vapi/types/workflow_user_editable_voice.py +++ b/src/vapi/types/workflow_user_editable_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -552,55 +550,6 @@ class Config: extra = pydantic.Extra.allow -class WorkflowUserEditableVoice_Tavus(UncheckedBaseModel): - """ - This is the voice for the workflow. - - This can be overridden at node level using `nodes[n].voice`. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class WorkflowUserEditableVoice_Vapi(UncheckedBaseModel): """ This is the voice for the workflow. @@ -841,7 +790,6 @@ class Config: WorkflowUserEditableVoice_Wellsaid, WorkflowUserEditableVoice_RimeAi, WorkflowUserEditableVoice_SmallestAi, - WorkflowUserEditableVoice_Tavus, WorkflowUserEditableVoice_Vapi, WorkflowUserEditableVoice_Sesame, WorkflowUserEditableVoice_Inworld, diff --git a/src/vapi/types/workflow_voice.py b/src/vapi/types/workflow_voice.py index fdcae3fd5..1ef906f5d 100644 --- a/src/vapi/types/workflow_voice.py +++ b/src/vapi/types/workflow_voice.py @@ -48,8 +48,6 @@ from .sesame_voice_model import SesameVoiceModel from .smallest_ai_voice_id import SmallestAiVoiceId from .smallest_ai_voice_model import SmallestAiVoiceModel -from .tavus_conversation_properties import TavusConversationProperties -from .tavus_voice_voice_id import TavusVoiceVoiceId from .vapi_pronunciation_dictionary_locator import VapiPronunciationDictionaryLocator from .vapi_voice_language import VapiVoiceLanguage from .vapi_voice_version import VapiVoiceVersion @@ -552,55 +550,6 @@ class Config: extra = pydantic.Extra.allow -class WorkflowVoice_Tavus(UncheckedBaseModel): - """ - This is the voice for the workflow. - - This can be overridden at node level using `nodes[n].voice`. - """ - - provider: typing.Literal["tavus"] = "tavus" - caching_enabled: typing_extensions.Annotated[ - typing.Optional[bool], FieldMetadata(alias="cachingEnabled"), pydantic.Field(alias="cachingEnabled") - ] = None - voice_id: typing_extensions.Annotated[ - TavusVoiceVoiceId, FieldMetadata(alias="voiceId"), pydantic.Field(alias="voiceId") - ] - chunk_plan: typing_extensions.Annotated[ - typing.Optional[ChunkPlan], FieldMetadata(alias="chunkPlan"), pydantic.Field(alias="chunkPlan") - ] = None - persona_id: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="personaId"), pydantic.Field(alias="personaId") - ] = None - callback_url: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="callbackUrl"), pydantic.Field(alias="callbackUrl") - ] = None - conversation_name: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="conversationName"), pydantic.Field(alias="conversationName") - ] = None - conversational_context: typing_extensions.Annotated[ - typing.Optional[str], - FieldMetadata(alias="conversationalContext"), - pydantic.Field(alias="conversationalContext"), - ] = None - custom_greeting: typing_extensions.Annotated[ - typing.Optional[str], FieldMetadata(alias="customGreeting"), pydantic.Field(alias="customGreeting") - ] = None - properties: typing.Optional[TavusConversationProperties] = None - fallback_plan: typing_extensions.Annotated[ - typing.Optional[FallbackPlan], FieldMetadata(alias="fallbackPlan"), pydantic.Field(alias="fallbackPlan") - ] = None - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow - - class WorkflowVoice_Vapi(UncheckedBaseModel): """ This is the voice for the workflow. @@ -841,7 +790,6 @@ class Config: WorkflowVoice_Wellsaid, WorkflowVoice_RimeAi, WorkflowVoice_SmallestAi, - WorkflowVoice_Tavus, WorkflowVoice_Vapi, WorkflowVoice_Sesame, WorkflowVoice_Inworld, diff --git a/src/vapi/types/xai_model.py b/src/vapi/types/xai_model.py index 8da859fb3..f2778a6f8 100644 --- a/src/vapi/types/xai_model.py +++ b/src/vapi/types/xai_model.py @@ -68,7 +68,7 @@ class XaiModel(UncheckedBaseModel): FieldMetadata(alias="maxTokens"), pydantic.Field( alias="maxTokens", - description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna no cap is applied unless you set one, because reasoning uses output tokens and a small cap can leave the reply empty.", + description="This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. On gpt-6-luna and claude-haiku-5-5 no cap is applied unless you set one (claude-haiku-5-5 sends its 128,000-token maximum), because reasoning uses output tokens and a small cap can leave the reply empty.", ), ] = None emotion_recognition_enabled: typing_extensions.Annotated[ @@ -122,9 +122,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto import CreateHandoffToolDto # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 @@ -159,6 +156,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -192,9 +192,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDto=CreateHandoffToolDto, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, @@ -229,6 +226,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable, diff --git a/src/vapi/types/xai_model_tools_item.py b/src/vapi/types/xai_model_tools_item.py index 7159c9853..cae647089 100644 --- a/src/vapi/types/xai_model_tools_item.py +++ b/src/vapi/types/xai_model_tools_item.py @@ -616,9 +616,6 @@ class Config: from .cerebras_model_tools_item import CerebrasModelToolsItem # noqa: E402, I001 from .conversation_node import ConversationNode # noqa: E402, I001 from .conversation_node_tools_item import ConversationNodeToolsItem # noqa: E402, I001 -from .create_assistant_dto import CreateAssistantDto # noqa: E402, I001 -from .create_assistant_dto_hooks_item import CreateAssistantDtoHooksItem # noqa: E402, I001 -from .create_assistant_dto_model import CreateAssistantDtoModel # noqa: E402, I001 from .create_handoff_tool_dto_destinations_item import CreateHandoffToolDtoDestinationsItem # noqa: E402, I001 from .create_squad_dto import CreateSquadDto # noqa: E402, I001 from .custom_llm_model import CustomLlmModel # noqa: E402, I001 @@ -652,6 +649,9 @@ class Config: from .tool_call_hook_action_tool import ToolCallHookActionTool # noqa: E402, I001 from .tool_node import ToolNode # noqa: E402, I001 from .tool_node_tool import ToolNodeTool # noqa: E402, I001 +from .transient_assistant_dto import TransientAssistantDto # noqa: E402, I001 +from .transient_assistant_dto_hooks_item import TransientAssistantDtoHooksItem # noqa: E402, I001 +from .transient_assistant_dto_model import TransientAssistantDtoModel # noqa: E402, I001 from .vapi_model import VapiModel # noqa: E402, I001 from .vapi_model_tools_item import VapiModelToolsItem # noqa: E402, I001 from .workflow_user_editable import WorkflowUserEditable # noqa: E402, I001 @@ -699,9 +699,6 @@ class Config: CerebrasModelToolsItem=CerebrasModelToolsItem, ConversationNode=ConversationNode, ConversationNodeToolsItem=ConversationNodeToolsItem, - CreateAssistantDto=CreateAssistantDto, - CreateAssistantDtoHooksItem=CreateAssistantDtoHooksItem, - CreateAssistantDtoModel=CreateAssistantDtoModel, CreateHandoffToolDtoDestinationsItem=CreateHandoffToolDtoDestinationsItem, CreateSquadDto=CreateSquadDto, CustomLlmModel=CustomLlmModel, @@ -735,6 +732,9 @@ class Config: ToolCallHookActionTool=ToolCallHookActionTool, ToolNode=ToolNode, ToolNodeTool=ToolNodeTool, + TransientAssistantDto=TransientAssistantDto, + TransientAssistantDtoHooksItem=TransientAssistantDtoHooksItem, + TransientAssistantDtoModel=TransientAssistantDtoModel, VapiModel=VapiModel, VapiModelToolsItem=VapiModelToolsItem, WorkflowUserEditable=WorkflowUserEditable,