From 4a6c88f9c2e5b05457e31eefb91a6d67341cbcfc Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 12:02:28 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.41.10 --- .fern/metadata.json | 4 +- poetry.lock | 369 ++++----- pyproject.toml | 2 +- reference.md | 247 +++++- src/speechify/__init__.py | 27 + src/speechify/audio/client.py | 20 +- src/speechify/audio/raw_client.py | 12 +- .../audio/types/session_pronunciations.py | 2 +- ..._pronunciations_pronunciations_item_ipa.py | 2 +- src/speechify/core/client_wrapper.py | 4 +- src/speechify/types/__init__.py | 24 + .../types/auto_recharge_status_response.py | 32 + src/speechify/types/get_stream_request.py | 2 +- src/speechify/types/pronunciation_ipa.py | 2 +- src/speechify/types/pronunciations.py | 2 +- src/speechify/types/workspace_balance.py | 89 +++ ...workspace_balance_monthly_budget_status.py | 5 + src/speechify/types/workspace_usage_group.py | 57 ++ .../types/workspace_usage_group_product.py | 5 + .../types/workspace_usage_group_unit.py | 5 + src/speechify/types/workspace_usage_report.py | 58 ++ .../types/workspace_usage_report_group_by.py | 5 + src/speechify/workspaces/__init__.py | 30 + src/speechify/workspaces/client.py | 356 +++++++++ src/speechify/workspaces/raw_client.py | 701 ++++++++++++++++++ src/speechify/workspaces/types/__init__.py | 36 + ...sage_report_workspaces_request_group_by.py | 5 + 27 files changed, 1893 insertions(+), 210 deletions(-) create mode 100644 src/speechify/types/auto_recharge_status_response.py create mode 100644 src/speechify/types/workspace_balance.py create mode 100644 src/speechify/types/workspace_balance_monthly_budget_status.py create mode 100644 src/speechify/types/workspace_usage_group.py create mode 100644 src/speechify/types/workspace_usage_group_product.py create mode 100644 src/speechify/types/workspace_usage_group_unit.py create mode 100644 src/speechify/types/workspace_usage_report.py create mode 100644 src/speechify/types/workspace_usage_report_group_by.py create mode 100644 src/speechify/workspaces/types/__init__.py create mode 100644 src/speechify/workspaces/types/get_usage_report_workspaces_request_group_by.py diff --git a/.fern/metadata.json b/.fern/metadata.json index e42db10..b2607b9 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -9,9 +9,9 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "14383dab6762a97b9dab9778796ac2b4c41cdd6d", + "originGitCommit": "7e0379b8fd0e9d5558e9df4d325afd40b502d411", "originGitCommitIsDirty": false, "invokedBy": "ci", "ciProvider": "github", - "sdkVersion": "5.0.0" + "sdkVersion": "5.0.1" } \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 6a59a38..c3c7524 100644 --- a/poetry.lock +++ b/poetry.lock @@ -230,14 +230,14 @@ 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" groups = ["main"] 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] @@ -289,14 +289,14 @@ files = [ [[package]] name = "certifi" -version = "2026.10.23" +version = "2026.11.20" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" groups = ["main"] files = [ - {file = "certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1"}, - {file = "certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd"}, + {file = "certifi-2026.11.20-py3-none-any.whl", hash = "sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f"}, + {file = "certifi-2026.11.20.tar.gz", hash = "sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e"}, ] [[package]] @@ -314,15 +314,15 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.3.1" +version = "1.3.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" groups = ["main", "dev"] markers = "python_version == \"3.10\"" files = [ - {file = "exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598"}, - {file = "exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219"}, + {file = "exceptiongroup-1.3.2-py3-none-any.whl", hash = "sha256:41c6a70dfec22050d3d8b43386b059a4dc0bca3f3d40a40971cb206fff1785af"}, + {file = "exceptiongroup-1.3.2.tar.gz", hash = "sha256:ca82e69f0cb535fbde934885744b67669a3efddd50fe7bc00d3398839fcaddec"}, ] [package.dependencies] @@ -523,14 +523,14 @@ trio = ["trio (>=0.22.0,<1.0)"] [[package]] name = "httpx" -version = "0.28.1" +version = "0.29.0" description = "The next generation HTTP client." optional = false -python-versions = ">=3.8" +python-versions = ">=3.10" groups = ["main"] files = [ - {file = "httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad"}, - {file = "httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc"}, + {file = "httpx-0.29.0-py3-none-any.whl", hash = "sha256:6734dcf742ced6e8018e45d3f9f7728975b6b3e1085a24f3e2c056069d858bd1"}, + {file = "httpx-0.29.0.tar.gz", hash = "sha256:700928ee6c1f4213795e67c47eba8f8553639069fea89199f71d654e38edc593"}, ] [package.dependencies] @@ -541,7 +541,7 @@ idna = "*" [package.extras] brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""] -cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] +cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<15)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] zstd = ["zstandard (>=0.18.0)"] @@ -831,26 +831,26 @@ 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" groups = ["dev"] 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]] name = "packaging" -version = "26.3" +version = "26.4" description = "Core utilities for Python packages" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c"}, - {file = "packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79"}, + {file = "packaging-26.4-py3-none-any.whl", hash = "sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2"}, + {file = "packaging-26.4.tar.gz", hash = "sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a"}, ] [[package]] @@ -1016,19 +1016,19 @@ files = [ [[package]] name = "pydantic" -version = "2.14.1" +version = "2.14.4" description = "Data validation using Python type hints" optional = false python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454"}, - {file = "pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26"}, + {file = "pydantic-2.14.4-py3-none-any.whl", hash = "sha256:653a2ad9f6d8858529c77c72717d0ea991d6c6837fe683246b2f4b2bbfc3fadc"}, + {file = "pydantic-2.14.4.tar.gz", hash = "sha256:7c19f1d46f8accf55a4617a6116e1ade64840870f397b846a2c53fb9019414ba"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.50.1" +pydantic-core = "2.50.5" typing-extensions = ">=4.16.0" typing-inspection = ">=0.4.4" @@ -1038,149 +1038,152 @@ timezone = ["tzdata ; platform_system == \"Windows\""] [[package]] name = "pydantic-core" -version = "2.50.1" +version = "2.50.5" description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic_core-2.50.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:b281a3b0f0822618fe5e3e0d8a2048b6356b14388505dc9374ccffeb69989713"}, - {file = "pydantic_core-2.50.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1fa4c8bc12c1354c5550c0c35c1852c8c1901e89e06561724e03f8d0342e1f87"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3aa9de446b793de2beb6fa2d9d0961803126c4e2a99c2f25ab59b9fd6ea125c0"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:de531ce1e2a3364e8767878b58f4ff728a434b4fde089781fe30b1e08e2396e0"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a7c58106de36ac6a56314182958de20db8d3a29dfd5db527192cc754e4f8e7fb"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8b4c3df25bd323bf1d36a648d563cf1fc69d717451569927151bdad7cad07a77"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f77ac30b19221cd9bd3fcfa3d4614eff93140d0572ab730cded17b64adca05f3"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:d939de9c82e2126f7f48a7e658f8a85ed46d57662d53f44c49b8895fe94a3eb7"}, - {file = "pydantic_core-2.50.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:30ddf019d082c117b5d309e5b86710c2a78909907ec1a9381feec3eec02eca0b"}, - {file = "pydantic_core-2.50.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:2ab756b72bd5054e4c7ef3ded331b35786cbd3cf931531a508f79a9537517064"}, - {file = "pydantic_core-2.50.1-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:b087b1c5be7ac687cf22eabfe4b6b608d40df23610651e93611e1f49118baf84"}, - {file = "pydantic_core-2.50.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a44101320cfe99432db74237545a63057dc7a88dfe792cbcad0647f2af56cb81"}, - {file = "pydantic_core-2.50.1-cp310-cp310-win32.whl", hash = "sha256:a4aaaa791bdae1c972a7e81765f4f3571c926b8e0b9b6e47346499fb80079665"}, - {file = "pydantic_core-2.50.1-cp310-cp310-win_amd64.whl", hash = "sha256:2eedf82ee4753cdab8e50044c6bd569577eebc3859b11fecf4eb9223761ff966"}, - {file = "pydantic_core-2.50.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:c531166c42ea7bdfecc8c50049581f05dd1993b09cc7c52bb36a14e96deaec7d"}, - {file = "pydantic_core-2.50.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b6d0c2183008c188e19f4906d426b293bdc4f67ab17df8e180fe16cda208fa71"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94be440c03fede26969a5ce75468e0e6a9927a1b46d9b679ee8adc1b057b0350"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:36c426eac0af8d1529ff8467e612b933346caec1fdc0d774f78f67a1a11e16c1"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:028e2f212273d4a39b1ec1e0de8166b1165a65fc0f1111452a9d94fc7c625c63"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e6f0cc1bb9900dc558960894adeb30b0c083366fc1d69b856209fb2ca5c36fe5"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8812592c85d0edf423f10eadcef42716d71e8219085ad9e85b775057b7306133"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:bbce99252ba3167b2b6277f1829d5bf4b43b754524bddf7f944707c3db7d2253"}, - {file = "pydantic_core-2.50.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:476f6ed8e43cd1e0b460920e23571700872b284e77331cb30c4faf459cf48a4b"}, - {file = "pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:2cbd1b75b09e976ed0d6b6ca297675632ca35df86130088457cdc60ef36970ae"}, - {file = "pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:5958c72adb417c39b12ac87525ac60b0d73315fcdc59e21f44ee4a5e2512c9ef"}, - {file = "pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d8f9e8a6c4ab04b78d61f78627370d834eb004b2869dcb28cfffa647b4ea1980"}, - {file = "pydantic_core-2.50.1-cp311-cp311-win32.whl", hash = "sha256:4be846f55c9477f5f3ddde8f2ce941137e16862a56d018ed885d422bb6ae02f2"}, - {file = "pydantic_core-2.50.1-cp311-cp311-win_amd64.whl", hash = "sha256:0048b6dddc8ef4b64fccaad878bd143b0c3882ea9936279dc11d613f6b7dd1bc"}, - {file = "pydantic_core-2.50.1-cp311-cp311-win_arm64.whl", hash = "sha256:6a733778df2f7087ec1100ed0b41533e4f3001976e99570fa34f57c66e7f8e3e"}, - {file = "pydantic_core-2.50.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:704075d10b74f2f3c6e15407c696d88701df35fc8953f434a431add0d0074db0"}, - {file = "pydantic_core-2.50.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e8e1d6ce820aa23317e8209a86bd65a540973c12dc7552b48a4f6c8e9926815e"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c18db21573bd2c6489f9a544b7499f0df2853958c568e5e783536ee1f690af41"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cb57f304525a5e3c13333b772bf9a473f36326e9c821b2e8e1b2fd36f80ae2c3"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a27c09d86600f1bf2fe3f37e1ae697faf3143931c09322cd799da94deee923b5"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:46b3301d3b5c886f77de7546e47274a5842c622ea2020b8c6524c6b66913b4a6"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93ba4e9d8210d941c200431a56b2c0400b131865947903937ed3ec5404307d2e"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:e5faeaee74a57d32b3ab3aebad2e348f06d3ba946fc5d28c1728455f00a3d13a"}, - {file = "pydantic_core-2.50.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a3cda0e538208e5d722bbf3698b24f19c0a7d05bc8d5f8a7f9b121ea7fa243d9"}, - {file = "pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:57f51b31ff826e2859120cf4737c5a758a48d96f3e97da40ccee1796d58078ff"}, - {file = "pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8daa7ee75245d43ad7d747e5c9ecc1b1d06552f72b14887e9276f787d57375f4"}, - {file = "pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:acbf31f37c53a5ac0c34706c80b4f5107ba20b05fdd3816124bf236ef0c57dd2"}, - {file = "pydantic_core-2.50.1-cp312-cp312-win32.whl", hash = "sha256:45b11cac094aa25725581d9304eee93c9028516b9ea80dd9e175e13a5a2c840e"}, - {file = "pydantic_core-2.50.1-cp312-cp312-win_amd64.whl", hash = "sha256:132529c83901437ff642f585216831bf5fd7a91df66829907e155192ead62498"}, - {file = "pydantic_core-2.50.1-cp312-cp312-win_arm64.whl", hash = "sha256:4e834f6a8e4ff772dcc34f58ef5504147a3ea5b0f4eeb13b0f8eb2ca75ac57f1"}, - {file = "pydantic_core-2.50.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:d5e062c01286d861fd6a1c4ff6e063547b3e713067f2df033c0ff97ac2ca006b"}, - {file = "pydantic_core-2.50.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0c003c3b7f49debb893d2d85ae099ac5959c9839e2f330fadb1fcdf7a6594482"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:409e0ea40ec30d9158f33574fd758e689f6045a0f2596701828c27816ca9687d"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:131059670f1d2444269b8585cb888963994871932447c08b39ac6a51fcfef658"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dbcbee53bf17196a7f745aa9bf5a9603953a1e365b1f020be3207c676a3e7c4"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:325c23f3e35cfbf0fe3486fa5f7260d1e45885173002d30a28ca019994124255"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17e722e156d0444ecaefbe640bdb60928752bf2013e2b7a11cdb099aaae19bec"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:aa8224f10880d9bf1b5993988ba153d42a8b4f3f4f511f93b1f09c93ff613c72"}, - {file = "pydantic_core-2.50.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:41bc8237121bd8dc8d888dfd6279fc166ffc88c1f1bf3a8bf00869680533ca4c"}, - {file = "pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:45c6266d071c241f2a168d45bf8c54344f0effce35e7e6b73afdec11f3687568"}, - {file = "pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:1deeacb112d14d3f4fcb16b165f7dbaf76c70ba6e82f37ba042bdab51970a0b8"}, - {file = "pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:1c96fd793b73d1b92e65570132505498fe7b21eaef73cdf74e67e5dfba7ac9e4"}, - {file = "pydantic_core-2.50.1-cp313-cp313-win32.whl", hash = "sha256:06ead20d39ffd6f2f6f2a8f8a6de67ff8bb1b4f14a8a30e058502514ee2ac685"}, - {file = "pydantic_core-2.50.1-cp313-cp313-win_amd64.whl", hash = "sha256:7816e98acc08119dc0f340ab167048ecc54126316330c1f0caf7c6756c88e28f"}, - {file = "pydantic_core-2.50.1-cp313-cp313-win_arm64.whl", hash = "sha256:c17799a62c142d61b8a3c51752a7cbc87fe2ad4ccfab10e628a77b405075c662"}, - {file = "pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a"}, - {file = "pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e"}, - {file = "pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20"}, - {file = "pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc"}, - {file = "pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396"}, - {file = "pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb"}, - {file = "pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5"}, - {file = "pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2"}, - {file = "pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f"}, - {file = "pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c"}, - {file = "pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86"}, - {file = "pydantic_core-2.50.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:8a6791afa2245e6c6b180122d105941644f5bd410bb18623b408808cc41a3102"}, - {file = "pydantic_core-2.50.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:84f34323a61a365b4e9295de6028474754829aaddd59c7bf1a040e7487ef8f3c"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23edad659e8dbd8ca7e4e877fe6c81573abbdf215bd25a68b53e1272f58b80c7"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a5fce22f1e87d181e924e12da7d81cfe031fb3881a5ddf26ad28f141756ca43"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c73622ef819328873b53109ee4f77ceb598bffedd02daf916102be3228866b78"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce8c25ca38cc0e3d7753ba180808de2c0c8cb24eae0df64491e40921454e9831"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7689580e72a642ab5ec64d5f55b2e33636fa43b4ebe63c0c2c965ef307c7d1aa"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d5c0e32fdbce7f1e8ef4d11f655694bf5f4175c757a9f1dc2be09b8864e5bcf5"}, - {file = "pydantic_core-2.50.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40f523349960fa30f3ea51404308ff50f9997a90df639590f47a057c1f32b415"}, - {file = "pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:d4193206b6587047437f6f11d7e776df23e1c1e23af2a54d9347275614791e10"}, - {file = "pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:84bc765b282a9d5b7fe0348b8648904f25a6a04b2139da52b1dd30c8ac3a2c8f"}, - {file = "pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:ed1e728b39a383c81035b2459cfcb35d99dfb01f7d6ebe3a913bc1cc5b81e459"}, - {file = "pydantic_core-2.50.1-cp315-cp315-win32.whl", hash = "sha256:bc94f474417604bd383d2cd445d071b07dd55fedceed3ce33407bf1fcc107290"}, - {file = "pydantic_core-2.50.1-cp315-cp315-win_amd64.whl", hash = "sha256:983a662de2571cb2502fc8ff47b6770b03d025d2eb314c92f77b3f07c74720ed"}, - {file = "pydantic_core-2.50.1-cp315-cp315-win_arm64.whl", hash = "sha256:94845ff54dc5193f228cab81b2662a04bfbb892e95bdc15edf7399000ce57d54"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:4a53d13cdfbedbfa87f08b83c1a0a5efcc767d785a4b41934fa9cb672670493a"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:efbecf43d321f7b9281441f1f213f7c21c66988b0e06c2730ba13ed47a46bb08"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc1f08f68dac9f9e83845a8039880aba2ab553eb9b2259c3243a313182c253fe"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5dfe41f232befddb9c4377f6cfc702b51595e2d78ed082672adf8758d2c4619f"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adc06d218a1cadfd2ec4628424d7d79ce4eba69c2965e7e7b55106f0da5208c8"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cf91809d0721ab81592ba67bea7694821679c10b1a2e3c3460082b286c1918a"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23923ab9292c40da026330b1ecf4dc2618c8e86e0422e5d1fbf50d94d64ca4f8"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:f3377c8c2b3ce898423c5e5dd94c7982e30aa7717a7e6ab2470b9de364963709"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:455a773617b5913bf5c20d0692e5787b119e52c4d40ea644ca31f5758fd31be2"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:1a9006395dece0e32e704c315eff8a00bede494f6108546cfc5539c89fef4f9a"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d2d82aa62521c55ddfb000ae70f88cdd8de974078f6024e821dfe5addd0c818f"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:009634b83993777ddcd69cad0ffcace43dabde692109528e35f0fde91e386a8b"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-win32.whl", hash = "sha256:3fde4fdc6487a58d944ca87cf5adc95d5f266e872c19599f5f4c0a8a1b1f9f9f"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-win_amd64.whl", hash = "sha256:1c8632d4ac04e6f91128fca584b3a8a507d81604c24eeaaad00d4be42765c32b"}, - {file = "pydantic_core-2.50.1-cp315-cp315t-win_arm64.whl", hash = "sha256:c3ede305158e75510be50869b319550ab072008c13d64d4ab1e094fb286b6f44"}, - {file = "pydantic_core-2.50.1-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:062e891facce5ca296a1c37098e5e466780457f86413894b399f0cf22934f769"}, - {file = "pydantic_core-2.50.1-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:49c2cbb2397fe4d0987e84606e691af6cb87bc0ee1bd3e7b737f7e10b4c142f9"}, - {file = "pydantic_core-2.50.1-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9e4472072de0137ee0d8e72d6620e85939c271d2f90f6bbb4b15c24638b79f92"}, - {file = "pydantic_core-2.50.1-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ed4f3cef55164b026fefb41341b7754cc6b624c75dfe7142d2ecceb5ad21c87"}, - {file = "pydantic_core-2.50.1-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:76e2e83fa6ec8cdc972d438dafc2522b3a47bee4ec0ae668b29cfb1977ab5242"}, - {file = "pydantic_core-2.50.1-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:a51eee75939cf811ac09b278745a6cee7dc873ccfbc8b9af3cc88fe4b7ce25b5"}, - {file = "pydantic_core-2.50.1-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae28183297fb0d2b8dc46a1f01d51f5e45825fc5afe76a835a6cb7fb34821295"}, - {file = "pydantic_core-2.50.1-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88e492e8b9d0312e7dc13667c30222abf284dc3b79b5302b3607b41a5784ce61"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7456d699b13954e9c0164dcb267250a10ae0dfb03e6e26d6796ab0d46e189c84"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:b0d955195bbbe489ad343fcc956eacea9357b79cb22192c66cacdefcbc14b32f"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f2c634642694e6a0dad2ab1d375589fa671fd442edd5caf7d9737b8f6ca22906"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ee6db2fbed51a7991302e8fac498cd67e336246026d0dfa84cf5166ce1412760"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:79490e33c4c0fcb933bbbcfc3a62184d8803b99f535863dfbb925e1bcb6945ad"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:48569b0ade9edfbe065cad1d700175546592aebbb42f02adcebcc26e75b896fe"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:5f3cae32fc46121f787cb2486de9cf95a8bf72aec5cc78f64c606fa1735a6ef5"}, - {file = "pydantic_core-2.50.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:7f476456ac2bb0d937f75191494a09c83a30765fea4f70f3b404942fe25f6cdf"}, - {file = "pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09"}, + {file = "pydantic_core-2.50.5-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:302517f9f5589e07ead02d38fbb443947a211461b39b18f46948b20941fa8d98"}, + {file = "pydantic_core-2.50.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:55e0d60384a9b14641749d2ba6721f82409248288f066b95d555c6dd484273d2"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:93a10c0b967c0dc6c2253d3a82b9117d2a841b8e344c637edc0a14220852b115"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:252ce30d79b47954cc3a49f8a0d812ac24a356627391fcec90a68733c755707e"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:5da0e7da9d7cdc39df85d1b927b77d40218cf40acbfc523048c95ce44d33abb9"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:bb103c150e1a0f1b8b2710a66ce1f741c7922b22ef07a290aea0e6cf702d8bbf"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6e01a2033691ea2cbd91e499d6b6573f446dc926ccdfc670ed576991cef85cdb"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:92c0ebab606f982730aaaa741a30cd5e0f68dc7c005a5baa9b332fc182232c61"}, + {file = "pydantic_core-2.50.5-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:706c75cd9f8bd1798367f463ea81df52eff5fb2e4c4ef83997dd4ae538adc109"}, + {file = "pydantic_core-2.50.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:d84b427c6badf48adc2586be1dc5c8677fc2f22a09da50e5d3f342d3daf3b2b4"}, + {file = "pydantic_core-2.50.5-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:5eafde2cd1d97b7f60efc423d8504b22defd9d2fb9c4a358ffd1230e5fe65311"}, + {file = "pydantic_core-2.50.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:dc5717ed8981efdbbafc15a2533a690703cf80e96b886a158c61c9ec9bafcc28"}, + {file = "pydantic_core-2.50.5-cp310-cp310-win32.whl", hash = "sha256:15124b48e0acb6d24664690e052d50be51901286886bc124090960f1df869f30"}, + {file = "pydantic_core-2.50.5-cp310-cp310-win_amd64.whl", hash = "sha256:b7e6a76b77513cd633a08addfda8409623ad884a4d91ee3664fb05cf094b2c35"}, + {file = "pydantic_core-2.50.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:bcc830e4f48499fd30a870f07c30752273ae2ddccce34d65d51c9fc880c380ab"}, + {file = "pydantic_core-2.50.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:40d5da89a632e6c6c938f93fdf54c534882d258a80f51ccfe1650cdedc12e82c"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:f7509c6f8a0f9d9eac58340dd567f0eb71ce2f762df09f0d51280e30da3fe687"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ba2b34529984a8e3cb1bc62a7687617722695a2cb4e57958de32a0eba128a07a"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:f8dc2008577c5e02eaa1eb3fbfa8fe0eba9af27ff6a740e9f1dae6661e88efcb"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4dcf7b2cdfb9c59c1d377de318f3c8462121f32db939299999484ea0b1eadf18"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:ed4a01922af0d41b2a3b9433818cbb73b6b28e8dea344c90917c1fdcceb9960f"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:488319076ec92908b91fc6265ce761f1d78748f69f85518564fd16bf333e1b70"}, + {file = "pydantic_core-2.50.5-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:50d12ba7cab98b355ba65d65655e969f66934ab7a3d2d0c8abd61ae2282efce5"}, + {file = "pydantic_core-2.50.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:be4615d4b5f90c65dce2295dcf32eff7f05ea5d0d3a82421c03c572785cb9bf8"}, + {file = "pydantic_core-2.50.5-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:65b0f52abcd06dbb53961db9cc3610929f4f6518c3726d965a9babdaf7bd79c9"}, + {file = "pydantic_core-2.50.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:05815bbe2c7bec58d1ce456cc0a98f368e6ef9345b1d9311f42b814d34ad7086"}, + {file = "pydantic_core-2.50.5-cp311-cp311-win32.whl", hash = "sha256:e65f78eb3d930ac30ff3557fc74a0771300096fb002f588a6fe8d946e83f14ad"}, + {file = "pydantic_core-2.50.5-cp311-cp311-win_amd64.whl", hash = "sha256:d4ebf349b1b60049e80df5d9ea6725b1b7e434a7d006474b0f664fa72a6b3c75"}, + {file = "pydantic_core-2.50.5-cp311-cp311-win_arm64.whl", hash = "sha256:736782cfbca37b4d81e6f3c7a3414de25db045dcdb7a05e55b64191a33c5ac45"}, + {file = "pydantic_core-2.50.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:24d23de96195ff9637e5940a7fbde3bea6a355b26fb5f491737dd803aa5d5a93"}, + {file = "pydantic_core-2.50.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9bcf23628860d5a90cacdc188ee3b7d0547a38eb985214f03e7002a6ca0e558"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:30988977d38909df645183a9869a9d12211485639ac4757de18585f0ccb6f3dc"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:07a62d44515d674d750cfd86b7ce1dd93111be870f378d7c27b37aeb78d0cb4a"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:7dfc0431e94659ae8449303ca4fb1588dc1e00282d6636d00d72bb4bd6459b4d"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:004c784d4642bd1112a9fa9a022543aa17793fd32004f7e903ee97df2086bad4"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:fa66340c6d3e08a276803812e7665312dfc75dd24eedfa8e09f18a0f8e3e0e8f"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:470bbc2495367f60d3ca849a8039e4c164701d10637e7743f4427d92651bdb6d"}, + {file = "pydantic_core-2.50.5-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:43a6eaee9eeac4a54f2ff6567e1b0ec51651b37a40d862cab2e6fd16109e6528"}, + {file = "pydantic_core-2.50.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b66f2434c895652ac21c030d5a3a92c7811f0f9b98af41bf35be899c2d34aa4c"}, + {file = "pydantic_core-2.50.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:2cb80e0323b31d4669c4d72a466d99c885e13deb06205aa079ea6594e7ad1ef8"}, + {file = "pydantic_core-2.50.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:3cf575867ecaf89aca440e5a4253d2facf1ca37bab30a4e8c205ec611228126a"}, + {file = "pydantic_core-2.50.5-cp312-cp312-win32.whl", hash = "sha256:57d4350167130c9c136b7efa35e6e7ee9539779698755b01007834d32c7a1f7d"}, + {file = "pydantic_core-2.50.5-cp312-cp312-win_amd64.whl", hash = "sha256:baa107902f8e38011a5f79836d905eb6bfaac1d4b0bd09fc86509b711d0b09c8"}, + {file = "pydantic_core-2.50.5-cp312-cp312-win_arm64.whl", hash = "sha256:2d785ae9ff0ac485567f27f4fc53712268916e04be4a590160e5bf55b096225a"}, + {file = "pydantic_core-2.50.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:e5d5d77a9446f44688a5ef420d92c9facac0865ef5565215db54be184ab7906f"}, + {file = "pydantic_core-2.50.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:639a51931869c0594d8723b2f529c547db1aa33dc9571d001dc205d896170c08"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:c69eb2e09d2830949e6e8f395d4eb8c714ba083213ccff64932ded681fe69a4e"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8bbe282e79dc71b24ba7be284eacf27c8ddff8f26911e2030a0dd123c6aed326"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:43917f090dfda561575a72f75814f76a0680964b70d7b44c84e44d217bdeade7"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:93ee3b4f9c64fb1c39892413c4196d0a84790a7e0e5d72b463882c432c1ffafe"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:57b79401d870c9df395799c596d81875b647ecf3030129d86659a54f6bfcc0db"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cbfde3ad127786f1dea1a6cd89a5eb824a16203f24743ad2b4e07506f43bc844"}, + {file = "pydantic_core-2.50.5-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:1793ec63c8f247131aa4dfc8c4da645b9c5872cf26b53ce240f143f59ad116e4"}, + {file = "pydantic_core-2.50.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:5027c263fbceb821cfb4b385d36d485e19efca1d9adcc4e5bec69c04ca3cdc83"}, + {file = "pydantic_core-2.50.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:dac78f91e263c4c9a4d587b9d97b3b5b2561293b33247452cc3cfe5b500e8cfb"}, + {file = "pydantic_core-2.50.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:b9348cfd798b8199d34da5258becf2fc8f5e4e7a3b51da30c34b81b996a07b34"}, + {file = "pydantic_core-2.50.5-cp313-cp313-win32.whl", hash = "sha256:22f5f0c37251611191a55e801a5150aa21f348fa10eac8eac9fa43c29937a7b1"}, + {file = "pydantic_core-2.50.5-cp313-cp313-win_amd64.whl", hash = "sha256:d34c0d4dd4a318f2be788a60a972c3a1ed5da0155a7c06d6dd810dc5d60ad704"}, + {file = "pydantic_core-2.50.5-cp313-cp313-win_arm64.whl", hash = "sha256:cbec4aad328be58961c738b83fc2c7bd993242d2366f949d914e8c09266dee0e"}, + {file = "pydantic_core-2.50.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:00598ae680c6e4a17cda01910e49c0da8ce15610505e6c57cec3f15d83daef88"}, + {file = "pydantic_core-2.50.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e8fe516a4b3b06e4ff83b9adee4a786d28a617e5fb5fe90bda49fb6f52a5ac19"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:63a0ba0d7ccf37c8c724bb7ed13c3aa0aa4c743f4f5f376c92c47e584844c7b1"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:27bc22dc8d50335bc62296261a7dc4c2572149910ba7c274ef0f945b5be0d570"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:2f6a8c9b8647378c0dc128805e6b98da39d36019a0e7cac134badeaedb14f849"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:feb8c87dbc4684777ddafbf37c922d9e2748272ba61e362ebf85db73ebda6234"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:e0a7ae307b4e1eff195cd23a757da07f70a115e45175039caf5f3979a20c7edb"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:88b543705849d0c59343f97c38296dbf59eb7b3c9565bd4fe1ed638ba38da5ed"}, + {file = "pydantic_core-2.50.5-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:4ae5c9f84dfa43643d10328a212f709c7602c5e70df376d217ae5770d374ccd9"}, + {file = "pydantic_core-2.50.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:922455cc5baddb0f2c82b7ba649e57e89183442b32fe512670db6ebb9b66b251"}, + {file = "pydantic_core-2.50.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:aa69eaeed433cfe5de809fb84c95536a5aed991b28290d0db059fe6766c69274"}, + {file = "pydantic_core-2.50.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:9f2bf218dbc93363fe3e31cc53d36db8d6ff4122179406bec05f33bb79c0e2c1"}, + {file = "pydantic_core-2.50.5-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:b2910ec0fa5aeb9bef70156f2b79f4783978fdcfaa7b2f1b5d1814458d2e79a1"}, + {file = "pydantic_core-2.50.5-cp314-cp314-win32.whl", hash = "sha256:1deb966176b1b66be4281c83f10a0b6b1cecedeb25f53ee894bf27b22376facd"}, + {file = "pydantic_core-2.50.5-cp314-cp314-win_amd64.whl", hash = "sha256:887424ba7c2145e97f131bc2cc73383a8c464d7bcd56eb98bbd941afb6868b95"}, + {file = "pydantic_core-2.50.5-cp314-cp314-win_arm64.whl", hash = "sha256:e7dd59f498ef42077f22db607571249db41997227018cb84644ba0059f8b5719"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:372f4ab3e67b2387871950cfa27d94d644c3475e650836ea52e25c2e4fbd7975"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0c9f0002e4ec37db931e4ee8b7dafab2c7288ef66354e74fe16484e60eac6616"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:d16cb794449c2bc0e5cb0ab0022813419bf5283266f2a7ff1fc54e5c6e27dcee"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:71633f82d51d4796a48026bd6eca5ec83e4a0edbe6187d59bbc45ace1111ebae"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:f20c692c599ebac7f04f3a0102b969f3f9d6667ffe1e72629fc7fbf8b6375234"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:2f0a86887c644247eff4cc7b9e609042a49833dcd72f84574e7b8beea89729ab"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:655d0cc2ddbc3fb1f4f8a8e3724552ee2ba6b8561289e9e6e06186982b27bceb"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1d53befcfd415bd9212e685372c825e62f29b83820db78512c9d3659f13d29e9"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:5f33c92da4aa5714fb6fcb086358274598e8ff62b6607afd132a38657aa64f02"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3129b52ee2861d0270db8bd140fc9b53ee9821247ca47fda2613a899ce9a1ea3"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:041f4730fa7a8bf975e88436d439bdc72f3f16e584a470ffbe47392628d99de6"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:48b5deaaee4f1b99603173cd291127523e43ee9f51db58c7ff98d16dc5c6fc93"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-win32.whl", hash = "sha256:8c7244134b93ce028e9166c1b5d3e4537349307ccf3e65d746b4c6b1bbed8c89"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-win_amd64.whl", hash = "sha256:159f6bc1b616e0ca0938eb568d87ca03c633d6f06306ac47b9c3e5dd8c14d39a"}, + {file = "pydantic_core-2.50.5-cp314-cp314t-win_arm64.whl", hash = "sha256:5274f8314ce3be1df07ae8ebceeb97a73b8409d842fd7677c5d0a85a68793ec1"}, + {file = "pydantic_core-2.50.5-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:c4c4313dc66f45822b3d7f39aa74e59e7987cf7572b3309005b26d956a0098a9"}, + {file = "pydantic_core-2.50.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:e93587aaa5660536b9188686e8fe0544b577ec57d896d424b5b2118b151a6845"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:0a7d599d0c5afbab98c0e4441f5b76163c6fcfd2ecf73dd6418e468a7ac452b8"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:568e928322f0b6b94671fc1a4dbc867627af74695b0c060ac6d4f25b6a7425d8"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:bdafd6b05bf012772b7d7325a98d26f19b7918e21dabdd5970c885262245aae3"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:008de9d97f2b0c8e596fb5d93d49b63be158e8be5ac35856903b338cbcfd21f3"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:f8fd7e9c44bb4c9214d41c3bef79cba5a513b29c3bcbfdaaf0440ca6f5fb65ea"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0d6e614776c8c99495dcfc6ce8f826277fb4388a5e5cbee23c199cbe39e6dcb3"}, + {file = "pydantic_core-2.50.5-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:bcd9d9b38e61dfd43e00f621ce00da2ffed35047fad532c4afcadf4f9ca0d672"}, + {file = "pydantic_core-2.50.5-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:4888829471cd8d85c096ef0e1f41a066c7d76e88309a4fbff4069f70d07673be"}, + {file = "pydantic_core-2.50.5-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:ad0e0221deec2a2385300d76b9259da7036c0ed784502c154ae237dafd67605f"}, + {file = "pydantic_core-2.50.5-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:20337f547d79911457cd4739bb6699213a53089f946af87633a48fad3f74f5e1"}, + {file = "pydantic_core-2.50.5-cp315-cp315-win32.whl", hash = "sha256:09c732c097816c89d46ddb70f89d72e853e3a1bbac6475961c60a88aad9fe612"}, + {file = "pydantic_core-2.50.5-cp315-cp315-win_amd64.whl", hash = "sha256:0d4edc3350e21e0ef773ef9395227ca072832f05e484cadcf4d8663b63a231c0"}, + {file = "pydantic_core-2.50.5-cp315-cp315-win_arm64.whl", hash = "sha256:af453c0c20372ca8acf3c46de2a89b242491853dc61d0171ba24608d33310e09"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:9e255e7c32d9c2f396d3daa833e7d8d701eec7bf8e13ca092b4b83ce7d9487fd"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:c334b8759496f9e597b68e1309b2fb3d824fd24a29e562afa86b61005eb9d54d"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:90dabbf4f38f37de1663ce932d37c6f694a005f6470ae2f0d97755d9e3f90ffd"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5ec2e8caf5eadea7be683fc7025d60563e920f1f52fe18ae46c49558e67b8cd0"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:44e6c35bf3a9b6785db0c083df8a6929343f9c8fc27186991d21653242c77c19"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f33be114a0ee27870cffd31057ed60bf5a0cd522dcbdc1dda0bdad70f8302cb0"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:12178e58af383bd4c32b2fe141188bc7e540c5eb33ad550856fa5863b4c31bd5"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:679f15dd3bd2a82bde350ec8c94c0f8f05f05dba39fb3464cd4136a724da9844"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:11806d9b4888f1645d74fc24237f21dad559b42fb8930481b3df414997be6ee5"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:b43115385de7db83bd2fe7a08dea8580bce3acc3f54200c4f4fe32a4a49688d4"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:86bd5aad5ccbaced98139d08b4314f253c086897830f4bcf9c1d1f02f740683d"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:90ff55049623eccbfa997332e2b91358dc2c4c30ca6e664b45438723cbe181df"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-win32.whl", hash = "sha256:7c3faea08d44b4a7b57b30f1113e6404e6aa62a4f3489a22359fb27d6003d8b1"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-win_amd64.whl", hash = "sha256:b2b64d3204f9c33f03ed3111eb754902ea76ca5aa61ab4b2bdf9f767a4a1f279"}, + {file = "pydantic_core-2.50.5-cp315-cp315t-win_arm64.whl", hash = "sha256:8ba2dcbeea0ab8836e804c54e905075125c702cf78e592d998eecf2764b64144"}, + {file = "pydantic_core-2.50.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:68334f281460fb2a85bbb9e2545438bf2fd2c9a166823a60b84541a3c8f2d2e0"}, + {file = "pydantic_core-2.50.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:851a78a30265bb203186fd0e19712c1a4431083eb5a1e1715f758a029cd8aa6e"}, + {file = "pydantic_core-2.50.5-graalpy312-graalpy250_312_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:47f4d79fe4876feace216a5b2263c40d792476b4a6508c38d66a2facd3f1f4cc"}, + {file = "pydantic_core-2.50.5-graalpy312-graalpy250_312_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:98b92dad690e6578cc0b504eda53d53adaa4f34bd09c97a547a957e419544eb7"}, + {file = "pydantic_core-2.50.5-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:d7826407ed74ff8e6cc6e6df7ffbf180e9b449ab1516f28eb5f6e2a489bc5129"}, + {file = "pydantic_core-2.50.5-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c415a8da7c89a3dd32d988a9117bf0a52371769b77b0943bcfd50b281ecefb8d"}, + {file = "pydantic_core-2.50.5-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ea7429e3adb2f2fd81e2d6e8942e5c1cd760a6e6be5b7574d2ee5499b5e19e67"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ea215f7f5d2df866e3b5448c0bbb4a35285086ac6ab18687796704cbd5f2c5a3"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:4ac243e358837f62d085f07b98625fa3831abdb28e8f77196934345bbff0fb0b"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:d3ada66d0601feeeba504a6daac73e47ed164357e46930366f135c4121594d53"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0dd037d96e98f6db8b69a44ab7d5c20a07fb0a2051775746a9e1b5fc8f52867f"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3f800fc0f304f3b0e09d07d4287f9f0bc9bfe5319d1d7cabeaf265737c516083"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:a5f6622451fa3cd71c8ff15df24307cb3f8b5dc35a723de281646c34872d7179"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:2f5f29ff80ce0cf93102198cddebdbb3411881de177359c770e5c9c99495a6b3"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:6a069ceeca397bd8da2e8ef6383595c63ea17de37d5f2d5cde729bdc0dfe6774"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp80-macosx_10_12_x86_64.whl", hash = "sha256:e8faa73de2e9231f604cfa44c471d0986e7e9c45129d7888839a34196e46a7df"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:ef461e9299ae665fab67c6f054847178b8fd510da10b4ef745a074b922efbf0a"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl", hash = "sha256:1f22c36d952f33bac936273ca0be115693a1d7c1c9496ca7d699e6a338656d6e"}, + {file = "pydantic_core-2.50.5-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:b6f48c4bf1c77ace644b125f168418438fbc9b8e4c3b290915cc7d055d83c8b1"}, + {file = "pydantic_core-2.50.5.tar.gz", hash = "sha256:1e740886083ff95530d694e6a3f09ed914bcf92a496d16acd307c6c3484fc36d"}, ] [package.dependencies] @@ -1203,43 +1206,43 @@ windows-terminal = ["colorama (>=0.4.6)"] [[package]] name = "pytest" -version = "9.1.1" +version = "9.2.0" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c"}, - {file = "pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313"}, + {file = "pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588"}, + {file = "pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b"}, ] [package.dependencies] colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} -iniconfig = ">=1.0.1" -packaging = ">=22" -pluggy = ">=1.5,<2" -pygments = ">=2.7.2" -tomli = {version = ">=1", markers = "python_version < \"3.11\""} +iniconfig = ">=2" +packaging = ">=24" +pluggy = ">=1.6,<2" +pygments = ">=2.15" +tomli = {version = ">=2", markers = "python_version < \"3.11\""} [package.extras] -dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"] +dev = ["argcomplete", "asynctest ; python_version < \"3.11\"", "attrs (>=23.1)", "coverage (>=7.5)", "hypothesis (>=6.75)", "mock", "numpy (>=1.26)", "pexpect (>=4.9)", "pytest-xdist (>=3.5)", "pyyaml", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-asyncio" -version = "1.4.1" +version = "1.5.0" description = "Pytest support for asyncio" optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pytest_asyncio-1.4.1-py3-none-any.whl", hash = "sha256:507afa78ec77c6661164ef1a2368bc7820383fd1a14b2a7f813de8b5a92949cc"}, - {file = "pytest_asyncio-1.4.1.tar.gz", hash = "sha256:e8266eb094e5ee9ffdb2068c9836f33e209ea77a970eb846933d416b5602669b"}, + {file = "pytest_asyncio-1.5.0-py3-none-any.whl", hash = "sha256:557f255ee03cc84f84a8d5f438bc9c6e0f714bf86970ae743c7ecb5a38d7e07d"}, + {file = "pytest_asyncio-1.5.0.tar.gz", hash = "sha256:92c8fa83ca419fd0d4bd6a34df6520dae435841d3733c319343249492adf37f7"}, ] [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] @@ -1400,14 +1403,14 @@ files = [ [[package]] name = "types-python-dateutil" -version = "2.9.0.20261021" +version = "2.9.0.20261122" description = "Typing stubs for python-dateutil" optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "types_python_dateutil-2.9.0.20261021-py3-none-any.whl", hash = "sha256:12aab3bdfe55e1d9de7f54301e025d6276ce17e6a08e31644f2202d59c8d1fca"}, - {file = "types_python_dateutil-2.9.0.20261021.tar.gz", hash = "sha256:62d66fcdd293e38745eae644e5da4cb399b98799c0ae61f03a54896fb51b3140"}, + {file = "types_python_dateutil-2.9.0.20261122-py3-none-any.whl", hash = "sha256:c2c257d7ce04f8ede622bb2452223461ee3016872f59d2351522723073e226ff"}, + {file = "types_python_dateutil-2.9.0.20261122.tar.gz", hash = "sha256:1db0012e9e63028891e36fd8a9f685dc4e8cf89353fbefcf6b1eb55538e9f7ed"}, ] [[package]] @@ -1424,14 +1427,14 @@ files = [ [[package]] name = "typing-inspection" -version = "0.4.4" +version = "0.4.5" description = "Runtime typing introspection tools" optional = false python-versions = ">=3.10" groups = ["main"] 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 446a862..e6d8c2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ license-files = ["LICENSE"] [tool.poetry] name = "speechify-api" -version = "5.0.0" +version = "5.0.1" description = "Official Speechify API SDK" readme = "README.md" authors = [ diff --git a/reference.md b/reference.md index b97d83d..45ae0cf 100644 --- a/reference.md +++ b/reference.md @@ -102,7 +102,7 @@ Please refer to the list of the supported languages and recommendations regardin **model:** `typing.Optional[GetSpeechRequestModel]` -Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. +Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -2237,6 +2237,251 @@ client.workspaces.get_entitlements() + + + + +
client.workspaces.get_balance() -> WorkspaceBalance +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Where the workspace's money stands, readable with an API key: the +credit new work can spend (`available_usd`), credit a past-due +invoice holds back (`held_usd`), the auto-recharge rule that tops +the balance up, and this calendar month's spend against the +workspace budget, in the same `monthly_spend`, `monthly_budget`, +`monthly_budget_status` and `monthly_budget_remaining` fields a +project reports. Poll it to show a balance in your own app or to warn +before a `402`; the `workspace.spend_budget.*` webhooks push the +budget crossings. Every amount is in US dollars, to the +micro-dollar. To see what the spend went on, by model, project or +API key, read `GET /v1/workspaces/current/usage`: its default window +totals to this `monthly_spend`. + +Requires an API key granted `billing:read` (or an unrestricted key). +A key pinned to a project is refused with `403`, as on every +workspace-level read, and so is a key whose owner may not view the +workspace's usage. A workspace with no billing account reads a zero +balance. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.workspaces.get_balance() + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.workspaces.get_usage_report(...) -> WorkspaceUsageReport +
+
+ +#### 📝 Description + +
+
+ +
+
+ +What the workspace's usage cost over a window, grouped by model, +project or API key, readable with an API key. Each group carries the +metered quantity in its product's unit and its cost in US dollars, +priced at the workspace's plan rates. +Use it to charge usage back to your own customers or to see what +moved the bill. The figures are informational: an invoice also +carries fees, credits and taxes this report does not. + +The window defaults to the calendar month (UTC) to date. For that +window `total_cost_usd` is the balance read's `monthly_spend` +(`GET /v1/workspaces/current/balance`) as of `as_of`, the same +figure the workspace budget is enforced on. +For any other window the total is the sum of its groups. A window may +start at most 100 days ago; an older `starting_at` is refused with +`400`. An `ending_at` later than now reads to now. + +Each group's cost is its share of the total in proportion to what the +usage rated at, rounded to the micro-dollar by largest remainder, so +the groups add up to `total_cost_usd` to the micro-dollar: round a +sum of them to 6 decimal places to match it exactly. When there is +nothing to apportion `monthly_spend` by (no usage rated yet, or a +credit among the groups), each group keeps what it rated at and the +total is their sum. A group is one `value` for one `product`: the +same model can appear once for `tts` and once for `calls`. + +Figures can be up to a minute old; `as_of` is when they were read. +Groups are ordered by `value`, the `null` group last, and paginate +with `cursor` while `has_more` is true. Every page of one walk reads +the figures and the window its first page read, even after the month +turns, so the pages add up to the total each carries; a cursor names +its window by itself, and a `group_by`, `starting_at` or `ending_at` +sent with it that names another window is refused with `400`. A +cursor stays usable for at least 15 minutes after `as_of`, after +which it is refused with `400` and the query must be repeated. + +Reading figures that are not cached asks the billing provider, so +each workspace may do so 12 times a minute; past that, or when every +workspace together reads too fast, the request is refused with `429` +and a `Retry-After` header. Repeating a query within a minute is +answered from cache and does not count. + +Requires an API key granted `billing:read` (or an unrestricted key). +A key pinned to a project is refused with `403`, as on every +workspace-level read, and so is a key whose owner may not view the +workspace's usage. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```python +from speechify import Speechify +from speechify.environment import SpeechifyEnvironment +import datetime + +client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, +) + +client.workspaces.get_usage_report( + group_by="model", + starting_at=datetime.datetime.fromisoformat("2026-11-01T00:00:00+00:00"), + ending_at=datetime.datetime.fromisoformat("2026-11-27T12:00:00+00:00"), +) + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**group_by:** `GetUsageReportWorkspacesRequestGroupBy` + +What to group usage by: `model` (the model id, such as +`simba-3.5`), `project_id` (the project's `proj_` id; usage in the +Default project groups as `null`) or `api_key_id` (the key's `key_` +id; usage made without an API key, such as from the console, +groups as `null`). + +
+
+ +
+
+ +**starting_at:** `typing.Optional[datetime.datetime]` + +Start of the window, inclusive, as an RFC 3339 timestamp; a date +alone (`2026-11-01`) reads as midnight UTC. Defaults to the start of +the calendar month (UTC) the window ends in. At most 100 days ago. + +
+
+ +
+
+ +**ending_at:** `typing.Optional[datetime.datetime]` + +End of the window, exclusive, in the same form as `starting_at`. +Defaults to now, and a later value reads to now. + +
+
+ +
+
+ +**cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ +**limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ +
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index 8c2bcf6..a7b114c 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -9,6 +9,7 @@ from .types import ( AudioOutputFormat, AudioStreamOutputFormat, + AutoRechargeStatusResponse, BillingEntitlements, BillingEntitlementsMaxLlmModelClass, ConsentChallenge, @@ -66,6 +67,13 @@ WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointDelivery, + WorkspaceBalance, + WorkspaceBalanceMonthlyBudgetStatus, + WorkspaceUsageGroup, + WorkspaceUsageGroupProduct, + WorkspaceUsageGroupUnit, + WorkspaceUsageReport, + WorkspaceUsageReportGroupBy, ) from .errors import ( BadGatewayError, @@ -120,6 +128,7 @@ from .projects import DeleteProjectRequestMode from .version import __version__ from .voices import CreateVoicesRequestGender, ListVoicesRequestGender, ListVoicesRequestType + from .workspaces import GetUsageReportWorkspacesRequestGroupBy _dynamic_imports: typing.Dict[str, str] = { "AsyncSpeechify": ".client", "AudioOutputFormat": ".types", @@ -127,6 +136,7 @@ "AudioStreamInputOutputFormat": ".audio", "AudioStreamInputSpeechMarks": ".audio", "AudioStreamOutputFormat": ".types", + "AutoRechargeStatusResponse": ".types", "BadGatewayError": ".errors", "BadRequestError": ".errors", "BillingEntitlements": ".types", @@ -151,6 +161,7 @@ "GetStreamOptionsRequest": ".types", "GetStreamRequest": ".types", "GetStreamRequestModel": ".types", + "GetUsageReportWorkspacesRequestGroupBy": ".workspaces", "GetVoice": ".types", "GetVoiceGender": ".types", "GetVoiceLanguage": ".types", @@ -231,6 +242,13 @@ "WebhookDeliveryStatus": ".types", "WebhookEndpoint": ".types", "WebhookEndpointDelivery": ".types", + "WorkspaceBalance": ".types", + "WorkspaceBalanceMonthlyBudgetStatus": ".types", + "WorkspaceUsageGroup": ".types", + "WorkspaceUsageGroupProduct": ".types", + "WorkspaceUsageGroupUnit": ".types", + "WorkspaceUsageReport": ".types", + "WorkspaceUsageReportGroupBy": ".types", "__version__": ".version", "audio": ".audio", "models": ".models", @@ -269,6 +287,7 @@ def __dir__(): "AudioStreamInputOutputFormat", "AudioStreamInputSpeechMarks", "AudioStreamOutputFormat", + "AutoRechargeStatusResponse", "BadGatewayError", "BadRequestError", "BillingEntitlements", @@ -293,6 +312,7 @@ def __dir__(): "GetStreamOptionsRequest", "GetStreamRequest", "GetStreamRequestModel", + "GetUsageReportWorkspacesRequestGroupBy", "GetVoice", "GetVoiceGender", "GetVoiceLanguage", @@ -373,6 +393,13 @@ def __dir__(): "WebhookDeliveryStatus", "WebhookEndpoint", "WebhookEndpointDelivery", + "WorkspaceBalance", + "WorkspaceBalanceMonthlyBudgetStatus", + "WorkspaceUsageGroup", + "WorkspaceUsageGroupProduct", + "WorkspaceUsageGroupUnit", + "WorkspaceUsageReport", + "WorkspaceUsageReportGroupBy", "__version__", "audio", "models", diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 37fd074..6703eb8 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -84,7 +84,7 @@ def speech( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetSpeechRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -117,7 +117,7 @@ def speech( client.audio.speech( audio_format="mp3", input="Hello! This is the Speechify text-to-speech API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) """ @@ -183,7 +183,7 @@ def stream( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -306,7 +306,7 @@ def stream_with_timestamps( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -348,7 +348,7 @@ def stream_with_timestamps( ) response = client.audio.stream_with_timestamps( input="Streaming long-form audio with the Speechify API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) for chunk in response: @@ -434,7 +434,7 @@ async def speech( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetSpeechRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -472,7 +472,7 @@ async def main() -> None: await client.audio.speech( audio_format="mp3", input="Hello! This is the Speechify text-to-speech API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) @@ -541,7 +541,7 @@ async def stream( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -673,7 +673,7 @@ async def stream_with_timestamps( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -720,7 +720,7 @@ async def stream_with_timestamps( async def main() -> None: response = client.audio.stream_with_timestamps( input="Streaming long-form audio with the Speechify API.", - model="simba-3.2", + model="simba-3.5", voice_id="geffen_32", ) async for chunk in response: diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 7fa2111..2e7fc54 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -88,7 +88,7 @@ def speech( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetSpeechRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -324,7 +324,7 @@ def stream( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -592,7 +592,7 @@ def stream_with_timestamps( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -865,7 +865,7 @@ async def speech( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetSpeechRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -1101,7 +1101,7 @@ async def stream( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. @@ -1370,7 +1370,7 @@ async def stream_with_timestamps( Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. model : typing.Optional[GetStreamRequestModel] - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. diff --git a/src/speechify/audio/types/session_pronunciations.py b/src/speechify/audio/types/session_pronunciations.py index 8d05af9..ebaa249 100644 --- a/src/speechify/audio/types/session_pronunciations.py +++ b/src/speechify/audio/types/session_pronunciations.py @@ -14,7 +14,7 @@ class SessionPronunciations(UniversalBaseModel): """ Optional. How to pronounce words and phrases in `input`: each entry gives a `text` and either the phones to say it with (`ipa`) or plain text to say in its place (`alias`). Every entry applies to the whole request. - Supported only in the languages a model's entry in GET /v1/audio/models lists in `pronunciation_languages`, which does not include English yet: any other model or language returns `400 pronunciations_unsupported`. An empty array is accepted by every model in every language. At most 200 entries. A malformed entry, a phone outside the model's phone set, an `ipa` entry whose `text` is more than one word, or two entries for the same `text` returns `400 validation_failed`, with `fields` naming each entry (for example `pronunciations[3].ipa`), before anything is synthesized or billed. So does an `input` longer than 20,000 characters once every alias stands in for its text. + Supported only in the languages a model's entry in GET /v1/audio/models lists in `pronunciation_languages`: any other model or language returns `400 pronunciations_unsupported`. An empty array is accepted by every model in every language. At most 200 entries. A malformed entry, a phone outside the model's phone set for the request's language, an `ipa` entry whose `text` is more than one word, or two entries for the same `text` returns `400 validation_failed`, with `fields` naming each entry (for example `pronunciations[3].ipa`), before anything is synthesized or billed. So does an `input` longer than 20,000 characters once every alias stands in for its text. Entries match case-insensitively unless `case_sensitive` is true, as whole words, except in Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese, where they match anywhere in the text; the longest matching entry wins, and an entry takes precedence over the model's own pronunciation. Pronunciations are not billed, and speech marks still index `input` exactly as sent. See https://docs.speechify.ai/build/guides/text-to-speech/pronunciation. """ diff --git a/src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py b/src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py index 59377ab..b8ddae3 100644 --- a/src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py +++ b/src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py @@ -18,7 +18,7 @@ class SessionPronunciationsPronunciationsItemIpa(UniversalBaseModel): ipa: str = pydantic.Field() """ - The phones to say `text` with, from the model's phone set, separated by spaces or `|`: for example `s p ˈiː tʃ ɪ f aɪ` or `s|p|ˈiː|tʃ|ɪ|f|aɪ`. 1 to 64 phones. Stress marks belong to the vowel they stress (`ˈiː` is one phone), and phones compare after Unicode NFC normalization, so a precomposed and a decomposed spelling of the same phone are equal. A phone the model does not know returns `400 validation_failed` naming it. + The phones to say `text` with, from the model's phone set for the request's language (Simba 3.5 reads one set in English and another in every other language), separated by spaces or `|`: for example `s p ˈiː tʃ ɪ f aɪ` or `s|p|ˈiː|tʃ|ɪ|f|aɪ`. 1 to 64 phones. Stress marks belong to the vowel they stress (`ˈiː` is one phone), and phones compare after Unicode NFC normalization, so a precomposed and a decomposed spelling of the same phone are equal. A phone the model does not know returns `400 validation_failed` naming it. """ case_sensitive: typing.Optional[bool] = pydantic.Field(default=None) diff --git a/src/speechify/core/client_wrapper.py b/src/speechify/core/client_wrapper.py index cb94db7..c3bc63b 100644 --- a/src/speechify/core/client_wrapper.py +++ b/src/speechify/core/client_wrapper.py @@ -36,12 +36,12 @@ def get_headers(self, *, include_token: bool = True) -> typing.Dict[str, str]: import platform headers: typing.Dict[str, str] = { - "User-Agent": "speechify-api/4.0.1", + "User-Agent": "speechify-api/5.0.1", "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": "speechify-api", - "X-Fern-SDK-Version": "4.0.1", + "X-Fern-SDK-Version": "5.0.1", **(self.get_custom_headers() or {}), } if self._version is not None: diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index 51f844b..f4285a7 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -8,6 +8,7 @@ if typing.TYPE_CHECKING: from .audio_output_format import AudioOutputFormat from .audio_stream_output_format import AudioStreamOutputFormat + from .auto_recharge_status_response import AutoRechargeStatusResponse from .billing_entitlements import BillingEntitlements from .billing_entitlements_max_llm_model_class import BillingEntitlementsMaxLlmModelClass from .consent_challenge import ConsentChallenge @@ -67,9 +68,17 @@ from .webhook_delivery_status import WebhookDeliveryStatus from .webhook_endpoint import WebhookEndpoint from .webhook_endpoint_delivery import WebhookEndpointDelivery + from .workspace_balance import WorkspaceBalance + from .workspace_balance_monthly_budget_status import WorkspaceBalanceMonthlyBudgetStatus + from .workspace_usage_group import WorkspaceUsageGroup + from .workspace_usage_group_product import WorkspaceUsageGroupProduct + from .workspace_usage_group_unit import WorkspaceUsageGroupUnit + from .workspace_usage_report import WorkspaceUsageReport + from .workspace_usage_report_group_by import WorkspaceUsageReportGroupBy _dynamic_imports: typing.Dict[str, str] = { "AudioOutputFormat": ".audio_output_format", "AudioStreamOutputFormat": ".audio_stream_output_format", + "AutoRechargeStatusResponse": ".auto_recharge_status_response", "BillingEntitlements": ".billing_entitlements", "BillingEntitlementsMaxLlmModelClass": ".billing_entitlements_max_llm_model_class", "ConsentChallenge": ".consent_challenge", @@ -127,6 +136,13 @@ "WebhookDeliveryStatus": ".webhook_delivery_status", "WebhookEndpoint": ".webhook_endpoint", "WebhookEndpointDelivery": ".webhook_endpoint_delivery", + "WorkspaceBalance": ".workspace_balance", + "WorkspaceBalanceMonthlyBudgetStatus": ".workspace_balance_monthly_budget_status", + "WorkspaceUsageGroup": ".workspace_usage_group", + "WorkspaceUsageGroupProduct": ".workspace_usage_group_product", + "WorkspaceUsageGroupUnit": ".workspace_usage_group_unit", + "WorkspaceUsageReport": ".workspace_usage_report", + "WorkspaceUsageReportGroupBy": ".workspace_usage_report_group_by", } @@ -154,6 +170,7 @@ def __dir__(): __all__ = [ "AudioOutputFormat", "AudioStreamOutputFormat", + "AutoRechargeStatusResponse", "BillingEntitlements", "BillingEntitlementsMaxLlmModelClass", "ConsentChallenge", @@ -211,4 +228,11 @@ def __dir__(): "WebhookDeliveryStatus", "WebhookEndpoint", "WebhookEndpointDelivery", + "WorkspaceBalance", + "WorkspaceBalanceMonthlyBudgetStatus", + "WorkspaceUsageGroup", + "WorkspaceUsageGroupProduct", + "WorkspaceUsageGroupUnit", + "WorkspaceUsageReport", + "WorkspaceUsageReportGroupBy", ] diff --git a/src/speechify/types/auto_recharge_status_response.py b/src/speechify/types/auto_recharge_status_response.py new file mode 100644 index 0000000..4cd3ded --- /dev/null +++ b/src/speechify/types/auto_recharge_status_response.py @@ -0,0 +1,32 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel + + +class AutoRechargeStatusResponse(UniversalBaseModel): + """ + The workspace's current auto-recharge rule. + """ + + enabled: bool + amount_usd: typing.Optional[float] = pydantic.Field(default=None) + """ + Amount charged each firing. Absent when no rule is configured. + """ + + threshold_usd: typing.Optional[float] = pydantic.Field(default=None) + """ + Balance level that triggers a recharge. Absent when no rule is configured. + """ + + 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/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 5d50430..1f3a076 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -32,7 +32,7 @@ class GetStreamRequest(UniversalBaseModel): model: typing.Optional[GetStreamRequestModel] = pydantic.Field(default=None) """ - Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native English model; a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. """ diff --git a/src/speechify/types/pronunciation_ipa.py b/src/speechify/types/pronunciation_ipa.py index 797547d..5ca7e83 100644 --- a/src/speechify/types/pronunciation_ipa.py +++ b/src/speechify/types/pronunciation_ipa.py @@ -16,7 +16,7 @@ class PronunciationIpa(UniversalBaseModel): text: PronunciationIpaText ipa: str = pydantic.Field() """ - The phones to say `text` with, from the model's phone set, separated by spaces or `|`: for example `s p ˈiː tʃ ɪ f aɪ` or `s|p|ˈiː|tʃ|ɪ|f|aɪ`. 1 to 64 phones. Stress marks belong to the vowel they stress (`ˈiː` is one phone), and phones compare after Unicode NFC normalization, so a precomposed and a decomposed spelling of the same phone are equal. A phone the model does not know returns `400 validation_failed` naming it. + The phones to say `text` with, from the model's phone set for the request's language (Simba 3.5 reads one set in English and another in every other language), separated by spaces or `|`: for example `s p ˈiː tʃ ɪ f aɪ` or `s|p|ˈiː|tʃ|ɪ|f|aɪ`. 1 to 64 phones. Stress marks belong to the vowel they stress (`ˈiː` is one phone), and phones compare after Unicode NFC normalization, so a precomposed and a decomposed spelling of the same phone are equal. A phone the model does not know returns `400 validation_failed` naming it. """ case_sensitive: typing.Optional[PronunciationCaseSensitive] = None diff --git a/src/speechify/types/pronunciations.py b/src/speechify/types/pronunciations.py index b7b3af6..0a9eed8 100644 --- a/src/speechify/types/pronunciations.py +++ b/src/speechify/types/pronunciations.py @@ -8,7 +8,7 @@ """ Optional. How to pronounce words and phrases in `input`: each entry gives a `text` and either the phones to say it with (`ipa`) or plain text to say in its place (`alias`). Every entry applies to the whole request. -Supported only in the languages a model's entry in GET /v1/audio/models lists in `pronunciation_languages`, which does not include English yet: any other model or language returns `400 pronunciations_unsupported`. An empty array is accepted by every model in every language. At most 200 entries. A malformed entry, a phone outside the model's phone set, an `ipa` entry whose `text` is more than one word, or two entries for the same `text` returns `400 validation_failed`, with `fields` naming each entry (for example `pronunciations[3].ipa`), before anything is synthesized or billed. So does an `input` longer than 20,000 characters once every alias stands in for its text. +Supported only in the languages a model's entry in GET /v1/audio/models lists in `pronunciation_languages`: any other model or language returns `400 pronunciations_unsupported`. An empty array is accepted by every model in every language. At most 200 entries. A malformed entry, a phone outside the model's phone set for the request's language, an `ipa` entry whose `text` is more than one word, or two entries for the same `text` returns `400 validation_failed`, with `fields` naming each entry (for example `pronunciations[3].ipa`), before anything is synthesized or billed. So does an `input` longer than 20,000 characters once every alias stands in for its text. Entries match case-insensitively unless `case_sensitive` is true, as whole words, except in Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese, where they match anywhere in the text; the longest matching entry wins, and an entry takes precedence over the model's own pronunciation. Pronunciations are not billed, and speech marks still index `input` exactly as sent. See https://docs.speechify.ai/build/guides/text-to-speech/pronunciation. """ diff --git a/src/speechify/types/workspace_balance.py b/src/speechify/types/workspace_balance.py new file mode 100644 index 0000000..817549a --- /dev/null +++ b/src/speechify/types/workspace_balance.py @@ -0,0 +1,89 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .auto_recharge_status_response import AutoRechargeStatusResponse +from .workspace_balance_monthly_budget_status import WorkspaceBalanceMonthlyBudgetStatus + + +class WorkspaceBalance(UniversalBaseModel): + """ + Where the workspace's money stands: the credit new work can spend, + any credit held back, whether the balance tops itself up, and what + the workspace has spent this calendar month. + """ + + available_usd: float = pydantic.Field() + """ + Credit new work can spend now, in US dollars to the micro-dollar: + purchased credit plus the plan's included credit, less + `held_usd`. It is the balance synthesis and calls are admitted + on, so at `0` new billable work is refused with + `402 payment_required` until the workspace tops up. + """ + + held_usd: float = pydantic.Field() + """ + Plan-included credit still in the balance that cannot be spent + while a subscription invoice is past due, in US dollars to the + micro-dollar. Paying the invoice releases it; `0` when nothing is + held. + """ + + auto_recharge: typing.Optional[AutoRechargeStatusResponse] = pydantic.Field(default=None) + """ + The rule that tops the balance up when it falls to a threshold, + the same shape `GET /v1/workspaces/current/auto-recharge` + returns. Present whenever the billing plane answered. + """ + + monthly_spend: typing.Optional[float] = pydantic.Field(default=None) + """ + The workspace's billed month-to-date spend in US dollars: every + project's `monthly_spend` plus the Default project's, read from + the same meter. The month is the calendar month (UTC). Present + whenever the billing plane answered. + """ + + monthly_budget: typing.Optional[float] = pydantic.Field(default=None) + """ + The workspace's monthly spend budget in US dollars, present only + when one is set. New billable work is refused with the coded + `402 spend_budget_exceeded` once `monthly_spend` reaches it. + """ + + monthly_budget_status: typing.Optional[WorkspaceBalanceMonthlyBudgetStatus] = pydantic.Field(default=None) + """ + Where `monthly_spend` stands against `monthly_budget`, present + only when both are: `warning` from 80% of the budget, `reached` + once new billable work is refused, `ok` below 80%. The + `workspace.spend_budget.warning` and + `workspace.spend_budget.reached` webhook events fire at the same + thresholds. + """ + + monthly_budget_remaining: typing.Optional[float] = pydantic.Field(default=None) + """ + `monthly_budget` minus `monthly_spend` in US dollars, present only + when both are. Negative by the amount work already under way + carried the workspace past its budget. + """ + + as_of: dt.datetime = pydantic.Field() + """ + When the balance was last read from the billing ledger. Usage is + metered just after each request, so the balance trails live + traffic by up to a few minutes. + """ + + 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/speechify/types/workspace_balance_monthly_budget_status.py b/src/speechify/types/workspace_balance_monthly_budget_status.py new file mode 100644 index 0000000..b09279e --- /dev/null +++ b/src/speechify/types/workspace_balance_monthly_budget_status.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WorkspaceBalanceMonthlyBudgetStatus = typing.Union[typing.Literal["ok", "warning", "reached"], typing.Any] diff --git a/src/speechify/types/workspace_usage_group.py b/src/speechify/types/workspace_usage_group.py new file mode 100644 index 0000000..7e659cd --- /dev/null +++ b/src/speechify/types/workspace_usage_group.py @@ -0,0 +1,57 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .workspace_usage_group_product import WorkspaceUsageGroupProduct +from .workspace_usage_group_unit import WorkspaceUsageGroupUnit + + +class WorkspaceUsageGroup(UniversalBaseModel): + """ + One value's usage of one product over the window. + """ + + value: typing.Optional[str] = pydantic.Field(default=None) + """ + The group's value: a model id, a `proj_` project id or a `key_` + API key id, by `group_by`. `null` for usage with no value for it: + no model, the Default project, or no API key. + """ + + product: WorkspaceUsageGroupProduct = pydantic.Field() + """ + What the usage was: `tts` speech synthesis, `calls` live voice + calls, `llm` language-model tokens, or `other` for usage of a + product this report does not name yet. + """ + + quantity: float = pydantic.Field() + """ + The metered amount of usage, in `unit`. + """ + + unit: WorkspaceUsageGroupUnit = pydantic.Field() + """ + The unit `quantity` is in: `characters` for `tts`, `minutes` for + `calls`, and `usd` for `llm`, because language-model tokens are + metered by their list-price cost in US dollars rather than + counted. `units` for `other`. + """ + + cost_usd: float = pydantic.Field() + """ + The group's share of `total_cost_usd`, in US dollars to the + micro-dollar (at most 6 decimal places). Below zero only for a + group the plan prices as a credit. + """ + + 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/speechify/types/workspace_usage_group_product.py b/src/speechify/types/workspace_usage_group_product.py new file mode 100644 index 0000000..6ce06f0 --- /dev/null +++ b/src/speechify/types/workspace_usage_group_product.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WorkspaceUsageGroupProduct = typing.Union[typing.Literal["tts", "calls", "llm", "other"], typing.Any] diff --git a/src/speechify/types/workspace_usage_group_unit.py b/src/speechify/types/workspace_usage_group_unit.py new file mode 100644 index 0000000..e3c3851 --- /dev/null +++ b/src/speechify/types/workspace_usage_group_unit.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WorkspaceUsageGroupUnit = typing.Union[typing.Literal["characters", "minutes", "usd", "units"], typing.Any] diff --git a/src/speechify/types/workspace_usage_report.py b/src/speechify/types/workspace_usage_report.py new file mode 100644 index 0000000..09a5be8 --- /dev/null +++ b/src/speechify/types/workspace_usage_report.py @@ -0,0 +1,58 @@ +# This file was auto-generated by Fern from our API Definition. + +import datetime as dt +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .pagination_meta import PaginationMeta +from .workspace_usage_group import WorkspaceUsageGroup +from .workspace_usage_report_group_by import WorkspaceUsageReportGroupBy + + +class WorkspaceUsageReport(PaginationMeta): + """ + A window's usage grouped by one property, with each group's metered + quantity and cost. The groups' costs add up to `total_cost_usd` + across all pages, to the micro-dollar. + """ + + starting_at: dt.datetime = pydantic.Field() + """ + Start of the window the report covers, inclusive. + """ + + ending_at: dt.datetime = pydantic.Field() + """ + End of the window, exclusive. For a window that runs to now, + the moment the figures were read. + """ + + group_by: WorkspaceUsageReportGroupBy = pydantic.Field() + """ + The property the groups are keyed by, as requested. + """ + + total_cost_usd: float = pydantic.Field() + """ + What the window's usage cost, in US dollars to the micro-dollar + (at most 6 decimal places). For the calendar month to date it + is the balance read's `monthly_spend`; otherwise the sum of the + groups. Below zero only when credits priced into the plan + outweigh the usage. + """ + + groups: typing.List[WorkspaceUsageGroup] + as_of: dt.datetime = pydantic.Field() + """ + When the figures were read. + """ + + 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/speechify/types/workspace_usage_report_group_by.py b/src/speechify/types/workspace_usage_report_group_by.py new file mode 100644 index 0000000..58ee66d --- /dev/null +++ b/src/speechify/types/workspace_usage_report_group_by.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WorkspaceUsageReportGroupBy = typing.Union[typing.Literal["model", "project_id", "api_key_id"], typing.Any] diff --git a/src/speechify/workspaces/__init__.py b/src/speechify/workspaces/__init__.py index 5cde020..1038387 100644 --- a/src/speechify/workspaces/__init__.py +++ b/src/speechify/workspaces/__init__.py @@ -2,3 +2,33 @@ # isort: skip_file +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import GetUsageReportWorkspacesRequestGroupBy +_dynamic_imports: typing.Dict[str, str] = {"GetUsageReportWorkspacesRequestGroupBy": ".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__ = ["GetUsageReportWorkspacesRequestGroupBy"] diff --git a/src/speechify/workspaces/client.py b/src/speechify/workspaces/client.py index 05e5f5b..620e201 100644 --- a/src/speechify/workspaces/client.py +++ b/src/speechify/workspaces/client.py @@ -1,11 +1,17 @@ # 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.pagination import AsyncPager, SyncPager from ..core.request_options import RequestOptions from ..types.entitlements_response import EntitlementsResponse +from ..types.workspace_balance import WorkspaceBalance +from ..types.workspace_usage_group import WorkspaceUsageGroup +from ..types.workspace_usage_report import WorkspaceUsageReport from .raw_client import AsyncRawWorkspacesClient, RawWorkspacesClient +from .types.get_usage_report_workspaces_request_group_by import GetUsageReportWorkspacesRequestGroupBy class WorkspacesClient: @@ -60,6 +66,173 @@ def get_entitlements(self, *, request_options: typing.Optional[RequestOptions] = _response = self._raw_client.get_entitlements(request_options=request_options) return _response.data + def get_balance(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkspaceBalance: + """ + Where the workspace's money stands, readable with an API key: the + credit new work can spend (`available_usd`), credit a past-due + invoice holds back (`held_usd`), the auto-recharge rule that tops + the balance up, and this calendar month's spend against the + workspace budget, in the same `monthly_spend`, `monthly_budget`, + `monthly_budget_status` and `monthly_budget_remaining` fields a + project reports. Poll it to show a balance in your own app or to warn + before a `402`; the `workspace.spend_budget.*` webhooks push the + budget crossings. Every amount is in US dollars, to the + micro-dollar. To see what the spend went on, by model, project or + API key, read `GET /v1/workspaces/current/usage`: its default window + totals to this `monthly_spend`. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. A workspace with no billing account reads a zero + balance. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WorkspaceBalance + The workspace's balance and this month's spend. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.workspaces.get_balance() + """ + _response = self._raw_client.get_balance(request_options=request_options) + return _response.data + + def get_usage_report( + self, + *, + group_by: GetUsageReportWorkspacesRequestGroupBy, + starting_at: typing.Optional[dt.datetime] = None, + ending_at: typing.Optional[dt.datetime] = None, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[WorkspaceUsageGroup, WorkspaceUsageReport]: + """ + What the workspace's usage cost over a window, grouped by model, + project or API key, readable with an API key. Each group carries the + metered quantity in its product's unit and its cost in US dollars, + priced at the workspace's plan rates. + Use it to charge usage back to your own customers or to see what + moved the bill. The figures are informational: an invoice also + carries fees, credits and taxes this report does not. + + The window defaults to the calendar month (UTC) to date. For that + window `total_cost_usd` is the balance read's `monthly_spend` + (`GET /v1/workspaces/current/balance`) as of `as_of`, the same + figure the workspace budget is enforced on. + For any other window the total is the sum of its groups. A window may + start at most 100 days ago; an older `starting_at` is refused with + `400`. An `ending_at` later than now reads to now. + + Each group's cost is its share of the total in proportion to what the + usage rated at, rounded to the micro-dollar by largest remainder, so + the groups add up to `total_cost_usd` to the micro-dollar: round a + sum of them to 6 decimal places to match it exactly. When there is + nothing to apportion `monthly_spend` by (no usage rated yet, or a + credit among the groups), each group keeps what it rated at and the + total is their sum. A group is one `value` for one `product`: the + same model can appear once for `tts` and once for `calls`. + + Figures can be up to a minute old; `as_of` is when they were read. + Groups are ordered by `value`, the `null` group last, and paginate + with `cursor` while `has_more` is true. Every page of one walk reads + the figures and the window its first page read, even after the month + turns, so the pages add up to the total each carries; a cursor names + its window by itself, and a `group_by`, `starting_at` or `ending_at` + sent with it that names another window is refused with `400`. A + cursor stays usable for at least 15 minutes after `as_of`, after + which it is refused with `400` and the query must be repeated. + + Reading figures that are not cached asks the billing provider, so + each workspace may do so 12 times a minute; past that, or when every + workspace together reads too fast, the request is refused with `429` + and a `Retry-After` header. Repeating a query within a minute is + answered from cache and does not count. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. + + Parameters + ---------- + group_by : GetUsageReportWorkspacesRequestGroupBy + What to group usage by: `model` (the model id, such as + `simba-3.5`), `project_id` (the project's `proj_` id; usage in the + Default project groups as `null`) or `api_key_id` (the key's `key_` + id; usage made without an API key, such as from the console, + groups as `null`). + + starting_at : typing.Optional[dt.datetime] + Start of the window, inclusive, as an RFC 3339 timestamp; a date + alone (`2026-11-01`) reads as midnight UTC. Defaults to the start of + the calendar month (UTC) the window ends in. At most 100 days ago. + + ending_at : typing.Optional[dt.datetime] + End of the window, exclusive, in the same form as `starting_at`. + Defaults to now, and a later value reads to now. + + cursor : typing.Optional[str] + Opaque pagination cursor from a previous response. + + limit : typing.Optional[int] + Max items per page (default 50, max 200). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SyncPager[WorkspaceUsageGroup, WorkspaceUsageReport] + The window's usage, grouped. + + Examples + -------- + import datetime + + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + response = client.workspaces.get_usage_report( + group_by="model", + starting_at=datetime.datetime.fromisoformat( + "2026-11-01 00:00:00+00:00", + ), + ending_at=datetime.datetime.fromisoformat( + "2026-11-27 12:00:00+00:00", + ), + ) + for item in response: + yield item + # alternatively, you can paginate page-by-page + for page in response.iter_pages(): + yield page + """ + return self._raw_client.get_usage_report( + group_by=group_by, + starting_at=starting_at, + ending_at=ending_at, + cursor=cursor, + limit=limit, + request_options=request_options, + ) + class AsyncWorkspacesClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): @@ -122,3 +295,186 @@ async def main() -> None: """ _response = await self._raw_client.get_entitlements(request_options=request_options) return _response.data + + async def get_balance(self, *, request_options: typing.Optional[RequestOptions] = None) -> WorkspaceBalance: + """ + Where the workspace's money stands, readable with an API key: the + credit new work can spend (`available_usd`), credit a past-due + invoice holds back (`held_usd`), the auto-recharge rule that tops + the balance up, and this calendar month's spend against the + workspace budget, in the same `monthly_spend`, `monthly_budget`, + `monthly_budget_status` and `monthly_budget_remaining` fields a + project reports. Poll it to show a balance in your own app or to warn + before a `402`; the `workspace.spend_budget.*` webhooks push the + budget crossings. Every amount is in US dollars, to the + micro-dollar. To see what the spend went on, by model, project or + API key, read `GET /v1/workspaces/current/usage`: its default window + totals to this `monthly_spend`. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. A workspace with no billing account reads a zero + balance. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WorkspaceBalance + The workspace's balance and this month's spend. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.workspaces.get_balance() + + + asyncio.run(main()) + """ + _response = await self._raw_client.get_balance(request_options=request_options) + return _response.data + + async def get_usage_report( + self, + *, + group_by: GetUsageReportWorkspacesRequestGroupBy, + starting_at: typing.Optional[dt.datetime] = None, + ending_at: typing.Optional[dt.datetime] = None, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[WorkspaceUsageGroup, WorkspaceUsageReport]: + """ + What the workspace's usage cost over a window, grouped by model, + project or API key, readable with an API key. Each group carries the + metered quantity in its product's unit and its cost in US dollars, + priced at the workspace's plan rates. + Use it to charge usage back to your own customers or to see what + moved the bill. The figures are informational: an invoice also + carries fees, credits and taxes this report does not. + + The window defaults to the calendar month (UTC) to date. For that + window `total_cost_usd` is the balance read's `monthly_spend` + (`GET /v1/workspaces/current/balance`) as of `as_of`, the same + figure the workspace budget is enforced on. + For any other window the total is the sum of its groups. A window may + start at most 100 days ago; an older `starting_at` is refused with + `400`. An `ending_at` later than now reads to now. + + Each group's cost is its share of the total in proportion to what the + usage rated at, rounded to the micro-dollar by largest remainder, so + the groups add up to `total_cost_usd` to the micro-dollar: round a + sum of them to 6 decimal places to match it exactly. When there is + nothing to apportion `monthly_spend` by (no usage rated yet, or a + credit among the groups), each group keeps what it rated at and the + total is their sum. A group is one `value` for one `product`: the + same model can appear once for `tts` and once for `calls`. + + Figures can be up to a minute old; `as_of` is when they were read. + Groups are ordered by `value`, the `null` group last, and paginate + with `cursor` while `has_more` is true. Every page of one walk reads + the figures and the window its first page read, even after the month + turns, so the pages add up to the total each carries; a cursor names + its window by itself, and a `group_by`, `starting_at` or `ending_at` + sent with it that names another window is refused with `400`. A + cursor stays usable for at least 15 minutes after `as_of`, after + which it is refused with `400` and the query must be repeated. + + Reading figures that are not cached asks the billing provider, so + each workspace may do so 12 times a minute; past that, or when every + workspace together reads too fast, the request is refused with `429` + and a `Retry-After` header. Repeating a query within a minute is + answered from cache and does not count. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. + + Parameters + ---------- + group_by : GetUsageReportWorkspacesRequestGroupBy + What to group usage by: `model` (the model id, such as + `simba-3.5`), `project_id` (the project's `proj_` id; usage in the + Default project groups as `null`) or `api_key_id` (the key's `key_` + id; usage made without an API key, such as from the console, + groups as `null`). + + starting_at : typing.Optional[dt.datetime] + Start of the window, inclusive, as an RFC 3339 timestamp; a date + alone (`2026-11-01`) reads as midnight UTC. Defaults to the start of + the calendar month (UTC) the window ends in. At most 100 days ago. + + ending_at : typing.Optional[dt.datetime] + End of the window, exclusive, in the same form as `starting_at`. + Defaults to now, and a later value reads to now. + + cursor : typing.Optional[str] + Opaque pagination cursor from a previous response. + + limit : typing.Optional[int] + Max items per page (default 50, max 200). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncPager[WorkspaceUsageGroup, WorkspaceUsageReport] + The window's usage, grouped. + + Examples + -------- + import asyncio + import datetime + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.workspaces.get_usage_report( + group_by="model", + starting_at=datetime.datetime.fromisoformat( + "2026-11-01 00:00:00+00:00", + ), + ending_at=datetime.datetime.fromisoformat( + "2026-11-27 12:00:00+00:00", + ), + ) + async for item in response: + yield item + + # alternatively, you can paginate page-by-page + async for page in response.iter_pages(): + yield page + + + asyncio.run(main()) + """ + return await self._raw_client.get_usage_report( + group_by=group_by, + starting_at=starting_at, + ending_at=ending_at, + cursor=cursor, + limit=limit, + request_options=request_options, + ) diff --git a/src/speechify/workspaces/raw_client.py b/src/speechify/workspaces/raw_client.py index b07de03..6ab5a5c 100644 --- a/src/speechify/workspaces/raw_client.py +++ b/src/speechify/workspaces/raw_client.py @@ -1,19 +1,31 @@ # 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.pagination import AsyncPager, SyncPager from ..core.parse_error import ParsingError from ..core.pydantic_utilities import parse_obj_as from ..core.request_options import RequestOptions +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.internal_server_error import InternalServerError +from ..errors.service_unavailable_error import ServiceUnavailableError from ..errors.too_many_requests_error import TooManyRequestsError from ..errors.unauthorized_error import UnauthorizedError from ..types.entitlements_response import EntitlementsResponse from ..types.error import Error +from ..types.workspace_balance import WorkspaceBalance +from ..types.workspace_usage_group import WorkspaceUsageGroup +from ..types.workspace_usage_report import WorkspaceUsageReport +from .types.get_usage_report_workspaces_request_group_by import GetUsageReportWorkspacesRequestGroupBy from pydantic import ValidationError @@ -105,6 +117,348 @@ def get_entitlements( ) raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + def get_balance(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[WorkspaceBalance]: + """ + Where the workspace's money stands, readable with an API key: the + credit new work can spend (`available_usd`), credit a past-due + invoice holds back (`held_usd`), the auto-recharge rule that tops + the balance up, and this calendar month's spend against the + workspace budget, in the same `monthly_spend`, `monthly_budget`, + `monthly_budget_status` and `monthly_budget_remaining` fields a + project reports. Poll it to show a balance in your own app or to warn + before a `402`; the `workspace.spend_budget.*` webhooks push the + budget crossings. Every amount is in US dollars, to the + micro-dollar. To see what the spend went on, by model, project or + API key, read `GET /v1/workspaces/current/usage`: its default window + totals to this `monthly_spend`. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. A workspace with no billing account reads a zero + balance. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[WorkspaceBalance] + The workspace's balance and this month's spend. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/workspaces/current/balance", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WorkspaceBalance, + parse_obj_as( + type_=WorkspaceBalance, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 401: + raise UnauthorizedError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 500: + raise InternalServerError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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 get_usage_report( + self, + *, + group_by: GetUsageReportWorkspacesRequestGroupBy, + starting_at: typing.Optional[dt.datetime] = None, + ending_at: typing.Optional[dt.datetime] = None, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[WorkspaceUsageGroup, WorkspaceUsageReport]: + """ + What the workspace's usage cost over a window, grouped by model, + project or API key, readable with an API key. Each group carries the + metered quantity in its product's unit and its cost in US dollars, + priced at the workspace's plan rates. + Use it to charge usage back to your own customers or to see what + moved the bill. The figures are informational: an invoice also + carries fees, credits and taxes this report does not. + + The window defaults to the calendar month (UTC) to date. For that + window `total_cost_usd` is the balance read's `monthly_spend` + (`GET /v1/workspaces/current/balance`) as of `as_of`, the same + figure the workspace budget is enforced on. + For any other window the total is the sum of its groups. A window may + start at most 100 days ago; an older `starting_at` is refused with + `400`. An `ending_at` later than now reads to now. + + Each group's cost is its share of the total in proportion to what the + usage rated at, rounded to the micro-dollar by largest remainder, so + the groups add up to `total_cost_usd` to the micro-dollar: round a + sum of them to 6 decimal places to match it exactly. When there is + nothing to apportion `monthly_spend` by (no usage rated yet, or a + credit among the groups), each group keeps what it rated at and the + total is their sum. A group is one `value` for one `product`: the + same model can appear once for `tts` and once for `calls`. + + Figures can be up to a minute old; `as_of` is when they were read. + Groups are ordered by `value`, the `null` group last, and paginate + with `cursor` while `has_more` is true. Every page of one walk reads + the figures and the window its first page read, even after the month + turns, so the pages add up to the total each carries; a cursor names + its window by itself, and a `group_by`, `starting_at` or `ending_at` + sent with it that names another window is refused with `400`. A + cursor stays usable for at least 15 minutes after `as_of`, after + which it is refused with `400` and the query must be repeated. + + Reading figures that are not cached asks the billing provider, so + each workspace may do so 12 times a minute; past that, or when every + workspace together reads too fast, the request is refused with `429` + and a `Retry-After` header. Repeating a query within a minute is + answered from cache and does not count. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. + + Parameters + ---------- + group_by : GetUsageReportWorkspacesRequestGroupBy + What to group usage by: `model` (the model id, such as + `simba-3.5`), `project_id` (the project's `proj_` id; usage in the + Default project groups as `null`) or `api_key_id` (the key's `key_` + id; usage made without an API key, such as from the console, + groups as `null`). + + starting_at : typing.Optional[dt.datetime] + Start of the window, inclusive, as an RFC 3339 timestamp; a date + alone (`2026-11-01`) reads as midnight UTC. Defaults to the start of + the calendar month (UTC) the window ends in. At most 100 days ago. + + ending_at : typing.Optional[dt.datetime] + End of the window, exclusive, in the same form as `starting_at`. + Defaults to now, and a later value reads to now. + + cursor : typing.Optional[str] + Opaque pagination cursor from a previous response. + + limit : typing.Optional[int] + Max items per page (default 50, max 200). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + SyncPager[WorkspaceUsageGroup, WorkspaceUsageReport] + The window's usage, grouped. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/workspaces/current/usage", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "group_by": group_by, + "starting_at": serialize_datetime(starting_at) if starting_at is not None else None, + "ending_at": serialize_datetime(ending_at) if ending_at is not None else None, + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + WorkspaceUsageReport, + parse_obj_as( + type_=WorkspaceUsageReport, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.groups + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.get_usage_report( + group_by=group_by, + starting_at=starting_at, + ending_at=ending_at, + cursor=_parsed_next, + limit=limit, + request_options=request_options, + ) + return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 401: + raise UnauthorizedError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 500: + raise InternalServerError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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 AsyncRawWorkspacesClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): @@ -193,3 +547,350 @@ async def get_entitlements( 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_balance( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[WorkspaceBalance]: + """ + Where the workspace's money stands, readable with an API key: the + credit new work can spend (`available_usd`), credit a past-due + invoice holds back (`held_usd`), the auto-recharge rule that tops + the balance up, and this calendar month's spend against the + workspace budget, in the same `monthly_spend`, `monthly_budget`, + `monthly_budget_status` and `monthly_budget_remaining` fields a + project reports. Poll it to show a balance in your own app or to warn + before a `402`; the `workspace.spend_budget.*` webhooks push the + budget crossings. Every amount is in US dollars, to the + micro-dollar. To see what the spend went on, by model, project or + API key, read `GET /v1/workspaces/current/usage`: its default window + totals to this `monthly_spend`. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. A workspace with no billing account reads a zero + balance. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[WorkspaceBalance] + The workspace's balance and this month's spend. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/workspaces/current/balance", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WorkspaceBalance, + parse_obj_as( + type_=WorkspaceBalance, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 401: + raise UnauthorizedError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 500: + raise InternalServerError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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 get_usage_report( + self, + *, + group_by: GetUsageReportWorkspacesRequestGroupBy, + starting_at: typing.Optional[dt.datetime] = None, + ending_at: typing.Optional[dt.datetime] = None, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[WorkspaceUsageGroup, WorkspaceUsageReport]: + """ + What the workspace's usage cost over a window, grouped by model, + project or API key, readable with an API key. Each group carries the + metered quantity in its product's unit and its cost in US dollars, + priced at the workspace's plan rates. + Use it to charge usage back to your own customers or to see what + moved the bill. The figures are informational: an invoice also + carries fees, credits and taxes this report does not. + + The window defaults to the calendar month (UTC) to date. For that + window `total_cost_usd` is the balance read's `monthly_spend` + (`GET /v1/workspaces/current/balance`) as of `as_of`, the same + figure the workspace budget is enforced on. + For any other window the total is the sum of its groups. A window may + start at most 100 days ago; an older `starting_at` is refused with + `400`. An `ending_at` later than now reads to now. + + Each group's cost is its share of the total in proportion to what the + usage rated at, rounded to the micro-dollar by largest remainder, so + the groups add up to `total_cost_usd` to the micro-dollar: round a + sum of them to 6 decimal places to match it exactly. When there is + nothing to apportion `monthly_spend` by (no usage rated yet, or a + credit among the groups), each group keeps what it rated at and the + total is their sum. A group is one `value` for one `product`: the + same model can appear once for `tts` and once for `calls`. + + Figures can be up to a minute old; `as_of` is when they were read. + Groups are ordered by `value`, the `null` group last, and paginate + with `cursor` while `has_more` is true. Every page of one walk reads + the figures and the window its first page read, even after the month + turns, so the pages add up to the total each carries; a cursor names + its window by itself, and a `group_by`, `starting_at` or `ending_at` + sent with it that names another window is refused with `400`. A + cursor stays usable for at least 15 minutes after `as_of`, after + which it is refused with `400` and the query must be repeated. + + Reading figures that are not cached asks the billing provider, so + each workspace may do so 12 times a minute; past that, or when every + workspace together reads too fast, the request is refused with `429` + and a `Retry-After` header. Repeating a query within a minute is + answered from cache and does not count. + + Requires an API key granted `billing:read` (or an unrestricted key). + A key pinned to a project is refused with `403`, as on every + workspace-level read, and so is a key whose owner may not view the + workspace's usage. + + Parameters + ---------- + group_by : GetUsageReportWorkspacesRequestGroupBy + What to group usage by: `model` (the model id, such as + `simba-3.5`), `project_id` (the project's `proj_` id; usage in the + Default project groups as `null`) or `api_key_id` (the key's `key_` + id; usage made without an API key, such as from the console, + groups as `null`). + + starting_at : typing.Optional[dt.datetime] + Start of the window, inclusive, as an RFC 3339 timestamp; a date + alone (`2026-11-01`) reads as midnight UTC. Defaults to the start of + the calendar month (UTC) the window ends in. At most 100 days ago. + + ending_at : typing.Optional[dt.datetime] + End of the window, exclusive, in the same form as `starting_at`. + Defaults to now, and a later value reads to now. + + cursor : typing.Optional[str] + Opaque pagination cursor from a previous response. + + limit : typing.Optional[int] + Max items per page (default 50, max 200). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncPager[WorkspaceUsageGroup, WorkspaceUsageReport] + The window's usage, grouped. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/workspaces/current/usage", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "group_by": group_by, + "starting_at": serialize_datetime(starting_at) if starting_at is not None else None, + "ending_at": serialize_datetime(ending_at) if ending_at is not None else None, + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + WorkspaceUsageReport, + parse_obj_as( + type_=WorkspaceUsageReport, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.groups + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.get_usage_report( + group_by=group_by, + starting_at=starting_at, + ending_at=ending_at, + cursor=_parsed_next, + limit=limit, + request_options=request_options, + ) + + return AsyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 401: + raise UnauthorizedError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 403: + raise ForbiddenError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 409: + raise ConflictError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 429: + raise TooManyRequestsError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 500: + raise InternalServerError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 502: + raise BadGatewayError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 503: + raise ServiceUnavailableError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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) diff --git a/src/speechify/workspaces/types/__init__.py b/src/speechify/workspaces/types/__init__.py new file mode 100644 index 0000000..8137f88 --- /dev/null +++ b/src/speechify/workspaces/types/__init__.py @@ -0,0 +1,36 @@ +# 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 .get_usage_report_workspaces_request_group_by import GetUsageReportWorkspacesRequestGroupBy +_dynamic_imports: typing.Dict[str, str] = { + "GetUsageReportWorkspacesRequestGroupBy": ".get_usage_report_workspaces_request_group_by" +} + + +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__ = ["GetUsageReportWorkspacesRequestGroupBy"] diff --git a/src/speechify/workspaces/types/get_usage_report_workspaces_request_group_by.py b/src/speechify/workspaces/types/get_usage_report_workspaces_request_group_by.py new file mode 100644 index 0000000..030e969 --- /dev/null +++ b/src/speechify/workspaces/types/get_usage_report_workspaces_request_group_by.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +GetUsageReportWorkspacesRequestGroupBy = typing.Union[typing.Literal["model", "project_id", "api_key_id"], typing.Any] From ebb76cbd7119e3828975b638b5372ee4c4fee0bc Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 12:02:29 +0000 Subject: [PATCH 2/2] [fern-replay] Applied customizations Patches with unresolved conflicts (1): - patch-composite-28378839: Customer customizations (composite) Run `fern-replay resolve` to apply these customizations. --- .fern/replay.lock | 3725 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 3723 insertions(+), 2 deletions(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 479495f..fdaeb88 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -12,5 +12,3726 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.41.10 -current_generation: f45ba8380dabd5e09ce4637fdcf94ae6f2cf41a9 -patches: [] + - commit_sha: c8529577a9fea536797eea2a23d3931c80dde517 + tree_hash: 956a6ce29af536c5bb6ee48026d936215ecc949d + timestamp: 2026-11-28T12:02:25.625Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.41.10 +current_generation: c8529577a9fea536797eea2a23d3931c80dde517 +patches: + - id: patch-composite-28378839 + content_hash: sha256:f853c24832eebc6f1fb8d4315616a712e7ef940cf3639271275a6847d49f9830 + original_commit: 28378839177f2c4aee3f75b20e4f3dbc67011e99 + original_message: Customer customizations (composite) + original_author: composite + base_generation: f45ba8380dabd5e09ce4637fdcf94ae6f2cf41a9 + files: + - README.md + - pyproject.toml + - reference.md + patch_content: |+ + diff --git a/README.md b/README.md + index 4a35333..6f5e7fd 100644 + --- a/README.md + +++ b/README.md + @@ -51,7 +51,7 @@ client = Speechify( + client.audio.speech( + audio_format="mp3", + input="Hello! This is the Speechify text-to-speech API.", + - model="simba-3.2", + + model="simba-3.5", + voice_id="geffen_32", + ) + ``` + @@ -87,7 +87,7 @@ async def main() -> None: + await client.audio.speech( + audio_format="mp3", + input="Hello! This is the Speechify text-to-speech API.", + - model="simba-3.2", + + model="simba-3.5", + voice_id="geffen_32", + ) + + @@ -123,7 +123,7 @@ client = Speechify( + + client.audio.stream_with_timestamps( + input="Streaming long-form audio with the Speechify API.", + - model="simba-3.2", + + model="simba-3.5", + voice_id="geffen_32", + ) + ``` + diff --git a/pyproject.toml b/pyproject.toml + index 2b8b09d..446a862 100644 + --- a/pyproject.toml + +++ b/pyproject.toml + @@ -6,7 +6,7 @@ license-files = ["LICENSE"] + + [tool.poetry] + name = "speechify-api" + -version = "4.0.1" + +version = "5.0.0" + description = "Official Speechify API SDK" + readme = "README.md" + authors = [ + diff --git a/reference.md b/reference.md + index 7de11a5..b97d83d 100644 + --- a/reference.md + +++ b/reference.md + @@ -42,7 +42,7 @@ client = Speechify( + client.audio.speech( + audio_format="mp3", + input="Hello! This is the Speechify text-to-speech API.", + - model="simba-3.2", + + model="simba-3.5", + voice_id="geffen_32", + ) + + @@ -317,7 +317,7 @@ client = Speechify( + + client.audio.stream_with_timestamps( + input="Streaming long-form audio with the Speechify API.", + - model="simba-3.2", + + model="simba-3.5", + voice_id="geffen_32", + ) + + theirs_snapshot: + README.md: | + # Speechify Python Library + + [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FSpeechify-AI%2Fsdk-python) + [![pypi](https://img.shields.io/pypi/v/speechify-api)](https://pypi.python.org/pypi/speechify-api) + + The Speechify Python library provides convenient access to the Speechify APIs from Python. + + ## Table of Contents + + - [Documentation](#documentation) + - [Installation](#installation) + - [Reference](#reference) + - [Usage](#usage) + - [Environments](#environments) + - [Async Client](#async-client) + - [Exception Handling](#exception-handling) + - [Streaming](#streaming) + - [Pagination](#pagination) + - [Advanced](#advanced) + - [Access Raw Response Data](#access-raw-response-data) + - [Retries](#retries) + - [Timeouts](#timeouts) + - [Custom Client](#custom-client) + - [Contributing](#contributing) + + ## Documentation + + API reference documentation is available [here](https://docs.speechify.ai/api-reference). + + ## Installation + + ```sh + pip install speechify-api + ``` + + ## Reference + + A full reference for this library is available [here](https://github.com/Speechify-AI/sdk-python/blob/HEAD/./reference.md). + + ## Usage + + Instantiate and use the client with the following: + + ```python + from speechify import Speechify + + client = Speechify( + token="", + ) + + client.audio.speech( + audio_format="mp3", + input="Hello! This is the Speechify text-to-speech API.", + model="simba-3.5", + voice_id="geffen_32", + ) + ``` + + ## Environments + + This SDK allows you to configure different environments for API requests. + + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + environment=SpeechifyEnvironment.DEFAULT, + ) + ``` + + ## Async Client + + The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client). + + ```python + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + token="", + ) + + + async def main() -> None: + await client.audio.speech( + audio_format="mp3", + input="Hello! This is the Speechify text-to-speech API.", + model="simba-3.5", + voice_id="geffen_32", + ) + + + asyncio.run(main()) + ``` + + ## Exception Handling + + When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error + will be thrown. + + ```python + from speechify.core.api_error import ApiError + + try: + client.audio.speech(...) + except ApiError as e: + print(e.status_code) + print(e.body) + ``` + + ## Streaming + + The SDK supports streaming responses, as well, the response will be a generator that you can loop over. + + ```python + from speechify import Speechify + + client = Speechify( + token="", + ) + + client.audio.stream_with_timestamps( + input="Streaming long-form audio with the Speechify API.", + model="simba-3.5", + voice_id="geffen_32", + ) + ``` + + ## Pagination + + Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object. + + ```python + from speechify import Speechify + + client = Speechify( + token="", + ) + + client.voices.list( + locale="en", + model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", + ) + ``` + + ```python + # You can also iterate through pages and access the typed response per page + pager = client.voices.list(...) + for page in pager.iter_pages(): + print(page.response) # access the typed response for each page + for item in page: + print(item) + ``` + + ## Advanced + + ### Access Raw Response Data + + The SDK provides access to raw response data, including headers, through the `.with_raw_response` property. + The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes. + + ```python + from speechify import Speechify + + client = Speechify(...) + response = client.audio.with_raw_response.speech(...) + print(response.headers) # access the response headers + print(response.status_code) # access the response status code + print(response.data) # access the underlying object + ``` + + ### Retries + + The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long + as the request is deemed retryable and the number of retry attempts has not grown larger than the configured + retry limit (default: 2). + + Which status codes are retried depends on the `retryStatusCodes` generator configuration: + + **`legacy`** (current default): retries on + - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) + - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict) + - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) + - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500) + + **`recommended`**: retries on + - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout) + - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict) + - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests) + - [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway) + - [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) (Service Unavailable) + - [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) (Gateway Timeout) + + Use the `max_retries` request option to configure this behavior. + + ```python + client.audio.speech(..., request_options={ + "max_retries": 1 + }) + ``` + + ### Timeouts + + The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level. + + ```python + from speechify import Speechify + + client = Speechify(..., timeout=20.0) + + # Override timeout for a specific method + client.audio.speech(..., request_options={ + "timeout": 1 + }) + ``` + + ### Custom Client + + You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies + and transports. + + ```python + import httpx + from speechify import Speechify + + client = Speechify( + ..., + httpx_client=httpx.Client( + proxy="http://my.test.proxy.example.com", + transport=httpx.HTTPTransport(local_address="0.0.0.0"), + ), + ) + ``` + + ## Contributing + + While we value open-source contributions to this SDK, this library is generated programmatically. + Additions made directly to this library would have to be moved over to our generation code, + otherwise they would be overwritten upon the next generated release. Feel free to open a PR as + a proof of concept, but know that we will not be able to merge it as-is. We suggest opening + an issue first to discuss with us! + + On the other hand, contributions to the README are always very welcome! + pyproject.toml: | + [project] + name = "speechify-api" + dynamic = ["version"] + license = "MIT" + license-files = ["LICENSE"] + + [tool.poetry] + name = "speechify-api" + version = "5.0.0" + description = "Official Speechify API SDK" + readme = "README.md" + authors = [ + "Speechify " + ] + keywords = [ + "speechify", + "ai", + "api", + "sdk", + "text-to-speech", + "tts" + ] + license = "MIT" + classifiers = [ + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "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", + "Operating System :: POSIX :: Linux", + "Operating System :: Microsoft :: Windows", + "Topic :: Software Development :: Libraries :: Python Modules", + "Typing :: Typed" + ] + packages = [ + { include = "speechify", from = "src"} + ] + + [tool.poetry.urls] + Documentation = 'https://docs.speechify.ai/api-reference' + Homepage = 'https://docs.speechify.ai' + Repository = 'https://github.com/Speechify-AI/sdk-python' + + [tool.poetry.dependencies] + python = "^3.10" + aiohttp = { version = ">=3.14.1,<4", optional = true, python = ">=3.10"} + httpx = ">=0.21.2" + httpx-aiohttp = { version = "^0.1.8", optional = true, python = ">=3.10"} + pydantic = ">= 1.9.2" + pydantic-core = ">=2.18.2,<3.0.0" + typing_extensions = ">= 4.0.0" + + [tool.poetry.group.dev.dependencies] + mypy = "==1.13.0" + pytest = "^9.0.3" + pytest-asyncio = "^1.0.0" + pytest-xdist = "^3.6.1" + python-dateutil = "^2.9.0" + types-python-dateutil = "^2.9.0.20240316" + urllib3 = ">=2.6.3,<3.0.0" + ruff = "==0.11.5" + + [tool.pytest.ini_options] + testpaths = [ "tests" ] + asyncio_mode = "auto" + norecursedirs = [ "src" ] + markers = [ + "aiohttp: tests that require httpx_aiohttp to be installed", + ] + + [tool.mypy] + plugins = ["pydantic.mypy"] + + [tool.ruff] + line-length = 120 + + [tool.ruff.lint] + select = [ + "E", # pycodestyle errors + "F", # pyflakes + "I", # isort + ] + ignore = [ + "E402", # Module level import not at top of file + "E501", # Line too long + "E711", # Comparison to `None` should be `cond is not None` + "E712", # Avoid equality comparisons to `True`; use `if ...:` checks + "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks + "E722", # Do not use bare `except` + "E731", # Do not assign a `lambda` expression, use a `def` + "F821", # Undefined name + "F841" # Local variable ... is assigned to but never used + ] + + [tool.ruff.lint.isort] + section-order = ["future", "standard-library", "third-party", "first-party"] + + [build-system] + requires = ["poetry-core"] + build-backend = "poetry.core.masonry.api" + + [tool.poetry.extras] + aiohttp=["aiohttp", "httpx-aiohttp"] + reference.md: |+ + # Reference + ## audio +
client.audio.speech(...) -> GetSpeechResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Synthesize speech audio from text or SSML. Returns the complete audio + file plus billing and speech-mark metadata in a single JSON response. + For low-latency playback or long-form text, use POST /v1/audio/stream. + Set `output_format` for explicit sample-rate/bitrate control (e.g. + `pcm_16000` or `ulaw_8000` for telephony). +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.audio.speech( + audio_format="mp3", + input="Hello! This is the Speechify text-to-speech API.", + model="simba-3.5", + voice_id="geffen_32", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **input:** `str` + + Plain text or SSML to be synthesized to speech. + Up to 2,000 characters of spoken text, the characters the request is billed for: SSML tags do not count. The input as sent, markup included, may be up to 20,000 characters. + Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. + SSML sets pauses (``), speaking rate, pitch and volume (``) and pronunciation (``): see https://docs.speechify.ai/build/guides/text-to-speech/ssml for each tag. Emotion styles and emphasis are applied only by the Simba 1.6 models, until 2026-11-21; `simba-3.0`, `simba-3.2` and `simba-3.5` accept those tags without applying them. + +
+
+ +
+
+ + **voice_id:** `str` — Id of the voice to be used for synthesizing speech. Refer to /v1/voices endpoint for available voices + +
+
+ +
+
+ + **audio_format:** `typing.Optional[GetSpeechRequestAudioFormat]` — The format for the output audio. Note, that the current default is "wav", but there's no guarantee it will not change in the future. We recommend always passing the specific param you expect. + +
+
+ +
+
+ + **language:** `typing.Optional[str]` + + Language of the input. Follow the format of an ISO 639-1 language code and an ISO 3166-1 region code, separated by a hyphen, e.g. en-US. + Please refer to the list of the supported languages and recommendations regarding this parameter: https://docs.speechify.ai/docs/language-support. + +
+
+ +
+
+ + **model:** `typing.Optional[GetSpeechRequestModel]` + + Model used for audio synthesis. Defaults to `simba-3.0`, which is streaming-native and multilingual: it officially supports English plus `de-DE`, `es-ES`, `es-MX`, `fr-FR`, `it-IT` and `pt-BR`, and routes each request to its English or its multilingual training based on `language` (falling back to the voice's locale when `language` is omitted). `simba-3.2` is the streaming-native model with the lowest TTFB and richest expressivity; it is English only, so a non-English voice returns 400. `simba-3.5` is the recommended model: streaming-native, covering 48 languages under one id, English included, routed by `language` like `simba-3.0`; every voice works on it, cloned voices included. + + The legacy Simba 1.6 models `simba-english` and `simba-multilingual` are retired from API version `2026-09-21`: naming one returns 400 `model_retired`. Pinning your API version to a date before `2026-09-21` keeps them on their Simba 1.6 training until **2026-11-21**; from then both ids are served by our current models on every API version that can still name them. Migrate to `simba-3.2` (English), `simba-3.0` or `simba-3.5` before then; call GET /v1/audio/models to see the set your workspace can select today. + +
+
+ +
+
+ + **options:** `typing.Optional[GetSpeechOptionsRequest]` + +
+
+ +
+
+ + **output_format:** `typing.Optional[AudioOutputFormat]` — The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over `audio_format` when set. + +
+
+ +
+
+ + **pronunciations:** `typing.Optional[Pronunciations]` + +
+
+ +
+
+ + **safety_identifier:** `typing.Optional[SafetyIdentifier]` — Optional. A stable, opaque identifier for the end user this request is made for: a hash of your own user id or an opaque id, never an email address or other personal data. It is recorded with the request even under zero data retention, and your workspace can be given per-end-user limits and a block list keyed on it. See https://docs.speechify.ai/build/guides/concepts/safety-identifiers. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.audio.stream(...) -> typing.Iterator[bytes] +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Synthesize speech and stream the audio back as it is generated, for + low-latency playback. Set `output_format` in the body for explicit + codec/sample-rate/bitrate control (e.g. `pcm_16000` or `ulaw_8000` for + telephony), or fall back to the Accept header for the container; the + response is raw audio bytes (HTTP chunked). For Base64-encoded audio + with speech-mark metadata in a single JSON response, use + POST /v1/audio/speech. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.audio.stream( + input="input", + voice_id="voice_id", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **request:** `GetStreamRequest` + +
+
+ +
+
+ + **accept:** `typing.Optional[StreamAudioRequestAccept]` + + Selects the audio container/codec for the streamed response when + `output_format` is not set in the request body. The response + Content-Type echoes this value, except `audio/pcm` returns + `audio/L16` with rate and channels parameters (raw 16-bit linear + PCM, 24 kHz mono, little-endian). For explicit sample-rate/bitrate + control (e.g. `pcm_16000`, `ulaw_8000`), set `output_format` in the + body instead; it takes precedence over this header. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.audio.stream_with_timestamps(...) -> typing.Iterator[bytes] +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Synthesize speech and stream it back together with word-level speech + marks, for text highlighting, captions and audio-text synchronization + while the audio is still arriving. + + The response is a Server-Sent Events stream. Each `speech.chunk` event + carries a Base64-encoded run of audio, the speech marks that became + final with it, or both - a chunk may carry only one of the two, and the + last chunk of a stream is often marks-only. A terminal `speech.done` + event ends the stream; there is no `[DONE]` sentinel. Ignore any event + type you do not recognize, so that new event types do not break your + integration. + + Speech-mark times are absolute milliseconds from the start of the + synthesis, so concatenate the audio chunks into one stream and apply the + marks against that single timeline. Which chunk a mark arrives on is a + delivery detail and carries no meaning. Times stay correct for every + `output_format`: changing the codec or sample rate does not change the + duration. + + Every model this route accepts produces speech marks here. The default + `simba-3.0`, `simba-3.2` and `simba-3.5` stream marks word by word + alongside the audio. The legacy `simba-english` and `simba-multilingual` models, + still selectable on a workspace pinned before API version `2026-09-21`, + synthesize a sentence at a time, so their marks arrive a sentence at a + time with that sentence's audio; from that version on they return 400 + `model_retired` on every synthesis route, and from 2026-11-21 both ids + are served by our current models. + For Base64-encoded audio and speech marks in one non-streamed JSON + response, use POST /v1/audio/speech. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.audio.stream_with_timestamps( + input="Streaming long-form audio with the Speechify API.", + model="simba-3.5", + voice_id="geffen_32", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **request:** `GetStreamRequest` + +
+
+ +
+
+ + **accept:** `typing.Optional[StreamWithTimestampsAudioRequestAccept]` + + Selects the audio container/codec carried inside the events when + `output_format` is not set in the request body. The selected media + type is echoed on the `Speechify-Audio-Content-Type` response + header, since the response's own Content-Type is `text/event-stream`. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## models +
client.models.list() -> ModelsResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + List the text-to-speech models available for synthesis. Drive a model + picker from this response, then pass a model `id` as the `model` + parameter to POST /v1/audio/speech or /v1/audio/stream. The response + marks the default model (used when a request omits `model`), the + routes each model may be passed to, and which voices it accepts. + Multi-speaker models arrive in a separate `dialogue_models` array + because they are valid only on POST /v1/audio/dialogue. Returns + the full set in a single response: the model catalog is static + platform reference data, so it is intentionally not paginated. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.models.list() + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## voices +
client.voices.list(...) -> ListVoicesResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Lists the voices available to the caller - the shared voice + catalog plus the cloned voices they can reach, whichever member or + service-account key created them. A clone filed under a project is + listed only for a caller who can reach that project; a clone no + project filed is shared with the whole workspace and is listed for + everyone in it. The list is paged: a request without `limit` + returns the first 50 voices, and `limit` raises that to at most + 200. Pass `cursor` from the previous response to fetch the next + page while `has_more` is true. API versions before 2026-07-16 + returned the whole catalogue when `limit` was omitted. Narrow the + list with the `type` and `locale` filters. + + A page can come back with fewer than `limit` voices, and a short + page - an empty one included - is not the end of the list. Keep + following `next_cursor` while `has_more` is true. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.voices.list( + locale="en", + model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ + **limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ + **type:** `typing.Optional[ListVoicesRequestType]` + + Filter by voice type: `personal` (the workspace's cloned voices) + or `shared` (the public catalogue). Omit to return both. + +
+
+ +
+
+ + **locale:** `typing.Optional[str]` + + Filter to voices whose locale matches this BCP-47 language range, + prefix-matched: `en` matches `en-US` and `en-GB`; `en-US` matches + only `en-US`. Case-insensitive. Omit to return all locales. + +
+
+ +
+
+ + **gender:** `typing.Optional[ListVoicesRequestGender]` — Filter by voice gender. Omit to return all genders. + +
+
+ +
+
+ + **model:** `typing.Optional[str]` + + Filter to voices that support this model (as listed in each voice's + `models[]`), e.g. `simba-3.2`. Omit to return voices for all models. + +
+
+ +
+
+ + **project_id:** `typing.Optional[str]` + + Filter cloned voices by workspace project: omit for every voice you + can reach, pass the literal `shared` for the clones no project + filed, or a `proj_...` id for the clones filed under that project. + The shared catalog carries no project and is returned either way. + + A clone is filed under a project when a project-pinned key created + it. A clone with no project is shared with the whole workspace + rather than sitting in a Default project, so the literal here is + `shared`, never `default` - passing `default` is a 400. Returns 404 + project_not_found for a malformed id and for any project outside + your reach: a project-pinned key reaches only its pinned project, + and a member holding project grants reaches only the granted ones. + That 404 is the same in every case and does not reveal whether such + a project exists. `shared` is always inside your reach. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.voices.create(...) -> GetVoice +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Create a cloned voice for the workspace from a 10-30 second audio sample, with verified consent from the speaker. + + Cloning requires proof that the speaker agreed to it. Create a consent challenge with `POST /v1/voices/consent-challenges`, show the returned `phrase` to the speaker, record them reading it aloud, and send that recording here as `consent_recording` together with the challenge's `consent_challenge_id`. Speechify transcribes the recording, checks it against the phrase it issued, checks that its speaker is the speaker in your `sample`, and keeps it as the consent record for the voice. The person consenting therefore has to be the person being cloned. A challenge is single use and short-lived, so record and submit in one sitting. + + The clone belongs to the workspace rather than the member who created it, and access follows the caller's workspace role and API-key scopes exactly as for any other voice: voices scopes to list it, audio scopes to synthesize with it, and the content-management permission plus a write scope on the key to delete it. Cloned voices are usable self-serve on `simba-3.0` (and, on a workspace pinned before API version `2026-09-21`, on the retired `simba-english` and `simba-multilingual`, which from 2026-11-21 are served by our current models and still take cloned voices). `simba-3.2` and `simba-3.5` also serve cloned voices. + + The previous flow, a `consent` form field carrying the speaker's name and email as a JSON string, was switched off on 2026-09-23 for every API version: a create that sends `consent` and no `consent_challenge_id` returns 400 `consent_verification_required`. + + Voice cloning is not available in some jurisdictions. A request from one returns 403 `voice_cloning_unavailable_in_region` before consent verification runs, so it does not spend the challenge. The location is read from the IP address that sends the request, which is your server's when your backend calls the API; a location header in the request is ignored. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.voices.create( + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + sample="example_sample", + avatar="example_avatar", + consent_recording="example_consent_recording", + name="name", + gender="male", + consent_challenge_id="consent_challenge_id", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **name:** `str` — Name of the personal voice + +
+
+ +
+
+ + **gender:** `CreateVoicesRequestGender` + + Gender marker for the personal voice + male GenderMale + female GenderFemale + not_specified GenderNotSpecified + +
+
+ +
+
+ + **sample:** `core.File` — Audio sample of the voice to clone, 10-30 seconds of clean speech. + +
+
+ +
+
+ + **consent_challenge_id:** `str` + + The `id` of the consent challenge this create consumes, from + `POST /v1/voices/consent-challenges`. Single use: once a + create has consumed it, whether or not that create + succeeded, it cannot be used again. + +
+
+ +
+
+ + **consent_recording:** `core.File` + + Recording of the speaker reading the challenge's `phrase` + aloud. This is the consent record for the voice, not a + second voice sample: it must be the same person as in + `sample`, and it is retained as evidence. 5-30 seconds, at + most 25 MB, in any common audio container. + +
+
+ +
+
+ + **idempotency_key:** `typing.Optional[str]` + + A client-generated key (an opaque string, max 255 chars) that makes a + side-effect POST safe to retry: the server runs the operation exactly + once and replays the first response (its status and body) for 24 hours. + Reusing a key with a different request body, or while the first request + is still in flight, returns `409 idempotency_conflict`. A replayed + response carries the `Idempotent-Replayed: true` header. + +
+
+ +
+
+ + **locale:** `typing.Optional[str]` — Native language (locale) of the personal voice (e.g. en-US, es-ES, etc.) + +
+
+ +
+
+ + **avatar:** `typing.Optional[core.File]` — Avatar image file + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.voices.get(...) -> GetVoice +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Fetch a single voice by id - a shared catalogue voice or one of + the workspace's cloned voices. A cloned voice that belongs to + another workspace returns 404, identical to an unknown id, so + voice inventory is never enumerable across tenants. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.voices.get( + voice_id="voice_id", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **voice_id:** `str` — The ID of the voice to fetch + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.voices.delete(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Delete one of the workspace's cloned voices. Requires the + `content.manage` permission (owner, admin, or member); a + service-account key is authorized by its scopes instead. + + A voice that is also a member's personal voice (one cloned + before workspaces owned voices and adopted into this workspace) + is removed from the workspace only; the person keeps it. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.voices.delete( + voice_id="voice_id", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **voice_id:** `str` — The ID of the voice to delete + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.voices.download_sample(...) -> typing.Iterator[bytes] +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Download a personal (cloned) voice sample +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.voices.download_sample( + voice_id="voice_id", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **voice_id:** `str` — The ID of the voice to download sample for + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## projects +
client.projects.list(...) -> ListProjectsResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + List the workspace's projects, newest first. The implicit Default + project is not a row and is never listed; resources with no + `project_id` live in it. Archived projects are hidden unless + `include_archived=true`, and purged ones unless + `include_purged=true`. Cursor-paginated: omit `cursor` for the + first page; walk pages while `has_more` is true (default page size + 50, max 200). +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.list() + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ + **limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ + **include_archived:** `typing.Optional[bool]` + + Include archived projects. Defaults to `false`, so the list shows + only live projects; archived ones stay readable by id. + +
+
+ +
+
+ + **include_purged:** `typing.Optional[bool]` + + Include purged projects that are still inside their 30-day restore + window, each carrying the `purged_at` stamp its deadline is + measured from. Defaults to `false`, so the list shows only projects + that still exist. This is the only read that returns a purged + project: the by-id read answers 404 for one, and a project past its + window is never listed, because it is awaiting permanent deletion + and a restore would refuse it. Independent of `include_archived`: + a purge runs only from the archived state, so asking for purged + projects never means asking for every archived one as well. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.create(...) -> Project +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Create a project in the caller's workspace. Names are unique per + workspace (case-insensitive). A workspace holds at most 100 live + projects; at the cap the create refuses with + `409 project_limit_reached` until one is deleted. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.create( + name="Production", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **name:** `str` + + Project name; unique per workspace (case-insensitive), + surrounding whitespace is trimmed. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.get(...) -> Project +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Fetch one project by id, scoped to the caller's workspace. Returns + 404 for missing or foreign-workspace projects — project existence + is never leaked across workspaces. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.get( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.delete(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Delete a project. With no body it deletes a project that holds + nothing, and refuses one that does; `mode` is how you say what + should happen to what it holds. + + **Empty** (no body): the project is removed only while it holds no + resources. A project that holds any is refused with 409 + `project_not_empty`, and the refusal enumerates what is inside: + `error.details.resource_count` is the total, and + `error.details.contents` names each kind with a count and up to five + names. Every project row also carries that total as + `resource_count`, so an application can find the projects it may + delete in one list call. Records of work never hold a project open + and are not counted. + + **Detach** (`mode: detach`): only the grouping row is removed; every + resource in the project moves to the implicit Default project, where + it stays readable and is listed by `?project_id=default`. Refused + with 409 `project_has_scoped_credentials` while an API key, service + account, vault credential, webhook endpoint, member grant or pending + invite is scoped to the project, because detaching any of those + would silently widen it. + + **Purge** (`mode: purge` with `confirm` equal to the project's + name): available only on an ARCHIVED project, because a teardown + needs a state you can sit in and reverse first; a live project is + refused with the coded `409 project_not_archived`. Archive the + project, confirm it is the one you mean, then purge. The project is + removed WITH its contents in one transaction: the resources it holds + and its scoped webhook endpoints and vault credentials are deleted, + API keys and service accounts pinned to the project are revoked, and + member grants and pending-invite scopes on the project are cleared. + Resources with a lifecycle and a delete of their own, such as + stores, hosted APIs and files, are not removed: they move to the + Default project, and because they do hold a project open, an + unqualified delete refuses while any of them is in the project. + Refused with 409 while a resource that must be released first is + still attached (the refusal names it), while a member's only project + grant is this one, or while a live invite carries only this project + (clearing either would widen that person to the whole workspace, the + invite one acceptance earlier). + + **A purge is recoverable for 30 days.** The project disappears from + every list and read immediately, and its name is freed for reuse, + but the project and its resources are kept and permanently deleted + only once the window closes. `POST + /v1/projects/{project_id}/restore` brings the project and its + resources back inside that window; the credentials the purge revoked + and the grants it cleared stay that way. + + The 409 carries the blockers under `error.details.blockers` (`kind`, + typed `id`, `name`, and the `blocks` modes each refuses), their + total under `error.details.blocker_count`, and, for existing + clients, the same rows under `error.details.credentials`. The lists + are capped at 50 rows; the counts are not, and the refusal is + decided on the count. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.delete( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + mode="purge", + confirm="Staging", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **mode:** `typing.Optional[DeleteProjectRequestMode]` + + `detach` removes the grouping row only and moves every resource + to the Default project; `purge` removes the project with its + contents. Omitted, the delete removes only an empty project. + +
+
+ +
+
+ + **confirm:** `typing.Optional[str]` + + Required for `purge`: the project's name, exactly as returned by + GET. A mismatch answers 400 `validation_failed` naming this field. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.update(...) -> Project +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Edit a project in place - its name, its monthly spend limit, or its + capacity ceilings - keeping the same id so every grouped resource + follows the edit with no re-pointing. Names are unique per + workspace (case-insensitive). The limit fields require + `billing.manage`; a capacity ceiling above the workspace's own is + refused, since it could never apply. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.update( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **max_requests_per_minute:** `typing.Optional[int]` + + Sets the project's request-rate ceiling in requests per + minute; `null` removes it. Must be a positive integer at or + below the workspace's widest per-surface request rate over a + minute, otherwise the request is refused with + `400 validation_failed` naming the field and the ceiling. + Requires the `billing.manage` permission. Takes effect on the + next request from a credential pinned to the project. + +
+
+ +
+
+ + **name:** `typing.Optional[str]` + + New project name; unique per workspace (case-insensitive), + surrounding whitespace is trimmed. + +
+
+ +
+
+ + **monthly_budget:** `typing.Optional[float]` + + Edits the project's MONTHLY spend limit in US dollars: omit to + leave it unchanged, send a positive value to set or change it, or + an explicit `0` to remove it. Amounts are whole cents written as a + plain decimal; a finer value, or exponent notation, is refused + rather than rounded. Requires the + `billing.manage` + permission (owners/admins), like the workspace budget — a + spend ceiling is a billing control, not a grouping edit. Once the + project's billed spend within the current calendar month (UTC) + reaches the limit, new billable work attributed to that project is + refused with the coded `402 project_spend_limit_exceeded` until + the month resets or the limit is raised. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.archive(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Archive a project. From then on nothing new starts or bills inside + it: requests on a credential pinned to the project, and every new + piece of work attributed to it, are refused with the coded `409 + project_archived`. Work already in flight is left to finish. + Everything in the project stays readable and its configuration stays + editable, and the project still answers by id. + + Idempotent: archiving an archived project is a no-op. Reverse it + with the unarchive operation. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.archive( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.unarchive(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Lift a project's archive so work and spend resume inside it. + Idempotent: unarchiving a live project is a no-op. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.unarchive( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.restore(...) -> ProjectRestore +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Walk back a purge. A purged project is recoverable for 30 days: its + row and its contents are kept, hidden from every list and read, and + permanently deleted only once the window expires. + + **What comes back:** the project and exactly the resources the purge + removed. A resource you had deleted yourself before the purge stays + deleted. + + **What does NOT come back, on purpose:** every credential the purge + revoked stays revoked, and every grant it cleared stays cleared. API + keys and service accounts pinned to the project are not re-issued, + vault credentials and webhook endpoints scoped to it are not + undeleted, and member grants and pending-invite scopes are not + restored. Bringing a credential or a grant back would re-grant + access somebody deliberately ended, so the restore reports them + under `still_revoked` instead. Re-create the credentials and + re-grant the members the project still needs. + + The project returns ARCHIVED, the state it was purged from, so + nothing dispatches or bills inside it until you unarchive it. + + Refused with `409 project_not_purged` when the project was never + purged, `409 project_restore_window_expired` once the 30 days have + passed, and `409 project_name_taken` when another project has taken + this one's name since the purge (a purge frees the name immediately + - rename the project holding it, then restore). +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.restore( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.audit(...) -> ProjectAuditResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Who changed this project's access or its lifecycle state, and when. + Newest first. Covers the last 90 days; paginate by passing `cursor` + from the previous response. + + Each entry names the SUBJECT (whose access changed) and the ACTOR (who + changed it), with the role the actor held at the time. When a change + was made by Speechify support acting on the workspace's behalf, the + entry also carries that admin's email, so a support-initiated change + never reads as one a colleague made. + + Requires `members.manage_project_scope` (owner or admin): who widened + a member's access is a stronger fact than who currently holds it. + Returns 404 for missing or foreign-workspace projects. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.audit( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project id (prefixed external id, `proj_...`). + +
+
+ +
+
+ + **cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ + **limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.list_members(...) -> ProjectMembersResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + List the workspace members granted access to this project, oldest + grant first. Paginate by passing `cursor` from the previous response. + + A member with no grants anywhere is workspace-wide and does not appear + here: this lists people who have been narrowed to specific projects, + not everyone who can reach this one. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.list_members( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project ID. + +
+
+ +
+
+ + **cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ + **limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.grant_member(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Grant a workspace member access to this project. Once a member holds + any grant, they see and touch only the projects they have been granted. + + Requires `members.manage_project_scope` (owner or admin). An owner or + billing admin cannot be scoped: both already hold workspace-wide access + that a project scope would contradict without restricting anything. + Idempotent: granting a project the member already holds is a no-op. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.grant_member( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + user_id="user_kb3fim3yjnyto3kxli4g4ysdmyzgiuttjrudswlkgbawk", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project ID. + +
+
+ +
+
+ + **user_id:** `str` — The prefixed user id of the workspace member to grant. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.projects.revoke_member(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Remove a member's access to this project. + + A member who loses their last grant is not locked out - they return + to workspace-wide access, because holding no grants is the unrestricted + state. To restrict someone, grant them the projects they should keep + rather than revoking everything. Requires `members.manage_project_scope`. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.projects.revoke_member( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + user_id="user_kb3fim3yjnyto3kxli4g4ysdmyzgiuttjrudswlkgbawk", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **project_id:** `str` — Project ID. + +
+
+ +
+
+ + **user_id:** `str` — The member's prefixed user id, as returned by the members list. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## workspaces +
client.workspaces.get_entitlements() -> EntitlementsResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + The per-tier entitlements catalog plus the caller's RESOLVED + entitlements for the current workspace (tier defaults composed with + any per-tenant override). Readable with an API key as well as a + console session: it is how an integration learns what it may use + before a feature endpoint answers `402`. Branch on + `current.voice_cloning` and `current.hosted_apis_access`, and size + traffic from + `current.tts_requests_per_second` and `current.tts_concurrency`. The + console renders quota affordances and upgrade-card limits from the + same single server-authoritative source instead of a hardcoded + mirror. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.workspaces.get_entitlements() + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## Audio Watermark +
client.audio.watermark.detect(...) -> WatermarkDetectionResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Check whether a clip carries the watermark Speechify seals into audio it + generates. Upload the audio as `audio`; nothing about it is stored, and + no voice is read or written. + + Read the answer carefully in one direction. A `watermarked: true` is + positive evidence that the audio came from Speechify synthesis. A + `watermarked: false` is NOT proof that it did not: only models + redeployed since the watermark shipped mark their output, the detector + needs at least three seconds of clear speech to judge, and re-encoding + or changing the speed of a clip degrades the mark. Treat a negative as + the absence of evidence rather than as evidence of absence. + + Checks are rate-limited well below the synthesis budget: this is a + forensic question, not a data-plane call. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.audio.watermark.detect( + audio="example_audio", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **audio:** `core.File` + + The clip to check, at most 25MB. Give the detector at least + three seconds of clear speech; below that its confidence is + not worth acting on, and below half a second it always + reports zero. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.audio.watermark.verify(...) -> WatermarkVerificationResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + The public AI detection tool. Ask whether a clip carries the watermark + Speechify seals into audio it generates, with no account, no API key and + no credential of any kind. + + `verify` answers; `detect` measures. This route returns a bare yes or no, + the way verifying a signature does. Its sibling + `POST /v1/audio/watermark/detect` takes an API key and returns the + detector's confidence alongside the verdict. + + This is the programmatic half of the tool published at + , and it exists so the tool can be invoked + without visiting our website, as California's AI Transparency Act + (BPC 22757.2) requires. Nothing about the clip is stored, and nothing + identifying about you is collected or retained. + + The answer is a bare verdict. `watermarked: true` is positive evidence + that the audio came from Speechify synthesis. `watermarked: false` is + NOT proof that it did not: only models redeployed since the watermark + shipped mark their output, the detector needs at least three seconds of + clear speech to judge, and re-encoding or changing the speed of a clip + degrades the mark. Treat a negative as the absence of evidence rather + than as evidence of absence. + + Because the tool takes no credential, it is rate-limited per client + address and shares a platform-wide budget: expect a 429 under sustained + automated use, and retry after the interval the response advertises. + Use `POST /v1/audio/watermark/detect` with an API key for the detector's + confidence score and a per-workspace allowance of its own. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.audio.watermark.verify( + audio="example_audio", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **audio:** `core.File` + + The clip to check, at most 25MB. Give the detector at least + three seconds of clear speech; below that its answer is not + worth acting on. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## Voices ConsentChallenges +
client.voices.consent_challenges.create(...) -> ConsentChallenge +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Start the consent check for a voice clone. + + Returns a `phrase` for the speaker to read aloud and an `id` that identifies this challenge. Show the phrase to the speaker exactly as returned, record them reading it, then send the recording and the `id` to `POST /v1/voices`, which verifies the recording against the phrase and against the voice sample being cloned, then keeps it as the consent record. + + A challenge is single use, is bound to the workspace that created it, and expires at `expires_at` - it is proof that a speaker was in front of a microphone just now, so create it when you are ready to record, not at the start of your flow. If it expires, create another one and record again. + + Challenge creation is rate limited per workspace at a few dozen per hour, far more tightly than the rest of the voice surface, because each one precedes a person recording themselves - mint it when your speaker is ready, not speculatively. Read the live ceiling off `RateLimit-*` rather than hard-coding it. **On a `429`, always honour `Retry-After` rather than a fixed backoff of your own**: the wait is measured in minutes and can run to most of an hour. `RateLimit-*` are omitted rather than reporting a bucket that is not the one refusing. + + Like `POST /v1/voices`, a challenge requested from a jurisdiction where voice cloning is not available returns 403 `voice_cloning_unavailable_in_region` and issues no phrase. The location is read from the IP address that sends the request, which is your server's when your backend calls the API. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.voices.consent_challenges.create( + idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", + full_name="Jane Doe", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **full_name:** `str` + + Full name of the person consenting to have their voice cloned. + Speechify binds it to the challenge and stores it with the consent + record, so the create that consumes the challenge does not carry it + and cannot change it. + + At most 120 bytes once UTF-8 encoded, which is 120 characters of + Latin script but around 40 of Chinese, Japanese or Korean. Stated in + bytes rather than as a `maxLength` because the two only agree on + single-byte scripts, and a character count that never over-accepts + would have to refuse Latin names at 30. A name over the limit comes + back as `validation_failed` reporting its measured length. + +
+
+ +
+
+ + **idempotency_key:** `typing.Optional[str]` + + A client-generated key (an opaque string, max 255 chars) that makes a + side-effect POST safe to retry: the server runs the operation exactly + once and replays the first response (its status and body) for 24 hours. + Reusing a key with a different request body, or while the first request + is still in flight, returns `409 idempotency_conflict`. A replayed + response carries the `Idempotent-Replayed: true` header. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + ## Webhooks Endpoints +
client.webhooks.endpoints.list(...) -> ListWebhookEndpointsResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + The caller's workspace's registered webhook endpoints. Cursor-paginated: + omit `cursor` for the first page; walk pages while `has_more` is true + (default page size 50, max 200). The signing `secret` is never returned + here — it is shown only when an endpoint is created or its secret is + rotated. Filter by delivery scope with `project_id`. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.list( + project_id="proj_01arz3ndektsv4rrffq69g5fav", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ + **limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ + **project_id:** `typing.Optional[str]` + + Filter endpoints by project scope: omit for everything the caller + may see, pass the literal `shared` for workspace-wide endpoints + only, or a `proj_...` id for endpoints scoped to that project. + Endpoints have no Default project - a null `project_id` means + workspace-wide, so the literal here is `shared`, never `default`. + Returns 404 project_not_found for a malformed id and for any + project outside your reach: a project-pinned API key or + service-account key reaches only its pinned project, and a member + holding project grants reaches only the granted projects. That 404 + is the same in every case and does not reveal whether such a + project exists - outside your reach a project is answered as + nonexistent, never as forbidden. `shared` is always inside your + reach. Inside it, a well-formed id that matches nothing yields an + empty page. + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.create(...) -> WebhookEndpoint +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Register a webhook endpoint. Speechify mints an HMAC signing secret + and returns it in the response `secret` field — exactly once. Store it + then; subsequent reads omit it (rotate it with the rotate-secret action + if lost). Select events via `enabled_events`: a list of catalog event + names or `["*"]` for every event. Optionally scope delivery to one + project with `project_id`; omit it for a workspace-wide endpoint that + receives every project's events. Limited to 50 endpoints per workspace. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.create( + url="https://example.com/speechify/webhooks", + enabled_events=[ + "project.spend_budget.warning" + ], + description="Example description.", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **url:** `str` + + HTTPS destination for event deliveries. Must be a publicly + reachable host: loopback, private, link-local, and cloud-metadata + addresses (and reserved hostnames like `localhost`) are rejected. + +
+
+ +
+
+ + **enabled_events:** `typing.List[str]` — Catalog event names to subscribe to, or `["*"]` for all events. + +
+
+ +
+
+ + **project_id:** `typing.Optional[str]` + + Optionally scope the endpoint to one project (prefixed + `proj_...` id): a scoped endpoint receives only that project's + events. Omit (or null) for workspace-wide - it receives every + project's events. An unknown id returns 404 project_not_found. + A project-pinned API key creates into its own project and + cannot name the workspace-wide tier. + +
+
+ +
+
+ + **include:** `typing.Optional[typing.List[str]]` + + Optional payload-shaping keys (see `WebhookEndpoint.include`). + Omit for the lean default. + +
+
+ +
+
+ + **api_version:** `typing.Optional[datetime.date]` + + Optionally pin the endpoint's payload shape to a dated version + (`YYYY-MM-DD`, see `WebhookEndpoint.api_version`). Omit to use the + workspace's current version. An unknown version is rejected. + +
+
+ +
+
+ + **description:** `typing.Optional[str]` + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.get(...) -> WebhookEndpoint +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Fetch a webhook endpoint by id. The signing secret is never returned. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.get( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.delete(...) +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Delete a webhook endpoint. In-flight deliveries stop; returns 204 on success. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.delete( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.update(...) -> WebhookEndpoint +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Partial update; omitted fields are left unchanged. Set `disabled` to pause delivery without deleting the endpoint. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.update( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + url="https://example.com/webhook", + enabled_events=[ + "example" + ], + description="Example description.", + disabled=False, + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ + **url:** `typing.Optional[str]` + + HTTPS destination for event deliveries. Must be a publicly + reachable host: loopback, private, link-local, and cloud-metadata + addresses (and reserved hostnames like `localhost`) are rejected. + +
+
+ +
+
+ + **project_id:** `typing.Optional[str]` + + Re-scope the endpoint: a `proj_...` id narrows it to that + project's events, an explicit null makes it workspace-wide + (every project's events), omitted leaves it unchanged. The + signing secret and delivery history are untouched, so + re-scoping never requires redeploying your receiver. An + unknown id returns 404 project_not_found. A project-pinned API + key may only scope an endpoint to its own project. + +
+
+ +
+
+ + **enabled_events:** `typing.Optional[typing.List[str]]` + +
+
+ +
+
+ + **include:** `typing.Optional[typing.List[str]]` + + Payload-shaping keys (see `WebhookEndpoint.include`). Send `[]` to + clear back to the lean default. + +
+
+ +
+
+ + **api_version:** `typing.Optional[datetime.date]` + + Opt the endpoint into a different (typically newer) payload shape + (`YYYY-MM-DD`, see `WebhookEndpoint.api_version`). Omit to leave it + unchanged. An unknown version is rejected. + +
+
+ +
+
+ + **description:** `typing.Optional[str]` + +
+
+ +
+
+ + **disabled:** `typing.Optional[bool]` + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.rotate_secret(...) -> WebhookEndpoint +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Mint a new HMAC signing secret for the endpoint and return it in the + response `secret` field (shown exactly once). The previous secret stops + signing immediately, so accept both during your cutover window. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.rotate_secret( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ +
client.webhooks.endpoints.list_deliveries(...) -> ListWebhookEndpointDeliveriesResponse +
+
+ + #### 📝 Description + +
+
+ +
+
+ + Delivery attempts for one webhook endpoint, newest first. One row per + (endpoint, event, resource), updated in place across retries. Each row + includes the exact request payload and signed headers Speechify sent + (`request_body`, `request_headers`) and the response your server returned + (`last_status_code`, `last_response_body`, `last_response_headers`), so + you can verify the signature and debug failures. Cursor-paginated: omit + `cursor` for the first page; walk pages while `has_more` is true (default + page size 50, max 200). + + An endpoint that was not a target of an event has no row for it: a + project-scoped endpoint records nothing for another project's events. + An empty list therefore means either nothing matched or nothing + happened. To tell them apart, check the project's own activity first: + activity there with no delivery here is a defect to report; none there + means there was nothing to deliver. +
+
+
+
+ + #### 🔌 Usage + +
+
+ +
+
+ + ```python + from speechify import Speechify + from speechify.environment import SpeechifyEnvironment + + client = Speechify( + token="", + environment=SpeechifyEnvironment.DEFAULT, + ) + + client.webhooks.endpoints.list_deliveries( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + ``` +
+
+
+
+ + #### ⚙️ Parameters + +
+
+ +
+
+ + **webhook_endpoint_id:** `str` — Webhook endpoint id (prefixed `whe_…`). + +
+
+ +
+
+ + **cursor:** `typing.Optional[str]` — Opaque pagination cursor from a previous response. + +
+
+ +
+
+ + **limit:** `typing.Optional[int]` — Max items per page (default 50, max 200). + +
+
+ +
+
+ + **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration. + +
+
+
+
+ + +
+
+
+ + status: unresolved