From 5446ef3d4cb3102e4d0c84a51b896e1c8bf5e8d0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 16:45:57 +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 | 12 +- .fern/replay.lock | 10 + .fernignore | 3 + .gitattributes | 1 + README.md | 3 +- poetry.lock | 1569 +++++---- pyproject.toml | 8 +- reference.md | 2318 ++++++++++++- src/speechify/__init__.py | 173 +- src/speechify/audio/__init__.py | 81 + src/speechify/audio/client.py | 188 +- src/speechify/audio/raw_client.py | 306 +- src/speechify/audio/types/__init__.py | 78 + .../audio/types/audio_stream_input_model.py | 5 + .../types/audio_stream_input_output_format.py | 30 + .../types/audio_stream_input_speech_marks.py | 5 + .../audio/types/get_speech_request_model.py | 4 +- src/speechify/audio/types/input_close.py | 24 + src/speechify/audio/types/input_close_type.py | 5 + src/speechify/audio/types/input_flush.py | 24 + src/speechify/audio/types/input_flush_type.py | 5 + src/speechify/audio/types/input_text.py | 28 + src/speechify/audio/types/input_text_type.py | 5 + .../audio/types/session_pronunciations.py | 29 + ...sion_pronunciations_pronunciations_item.py | 10 + ...ronunciations_pronunciations_item_alias.py | 36 + ..._pronunciations_pronunciations_item_ipa.py | 36 + .../types/session_pronunciations_type.py | 5 + src/speechify/audio/types/speech_chunk.py | 43 + .../types/speech_chunk_speech_marks_item.py | 28 + .../audio/types/speech_chunk_type.py | 5 + src/speechify/audio/types/speech_done.py | 35 + .../audio/types/speech_done_reason.py | 5 + src/speechify/audio/types/speech_done_type.py | 5 + src/speechify/audio/types/speech_error.py | 34 + .../audio/types/speech_error_error.py | 64 + .../audio/types/speech_error_error_code.py | 181 + .../audio/types/speech_error_type.py | 5 + src/speechify/audio/types/speech_flushed.py | 24 + .../audio/types/speech_flushed_type.py | 5 + src/speechify/audio/watermark/__init__.py | 4 + src/speechify/audio/watermark/client.py | 269 ++ src/speechify/audio/watermark/raw_client.py | 648 ++++ src/speechify/client.py | 125 +- src/speechify/core/client_wrapper.py | 60 +- src/speechify/core/http_client.py | 260 +- src/speechify/core/http_response.py | 4 + src/speechify/core/http_sse/_api.py | 365 +- src/speechify/core/http_sse/_decoders.py | 13 + src/speechify/core/jsonable_encoder.py | 27 +- src/speechify/core/pagination.py | 85 +- src/speechify/core/pydantic_utilities.py | 196 +- src/speechify/core/request_options.py | 10 +- src/speechify/environment.py | 13 +- src/speechify/models/client.py | 4 +- src/speechify/models/raw_client.py | 2 + src/speechify/projects/__init__.py | 34 + src/speechify/projects/client.py | 1458 ++++++++ src/speechify/projects/raw_client.py | 3043 +++++++++++++++++ src/speechify/projects/types/__init__.py | 34 + .../types/delete_project_request_mode.py | 5 + src/speechify/types/__init__.py | 84 + src/speechify/types/billing_entitlements.py | 125 + ...illing_entitlements_max_llm_model_class.py | 5 + src/speechify/types/entitlements_response.py | 33 + src/speechify/types/error_code.py | 103 + src/speechify/types/get_stream_request.py | 15 +- .../types/get_stream_request_model.py | 4 +- src/speechify/types/get_voice.py | 33 + src/speechify/types/get_voices_model.py | 9 +- src/speechify/types/get_voices_model_name.py | 2 +- src/speechify/types/list_projects_response.py | 21 + src/speechify/types/list_voices_response.py | 6 +- ...st_webhook_endpoint_deliveries_response.py | 25 + .../types/list_webhook_endpoints_response.py | 25 + src/speechify/types/model.py | 68 +- src/speechify/types/models_response.py | 9 +- src/speechify/types/project.py | 144 + src/speechify/types/project_audit_event.py | 73 + .../types/project_audit_event_type.py | 8 + src/speechify/types/project_audit_response.py | 25 + src/speechify/types/project_member.py | 33 + .../types/project_members_response.py | 21 + .../types/project_monthly_budget_status.py | 5 + src/speechify/types/project_restore.py | 56 + .../types/project_still_revoked_counts.py | 27 + src/speechify/types/pronunciation.py | 8 + src/speechify/types/pronunciation_alias.py | 31 + .../types/pronunciation_case_sensitive.py | 6 + src/speechify/types/pronunciation_ipa.py | 31 + src/speechify/types/pronunciation_ipa_text.py | 6 + src/speechify/types/pronunciation_text.py | 6 + src/speechify/types/pronunciations.py | 14 + src/speechify/types/safety_identifier.py | 10 + src/speechify/types/speech_error_event.py | 3 +- .../types/watermark_detection_response.py | 38 + .../types/watermark_verification_response.py | 34 + .../types/webhook_delivery_status.py | 5 + src/speechify/types/webhook_endpoint.py | 103 + .../types/webhook_endpoint_delivery.py | 70 + src/speechify/voices/client.py | 120 +- .../voices/consent_challenges/client.py | 8 +- .../voices/consent_challenges/raw_client.py | 6 + src/speechify/voices/raw_client.py | 110 +- src/speechify/webhooks/__init__.py | 34 + src/speechify/webhooks/client.py | 63 + src/speechify/webhooks/endpoints/__init__.py | 4 + src/speechify/webhooks/endpoints/client.py | 912 +++++ .../webhooks/endpoints/raw_client.py | 1828 ++++++++++ src/speechify/webhooks/raw_client.py | 13 + src/speechify/workspaces/__init__.py | 4 + src/speechify/workspaces/client.py | 124 + src/speechify/workspaces/raw_client.py | 195 ++ tests/utils/test_http_client.py | 280 +- 114 files changed, 15962 insertions(+), 1157 deletions(-) create mode 100644 .fern/replay.lock create mode 100644 .gitattributes create mode 100644 src/speechify/audio/types/audio_stream_input_model.py create mode 100644 src/speechify/audio/types/audio_stream_input_output_format.py create mode 100644 src/speechify/audio/types/audio_stream_input_speech_marks.py create mode 100644 src/speechify/audio/types/input_close.py create mode 100644 src/speechify/audio/types/input_close_type.py create mode 100644 src/speechify/audio/types/input_flush.py create mode 100644 src/speechify/audio/types/input_flush_type.py create mode 100644 src/speechify/audio/types/input_text.py create mode 100644 src/speechify/audio/types/input_text_type.py create mode 100644 src/speechify/audio/types/session_pronunciations.py create mode 100644 src/speechify/audio/types/session_pronunciations_pronunciations_item.py create mode 100644 src/speechify/audio/types/session_pronunciations_pronunciations_item_alias.py create mode 100644 src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py create mode 100644 src/speechify/audio/types/session_pronunciations_type.py create mode 100644 src/speechify/audio/types/speech_chunk.py create mode 100644 src/speechify/audio/types/speech_chunk_speech_marks_item.py create mode 100644 src/speechify/audio/types/speech_chunk_type.py create mode 100644 src/speechify/audio/types/speech_done.py create mode 100644 src/speechify/audio/types/speech_done_reason.py create mode 100644 src/speechify/audio/types/speech_done_type.py create mode 100644 src/speechify/audio/types/speech_error.py create mode 100644 src/speechify/audio/types/speech_error_error.py create mode 100644 src/speechify/audio/types/speech_error_error_code.py create mode 100644 src/speechify/audio/types/speech_error_type.py create mode 100644 src/speechify/audio/types/speech_flushed.py create mode 100644 src/speechify/audio/types/speech_flushed_type.py create mode 100644 src/speechify/audio/watermark/__init__.py create mode 100644 src/speechify/audio/watermark/client.py create mode 100644 src/speechify/audio/watermark/raw_client.py create mode 100644 src/speechify/projects/__init__.py create mode 100644 src/speechify/projects/client.py create mode 100644 src/speechify/projects/raw_client.py create mode 100644 src/speechify/projects/types/__init__.py create mode 100644 src/speechify/projects/types/delete_project_request_mode.py create mode 100644 src/speechify/types/billing_entitlements.py create mode 100644 src/speechify/types/billing_entitlements_max_llm_model_class.py create mode 100644 src/speechify/types/entitlements_response.py create mode 100644 src/speechify/types/list_projects_response.py create mode 100644 src/speechify/types/list_webhook_endpoint_deliveries_response.py create mode 100644 src/speechify/types/list_webhook_endpoints_response.py create mode 100644 src/speechify/types/project.py create mode 100644 src/speechify/types/project_audit_event.py create mode 100644 src/speechify/types/project_audit_event_type.py create mode 100644 src/speechify/types/project_audit_response.py create mode 100644 src/speechify/types/project_member.py create mode 100644 src/speechify/types/project_members_response.py create mode 100644 src/speechify/types/project_monthly_budget_status.py create mode 100644 src/speechify/types/project_restore.py create mode 100644 src/speechify/types/project_still_revoked_counts.py create mode 100644 src/speechify/types/pronunciation.py create mode 100644 src/speechify/types/pronunciation_alias.py create mode 100644 src/speechify/types/pronunciation_case_sensitive.py create mode 100644 src/speechify/types/pronunciation_ipa.py create mode 100644 src/speechify/types/pronunciation_ipa_text.py create mode 100644 src/speechify/types/pronunciation_text.py create mode 100644 src/speechify/types/pronunciations.py create mode 100644 src/speechify/types/safety_identifier.py create mode 100644 src/speechify/types/watermark_detection_response.py create mode 100644 src/speechify/types/watermark_verification_response.py create mode 100644 src/speechify/types/webhook_delivery_status.py create mode 100644 src/speechify/types/webhook_endpoint.py create mode 100644 src/speechify/types/webhook_endpoint_delivery.py create mode 100644 src/speechify/webhooks/__init__.py create mode 100644 src/speechify/webhooks/client.py create mode 100644 src/speechify/webhooks/endpoints/__init__.py create mode 100644 src/speechify/webhooks/endpoints/client.py create mode 100644 src/speechify/webhooks/endpoints/raw_client.py create mode 100644 src/speechify/webhooks/raw_client.py create mode 100644 src/speechify/workspaces/__init__.py create mode 100644 src/speechify/workspaces/client.py create mode 100644 src/speechify/workspaces/raw_client.py diff --git a/.fern/metadata.json b/.fern/metadata.json index 0468154..69a712e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,7 +1,7 @@ { - "cliVersion": "5.64.0", + "cliVersion": "5.128.0", "generatorName": "fernapi/fern-python-sdk", - "generatorVersion": "5.14.20", + "generatorVersion": "5.41.10", "generatorConfig": { "package_name": "speechify", "client": { @@ -9,9 +9,9 @@ }, "pyproject_python_version": ">=3.9" }, - "originGitCommit": "469722e153faa1a1c50aa63ea9cdca853f588721", + "originGitCommit": "14383dab6762a97b9dab9778796ac2b4c41cdd6d", "originGitCommitIsDirty": false, - "invokedBy": "manual", - "requestedVersion": "4.0.0", - "sdkVersion": "4.0.0" + "invokedBy": "ci", + "ciProvider": "github", + "sdkVersion": "4.0.1" } \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock new file mode 100644 index 0000000..4a27de4 --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,10 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: 2f809ee908c7bd65b24bf4a97010279ac34b982d + tree_hash: 8e443472bda51e72aba146049a4c210014e05d94 + timestamp: 2026-10-27T16:45:37.311Z + cli_version: unknown + generator_versions: {} +current_generation: 2f809ee908c7bd65b24bf4a97010279ac34b982d +patches: [] diff --git a/.fernignore b/.fernignore index ad2ec63..6b8bbc9 100644 --- a/.fernignore +++ b/.fernignore @@ -18,3 +18,6 @@ AGENTS.md LICENSE # ignore context7 config file context7.json +.fern/replay.lock +.fern/replay.yml +.gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..74928d6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.fern/replay.lock linguist-generated=true diff --git a/README.md b/README.md index 41fb863..4a35333 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ client = Speechify( client.voices.list( locale="en", model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", ) ``` @@ -212,7 +213,7 @@ client = Speechify(..., timeout=20.0) # Override timeout for a specific method client.audio.speech(..., request_options={ - "timeout_in_seconds": 1 + "timeout": 1 }) ``` diff --git a/poetry.lock b/poetry.lock index 232059d..6a59a38 100644 --- a/poetry.lock +++ b/poetry.lock @@ -15,132 +15,174 @@ files = [ [[package]] name = "aiohttp" -version = "3.14.3" +version = "3.14.5" description = "Async http client/server framework (asyncio)" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "aiohttp-3.14.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:eb0495d778817619273c108784292be161a924b9f5ae5cbbc70a2caa6838250b"}, - {file = "aiohttp-3.14.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c3c200cf9757edd785051dc699c7ecbec22110dbfcb3fefc7a9f9695eda8ea7a"}, - {file = "aiohttp-3.14.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd51ebf9d3a00c074df4ede271023f4d2dba289bcc740b88191872716014e3c5"}, - {file = "aiohttp-3.14.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:134ac5ddcf61c6fad984b9a5727d83492ada43d63471db20fb73042c13fca62f"}, - {file = "aiohttp-3.14.3-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:70c987b27534f9ae1a723f47ae921571d616da21d3208282bf4c52af5164ac43"}, - {file = "aiohttp-3.14.3-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1b59533861b70a2185c8f4f350f791f39d64358ef6944ce71c5240c9ec0982c9"}, - {file = "aiohttp-3.14.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1c5281acc88b92396f88c7e1e2748f8466689df22b80170e4f51efa712fb47a8"}, - {file = "aiohttp-3.14.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:48d67b87db6279c044760787eb01f6413032c2e6f3ba1cafaa492b1c8e578479"}, - {file = "aiohttp-3.14.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f53bcd52f585e1ac3e590d61434eb61f9a88c38df041b4ea126d97144344a77b"}, - {file = "aiohttp-3.14.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:0fdea2281997af69da84c77ffa6f5938a0285f21fb3887c249d67419ca865b3d"}, - {file = "aiohttp-3.14.3-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:cda5fd5c95ad7a125a2e8464acc78b98b94c475a3780d6aa0aa157c93f470f4d"}, - {file = "aiohttp-3.14.3-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:6debfa7312ff9d4c124dc71d72e9a0a4b9e0879e48ba6fcb42bef5c3300289e2"}, - {file = "aiohttp-3.14.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:f4e05329faa0ea1a404b37de4f034fd2c2defcca06a68dc6745e4e56c88e8a48"}, - {file = "aiohttp-3.14.3-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:a3a8296e7ab5c295f53f1041487cb088e1480775aafbf7fe545d93b770a0f96f"}, - {file = "aiohttp-3.14.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5373dc80ad1aa2fb9ad95c83f24eef418bbda3a61375f128e5b0192e4f3f9b32"}, - {file = "aiohttp-3.14.3-cp310-cp310-win32.whl", hash = "sha256:a3e22975f905b89a55a488c2a08f2fdb2186175349e917d48985cc468a3d4c6e"}, - {file = "aiohttp-3.14.3-cp310-cp310-win_amd64.whl", hash = "sha256:bdd0e2834dce1a26c1bbe26464861e16bbe217042cbff619247c11594472518c"}, - {file = "aiohttp-3.14.3-cp310-cp310-win_arm64.whl", hash = "sha256:eac645b09bcfdf73df7536331f0678c1086ea250981118ddb5199e17ccef72bb"}, - {file = "aiohttp-3.14.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e568e14940c09955aa51f4e645b6daa18a581c5dcfcd73744dcc86a856e3ced3"}, - {file = "aiohttp-3.14.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:54cfcdee2770dac994417cbb0ee1f3eb0e7cb6b30c79bf44f2c02ff79ec5124a"}, - {file = "aiohttp-3.14.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:21c016079415ed3fd676963e9793700a566d85dbbd6bfc564b9b2d209147dcc8"}, - {file = "aiohttp-3.14.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d6088ec9894113802bddb3c09e974929aed2c7b3a8c456219b8aab4481f1a239"}, - {file = "aiohttp-3.14.3-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:16ea7e24c309fb7c0bbd505d149abe4fe4dccfb8db911db7dbec0921bc889a6f"}, - {file = "aiohttp-3.14.3-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:56f355e79f71aef2a85c80305cc915f894b170dba76de5fe84f6351939b83c06"}, - {file = "aiohttp-3.14.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:18c441d0a8fca6de8d1f546849b9f0ab20d435993e2c5b59562b2fae6be2f929"}, - {file = "aiohttp-3.14.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:53e7b4ce82b54a8bcc71b3b67a5cbd177ca1d7f592cbc92cd38b7349f73482db"}, - {file = "aiohttp-3.14.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f55119f7bf25f49ed210f6096090715da24f2943c62102448915fde3c62877ce"}, - {file = "aiohttp-3.14.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9aa6e61fdf20105c4144e755bd586008ff450791d67b1c8146fdc15959c4d51c"}, - {file = "aiohttp-3.14.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:ccd4893707b3e2a13e39c90d43cf80edf2e4d0457935bcc103bf2346214c3f15"}, - {file = "aiohttp-3.14.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2466434105a4e03113c36ec775cc2ebe6676b62eae326fa670bb607ef788c1c"}, - {file = "aiohttp-3.14.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:ba59d59aba08ac02fc03b0c8983ccd5ee39a199d0552ce9e6d2b4845b34d59ae"}, - {file = "aiohttp-3.14.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ed099d105449c4f9e84f24af203cd131349d4761d8813fa7e02c32e7128cd910"}, - {file = "aiohttp-3.14.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:152516815ef926786a0b6ae2b8f1fd2e0c71582dee0b435636865316fd4891b7"}, - {file = "aiohttp-3.14.3-cp311-cp311-win32.whl", hash = "sha256:a4af35c443e0b1a1bd6a8af3f3485d7fda15c142751a00f3ff8090f0b93346fa"}, - {file = "aiohttp-3.14.3-cp311-cp311-win_amd64.whl", hash = "sha256:e1e74298bab6ee0d6e749ed4fd1901c7e604bdda32c03d787a2cc71c46d0433d"}, - {file = "aiohttp-3.14.3-cp311-cp311-win_arm64.whl", hash = "sha256:03cd2bde3d7f085b64e549c985f4bb928cad7e8ecf5323bfca320db548d81b39"}, - {file = "aiohttp-3.14.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:39aded8c7f3b935b54aab1d8d73c70ec0ee2d3ec3b943e0e86611bc150ba47f5"}, - {file = "aiohttp-3.14.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5bcb6ff3fdab1258a192679ff1a05d44f59626430aa05cd1a9d2447423599228"}, - {file = "aiohttp-3.14.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:617105e2c3018ee38d0c8ce5ee3c84f621a6d8b9f723202aacaff28449ca91ee"}, - {file = "aiohttp-3.14.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f631fe87a6f30df5fbe6d79640b25e4cffb38c31c7fb6f10871517b84b0f8c1a"}, - {file = "aiohttp-3.14.3-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a94dbaae5ae27bd849c93570669bff91e0510f33a80805738e3de72a7be0447b"}, - {file = "aiohttp-3.14.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8f2f1c4c032c7cedd7d8da6f54c97b70266c6570c3108d3fdffee7188bb70529"}, - {file = "aiohttp-3.14.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ea05e1f97ceea523942d9b2a7d7c0359d781d683d6b043f5943a602b14da4787"}, - {file = "aiohttp-3.14.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:543906c127fb1d929b95076db19b83fa2d46751006ff1e23b093aa5ac4d8db42"}, - {file = "aiohttp-3.14.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0a5ff2dfbb9ce645fa5b8ef3e02c6c0b9cc3f6030ff863d0c51fffc50cb5541b"}, - {file = "aiohttp-3.14.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:041badb8f84396357c4d3ad26de6afd7a32b112f43d3c63045c0c8278cfd2043"}, - {file = "aiohttp-3.14.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:530125ee1163c4219af35dc3aa1206e541e7b31b6efc1a3f93b70a136f65d427"}, - {file = "aiohttp-3.14.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c8653fd547c93a61aadc612007790f5555cdd18946fa48cf45e26d8ea4ea473d"}, - {file = "aiohttp-3.14.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:89176250f686cb9853c0fb7ead90e639e915b84a6f43eedc2a4e7ec21f1037f0"}, - {file = "aiohttp-3.14.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3a26434dafe408229ff3403458ca58de24fb51936504decac49ce6755f77e59d"}, - {file = "aiohttp-3.14.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d1558173930a5a8d3069cee5c92fc91c87c4dbcb099debbb3622053717145a19"}, - {file = "aiohttp-3.14.3-cp312-cp312-win32.whl", hash = "sha256:16100ad3ab8d649fdfbee87602d9d2dcdca9df0b9eda8a1b5fdc0d41f96da559"}, - {file = "aiohttp-3.14.3-cp312-cp312-win_amd64.whl", hash = "sha256:33a2d7c28d33797a2e99923dffa63f83d908a19b6bf26cfe80fa790aa5e1a75a"}, - {file = "aiohttp-3.14.3-cp312-cp312-win_arm64.whl", hash = "sha256:362a3fd481769cac1a824514bcd86fda51c65e8fe6e051099e008fddde6db17c"}, - {file = "aiohttp-3.14.3-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:2e9878ae68e4a5f1c0abe4dd497dbc3d51946f5837b56759e2a02e78fa90ef86"}, - {file = "aiohttp-3.14.3-cp313-cp313-android_21_x86_64.whl", hash = "sha256:f3d2669fe7dec7fc359ecdb5984b29b50d85d5d00f8c1cb61de4f4a24ee42627"}, - {file = "aiohttp-3.14.3-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:cc7cb243a68167172f48c1fd43cee91ec4b1d40cefd190edd43369d1a6bc9c82"}, - {file = "aiohttp-3.14.3-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:78253b573e6ffab5028924fc98bc281aae05445969982a10864bc360dea2016c"}, - {file = "aiohttp-3.14.3-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7041d52c3a7fa20c9e8c182b534704abb19502c8bdcbde7ab23bfda6f642394f"}, - {file = "aiohttp-3.14.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ac74facc01463f138b0da5580329cfcc82818dea5656e83ddcd11268fc12ff80"}, - {file = "aiohttp-3.14.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d6218d92e450824e9b4881f44e8c09f1853b490f9a64130801024a4793b1b3b0"}, - {file = "aiohttp-3.14.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:11fb37ef075669eee52ab1928fbf6e1741fada40409fa309ebde9607a962aebf"}, - {file = "aiohttp-3.14.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:55bdcc472aafe2de4a253045cc128007a64f1e0264fb675791e132ea5edaa3bd"}, - {file = "aiohttp-3.14.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c39846c3aad97a8530c89d7a3869a8f8e9e3762c6ac0504481e5c80948f7e807"}, - {file = "aiohttp-3.14.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5895ef58c4620afe02fa16044f023dc4dafec08158f9d08874a46a7dbc0341b8"}, - {file = "aiohttp-3.14.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fa9467a8113aa69d3d7c55a70ef0b7c636010a40993f3df9d9d0d73b3eb7ef24"}, - {file = "aiohttp-3.14.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7d2deec16eeedf55f2c7cf75b521ea3856a5177e123844f8fd0f114ce252cb5"}, - {file = "aiohttp-3.14.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:dd54d0e8717de95939766febac482ac0474d8ac3b048115f9f2b1d23a16e7db4"}, - {file = "aiohttp-3.14.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:df82f3787c940c94986b34222d59c9e38843fba85139f36e85255a82ad5355a9"}, - {file = "aiohttp-3.14.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:42a67efc36300d052fb4508a53e8b6901b9284b599ae63945c377569c5fcc1e1"}, - {file = "aiohttp-3.14.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7a75aa63cbf9b21cfaf60dc2657e19df2c2867d91707d653fee171ffeedd1371"}, - {file = "aiohttp-3.14.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:e92eb8acc45eb6a9f4935071a77edf5b85cc6f8dfad5cd99e97653c26593cdde"}, - {file = "aiohttp-3.14.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b014a6ed7cf912e787149fdc529166d3ceabac23f26efeea3158c9aba2354e7e"}, - {file = "aiohttp-3.14.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3d4f72af88ac2474bb5bca640030320e3d38a0163a1d7533500e87be458eef71"}, - {file = "aiohttp-3.14.3-cp313-cp313-win32.whl", hash = "sha256:5f08ec777f35ee70720233b8b9811d3bb5d728137f30ac91b7457709c3261ac0"}, - {file = "aiohttp-3.14.3-cp313-cp313-win_amd64.whl", hash = "sha256:dff9461ec275f22135650d5ba4b4931a11f3958df7dfbb8db630000d4dee0883"}, - {file = "aiohttp-3.14.3-cp313-cp313-win_arm64.whl", hash = "sha256:ddcac3c6b382e81f1dd0499199d4136b877beb4cb5ef770bbbfba56c4b8f55d2"}, - {file = "aiohttp-3.14.3-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:49f7325beb0f85ef4aef5f48f490269575f83e6e2acad00a1d80b807eb027062"}, - {file = "aiohttp-3.14.3-cp314-cp314-android_24_x86_64.whl", hash = "sha256:e3be98a7c30b8c25d573dafba7171d66dfb05ee6a9070fc46535464ff97700a6"}, - {file = "aiohttp-3.14.3-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:614c61d478b83953e261d02bb2df750f17227cd33ef8002945bf5aebbde21919"}, - {file = "aiohttp-3.14.3-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:1caa7b0d05f3e3a36f87788c59e970a7ee1cefcfcbb924a9f138c4a6551c9cb7"}, - {file = "aiohttp-3.14.3-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:dfa68deb2a443bdaa3ea5297b0699c1464f08aef3812b486d1348eee61b07dc0"}, - {file = "aiohttp-3.14.3-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:e72ee89e28d907a18f46959b4eb0bb06701cc7f8cf4366e00029e2ccfaaf5924"}, - {file = "aiohttp-3.14.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ad4c8b7488d745d2ca4838ebd8ae5ba9b56341d30b1da43640e4ce87f9f49646"}, - {file = "aiohttp-3.14.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:db332af25642007330fca8be5c4d194caf2bea7a7fc84415aff3497af5dfee6b"}, - {file = "aiohttp-3.14.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:25bd2708db6bdf6a6630dd37bdcdfcb47c4434d22ac69c64665b802910140b30"}, - {file = "aiohttp-3.14.3-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:cef89a58e628c4efcac3275c2d68083f82426dcdc89c1492a6f654f9f7ea6ab9"}, - {file = "aiohttp-3.14.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c23ec8ee9d5ab2f5421f9c7fffce208435607af27fd46d4a44e031954352838f"}, - {file = "aiohttp-3.14.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e2667f0bbe7eb6c74eae5e9691441ad186e5845ca3cff63230fc09c4e7514f5d"}, - {file = "aiohttp-3.14.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18cb43369747b2ae007bd2655fb8e63a099c2ff1d207962943636dac989b3147"}, - {file = "aiohttp-3.14.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d77640cc618c1d99fc4f8589c0f24a730adfa54eb1e57ef7bf0c8dfb78da898c"}, - {file = "aiohttp-3.14.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:53e5179d8abb5710f8e83ba207c41c8d1261fcffd4616500e15ca2b7a33be10a"}, - {file = "aiohttp-3.14.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:cd817772b2fcf2b8c0905795318485f9ec16eae60b29feb7f4c77085311637f0"}, - {file = "aiohttp-3.14.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4e3ac92d90e92773b2362d506068e9a948192bd553e743c5b2429e28527c8661"}, - {file = "aiohttp-3.14.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:3f42e9b78301f11c8f861746175d8b9c1ccef713fcad9eab396e2f6db8ed4a22"}, - {file = "aiohttp-3.14.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:9d9edccfe496b476db5f398d97b865e9a6752bcf8aec4eef8390ce20fb64bb41"}, - {file = "aiohttp-3.14.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:1c5ec8fb1bcc31a8466f74aaf26c345d5c386fa4bd08a3f0eb9c7a4a3fe8b5bf"}, - {file = "aiohttp-3.14.3-cp314-cp314-win32.whl", hash = "sha256:38901a84da3ce22249f6e860bf8f90d141bcab7da090cc398f8bb58c0e44b7da"}, - {file = "aiohttp-3.14.3-cp314-cp314-win_amd64.whl", hash = "sha256:8b3b60de05f3dcb6f6a00f818bb2ec781cee4de0645f59ccaf99b1d1823b6100"}, - {file = "aiohttp-3.14.3-cp314-cp314-win_arm64.whl", hash = "sha256:1576145bdceeb92382d899751e12743a3a5b8e460a841e3e50543859e54864dc"}, - {file = "aiohttp-3.14.3-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:8800c996b01c2772a783e3e46f3e1abd5823029adca0df54231960de9bfefa5b"}, - {file = "aiohttp-3.14.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ebe8e504f058fe91223351cecd2d9d6946c9d241bb0250d898ffbdf584cc72b0"}, - {file = "aiohttp-3.14.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:30402d03a7c0ff52bce290b57e564e9079fd9d0cb545c8aba73f86a103162d2e"}, - {file = "aiohttp-3.14.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9fc7b5bfec6573f3ae844f457fdde5adeb713f8b8e4a81ad64fc207b49383716"}, - {file = "aiohttp-3.14.3-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8a5fd34f7f7410d1730d5c2ba873cacb2eed3fede366feb268a70ba22581ed8f"}, - {file = "aiohttp-3.14.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:270d3dace9ca2f10f0da5d8ebe519b7a310fc6112ed916e32df5866df0888553"}, - {file = "aiohttp-3.14.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3ae5b3a59436d089b5395d910121a390feed4d00578eb95a0fd1a329fe963100"}, - {file = "aiohttp-3.14.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2498f0fe69ead802f9675beca44a7c21c62fdaa4ec5145ea1c3ad6edbee29f85"}, - {file = "aiohttp-3.14.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a0dc483c00da8b673abbb367eb6f8d8f4bcec30eb58529ea13cb42e7fd2dfa33"}, - {file = "aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c7d3a97c678d34fc5b59da671ee9cd630096ddc643e7b5a30d54a2a6f3574d3f"}, - {file = "aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:f8fb78a83c9e5f741ca3a68cfb455c1f5bb83b4e7249a3848b3cd78d0a8563b0"}, - {file = "aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:74ab5b6a9fb13e873e5a90946588baecaf488745e1db1a4a5c433f971f035098"}, - {file = "aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:bd52f811e65f6fb634b1047159657c98f52b407f8efec907bcfc09da9a4c0a25"}, - {file = "aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:f0f177d1b195b9e06376cfd7d308d8a1b920909a609d03ac82a8c73bbb16d3b9"}, - {file = "aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:498c6c623134f8e09a3c4e60bcd607a0b4590dd7dbf08dd40851b27cbb520ccb"}, - {file = "aiohttp-3.14.3-cp314-cp314t-win32.whl", hash = "sha256:b304db572b4368edd8dda8a2274f73156fe15558fca4a917cb8a09fc47af5963"}, - {file = "aiohttp-3.14.3-cp314-cp314t-win_amd64.whl", hash = "sha256:b20032766aedf6261c7a566585a40867d092ac03a0d81592d5370ef9b054f99b"}, - {file = "aiohttp-3.14.3-cp314-cp314t-win_arm64.whl", hash = "sha256:2e1161602f45a54de2ce0905243a95f58cb42dcd378402f3697f5e0b21e9d2e7"}, - {file = "aiohttp-3.14.3.tar.gz", hash = "sha256:9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f7844bc"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ef692a24087a699c0a4a26af45e746e0c1eae2116f6d8a5ff91d8aae2b867b45"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1220353657ad49493551f089ce02f1a348fd57ffd585bfec77f2f3c4fe3a7346"}, + {file = "aiohttp-3.14.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:330900acd0dc4cb8b27f9c127fbaad770964845338493e7906ae3822e82dbf8d"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0684952aeae1f5dbfe02d46039338513b94009baecd15d8e4098a357c4c4a2a6"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d94e44be379e569758fee8a9a58431cfc3c2598c708b92b1cfe96c66b4c94aef"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5af42135fdfebdadbc2bcd9c0842a48ccf0d62794c36a260b21dc4b94d1e0119"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f07fe3ac408d8b3f768be471dc3f56d43843c47d97c66120534467a15ead197"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f375db73a39f5cf83696d500e21a67f418dc9a988955756f254be8f03b7b3651"}, + {file = "aiohttp-3.14.5-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8df7d481654ac96fe1ba9a02a9f67770fdd367823e0d5ef01b922725c4bd2cfa"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e95c8def4b81c5d68d5cf1f54c07acd7c0d2577af244e5b6da802120825737c6"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:f2ebb54b3f932210503072f09974b4fb574d823e497a944adfdcd140a6a00255"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:038c2c7e8caa26b6c8423779b5eaf1893904048a512c19b32fe841ffa5592b50"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:b7806e804889231b0e06469fd4a5c06313d1c0a3377322b6d9237fa5e0fe4167"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:9bab2045550c4fe0f7baf89574db1b455c195750702ba96fef1f16972b146617"}, + {file = "aiohttp-3.14.5-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:96a2e584f0b9ed8f1fa33211397dcf67bb7069866402cb405d191c2f0defb9a3"}, + {file = "aiohttp-3.14.5-cp310-cp310-win32.whl", hash = "sha256:602c1e9b718a3275c580149f947e7fac65044c0a20e599553fb12e9700da9eca"}, + {file = "aiohttp-3.14.5-cp310-cp310-win_amd64.whl", hash = "sha256:bea559ad70218d230663e4210875735076a9bfea5994cef34a55a25faeaf2544"}, + {file = "aiohttp-3.14.5-cp310-cp310-win_arm64.whl", hash = "sha256:dca3fa8d8a0a26679862eccb0b1a9151b2b9f1cd2c212e7a6335778faaff5833"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d51db97c96384fbfcaf8f4c65922183a68b94f891c3c10c862ef5f6df2adbb1f"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae53924aa853a7a2ca20ed4142c7c6b56338e4d4cd999e2980075b9efc2e257a"}, + {file = "aiohttp-3.14.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2c473a355f9239efcb72c92d5abfd8fcdb0cc78c8e9af607e72ca12dbb36593"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32e8fa6644e541fcd7e02430588c7fc93b602c1778ea0bc345505db76b61cfb4"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:579f97d5120f2971876d2ddca2968135f6944d00c44c3a6590ad7d86ca9b403f"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:24409db442e2fb6e766bc7f3943851a8381dec3098140e43bb2e843b79e31b12"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5e8f97c0488ffda3082766ac0f2c8150a9a58c4d05788330e479cfd449b37939"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50a195903119008fe9cc68710535eb37f556ffffd6a7759afe70a2c145587045"}, + {file = "aiohttp-3.14.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0133c3c3b54a0bf1e71fa5c1ad95c93f07fd54e24ef1fe182f5122e1573d2bf1"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c172db893e516e1358e65a95ee20b7ce7173963eefe318b6ab2a2220688b999e"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:f2a7966bda23dd85051f1661ce0ace38d6890e05ec6c357ecae9d2479cba377e"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4887d130a7bbfed3a85493bb5a25e5b5b558d40c1d986dd16970d2bb26d63793"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:225c579c23b68b343cccea27a7e06e3bd8ec23a09c30b427eb3f1e4ca6239b20"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ab52d8f1fc1b64821c1fbad64a647ed6203627004059a6d1ed4f0858a1499703"}, + {file = "aiohttp-3.14.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cb131d775a1573c1aee66656bd78b023577bbdb6cb8349a07773bd4f73e68a6e"}, + {file = "aiohttp-3.14.5-cp311-cp311-win32.whl", hash = "sha256:e87046c8ff77a8decdb6a41d8ab25824b47531b2da933aeab0c1e21c7acff329"}, + {file = "aiohttp-3.14.5-cp311-cp311-win_amd64.whl", hash = "sha256:6f275c11d1aa6d4c458e05a68be084efe3c55a113d99e3f46a318098e52948fc"}, + {file = "aiohttp-3.14.5-cp311-cp311-win_arm64.whl", hash = "sha256:b032a0023eb41d768ce77d83210ab2a3c389bc0b09313273c7e1eca48c10a755"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:df37b620684e19b5e25724412518ccafc3b1a49cdac706fdbd2f983fad943450"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ef60869969180ec2464f1349aff07138ae35ca2200f0946cb3552e49e8f301a8"}, + {file = "aiohttp-3.14.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d079c0a0135c36e7beb6f1c88087c8f108dc5891cdd0b5eafa778421bda70ed2"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:abfda5cb094a829f7bc25216a32f7db2e85cc65bd59910f8e7b40b3d9b224764"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9cc882cf8619109583c906b4d4a85d6a111a98afa34b7a450d1e08118d016820"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7457580535e019e1247ea35d6a02bf081ad30c26d0cbc210c93f6c3ab67a0835"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c5ed596aedb9c42afd3fe0aae3117725378ac73d2cc5ddc735056fbdb96c5d02"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20f085697d7e911f1f73c43ed03fafbed1e7121797e2eb5428efa80398060584"}, + {file = "aiohttp-3.14.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:74b0a9c8270f9b0a11410e124ff8d4f18bfc1f1837440ec84da5ae7b50927b5d"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:19e2ba471507c34f8252402ab50f5ab512398b9ea8c8f1cb26beb3f75793ba30"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d418ce2af40c6bb685b3f663e9e8de27cb0a22431d8e88a167348d7f01878073"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:70cb4008ac2ed1e0ca9e824deb4b53d3aa0d939109698ebf1e723a84337bd794"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a23fe35d776bc03cb495938b9594450d047e3bc08c5255315a82323e9cb7d2dd"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3e0eb43bed3c6801a6cee315195377789e90b2a72c2277a475b578535312488d"}, + {file = "aiohttp-3.14.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be7dd397d64ca3e1869626fa9318aaebb54b7bf93bc72d7a205448d83e4f748"}, + {file = "aiohttp-3.14.5-cp312-cp312-win32.whl", hash = "sha256:eb324e2009fb54db30a071dad7caf6998ee2879c4704007efb244514dad1fec1"}, + {file = "aiohttp-3.14.5-cp312-cp312-win_amd64.whl", hash = "sha256:2cc38a4f2b516bef1714e690df87a0e043faf1a7693c82d860091684453d5111"}, + {file = "aiohttp-3.14.5-cp312-cp312-win_arm64.whl", hash = "sha256:a63afd1f757de949028387e65a7127b61ad0f775432dbb0e62816ae619fe69ac"}, + {file = "aiohttp-3.14.5-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:9ad7e6aa38c20da1be697874349c4c273c8a03b7887169665081706398d0439a"}, + {file = "aiohttp-3.14.5-cp313-cp313-android_24_x86_64.whl", hash = "sha256:f59c7673465908cbe506117176156c127f29f917677afceada34957179221d91"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b5416552740edf07234cc9437d0706f2acb67b93c198670b1a68e1b2b587dec"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:43351bdb5e4c3cb7d1772368e988534e869a74db7778079a83782c11c69535c7"}, + {file = "aiohttp-3.14.5-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c8c4478bef6d57fcfda15dae461ea3c9f06aa7b257c58df3f2300174ccbb185a"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c2c30484dd1417ef98b51021ffa2cc0d7f3c78918adaaaab7e70817335ab3e02"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dab9ac5a67c8d1f070c00fa8fccb7cbd1b8dcc1a8d6b42f37540df9b3d4cc603"}, + {file = "aiohttp-3.14.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e1cc2bfaee8c214f06080a7c7d5772419b8a1108e8e5349236189811823fb02a"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74efb69332b85675b1eabd760a8cfc2e2cf42c60607c66f88014c1bdfb40942d"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:42b5e616946dbaf505e2bff18c9af2cd4ef9e7ef300ee58a6e951a5b7cf147ae"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f9033b43f511f27547c557dcaba0177649e10a3725336ccd2cce0fdc1dc4850d"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15a310d3c71398e3d7bfc93a1a73fbe664315cd9e9016b8efc1cff85eeab7155"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1ffa3a523a36d8628f98c06492ae16a31a23d14c0b4ec721757b477319f656d6"}, + {file = "aiohttp-3.14.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fb6a6e919bfb703227bc1ce6579281b84b1a2ba57deb9794dfdbec7dcd1e40c"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:43e1b7994a8b038125f722bff07492ef501110722c2727c408995d9fb864c421"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5f3e96071686755d9cd3600c3880183eb94b012178e92746d68101800f0ed8a3"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:cd88b01f3d37b7a2a34f91d98f14720206f1ea3d540843fab2d649dd5fb91fec"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f2ed8b64dc0c651c0f5a9c926777719770021251b8f336d97c4b80b660836ce1"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a9918e58faf62ba2c7147927d06057aec78f42475aff5048047ec47e7265a600"}, + {file = "aiohttp-3.14.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:42f320d4a5b00b9af0bddcfec5407dc6f2d9816f006b2f79ebbaa31f16895df3"}, + {file = "aiohttp-3.14.5-cp313-cp313-win32.whl", hash = "sha256:3ae800a20947e2c2e53088047d021e6bf7d51560cc49f6a0737a1f79d2e3a13c"}, + {file = "aiohttp-3.14.5-cp313-cp313-win_amd64.whl", hash = "sha256:d05e94cdfe0d15d0206f970722d2554780ce562787b21b218b275447f8751319"}, + {file = "aiohttp-3.14.5-cp313-cp313-win_arm64.whl", hash = "sha256:f001b571ead90ca1770f1e616db255351a1703317f20374c361ef22f12c06d09"}, + {file = "aiohttp-3.14.5-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:939042d5cda21d41a6f512e7cc8b8e33a2aebff863352251da495fbd91b673b5"}, + {file = "aiohttp-3.14.5-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6da32b5ff3fd78d244e37300463434c7145162bfd2b6e9e915ab164da37f7343"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b438b73c38111818d0c9d6a5c2bfed8584c8e503a49ef085d70e874ec846738"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:755933b107ea7a6a9ac916f635a70595a5b1a32fac10a8ff0b9f2ab88555550c"}, + {file = "aiohttp-3.14.5-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b3cc509327c7b27f6f4727a8830f4004f6df7766e179f2f4b8e54e65c0bec5d3"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7bd8ac754ebd6733a3e2a0dd1674c4d8ab086196803fd8dcd776f07b4e2607d9"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e724a7b6091f0b1ac064f9d1b15ff9ec52e6033a86cdae649e5f086e32a3c0db"}, + {file = "aiohttp-3.14.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c32e26310cc10e547f53cd13d39a369034f69dcb7d749d5cb0e5f67bc196b6ba"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1eb8167961ec4dfcc8cb9dd50bd0ee72519f7ef496be95203e49e27b01618382"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c1d60eafd9c7e8e74abd03a5b00df44e7febfe6d9b89b559c0a6551eef0699d4"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:137351bf20bbed9a65e839f4a4452ac377389bdb2f2857d2acffef38f5e9f2d1"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fba47bc2c3d7303c3d027c6cf4d07626c37b1314ac81f5820c31032e0ca1f677"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94684b879ac1d71e4238850c99b62dc1b28d9086b156a2555f082010b85a865c"}, + {file = "aiohttp-3.14.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56572c42e3ecd636de8d2c3dd54cf5fc939cb5c32eb56297f176a0d366fac622"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a95529a92a446db351675f4aab518feaf5e99842f63f5dd17160c2b74f382db3"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:3edbece0379b8b4aaa67619b8aa2399bb66fce372cd5911098a434ea77220aa0"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:56d9828f204331a5ca8850fcfe2bcce95a149f1f223f60cc7216e5524978e480"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:20064a177a070d789ee64a50b01a9161d3468e989baacfc6c714aa685c4b332f"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:81c2b3dfd56c62bee6108e4852d5970b4cf9086390b6983f52b666e878c1f115"}, + {file = "aiohttp-3.14.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:09ec102b4b8c9a920275733bbc11fdbb615efe6f9231a06007c0218d336fb77a"}, + {file = "aiohttp-3.14.5-cp314-cp314-win32.whl", hash = "sha256:9c428eb2bd8817588d16a0ab898aa4eb5d141f896aa2b394cc79a4cf61d9a8e2"}, + {file = "aiohttp-3.14.5-cp314-cp314-win_amd64.whl", hash = "sha256:6f967dde489ca6a8c02d093ab245d2cbf50ccb5c36adf0188b17b0ca39d24b67"}, + {file = "aiohttp-3.14.5-cp314-cp314-win_arm64.whl", hash = "sha256:1d2d981b53dd09a319e3570ef8cc3bbc3ef86f5a7abef0f6b2bff3867db3a9e7"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:9ce66feae6ac65327379460380549bf1b8df8e17c4e25df2a2bcf168272e3bed"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:27c2322e03f66101acb09869ce1cf1efc04994ee95e1735b69827bf8c8b9d781"}, + {file = "aiohttp-3.14.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff75a7537413a86e7cafe98e0e1d6e3dc4b15c6349896e7d5c6b881bfdb6d550"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c061aa954daaf57d2a4b8374f9fca621ef0e1b603584431c220c22458c59b6d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1612fa5857b37bf32e5c1eaeefb96e3b01e9c70679eec81f0934e8a600080863"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:adbeee7d6fd4cf5fe0aece2fb3edc4243615d3180430ba8149d01a90670cac99"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b2966998927d7bed9db12c0a4647b0c7b179755878fc9c357fe1ffd3e3b0c1a5"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e317e0fb6b16212c881d2205a7d87414c29acd69320b3aa6dce9d9c7b86fe4f"}, + {file = "aiohttp-3.14.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50343c1757b4b6f6708eeaf24534b32f19dfb99fb1b762c00420867a62fc81e0"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:083673c7a94c3ea035caaa5ca04288bdb44887abfe1f5ba23294e6a4b03efd2d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2528cb4c6b92008c76ac9ac6298624069bb2db91ff4929905512d1d84485f658"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b1b8ece1e71132d2afba4dbc0c3d62c766e25165990b25db1196c04969eb3d84"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fce9523df31cea6284f3e2c479876750d7687cf671d7b25d32b19effc0e86441"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:09e0eb18c7e0c8777e2f9149de63799195b9b3ca1b5c81ba6f32f2c6b8628210"}, + {file = "aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6774814fd5c338e72ee0da5cbb9432816df450e69c019f72b5d29bdec2a1792d"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win32.whl", hash = "sha256:33f706574e32c6e694f352a856e05caf18f7f2c871b3e87b41c55ea452b409ab"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5ba14a839fbe87cf7c12a6b5661c05f324a296eb8363141edb3944ba63d4c9d3"}, + {file = "aiohttp-3.14.5-cp314-cp314t-win_arm64.whl", hash = "sha256:1061b364556e8172e8d46b0b183adeeb73e8c42d30ebc745591e1bd89acad52e"}, + {file = "aiohttp-3.14.5-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:788ecaa9c10533b786ce5ba70c4f2df78ad41819fd00a6c99d92b66f9a32e1da"}, + {file = "aiohttp-3.14.5-cp315-cp315-android_24_x86_64.whl", hash = "sha256:5c76f1802bab718a68ac3cce447160605c734551f95c67ae90fa1132b215cb29"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a6d02b4c38de03d9c7617813433e6a0fb6b522797974177d69d9dad431900833"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:20726f9782d5c2744c1c66255842d1d163bb3edcf768b8de25216bf47f7b6ccf"}, + {file = "aiohttp-3.14.5-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:248d779ad720b49d4fb355720e60c9e5f444f95887bc16974fea48fc56c41789"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0a8ea271867e360ac985ae607f4a23ad9a38414b9aca1d49ec98839ae660e49f"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:823c910f046f23f4c713b8d99a2242dc65f591cb45ee86418fa11762a3c2963c"}, + {file = "aiohttp-3.14.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9b42db919715e91eb76acf3bc492a9a7ccd8bd9adc6745c1412b689735269f14"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3112585250b199296c26ca6e0131640b6a8d01bab8b232d2eb3763ed469de11"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c147451b4a58e7050f7f7394e6c467867c84161560001f9ad4fb2d1446743946"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bf163cc701f3d4ac43ba7d97771bf5fd955220ef5500ef3ee847bc0ecfbf4ec1"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8d40ce41991e9d56fab4f5dc4a51fe59bc3b5c77c27f4b148963064d00232e8"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:276a4fc00b1d9ae492b802763a789c5b86328b989c5ea169f2faa447d6a11c7c"}, + {file = "aiohttp-3.14.5-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50983e3be33d8c0942ab88cec3905b10602f64c469b20153c48c5d4e558dd016"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:16c8abd5bca220a47efe667d26f8460124c81810787e79ee87b242677563d9dd"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0790ec66fa4013e83c53b9025a45d454723da1a2fce28b3208c9b32d08af162f"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:cb11a971a3aea10f9b8373be628f1df932964fc6c6b174516d318a48c3ac4412"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:932ce7e694bbc29b2bf6f64f2343c27d148d4997c771d01bdade4639b6749ff4"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a7d470cf7b206e6359fc77b1b860632fde400d5a2ed59cd0181b93a686bc81ee"}, + {file = "aiohttp-3.14.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6e1d8637cf73eebc92eba2e11d4cfff98a3b562f2505bd75bba766d908926e8d"}, + {file = "aiohttp-3.14.5-cp315-cp315-win32.whl", hash = "sha256:fbdc5ec49f9ca3cd24955cf3520b10a4d4c901ba2572094c84274e9e7eb30534"}, + {file = "aiohttp-3.14.5-cp315-cp315-win_amd64.whl", hash = "sha256:a9d3983bd6ab7aa1cfd573544ae98df9b6cb6912a5185a198263e024a636861d"}, + {file = "aiohttp-3.14.5-cp315-cp315-win_arm64.whl", hash = "sha256:e29347c142cf6e99e0dff5e2995ead1d50fa3b51bf37a7c726a7ccfe5419745a"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:9bf1d5dcc15204d9ec8b8ea4c18fd66e6b80e5de1f4ecbafb3a2f2740f8039d4"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:14f04769cfefe4734016a856a83af36133cd17779cef9ae817f812b8ba9d6d51"}, + {file = "aiohttp-3.14.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6e4251c0ba4624a68a2c11471a1ac54c3306876c21f0ae86de085cc9241c8905"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4f5cf4dc72a71c4cfa9751b4950be22f733626670230d46e7d606592aa22d59"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dbf53ae2601b7fd5a93c3944deea3a78d40f495226d582c35ef7a433425ce2b2"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:657291433bf4dd3142f3abac495764cd47d0c7c92087751e6666c6447e65fcef"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e51a27980c3788e6e6b3325d694fdd4898087fa8a86b2763af77b39353da41e"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c7583cd3dfdc7dcc927835b4f6c7faae7ecc1ba3ca5879321621ae2e6f8e84"}, + {file = "aiohttp-3.14.5-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6fdcd6af7e2e51d1ba1b4bea16e97b074bcb7b5dd0246a9d8201341bb28085a0"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c8859a013ae0de1074660992139a1a440df3e6b219b86cf0d3f11c2692bb4fe3"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:8966ecac808dd5f473c9c4cefd10cd3ffda71c18a4d3493b7c7d2ae1803bf2cc"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3093b72c215bda16ce961a6d073f6e71d46e022962a9d5d457c5d4d421c78b57"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:149fb56caf7acb67073126f675d0958d9c4b3125fcd3f6d4877df98aa8a97ce9"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:293d3ae7c6a0ed176a42e59a1b5fde825ead65c835360f734148e96729f928d2"}, + {file = "aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3f2dcc00191fd563e9075181a14ec31d7dd63223ced7582cc70a15a499de0c79"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win32.whl", hash = "sha256:7779cd97e61ebe583ec2f1c5616cdd038aa08a4453b1848c67842176d054948e"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win_amd64.whl", hash = "sha256:0e6f16f5e49c4b8267988c05ab07760d7064cea57d077c3d068d04b0fbb992cb"}, + {file = "aiohttp-3.14.5-cp315-cp315t-win_arm64.whl", hash = "sha256:1aead151c3abbac6b32942e452020cb66d7efc099d253cc6c20f748e926c858b"}, + {file = "aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b"}, + {file = "aiohttp-3.14.5.tar.gz", hash = "sha256:5558a7f5a05af9ecf744af91e5baefc436f93c9333e656c27ec253f9a6bbe178"}, ] [package.dependencies] @@ -149,10 +191,10 @@ aiosignal = ">=1.4.0" async-timeout = {version = ">=4.0,<6.0", markers = "python_version < \"3.11\""} attrs = ">=17.3.0" frozenlist = ">=1.1.1" -multidict = ">=4.5,<7.0" +multidict = ">=4.5,<8.0" propcache = ">=0.2.0" typing_extensions = {version = ">=4.4", markers = "python_version < \"3.13\""} -yarl = ">=1.17.0,<2.0" +yarl = ">=1.25.1,<2.0" [package.extras] speedups = ["Brotli (>=1.2) ; platform_python_implementation == \"CPython\" and sys_platform != \"android\" and sys_platform != \"ios\"", "aiodns (>=3.3.0) ; sys_platform != \"android\" and sys_platform != \"ios\"", "backports.zstd ; platform_python_implementation == \"CPython\" and python_version < \"3.14\" and sys_platform != \"android\" and sys_platform != \"ios\"", "brotlicffi (>=1.2) ; platform_python_implementation != \"CPython\""] @@ -188,20 +230,20 @@ files = [ [[package]] name = "anyio" -version = "4.14.2" +version = "4.15.1" 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.14.2-py3-none-any.whl", hash = "sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494"}, - {file = "anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f"}, + {file = "anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101"}, + {file = "anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94"}, ] [package.dependencies] exceptiongroup = {version = ">=1.0.2", markers = "python_version < \"3.11\""} idna = ">=2.8" -typing_extensions = {version = ">=4.5", markers = "python_version < \"3.13\""} +typing_extensions = {version = ">=4.16.0", markers = "python_version < \"3.15\""} [package.extras] trio = ["trio (>=0.32.0)"] @@ -247,14 +289,14 @@ files = [ [[package]] name = "certifi" -version = "2026.7.22" +version = "2026.10.23" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" groups = ["main"] files = [ - {file = "certifi-2026.7.22-py3-none-any.whl", hash = "sha256:62f22742b58a1a33014a2b6b706588a8d7e2a88ae7bd1a6ebe8c992928483775"}, - {file = "certifi-2026.7.22.tar.gz", hash = "sha256:741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55"}, + {file = "certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1"}, + {file = "certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd"}, ] [[package]] @@ -506,15 +548,15 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "httpx-aiohttp" -version = "0.1.8" +version = "0.1.12" description = "Aiohttp transport for HTTPX" optional = true python-versions = ">=3.8" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "httpx_aiohttp-0.1.8-py3-none-any.whl", hash = "sha256:b7bd958d1331f3759a38a0ba22ad29832cb63ca69498c17735228055bf78fa7e"}, - {file = "httpx_aiohttp-0.1.8.tar.gz", hash = "sha256:756c5e74cdb568c3248ba63fe82bfe8bbe64b928728720f7eaac64b3cf46f308"}, + {file = "httpx_aiohttp-0.1.12-py3-none-any.whl", hash = "sha256:5b0eac39a7f360fa7867a60bcb46bb1024eada9c01cbfecdb54dc1edb3fb7141"}, + {file = "httpx_aiohttp-0.1.12.tar.gz", hash = "sha256:81feec51fd82c0ecfa0e9aaf1b1a6c2591260d5e2bcbeb7eb0277a78e610df2c"}, ] [package.dependencies] @@ -523,14 +565,14 @@ httpx = ">=0.27.0" [[package]] name = "idna" -version = "3.19" +version = "3.20" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.9" groups = ["main"] files = [ - {file = "idna-3.19-py3-none-any.whl", hash = "sha256:815e7be7a7806d54abb586dc943addc79e8b2ee16915059658cbeff4b1b43bf4"}, - {file = "idna-3.19.tar.gz", hash = "sha256:5e0811a4383b21dc5838069f801c4fb62113b7447663d2530d2bd6e77b49bf15"}, + {file = "idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c"}, + {file = "idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44"}, ] [package.extras] @@ -538,171 +580,196 @@ all = ["coverage (>=7.10.0)", "hypothesis (>=6.141.1)", "mypy (>=1.11.2)", "pyte [[package]] name = "iniconfig" -version = "2.3.0" +version = "2.3.1" description = "brain-dead simple config-ini parsing" optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12"}, - {file = "iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730"}, + {file = "iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7"}, + {file = "iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960"}, ] [[package]] name = "multidict" -version = "6.7.1" +version = "7.1.0" description = "multidict implementation" optional = true -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "multidict-6.7.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:c93c3db7ea657dd4637d57e74ab73de31bccefe144d3d4ce370052035bc85fb5"}, - {file = "multidict-6.7.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:974e72a2474600827abaeda71af0c53d9ebbc3c2eb7da37b37d7829ae31232d8"}, - {file = "multidict-6.7.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cdea2e7b2456cfb6694fb113066fd0ec7ea4d67e3a35e1f4cbeea0b448bf5872"}, - {file = "multidict-6.7.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:17207077e29342fdc2c9a82e4b306f1127bf1ea91f8b71e02d4798a70bb99991"}, - {file = "multidict-6.7.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d4f49cb5661344764e4c7c7973e92a47a59b8fc19b6523649ec9dc4960e58a03"}, - {file = "multidict-6.7.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a9fc4caa29e2e6ae408d1c450ac8bf19892c5fca83ee634ecd88a53332c59981"}, - {file = "multidict-6.7.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c5f0c21549ab432b57dcc82130f388d84ad8179824cc3f223d5e7cfbfd4143f6"}, - {file = "multidict-6.7.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7dfb78d966b2c906ae1d28ccf6e6712a3cd04407ee5088cd276fe8cb42186190"}, - {file = "multidict-6.7.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9b0d9b91d1aa44db9c1f1ecd0d9d2ae610b2f4f856448664e01a3b35899f3f92"}, - {file = "multidict-6.7.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:dd96c01a9dcd4889dcfcf9eb5544ca0c77603f239e3ffab0524ec17aea9a93ee"}, - {file = "multidict-6.7.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:067343c68cd6612d375710f895337b3a98a033c94f14b9a99eff902f205424e2"}, - {file = "multidict-6.7.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:5884a04f4ff56c6120f6ccf703bdeb8b5079d808ba604d4d53aec0d55dc33568"}, - {file = "multidict-6.7.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8affcf1c98b82bc901702eb73b6947a1bfa170823c153fe8a47b5f5f02e48e40"}, - {file = "multidict-6.7.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:0d17522c37d03e85c8098ec8431636309b2682cf12e58f4dbc76121fb50e4962"}, - {file = "multidict-6.7.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:24c0cf81544ca5e17cfcb6e482e7a82cd475925242b308b890c9452a074d4505"}, - {file = "multidict-6.7.1-cp310-cp310-win32.whl", hash = "sha256:d82dd730a95e6643802f4454b8fdecdf08667881a9c5670db85bc5a56693f122"}, - {file = "multidict-6.7.1-cp310-cp310-win_amd64.whl", hash = "sha256:cf37cbe5ced48d417ba045aca1b21bafca67489452debcde94778a576666a1df"}, - {file = "multidict-6.7.1-cp310-cp310-win_arm64.whl", hash = "sha256:59bc83d3f66b41dac1e7460aac1d196edc70c9ba3094965c467715a70ecb46db"}, - {file = "multidict-6.7.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7ff981b266af91d7b4b3793ca3382e53229088d193a85dfad6f5f4c27fc73e5d"}, - {file = "multidict-6.7.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:844c5bca0b5444adb44a623fb0a1310c2f4cd41f402126bb269cd44c9b3f3e1e"}, - {file = "multidict-6.7.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f2a0a924d4c2e9afcd7ec64f9de35fcd96915149b2216e1cb2c10a56df483855"}, - {file = "multidict-6.7.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8be1802715a8e892c784c0197c2ace276ea52702a0ede98b6310c8f255a5afb3"}, - {file = "multidict-6.7.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2e2d2ed645ea29f31c4c7ea1552fcfd7cb7ba656e1eafd4134a6620c9f5fdd9e"}, - {file = "multidict-6.7.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:95922cee9a778659e91db6497596435777bd25ed116701a4c034f8e46544955a"}, - {file = "multidict-6.7.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b83cabdc375ffaaa15edd97eb7c0c672ad788e2687004990074d7d6c9b140c8"}, - {file = "multidict-6.7.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:38fb49540705369bab8484db0689d86c0a33a0a9f2c1b197f506b71b4b6c19b0"}, - {file = "multidict-6.7.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:439cbebd499f92e9aa6793016a8acaa161dfa749ae86d20960189f5398a19144"}, - {file = "multidict-6.7.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6d3bc717b6fe763b8be3f2bee2701d3c8eb1b2a8ae9f60910f1b2860c82b6c49"}, - {file = "multidict-6.7.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:619e5a1ac57986dbfec9f0b301d865dddf763696435e2962f6d9cf2fdff2bb71"}, - {file = "multidict-6.7.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:0b38ebffd9be37c1170d33bc0f36f4f262e0a09bc1aac1c34c7aa51a7293f0b3"}, - {file = "multidict-6.7.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:10ae39c9cfe6adedcdb764f5e8411d4a92b055e35573a2eaa88d3323289ef93c"}, - {file = "multidict-6.7.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:25167cc263257660290fba06b9318d2026e3c910be240a146e1f66dd114af2b0"}, - {file = "multidict-6.7.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:128441d052254f42989ef98b7b6a6ecb1e6f708aa962c7984235316db59f50fa"}, - {file = "multidict-6.7.1-cp311-cp311-win32.whl", hash = "sha256:d62b7f64ffde3b99d06b707a280db04fb3855b55f5a06df387236051d0668f4a"}, - {file = "multidict-6.7.1-cp311-cp311-win_amd64.whl", hash = "sha256:bdbf9f3b332abd0cdb306e7c2113818ab1e922dc84b8f8fd06ec89ed2a19ab8b"}, - {file = "multidict-6.7.1-cp311-cp311-win_arm64.whl", hash = "sha256:b8c990b037d2fff2f4e33d3f21b9b531c5745b33a49a7d6dbe7a177266af44f6"}, - {file = "multidict-6.7.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:a90f75c956e32891a4eda3639ce6dd86e87105271f43d43442a3aedf3cddf172"}, - {file = "multidict-6.7.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3fccb473e87eaa1382689053e4a4618e7ba7b9b9b8d6adf2027ee474597128cd"}, - {file = "multidict-6.7.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b0fa96985700739c4c7853a43c0b3e169360d6855780021bfc6d0f1ce7c123e7"}, - {file = "multidict-6.7.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cb2a55f408c3043e42b40cc8eecd575afa27b7e0b956dfb190de0f8499a57a53"}, - {file = "multidict-6.7.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eb0ce7b2a32d09892b3dd6cc44877a0d02a33241fafca5f25c8b6b62374f8b75"}, - {file = "multidict-6.7.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c3a32d23520ee37bf327d1e1a656fec76a2edd5c038bf43eddfa0572ec49c60b"}, - {file = "multidict-6.7.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9c90fed18bffc0189ba814749fdcc102b536e83a9f738a9003e569acd540a733"}, - {file = "multidict-6.7.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:da62917e6076f512daccfbbde27f46fed1c98fee202f0559adec8ee0de67f71a"}, - {file = "multidict-6.7.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bfde23ef6ed9db7eaee6c37dcec08524cb43903c60b285b172b6c094711b3961"}, - {file = "multidict-6.7.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3758692429e4e32f1ba0df23219cd0b4fc0a52f476726fff9337d1a57676a582"}, - {file = "multidict-6.7.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:398c1478926eca669f2fd6a5856b6de9c0acf23a2cb59a14c0ba5844fa38077e"}, - {file = "multidict-6.7.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:c102791b1c4f3ab36ce4101154549105a53dc828f016356b3e3bcae2e3a039d3"}, - {file = "multidict-6.7.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a088b62bd733e2ad12c50dad01b7d0166c30287c166e137433d3b410add807a6"}, - {file = "multidict-6.7.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3d51ff4785d58d3f6c91bdbffcb5e1f7ddfda557727043aa20d20ec4f65e324a"}, - {file = "multidict-6.7.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fc5907494fccf3e7d3f94f95c91d6336b092b5fc83811720fae5e2765890dfba"}, - {file = "multidict-6.7.1-cp312-cp312-win32.whl", hash = "sha256:28ca5ce2fd9716631133d0e9a9b9a745ad7f60bac2bccafb56aa380fc0b6c511"}, - {file = "multidict-6.7.1-cp312-cp312-win_amd64.whl", hash = "sha256:fcee94dfbd638784645b066074b338bc9cc155d4b4bffa4adce1615c5a426c19"}, - {file = "multidict-6.7.1-cp312-cp312-win_arm64.whl", hash = "sha256:ba0a9fb644d0c1a2194cf7ffb043bd852cea63a57f66fbd33959f7dae18517bf"}, - {file = "multidict-6.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2b41f5fed0ed563624f1c17630cb9941cf2309d4df00e494b551b5f3e3d67a23"}, - {file = "multidict-6.7.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:84e61e3af5463c19b67ced91f6c634effb89ef8bfc5ca0267f954451ed4bb6a2"}, - {file = "multidict-6.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:935434b9853c7c112eee7ac891bc4cb86455aa631269ae35442cb316790c1445"}, - {file = "multidict-6.7.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:432feb25a1cb67fe82a9680b4d65fb542e4635cb3166cd9c01560651ad60f177"}, - {file = "multidict-6.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e82d14e3c948952a1a85503817e038cba5905a3352de76b9a465075d072fba23"}, - {file = "multidict-6.7.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4cfb48c6ea66c83bcaaf7e4dfa7ec1b6bbcf751b7db85a328902796dfde4c060"}, - {file = "multidict-6.7.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1d540e51b7e8e170174555edecddbd5538105443754539193e3e1061864d444d"}, - {file = "multidict-6.7.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:273d23f4b40f3dce4d6c8a821c741a86dec62cded82e1175ba3d99be128147ed"}, - {file = "multidict-6.7.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d624335fd4fa1c08a53f8b4be7676ebde19cd092b3895c421045ca87895b429"}, - {file = "multidict-6.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:12fad252f8b267cc75b66e8fc51b3079604e8d43a75428ffe193cd9e2195dfd6"}, - {file = "multidict-6.7.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:03ede2a6ffbe8ef936b92cb4529f27f42be7f56afcdab5ab739cd5f27fb1cbf9"}, - {file = "multidict-6.7.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:90efbcf47dbe33dcf643a1e400d67d59abeac5db07dc3f27d6bdeae497a2198c"}, - {file = "multidict-6.7.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5c4b9bfc148f5a91be9244d6264c53035c8a0dcd2f51f1c3c6e30e30ebaa1c84"}, - {file = "multidict-6.7.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:401c5a650f3add2472d1d288c26deebc540f99e2fb83e9525007a74cd2116f1d"}, - {file = "multidict-6.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:97891f3b1b3ffbded884e2916cacf3c6fc87b66bb0dde46f7357404750559f33"}, - {file = "multidict-6.7.1-cp313-cp313-win32.whl", hash = "sha256:e1c5988359516095535c4301af38d8a8838534158f649c05dd1050222321bcb3"}, - {file = "multidict-6.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:960c83bf01a95b12b08fd54324a4eb1d5b52c88932b5cba5d6e712bb3ed12eb5"}, - {file = "multidict-6.7.1-cp313-cp313-win_arm64.whl", hash = "sha256:563fe25c678aaba333d5399408f5ec3c383ca5b663e7f774dd179a520b8144df"}, - {file = "multidict-6.7.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:c76c4bec1538375dad9d452d246ca5368ad6e1c9039dadcf007ae59c70619ea1"}, - {file = "multidict-6.7.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:57b46b24b5d5ebcc978da4ec23a819a9402b4228b8a90d9c656422b4bdd8a963"}, - {file = "multidict-6.7.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e954b24433c768ce78ab7929e84ccf3422e46deb45a4dc9f93438f8217fa2d34"}, - {file = "multidict-6.7.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3bd231490fa7217cc832528e1cd8752a96f0125ddd2b5749390f7c3ec8721b65"}, - {file = "multidict-6.7.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:253282d70d67885a15c8a7716f3a73edf2d635793ceda8173b9ecc21f2fb8292"}, - {file = "multidict-6.7.1-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0b4c48648d7649c9335cf1927a8b87fa692de3dcb15faa676c6a6f1f1aabda43"}, - {file = "multidict-6.7.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:98bc624954ec4d2c7cb074b8eefc2b5d0ce7d482e410df446414355d158fe4ca"}, - {file = "multidict-6.7.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1b99af4d9eec0b49927b4402bcbb58dea89d3e0db8806a4086117019939ad3dd"}, - {file = "multidict-6.7.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6aac4f16b472d5b7dc6f66a0d49dd57b0e0902090be16594dc9ebfd3d17c47e7"}, - {file = "multidict-6.7.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:21f830fe223215dffd51f538e78c172ed7c7f60c9b96a2bf05c4848ad49921c3"}, - {file = "multidict-6.7.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f5dd81c45b05518b9aa4da4aa74e1c93d715efa234fd3e8a179df611cc85e5f4"}, - {file = "multidict-6.7.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:eb304767bca2bb92fb9c5bd33cedc95baee5bb5f6c88e63706533a1c06ad08c8"}, - {file = "multidict-6.7.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:c9035dde0f916702850ef66460bc4239d89d08df4d02023a5926e7446724212c"}, - {file = "multidict-6.7.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:af959b9beeb66c822380f222f0e0a1889331597e81f1ded7f374f3ecb0fd6c52"}, - {file = "multidict-6.7.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:41f2952231456154ee479651491e94118229844dd7226541788be783be2b5108"}, - {file = "multidict-6.7.1-cp313-cp313t-win32.whl", hash = "sha256:df9f19c28adcb40b6aae30bbaa1478c389efd50c28d541d76760199fc1037c32"}, - {file = "multidict-6.7.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d54ecf9f301853f2c5e802da559604b3e95bb7a3b01a9c295c6ee591b9882de8"}, - {file = "multidict-6.7.1-cp313-cp313t-win_arm64.whl", hash = "sha256:5a37ca18e360377cfda1d62f5f382ff41f2b8c4ccb329ed974cc2e1643440118"}, - {file = "multidict-6.7.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8f333ec9c5eb1b7105e3b84b53141e66ca05a19a605368c55450b6ba208cb9ee"}, - {file = "multidict-6.7.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a407f13c188f804c759fc6a9f88286a565c242a76b27626594c133b82883b5c2"}, - {file = "multidict-6.7.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0e161ddf326db5577c3a4cc2d8648f81456e8a20d40415541587a71620d7a7d1"}, - {file = "multidict-6.7.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1e3a8bb24342a8201d178c3b4984c26ba81a577c80d4d525727427460a50c22d"}, - {file = "multidict-6.7.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97231140a50f5d447d3164f994b86a0bed7cd016e2682f8650d6a9158e14fd31"}, - {file = "multidict-6.7.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6b10359683bd8806a200fd2909e7c8ca3a7b24ec1d8132e483d58e791d881048"}, - {file = "multidict-6.7.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:283ddac99f7ac25a4acadbf004cb5ae34480bbeb063520f70ce397b281859362"}, - {file = "multidict-6.7.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:538cec1e18c067d0e6103aa9a74f9e832904c957adc260e61cd9d8cf0c3b3d37"}, - {file = "multidict-6.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7eee46ccb30ff48a1e35bb818cc90846c6be2b68240e42a78599166722cea709"}, - {file = "multidict-6.7.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fa263a02f4f2dd2d11a7b1bb4362aa7cb1049f84a9235d31adf63f30143469a0"}, - {file = "multidict-6.7.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:2e1425e2f99ec5bd36c15a01b690a1a2456209c5deed58f95469ffb46039ccbb"}, - {file = "multidict-6.7.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:497394b3239fc6f0e13a78a3e1b61296e72bf1c5f94b4c4eb80b265c37a131cd"}, - {file = "multidict-6.7.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:233b398c29d3f1b9676b4b6f75c518a06fcb2ea0b925119fb2c1bc35c05e1601"}, - {file = "multidict-6.7.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:93b1818e4a6e0930454f0f2af7dfce69307ca03cdcfb3739bf4d91241967b6c1"}, - {file = "multidict-6.7.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f33dc2a3abe9249ea5d8360f969ec7f4142e7ac45ee7014d8f8d5acddf178b7b"}, - {file = "multidict-6.7.1-cp314-cp314-win32.whl", hash = "sha256:3ab8b9d8b75aef9df299595d5388b14530839f6422333357af1339443cff777d"}, - {file = "multidict-6.7.1-cp314-cp314-win_amd64.whl", hash = "sha256:5e01429a929600e7dab7b166062d9bb54a5eed752384c7384c968c2afab8f50f"}, - {file = "multidict-6.7.1-cp314-cp314-win_arm64.whl", hash = "sha256:4885cb0e817aef5d00a2e8451d4665c1808378dc27c2705f1bf4ef8505c0d2e5"}, - {file = "multidict-6.7.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0458c978acd8e6ea53c81eefaddbbee9c6c5e591f41b3f5e8e194780fe026581"}, - {file = "multidict-6.7.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:c0abd12629b0af3cf590982c0b413b1e7395cd4ec026f30986818ab95bfaa94a"}, - {file = "multidict-6.7.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:14525a5f61d7d0c94b368a42cff4c9a4e7ba2d52e2672a7b23d84dc86fb02b0c"}, - {file = "multidict-6.7.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:17307b22c217b4cf05033dabefe68255a534d637c6c9b0cc8382718f87be4262"}, - {file = "multidict-6.7.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a7e590ff876a3eaf1c02a4dfe0724b6e69a9e9de6d8f556816f29c496046e59"}, - {file = "multidict-6.7.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5fa6a95dfee63893d80a34758cd0e0c118a30b8dcb46372bf75106c591b77889"}, - {file = "multidict-6.7.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a0543217a6a017692aa6ae5cc39adb75e587af0f3a82288b1492eb73dd6cc2a4"}, - {file = "multidict-6.7.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f99fe611c312b3c1c0ace793f92464d8cd263cc3b26b5721950d977b006b6c4d"}, - {file = "multidict-6.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9004d8386d133b7e6135679424c91b0b854d2d164af6ea3f289f8f2761064609"}, - {file = "multidict-6.7.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e628ef0e6859ffd8273c69412a2465c4be4a9517d07261b33334b5ec6f3c7489"}, - {file = "multidict-6.7.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:841189848ba629c3552035a6a7f5bf3b02eb304e9fea7492ca220a8eda6b0e5c"}, - {file = "multidict-6.7.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:ce1bbd7d780bb5a0da032e095c951f7014d6b0a205f8318308140f1a6aba159e"}, - {file = "multidict-6.7.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b26684587228afed0d50cf804cc71062cc9c1cdf55051c4c6345d372947b268c"}, - {file = "multidict-6.7.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9f9af11306994335398293f9958071019e3ab95e9a707dc1383a35613f6abcb9"}, - {file = "multidict-6.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:b4938326284c4f1224178a560987b6cf8b4d38458b113d9b8c1db1a836e640a2"}, - {file = "multidict-6.7.1-cp314-cp314t-win32.whl", hash = "sha256:98655c737850c064a65e006a3df7c997cd3b220be4ec8fe26215760b9697d4d7"}, - {file = "multidict-6.7.1-cp314-cp314t-win_amd64.whl", hash = "sha256:497bde6223c212ba11d462853cfa4f0ae6ef97465033e7dc9940cdb3ab5b48e5"}, - {file = "multidict-6.7.1-cp314-cp314t-win_arm64.whl", hash = "sha256:2bbd113e0d4af5db41d5ebfe9ccaff89de2120578164f86a5d17d5a576d1e5b2"}, - {file = "multidict-6.7.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:65573858d27cdeaca41893185677dc82395159aa28875a8867af66532d413a8f"}, - {file = "multidict-6.7.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c524c6fb8fc342793708ab111c4dbc90ff9abd568de220432500e47e990c0358"}, - {file = "multidict-6.7.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:aa23b001d968faef416ff70dc0f1ab045517b9b42a90edd3e9bcdb06479e31d5"}, - {file = "multidict-6.7.1-cp39-cp39-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6704fa2b7453b2fb121740555fa1ee20cd98c4d011120caf4d2b8d4e7c76eec0"}, - {file = "multidict-6.7.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:121a34e5bfa410cdf2c8c49716de160de3b1dbcd86b49656f5681e4543bcd1a8"}, - {file = "multidict-6.7.1-cp39-cp39-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:026d264228bcd637d4e060844e39cdc60f86c479e463d49075dedc21b18fbbe0"}, - {file = "multidict-6.7.1-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0e697826df7eb63418ee190fd06ce9f1803593bb4b9517d08c60d9b9a7f69d8f"}, - {file = "multidict-6.7.1-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bb08271280173720e9fea9ede98e5231defcbad90f1624bea26f32ec8a956e2f"}, - {file = "multidict-6.7.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c6b3228e1d80af737b72925ce5fb4daf5a335e49cd7ab77ed7b9fdfbf58c526e"}, - {file = "multidict-6.7.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:3943debf0fbb57bdde5901695c11094a9a36723e5c03875f87718ee15ca2f4d2"}, - {file = "multidict-6.7.1-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:98c5787b0a0d9a41d9311eae44c3b76e6753def8d8870ab501320efe75a6a5f8"}, - {file = "multidict-6.7.1-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:08ccb2a6dc72009093ebe7f3f073e5ec5964cba9a706fa94b1a1484039b87941"}, - {file = "multidict-6.7.1-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:eb351f72c26dc9abe338ca7294661aa22969ad8ffe7ef7d5541d19f368dc854a"}, - {file = "multidict-6.7.1-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:ac1c665bad8b5d762f5f85ebe4d94130c26965f11de70c708c75671297c776de"}, - {file = "multidict-6.7.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:1fa6609d0364f4f6f58351b4659a1f3e0e898ba2a8c5cac04cb2c7bc556b0bc5"}, - {file = "multidict-6.7.1-cp39-cp39-win32.whl", hash = "sha256:6f77ce314a29263e67adadc7e7c1bc699fcb3a305059ab973d038f87caa42ed0"}, - {file = "multidict-6.7.1-cp39-cp39-win_amd64.whl", hash = "sha256:f537b55778cd3cbee430abe3131255d3a78202e0f9ea7ffc6ada893a4bcaeea4"}, - {file = "multidict-6.7.1-cp39-cp39-win_arm64.whl", hash = "sha256:749aa54f578f2e5f439538706a475aa844bfa8ef75854b1401e6e528e4937cf9"}, - {file = "multidict-6.7.1-py3-none-any.whl", hash = "sha256:55d97cc6dae627efa6a6e548885712d4864b81110ac76fa4e534c03819fa4a56"}, - {file = "multidict-6.7.1.tar.gz", hash = "sha256:ec6652a1bee61c53a3e5776b6049172c53b6aaba34f18c9ad04f82712bac623d"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:24ad4921135a1410d95b1f1504f4901e1c64cea680014ce2c3c7a825f4f259fc"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8b8429361241da973e594d15344a0989f44fd288ea58d33a6221fb7cc0daf27e"}, + {file = "multidict-7.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5c6455f2c11daeee40665c67494cedb426f67dba7375710524071c0c56d739a6"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6120aab922bb3e15800b6655558cf8e0a5cc79518e954d457f064e5b3d5e9bf6"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:14b1ce8579a43dfc0e592d93fb1d63dea693e4977980ac4166f26d494cc7a358"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:71acdc6eded0f4b86b5e16c96314887cf2572a8eb5d8038b78583d0c0eb3aa1c"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b7cd1cb0b363cd43ebf499beca26d201dd8b89eee49fae60205c82ba13ee03a"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:dd8a6b3e8f9edb07fe671b02d8c3241c8b641fecce7eb1e36432db3e55e243da"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9a8c826caeb7c08264e0a556df1267531c6ed90cc70506e7e5f4119e2d09f3d7"}, + {file = "multidict-7.1.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c44ced5e5168cdf677f0ae39900863bf2bda7d14a5e13502014005cfe040b8b4"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b57d4d7021bfd159db9f8f6f862a85a7a6027934643c512f028d6e5c60c4cbd2"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:7fac4250b37d994e3fe42b46ba3c8bfa1614d1d7d8cf1cf23f303099082a9565"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:966ae0588ac9959a040220063733b33f321d04eaf4e60349b42cd855d232202f"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:50acd7ee7096949b04482cd7720cb6b85eb9cd9dd5d7ffb6704bfda250261a22"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:ed6b7f402f3dabd1d72c798b96cf947005ddd796a5bea7b041bccbd517859a42"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:fadcc96cd6155f35e6d85845fa4fcd37b35885dc8fda77b9f851cdfa538194c1"}, + {file = "multidict-7.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c6b67f08014bfc4aedc22cf6a21010c2530cd5fbeb655730406827fe196296be"}, + {file = "multidict-7.1.0-cp310-cp310-win32.whl", hash = "sha256:0604ff025497a050a2b2dcc4ae0e5cb6477c525e57b89825152c707e88d74d28"}, + {file = "multidict-7.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:36b14886aa3e0b8786ecdaa196374422c7b1c1dcc8764d02b2409f74d47914bc"}, + {file = "multidict-7.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:a2e575129c048bc286d696ed8e49ca148591768b2d77debcc6569f6fb64d0668"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:41ff3202cc23c800507777df5a4805b402f262b31008c60fdc652aeb6db2f278"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e50f7775b66c7802f4cb697e986c5acf30ec07301efee95b396c08114e890d67"}, + {file = "multidict-7.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:85cb3ced4fa84949cee12bfe78208b6ece7baf3cbd242b26dcaf773efff8d206"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2128f3358335e0c83688ecb40c19d9d6606cd60784dfbf2e24e980ac2ba87b0d"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e2e718fa9d1d900decbc240a533d5d0baf0947ef464c78a8cd4fa32b4e8f590c"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ecc68f5e47bc6f6f889bbed5bc657b22bb2237ad9ccab8229cb5a0d64f4cb536"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5f21fda91bd6c34455bd5c312e42aa1334da46cdafb4c533ecd01e0f7f19250b"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7a90453a79423cd7145cc08fc92322dcd7aca4862258f533e03f473226d4b835"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c54ae1b89e582aa25f213cd8b5eac0bda1724e79299f486baeb3f562bbf82ca5"}, + {file = "multidict-7.1.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7ff8dd079e7b5f3438332499233a2a5acfca0741fd0eb3d4ddba0c2d9bc04d19"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e4ef15d0a29fc2da67fe8ba2301ecabd6f8733696cc2bf0a0cf96a144a20328c"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:5fa296f14068538fced53c6eec86520a2ef3d3d27a0fb134640d03e067986d5f"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6ab323f0c5490abaf35a78563e1043c7a772eb86d93f359ecc0fd286d1cd3807"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:88ec4d16e9f58071c9896ea01c4da97cce9d01418fe844ff06eebb00e0a1386a"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9161eb81b8062da824426d3700d4b0d287f0cb0b05923713adfe3bd25e7937ac"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:c564d0758748f38aec56a6b98c6801a427b3a63f39b7cac538b2b2d18ca32740"}, + {file = "multidict-7.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:c5e4a362a95b85301d262ef6bed06cc8e4a144ac7e2be874cb4c3c46ae89d754"}, + {file = "multidict-7.1.0-cp311-cp311-win32.whl", hash = "sha256:5d19bb1ec12e385c09215d5d53a243c060c7e8a0aacdba16d933e22902ee380d"}, + {file = "multidict-7.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:396ba9917fe489ec3a5942ae3e29e91324c8b9956f371f7e124c971c71379e7a"}, + {file = "multidict-7.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:b5ed78742502b8d90ff2816688d407a097c8b5cc6af4343fc5ad7a98df53a7cd"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ccfb950359a80de0fcd2030ad60ac1b1a861462de3e2ef746697c9256659af21"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:939d8cd2d8c35e3956f6bc858390b6ccb611e6152b4920d64ab5e98f3fcf39e4"}, + {file = "multidict-7.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f8e95c95039eab6a2dad8c83c38ab87fc5431d28849e0c8a7e2a4e70ba38710d"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:05d12b4bac53abe0c65f3163af2b45894e2e1c0cc55493ac784d52a350047d88"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0e79ed92b1dece6bb57e9b46effd74d7a5d3d00187c85466d880ed184239a698"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fab380fcff8b3555eb2bd04304fa4330909a771a9a9b0dc07666cfc23148a711"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4b5c41e44da74383c924cc5d75ef0a268f301d69305b3c42bd17af685d55e412"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3dbaa7f7c2f0ca8578895fc61fb8c8e50ebb405dad8982f92f4343285c7a3fda"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed6b7705d49dd07e5e0dd5f5c873fc44047e92d714299b13245b5fecac49d01"}, + {file = "multidict-7.1.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53daa47dd176db64bb35170e3d5d0ae2388c060121201883696278f055a0e70c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:542429c796430de924d03b68a6173bb6d79d5c4967d4e9a18de3e501cad55593"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:c44ca6d3cdf4cfcbcd4f928fdcbe87af5fd7319f6ad4169617b7fd6b4527c33c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:eb0228c809b2e7eb47921876050af0bc4214b351bad8d8112f70b6ed4288763c"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:6ad60de1f4c702448fc8f1449f05e810f6b7957c08a5b3950c8a792dfb13b50a"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:f79def86aee67b5ba01b2565f1610f262bf88ae53c379f93e5fa29c50fe793be"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:248dabb89b5aa90b2f7e43e045f048f7e5392ec77b6446d80853ba7117d7bbdf"}, + {file = "multidict-7.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0747a83e7ae617793181a4763ee8b84863cec5c0bbbde70c4394e4c0276c36de"}, + {file = "multidict-7.1.0-cp312-cp312-win32.whl", hash = "sha256:1df055e51fe7491120cc84f3362bd43db186be78d0e4c476acad45e435af9ffb"}, + {file = "multidict-7.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:10202ba98cfb3f7eb60da7ca87a2c458a69b7d0d6e4d4388cd6773ebbce89085"}, + {file = "multidict-7.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:0aa1ba3ff7cdda05a1242490612976b2ae1c90fc6200903ef8f53815dcb35c5d"}, + {file = "multidict-7.1.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:51d7f33be9a4a1a2801430846d72841deea0894eae8381a07e7d90e0f71b3c4b"}, + {file = "multidict-7.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:2a964dfeb2aba3663f0536c809aa1ff385f065e89fae57e883fb7edfb4067c2f"}, + {file = "multidict-7.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d02cd23b5af182a49d635ee72be38053767711987a9fd82625b16b93828a0d8c"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:0179698c3c913eb64f32397083747fad20ed0f0a2b7469a08cd1a8a95d14d90e"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ccf98ee859fe29f874ddd8e637f14ba59108a333492b521acb885a9095244a9c"}, + {file = "multidict-7.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5fa1484f74d011addf2e5f5a0378ec41521989839a05d6051d8067d8ce732423"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1fed3d721f75c25a9fcdd0e362af53f4b20acbcdc63081112f85419ba0ce3444"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:df03e392cae1e05462918abbae06d6100f1e53f67db971ff0ac6c07d9edf7321"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:379f477b98a1e9a77ddc3ccaa8c709d3fb4a288ff54b96e171e637b55b4adbae"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:40f586bc8a084a3671ddcae9e5fbd3228a596bfb63d9f0380f153f9a65b69f08"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6e7f70d912a589e30290ed926f90ddbc3160998359cbad7c9ede1bcee481748c"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5129cc1f5fec6888e2db0be936dab67242e32c738811c8769aeea93aab4257a8"}, + {file = "multidict-7.1.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1401caec21fd7f002e79ab6806bbfd1f54bb3de6d5e12bd91c6685dce16ad2be"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c81062e947f4b5a624135a843f6ac4b3c7fe6508300c9fb27347f022ba0c513d"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:c53be0dd676484a660acc56e4f1cd0dd74bc1255d12fa285e86a3fa9d5f22bf9"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:41e0c3350d08994ee8640c39884e16514e282f70ba40f5b2299582509a327774"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:abeec7a89d698aa1c9b4c36bd5e3c746faef0867076e6a2ca27fa5077c4ece26"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:23f6d325241b0db006ca2841309ed17622137e134930a740a8f1331ec4404791"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:034b0dc1b7fb8279599c5d8563f86abb4d2454735b06544ecab23c54572ad2bd"}, + {file = "multidict-7.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5c8074ad4d67067c87bd0663dfda654f786336078c8fd7d2f6c1aa41de8494cc"}, + {file = "multidict-7.1.0-cp313-cp313-win32.whl", hash = "sha256:7b25c335fc53acf29d4d21dbc19fe39d2824201cdda0448623152cc5917bd259"}, + {file = "multidict-7.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:7de54b49e6da811b0321e412d14efdaa1ee0c0b6609296ea5b9022bc5b2bd843"}, + {file = "multidict-7.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:aeba2c750102051aa51e087c2ccbc79f2724a41c94168f8731e36f54c453551a"}, + {file = "multidict-7.1.0-cp314-cp314-android_24_x86_64.whl", hash = "sha256:128ea4142f81a79d430f3d0eb55206093e5eda03a12abbc7b03c34748ff6116b"}, + {file = "multidict-7.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:439a19f7fbbff232ce96682c57e27030b8ac3a4b8121484c94f04bf99d08bfff"}, + {file = "multidict-7.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8090c35199d6b7bc6426bb8bdaf341e64f295cc2624a1fda7860c0837f1acc03"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b7cc5333fcbfb27327d12612ed72322f221b61c2b69deb1155078c964f86e1a1"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:b0e0040b0d8dd89bd0af9ab18901981e344ffba68bb30b8eabb4eab6c303279b"}, + {file = "multidict-7.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:33376418ab2846b931a72b36cfa16810befc4f49485d0b3f4dc054a4d6d00038"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1101aea5c3eb1d26e090b931c693488af0db9f3d52e68be8d4cdd807dad9841d"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f996b19ac89e0dae65821ce65f788619e4286f78c62d005ecd3b75b5d9c0892b"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e0d91a4bcb59ac0d7af0d8e0da737332e1b7fe6831e53e47819b1b5349d431b2"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e96d67914ddbf5466e4476a1cd7ff30a332cbab85ed895207acc3e58c979b6a7"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:170ba61761f59ab92afcc86ce5534a3f3d0b07c38b339b950a83213f22dd86ec"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:33389fe084e5426d9fd85d7d9ca91a29cd0d88a83c7c96e411aca49a3f9967bc"}, + {file = "multidict-7.1.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:77024596b9046572c4e90b34c1ff212346756dc48933f90c53cf6e233660788d"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ff15531a376dc6f35984443fd1429e4b150c36ce27633e7cc52a9e5318546e20"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:544f2642a456fa264614e975d921540ee8c3b368b04d5aa1ddbec33241b13e08"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:08834fb8b20e1a985c70e8380a10940234b4162de62694458727330376e58b33"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b4908e17867930b7ac77f89a18dc67308c67c511f037d8580489be86fb585912"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:9b24e1f93b9b586ec03bc7bea1bf021ec90bf2528c729195028a3ca1c266b3f9"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5c93473d0d7cd9bbb370973a9679a62f381c7050d7dff4ad6aaa92e8650f5a79"}, + {file = "multidict-7.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:bf14cfcc30b097583d698a6e2b8b68c9bcffab277c485d481881958360c2938d"}, + {file = "multidict-7.1.0-cp314-cp314-win32.whl", hash = "sha256:86bc779a0896e59e4be30a5be5cd6eeffd0b40b6f0e75e730218736b7bfc6f5c"}, + {file = "multidict-7.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:6c9fd50f636a8fa9cb6324cd3eac962fec2bc5bb432452a3b583583a1059acfc"}, + {file = "multidict-7.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:e6906aa4bc62cde2c8aeb8a99a7b4401b241e274ae7b11df67d863d61ab3d5de"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:fabfdd4cf97db033196b51af46b8a681d4785c2a66347f2a5af1b4bbb1182629"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:a177a0ee5cf19931dcaeb3f662bc562754cfa4f4ace2351d9da24a954ef7db94"}, + {file = "multidict-7.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0ae91de396d5c4ac97cb24dbada3d5c91a51454781e0a70476b008f4e879e4f0"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:160bdb3520fdadcaa21e1b98aab2e011265070814ecab3804eb61674becbd400"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6c2144785e42527404bbd5cfd11981fee4abe59a22aded0e498eb711a831d3f3"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7d0b4fec6a8d02d7e95de5cfa913261820f1ce04bd4c0381924de0da523179b8"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:943a9bce22180ad0f4d32d1b402a0949a4ecfe5a1257b47f54a1b51981d81b86"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f76ceb623f7ff50df46ac57e1587c479d87a5766319c4f43d0c0a5158896afab"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:98beff85392ce435b28a0971ec21cade61ce8be8b632c9d855475a28ef92d31a"}, + {file = "multidict-7.1.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:71196ebb8d523148e5975396a444de02367f204b53b14e26794c96b2be0ed742"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:35534b366410a36bb3d6f788691e37a76e4d1da48326b0ada3e5032580dd76af"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:b4674b12701c3fcbdf7f88b9e4479701c93bec5da9eb576140d5fcc0092990af"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0ead852a5e906a43fcb6784eeac480f6a67919a51d480c1f80d32ddf9d615475"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:afe36ca503c2ffe30fb6df82b20389fa3c4035b5d65888a61310921cf3ae91c5"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:a5f0bebb10aae010d3c9ee3abaf83ab2069c718457aea09c15532355dd7e061f"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:b9d9b7d72975521434368fe8aed3f6b522060bf271adabaa5ca6c87c0c08e168"}, + {file = "multidict-7.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:274023bf952f849e0d05eba28a4c1f65f9796430d2b09ec16539386c0f76554c"}, + {file = "multidict-7.1.0-cp314-cp314t-win32.whl", hash = "sha256:7e0bfa161df365ba3c88899ee3b7c94755200967284bdedef8c1b8b43e2c0f2b"}, + {file = "multidict-7.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:34a35be8fb82d37087e8176aba907b9459f03d0e293c80f574c6337a436f4eaa"}, + {file = "multidict-7.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:d7dd46a8fcd7653c09ebe67eae9d4cb6636c7a905d9cbaf587dabcbd4eca6013"}, + {file = "multidict-7.1.0-cp315-cp315-android_24_x86_64.whl", hash = "sha256:852c921217f330b3e81a822647ebadeae7e42cf503ec1992d0bfbc90121c09fb"}, + {file = "multidict-7.1.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:cbec738d2ad551c6f70955d7eec95e339380ee1564e2afe86bfee05fed52ceec"}, + {file = "multidict-7.1.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a5f721a2437390ab69c10c6df5c142478d399af8dfb02e6d823cf2358e8a4748"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:99cf27791129d37e191ff013bfc29bf6631c29edb21680c00978567b91fc5d6b"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2ba6611fc93c4b169d0e0ea376ebf4b8a529933d1f5f2c2ec7d8f8b93ef58ec2"}, + {file = "multidict-7.1.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:c45629c0049fbdef932dbe408ac2b271fdc8c7d9962ca31160f4a0fc3455fe4f"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cf606cfe3f67984b4064ac605d71e1eba12515fbabf5bd5a34a8952b8800dc66"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50fdfcb03be719d9573597b095b1175d2e9d0b30d065791dfd9fca727c499442"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a8bba9d1f6db4ef2a6ebfc937a65d36e80e3aada00b382eaf56fea8f639322d5"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:46d4af0afc6eb9867b3ae50605787c80b868e2f52eac3801246034925fe578b8"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5cc58ebb731200ddb64d55f1b345630fb5f7a8138cdbd242af9dce964a7cb03d"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4b87ad54e8d4adeb0a1f04889504d6ec7f04fb02609220810f51f1b6c66bc1cc"}, + {file = "multidict-7.1.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:44f7e5dd83a615636b80182bdf446ece57ed61d5d51854acc5d9840631136d4e"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:9bc5e7f843d14a167cdc26fe2d22f6f3aa2feb57919cf3ff034262a57d8d95d0"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0631eb5f49f67de10bbdc3f64141326dbc62e8d319900966648381ce0845d8ca"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:d1b1b32f3c32f734dde8f36ac1df8e275e768a7b333241cd637cb2538628a4b4"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:159976f9c40f96e3fe0952b708846a43a76bacb114e9cc828816f5080bddd5ec"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:81a0e08c64dfdad27dab687b96f572b23bafa1999a39d1b6f70b3ddbb73e8bd0"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:4e11e7299079718c78f8147e7206c22fe35bab4466d38992420795288a0b8096"}, + {file = "multidict-7.1.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:34d2ee98e15d5cfe782a431bc913fce3b58cf3fdb34fcb437aeb275cdf9007ab"}, + {file = "multidict-7.1.0-cp315-cp315-win32.whl", hash = "sha256:f376224572d1f5da1c871f969ab04765727f180e70d012d93e07bfc08442c64b"}, + {file = "multidict-7.1.0-cp315-cp315-win_amd64.whl", hash = "sha256:67fcf28db77b385820881521db7435e9f1c607cfaf07db6eb78aa9d1146bde86"}, + {file = "multidict-7.1.0-cp315-cp315-win_arm64.whl", hash = "sha256:c7aafa4dd2f702ee2198005d6cba4309c1e25ed1c201d77beddefa47411bead8"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:1348ddc076251cd542f4a99ccda4b7c1f8444e8ab489d3541a978ca5901c7c1f"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:9267bf8261a779abb2a6eab5f107f5db85b2d1745f2494081c731aaf28738ce3"}, + {file = "multidict-7.1.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:8a844b8b1685f38a2e8b2f3213b286e2a7abfe67508381780a0d4599ac337c1c"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:18a447d46a3a2f1e61b365cbf5627db7030fdb707dad70c4f2760e5144166ecc"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:88811f890db240a1c82bf0bcd52973763707a552c8113ac3fcebca183afb2fa8"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a60b720c329c0007feae692b7bf91cf17b3f9bd3727be96cc6f9a3336651041b"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b117ed1cd1a23df0902461c38093408b95971833dcee629112acda25b603c8d0"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bbcae7a54050b7ad7bc7bf425ba63dea7d2cd31a92246ba787a2ce69a9b98dbc"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4cba2b0b9235fe10e12301d6b4cfba0f353fa668d635f6e988b03623c2cd42ba"}, + {file = "multidict-7.1.0-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:535173fbcc3933d84f9929d49d7a59a0faec259ee07d07c34c7d2a980b4e3683"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:ea027bdeca1d7e498237634ee4e3a852e2723eef39996dec0ff0f77dff8a2336"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:507151e1e3dee95e9e8159e329aed4f75aa5205ecd6505a4f6be546890eafbe1"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9c10791e9f5ef132effc8fdce2009482c1cfb26618c5fc1b7952a47dd5eb632e"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:f16ac8af2804855d3cae5fc3c5ab609c9fd0fc8ecacd92579c05ed3c173396fd"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:b78de22bae456a976f33df34d598dfd16edc9a03df8f4cc8b7c17bdba4c97b4a"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:db77888081431aaa69f3fd3480891746ddce6c2a571f6201869a24e2f06cf423"}, + {file = "multidict-7.1.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c39dfcaa0bf23443474c0cb58d8d8aea9529c1841d99654cb38e4dada7b1948a"}, + {file = "multidict-7.1.0-cp315-cp315t-win32.whl", hash = "sha256:16b21164797bde6f417066d02775975cc2e15ab8abf80efa55fe85e0b4894020"}, + {file = "multidict-7.1.0-cp315-cp315t-win_amd64.whl", hash = "sha256:55392202cb374dd1a1f89a8ce1586644870d9e936752059d053e576acc50bc89"}, + {file = "multidict-7.1.0-cp315-cp315t-win_arm64.whl", hash = "sha256:f979a077d1c0a9a36dd4fab0d3a36b8de7b593bf935e13df85a380395b2c11ad"}, + {file = "multidict-7.1.0-py3-none-any.whl", hash = "sha256:d9ef29cfd98e17085b4f91bba8fa1570bec6787d5c52ce653ed33a58785585d0"}, + {file = "multidict-7.1.0.tar.gz", hash = "sha256:61a4e5d81b8d4e4ad61964b230129e7a2b914793d96289029078fc9009f074ec"}, ] [package.dependencies] @@ -788,306 +855,336 @@ files = [ [[package]] name = "pluggy" -version = "1.6.0" +version = "1.7.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, - {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, + {file = "pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec"}, + {file = "pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8"}, ] -[package.extras] -dev = ["pre-commit", "tox"] -testing = ["coverage", "pytest", "pytest-benchmark"] - [[package]] name = "propcache" -version = "0.5.2" +version = "0.5.4" description = "Accelerated property cache" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "propcache-0.5.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d5a81be28596d6559f6131ef33e10200de6e17643b3c74ce03f9eb103be6ae8b"}, - {file = "propcache-0.5.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:29cbaac5ea0212663e6845e04b5e188d5a6ae6dd919810ac835bf1d3b42c3f4c"}, - {file = "propcache-0.5.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6bf3be92233808fcd338eba0fb4d0b59ec5772af4f4ecfcec450d1bfc0f8b5eb"}, - {file = "propcache-0.5.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f8ea531c794b9d6274acd4e8d2c2ebcac590a4361d27482edd3010b79f1325e"}, - {file = "propcache-0.5.2-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:decfca4c79dd53ebab484b00cc4b6717d8c369f86e74aa4ca395a64ac651495e"}, - {file = "propcache-0.5.2-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4621064bbf28fa77ff64dd5d94367c04684c67d3a5bf1dff25f0cd0d98a38f3b"}, - {file = "propcache-0.5.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b96db7141a592cbc968daf1feea83a118e6ab378af4abbc72b248c895414c22d"}, - {file = "propcache-0.5.2-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1ca071adabaab6e9219924bbe00af821f1ee7de113a9eca1cdc292de3d120f4d"}, - {file = "propcache-0.5.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e4294d04a94dcab1b3bccd8b66d962dcad411a1d19414b2a41d1445f1de32ad0"}, - {file = "propcache-0.5.2-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:a0e399a2eccb91ed18721f86aa85757727400b6865c89e88934781deb9c8498b"}, - {file = "propcache-0.5.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:823581fd5cb08b12a48bfa11fe962a7916766b6170c17b028fbdf762b85eb9bf"}, - {file = "propcache-0.5.2-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:949c91d1a990cf3b2e8188dfcfb25005e0b834a06c63fa4ef9f360878ce21ecf"}, - {file = "propcache-0.5.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:cc1177027eda740fdb152706bd215a3f124e3eea15afc39f2cb9fe351b50619e"}, - {file = "propcache-0.5.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b05d643f944a8c3c4bd86d65ffd87bf3264b617f87791940302bc474d2ff5274"}, - {file = "propcache-0.5.2-cp310-cp310-win32.whl", hash = "sha256:8114f28879e0904748e831c3a7774261bd9e75f49be089f389a76f959dcd13fe"}, - {file = "propcache-0.5.2-cp310-cp310-win_amd64.whl", hash = "sha256:5fcb98e7598b1ee0addab320d90f65b530297a867dbfe9de52ea838077e16e3d"}, - {file = "propcache-0.5.2-cp310-cp310-win_arm64.whl", hash = "sha256:04dc2390d9edbbaef7461f33322555976ffddf0b650a038649d026358714e6c5"}, - {file = "propcache-0.5.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:74b70780220e2dd89175ca24b81b68b67c83db499ae611e7f2313cb329801c78"}, - {file = "propcache-0.5.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a4840ab0ae0216d952f4b53dc6d0b992bfc2bedbfe360bdd9b548bc184c08959"}, - {file = "propcache-0.5.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c6844ba6364fb12f403928a82cfd295ab103a2b315c77c747b2dbe4a41894ea7"}, - {file = "propcache-0.5.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2293949b855ce597f2826452d17c2d545fb5622379c4ea6fdf525e9b8e8a2511"}, - {file = "propcache-0.5.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0fd59b5af35f74da48d905dcbad55449ba13be91823cb05a9bd590bbf5b61660"}, - {file = "propcache-0.5.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:29f9309a2e42b0d273be006fdb4be2d6c39a47f6f57d8fb1cf9f81481df81b66"}, - {file = "propcache-0.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5aaa2b923c1944ac8febd6609cb373540a5563e7cbcb0fd770f75dace2eb817b"}, - {file = "propcache-0.5.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:66ea454f095ddf5b6b14f56c064c0941c4788be11e18d2464cf643bf7203ff67"}, - {file = "propcache-0.5.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:95f1e3f4760d404b13c9976c0229b2b49a3c8e2c62a9ce92efdd2b11ada75e3f"}, - {file = "propcache-0.5.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:85341b12b9d55bad0bded24cac341bb34289469e03a11f3f583ea1cc1db0326c"}, - {file = "propcache-0.5.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:26a4dca084132874e639895c3135dfad5eb20bae209f62d1aeb31b03e601c3c0"}, - {file = "propcache-0.5.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:3b199b9b2b3d6a7edf3183ba8a9a137a22b97f7df525feb5ae1eccf026d2a9c6"}, - {file = "propcache-0.5.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:e59bc9e66329185b93dab73f210f1a37f81cb40f321501db8017c9aea15dba27"}, - {file = "propcache-0.5.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:552ffadf6ad409844bc5919c42a0a83d88314cedddaea0e41e80a8b8fffe881f"}, - {file = "propcache-0.5.2-cp311-cp311-win32.whl", hash = "sha256:cd416c1de191973c52ff1a12a57446bfc7642797b282d7caf2162d7d1b8aa9a0"}, - {file = "propcache-0.5.2-cp311-cp311-win_amd64.whl", hash = "sha256:44e488ef40dbb452700b2b1f8188934121f6648f52c295055662d2191959ff82"}, - {file = "propcache-0.5.2-cp311-cp311-win_arm64.whl", hash = "sha256:54adaa85a22078d1e306304a40984dc5be99d599bf3dc0a24dc98f7daeab89ab"}, - {file = "propcache-0.5.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:806719138ecd720339a12410fb9614ac9b2b2d3a5fdf8235d56981c36f4039ba"}, - {file = "propcache-0.5.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:db2b80ea58eab4f86b2beec3cc8b39e8ff9276ac20e96b7cce43c8ae84cd6b5a"}, - {file = "propcache-0.5.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e5cbfac9f61484f7e9f3597775500cd3ebe8274e9b050c38f9525c77c97520bf"}, - {file = "propcache-0.5.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5dbc581d2814337da56222fab8dc5f161cd798a434e49bac27930aaef798e144"}, - {file = "propcache-0.5.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:857187f381f88c8e2fa2fe56ab94879d011b883d5a2ee5a1b60a8cd2a06846d9"}, - {file = "propcache-0.5.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:178b4a2cdaac1818e2bf1c5a99b94383fa73ea5382e032a48dec07dc5668dc42"}, - {file = "propcache-0.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6f328175a2cde1f0ff2c4ed8ce968b9dcfb55f3a7153f39e2957ed994da13476"}, - {file = "propcache-0.5.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5671d09a36b06d0fd4a3da0fccbcae360e9b1570924171a15e9e0997f0249fba"}, - {file = "propcache-0.5.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:80168e2ebe4d3ec6599d10ad8f520304ae1cad9b6c5a95372aef1b66b7bfb53a"}, - {file = "propcache-0.5.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:45f11346f884bc47444f6e6647131055844134c3175b629f84952e2b5cd62b64"}, - {file = "propcache-0.5.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8e778ebd44ef4f66ed60a0416b06b489687db264a9c0b3620362f26489492913"}, - {file = "propcache-0.5.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:c0cb9ed24c8964e172768d455a38254c2dd8a552905729ce006cad3d3dda59b1"}, - {file = "propcache-0.5.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:1d1ad32d9d4355e2be65574fd0bfd3677e7066b009cd5b9b2dee8aa6a6393b33"}, - {file = "propcache-0.5.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c80f4ba3e8f00189165999a742ee526ebeccedf6c3f7beb0c7df821e9772435a"}, - {file = "propcache-0.5.2-cp312-cp312-win32.whl", hash = "sha256:8c7972d8f193740d9175f0998ab38717e6cd322d5935c5b0fef8c0d323fd9031"}, - {file = "propcache-0.5.2-cp312-cp312-win_amd64.whl", hash = "sha256:d9ee8826a7d47863a08ac44e1a5f611a462eefc3a194b492da242128bec75b42"}, - {file = "propcache-0.5.2-cp312-cp312-win_arm64.whl", hash = "sha256:2800a4a8ead6b28cccd1ec54b59346f0def7922ee1c7598e8499c733cfbb7c84"}, - {file = "propcache-0.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:099aaf4b4d1a02265b92a977edf00b5c4f63b3b17ac6de39b0d637c9cac0188a"}, - {file = "propcache-0.5.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:68ce1c44c7a813a7f71ea04315a8c7b330b63db99d059a797a4651bb6f69f117"}, - {file = "propcache-0.5.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fc299c129490f55f254cd90be0deca4764e36e9a7c08b4aa588479a3bbed3098"}, - {file = "propcache-0.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6ae2198be502c10f09b2516e7b5d019816924bc3183a43ce792a7bd6625e6f4"}, - {file = "propcache-0.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6041d31504dc1779d700e1edcfb08eea334b357620b06681a4eabb57a74e574e"}, - {file = "propcache-0.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f7eabc04151c78a9f4d5bbb5f1faf571e4defeb4b585e0fe95b60ff2dbe4d3d7"}, - {file = "propcache-0.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4db0ba63d693afd40d249bd93f842b5f144f8fcbb83de05660373bcf30517b1d"}, - {file = "propcache-0.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1dbcf7675229b35d31abb6547d8ebc8c27a830ac3f9a794edff6254873ec7c0a"}, - {file = "propcache-0.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d310c013aad2c72f1c3f2f8dd3279d460a858c551f97aeb8c63e4693cca7b4d2"}, - {file = "propcache-0.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:06187263ddad280d05b4d8a8b3bb7d164cbebd469236544a42e6d9b28ac6a4fa"}, - {file = "propcache-0.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3115559b8effafd63b142ea5ed53d63a16ea6469cbc63dce4ee194b42db5d853"}, - {file = "propcache-0.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c60462af8e6dc30c35407c7237ea908d777b22862bbee27bc4699c0d8bcdc45a"}, - {file = "propcache-0.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:40314bca9ac559716fe374094fc81c11dcc34b64fd6c585360f5775690505704"}, - {file = "propcache-0.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:cfa21e036ce1e1db2be04ba3b85d2df1bb1702fa01932d984c5464c665228ff4"}, - {file = "propcache-0.5.2-cp313-cp313-win32.whl", hash = "sha256:f156a3529f38063b6dbaf356e15602a7f95f8055b1295a438433a6386f10463d"}, - {file = "propcache-0.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:dfed59d0a5aeb01e242e66ff0300bc4a265a7c05f612d30016f0b60b1017d757"}, - {file = "propcache-0.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:ba338430e87ceb9c8f0cf754de38a9860560261e56c00376debd628698a7364f"}, - {file = "propcache-0.5.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:a592f5f3da71c8691c788c13cb6734b6d17663d2e1cb8caddf0673d01ef8847d"}, - {file = "propcache-0.5.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:6a997d0489e9668a384fcfd5061b857aa5361de73191cac204d04b889cfbbafa"}, - {file = "propcache-0.5.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:10734b5484ea113152ee25a91dccedf81631791805d2c9ccb054958e51842c94"}, - {file = "propcache-0.5.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cafca7e56c12bb02ae16d283742bef25a61122e9dab2b5b3f2ccbe589ce32164"}, - {file = "propcache-0.5.2-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f064f8d2b59177878b7615df1735cd8fe3462ed6be8c7b217d17a276489c2b7f"}, - {file = "propcache-0.5.2-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f78abfa8dfc32376fd1aacf597b2f2fbbe0ea751419aee718af5d4f82537ef8c"}, - {file = "propcache-0.5.2-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f7467da8a9822bf1a55336f877340c5bcbd3c482afc43a99771169f74a26dedc"}, - {file = "propcache-0.5.2-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a6ddc6ac9e25de626c1f129c1b467d7ecd33ce2237d3fd0c4e429feef0a7ee1f"}, - {file = "propcache-0.5.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:2f22cbbac9e26a8e864c0985ff1268d5d939d53d9d9411a9824279097e03a2cb"}, - {file = "propcache-0.5.2-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:fc76378c62a0f04d0cd82fbb1a2cd2d7e28fcb40d5873f28a6c44e388aaa2751"}, - {file = "propcache-0.5.2-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:acd2c8edba48e31e58a363b8cf4e5c7db3b04b3f9e371f601df30d9b0d244836"}, - {file = "propcache-0.5.2-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:452b5065457eb9991ec5eb38ff41d6cd4c991c9ac7c531c4d5849ae473a9a13f"}, - {file = "propcache-0.5.2-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:3430bb2bfe1331885c427745a751e774ee679fd4344f80b97bf879815fe8fa55"}, - {file = "propcache-0.5.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:cef6cea3922890dd6c9654971001fa797b526c16ab5e1e46c05fd6f877be7568"}, - {file = "propcache-0.5.2-cp313-cp313t-win32.whl", hash = "sha256:72d61e16dd78228b58c5d47be830ff3da7e5f139abdf0aef9d86cde1c5cf2191"}, - {file = "propcache-0.5.2-cp313-cp313t-win_amd64.whl", hash = "sha256:0958834041a0166d343b8d2cedcd8bcbaeb4fdbe0cf08320c5379f143c3be6e7"}, - {file = "propcache-0.5.2-cp313-cp313t-win_arm64.whl", hash = "sha256:6de8bd93ddde9b992cf2b2e0d796d501a19026b5b9fd87356d7d0779531a8d96"}, - {file = "propcache-0.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:46088abff4cba581dea21ae0467a480526cb25aa5f3c269e909f800328bc3999"}, - {file = "propcache-0.5.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fc88b26f08d634f7bc819a7852e5214f5802641ab8d9fd5326892292eee1993e"}, - {file = "propcache-0.5.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:97797ebb098e670a2f92dd66f32897e30d7615b14e7f59711de23e30a9072539"}, - {file = "propcache-0.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ba57fffe4ac99c5d30076161b5866336d97600769bad35cc68f7774b15298a4e"}, - {file = "propcache-0.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:583c19759d9eec1e5b69e2fbef36a7d9c326041be9746cb822d335c8cedc2979"}, - {file = "propcache-0.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d0326e2e5e1f3163fa306c834e48e8d490e5fae607a097a40c0648109b47ba80"}, - {file = "propcache-0.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e00820e192c8dbebcafb383ebbf99030895f09905e7a0eb2e0340a0bcc2bc825"}, - {file = "propcache-0.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c66afea89b1e43725731d2004732a046fe6fe955d51f952c3e95a7314a284a39"}, - {file = "propcache-0.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d4dc37dec6c6cdad0b57881a5658fd14fbf53e333b1a86cf86559f190e1d9ec4"}, - {file = "propcache-0.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:5570dbcc97571c15f68068e529c92715a12f8d54030e272d264b377e22bd17a5"}, - {file = "propcache-0.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f814362777a9f841adddb200ecdf8f5cb1e5a3c4b7a86378edbd6ccb26edd702"}, - {file = "propcache-0.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:196913dea116aeb5a2ba95af4ddcb7ea85559ae07d8eee8751688310d09168c3"}, - {file = "propcache-0.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:6e7b8719005dd1175be4ab1cd25e9b98659a5e0347331506ec6760d2773a7fb5"}, - {file = "propcache-0.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:51f96d685ab16e88cab128cd37a52c5da540809c8b879fa047731bfcb4ad35a4"}, - {file = "propcache-0.5.2-cp314-cp314-win32.whl", hash = "sha256:cc6fc3cc62e8501d3ed62894425040d2728ecddb1ed072737a5c70bd537aa9f0"}, - {file = "propcache-0.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:81e3a30b0bb60caa22033dd0f8a3618d1d67356212514f62c57db75cb0ef410c"}, - {file = "propcache-0.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:0d2c9bf8528f135dbb805ce027567e09164f7efa51a2be07458a2c0420f292d0"}, - {file = "propcache-0.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:4bc8ff1feffc6a61c7002ffe84634c41b822e104990ae009f44a0834430070bb"}, - {file = "propcache-0.5.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:79aa3ff0a9b566633b642fa9caf7e21ed1c13d6feca718187873f199e1514078"}, - {file = "propcache-0.5.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1b31822f4474c4036bae62de9402710051d431a606d6a0f907fec79935a071aa"}, - {file = "propcache-0.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:13fef48778b5a2a756523fdb781326b028ca75e32858b04f2cdd19f394564917"}, - {file = "propcache-0.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8b73ab70f1a3351fbc71f663b3e645af6dd0329100c353081cf69c37433fc6fe"}, - {file = "propcache-0.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5538d2c13d93e4698af7e092b57bc7298fd35d1d58e656ae18f23ee0d0378e03"}, - {file = "propcache-0.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cd645f03898405cabe694fb8bc35241e3a9c332ec85627584fe3de201452b335"}, - {file = "propcache-0.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a473b3440261e0c60706e732b2ed2f517857344fc21bf48fdfe211e2d98eb285"}, - {file = "propcache-0.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7afa37062e6650640e932e4cc9297d81f9f42d9944029cc386b8247dea4da837"}, - {file = "propcache-0.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:8a90efd5777e996e42d568db9ac740b944d691e565cbfd31b2f7832f9184b2b8"}, - {file = "propcache-0.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:f19bb891234d72535764d703bfed1153cc34f4214d5bd7150aee1eec9e8f4366"}, - {file = "propcache-0.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:32775082acd2d807ee3db715c7770d38767b817870acfa08c29e057f3c4d5b56"}, - {file = "propcache-0.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9282fb1a3bccd038da9f768b927b24a0c753e466c086b7c4f3c6982851eefb2d"}, - {file = "propcache-0.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cc49723e2f60d6b32a0f0b08a3fd6d13203c07f1cd9566cfce0f12a917c967a2"}, - {file = "propcache-0.5.2-cp314-cp314t-win32.whl", hash = "sha256:2d7aa89ebca5acc98cba9d1472d976e394782f587bad6661003602a619fd1821"}, - {file = "propcache-0.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:d447bb0b3054be5818458fbb171208b1d9ff11eba14e18ca18b90cbb45767370"}, - {file = "propcache-0.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:fe67a3d11cd9b4efabfa45c3d00ffba2b26811442a73a581a94b67c2b5faccf6"}, - {file = "propcache-0.5.2-py3-none-any.whl", hash = "sha256:be1ddfcbb376e3de5d2e2db1d58d6d67463e6b4f9f040c000de8e300295465fe"}, - {file = "propcache-0.5.2.tar.gz", hash = "sha256:01c4fc7480cd0598bb4b57022df55b9ca296da7fc5a8760bd8451a7e63a7d427"}, + {file = "propcache-0.5.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b77c313314524ca9c38fbd70f73515d04597ac58c40c939bc0e71eeb4abff680"}, + {file = "propcache-0.5.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8f911c395cef73c510bac566da9507bb6a43e7763d0c79138dc60ee53f11207e"}, + {file = "propcache-0.5.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d83b12902eb8bce151259c86c03ba746600b2d994543de46e370cecf96c452f2"}, + {file = "propcache-0.5.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c9281e922c072158c91974d4589f1dbe0fee6d467f284c28e463f9f5a4d933f4"}, + {file = "propcache-0.5.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9f3551b8a35c1df3e7ea4d2d86edee15f0dde1bddd434a71744048683544d0ef"}, + {file = "propcache-0.5.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ec6a85f424afa8d23e0d9a094e5dbb6eda01da91c92b9183cd433768247ffc97"}, + {file = "propcache-0.5.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f574e460d1c8a08384a016fdb09ccf3543433263ed6b2f97104f979e64ea57c2"}, + {file = "propcache-0.5.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d8e017eeb7482bed34cdb0d61cf2bcfc88d104bbab296a17cd16a6af8aabc70e"}, + {file = "propcache-0.5.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f273dcf7149a50527c4fd1f55cfe9eac0f60753f5af544b4c9352578e20c0874"}, + {file = "propcache-0.5.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:fc2461ecc45f17893f8207e73b46ea8ba93e33630e51cf4af3fbc21d47462b1a"}, + {file = "propcache-0.5.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:279655a16973f1ee2bd2fe79973137681642fd9ae0d89215bba263726eb0dc3a"}, + {file = "propcache-0.5.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:e9f165403b81fea7e89c932d89046a1e3d9a3a60e8d7ef2f249dccdcb0982bf5"}, + {file = "propcache-0.5.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:1783582065a1f07f9d9ee1e992e13f15d7dc8fb1eb3a7476d43eb3f2e69d26bb"}, + {file = "propcache-0.5.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3d605bb239b796e82a81c6709548b2bd460ab73b4590cb0c83de8a2dd9694d0f"}, + {file = "propcache-0.5.4-cp310-cp310-win32.whl", hash = "sha256:141fdbd73748db0cf7636035030aaac383d2efde8f34e7bc24594cc776d225b8"}, + {file = "propcache-0.5.4-cp310-cp310-win_amd64.whl", hash = "sha256:146f48a9e4812611a7581003b1a39de56c34967046310c4171a68ef908c9a745"}, + {file = "propcache-0.5.4-cp310-cp310-win_arm64.whl", hash = "sha256:6c7599df2b57ebeea8de011b5f2f7b85de95e76037d43d34b95e328430275487"}, + {file = "propcache-0.5.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:897d1ddf6716e8f47200f7aad9a0efa6cc7586df66c6defa572f9eab379c078e"}, + {file = "propcache-0.5.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9cbfff4423eef4cc6cafc021469641a2b835f610b2647a6c5281903e21b8670d"}, + {file = "propcache-0.5.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3fc24f209c1b7f7f688b66b98293954f5504279760999b58920ee12dd8471c1d"}, + {file = "propcache-0.5.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:62530ca89187827e4a4fe733f971abe81a7542eeea48ff61995f19b64d7199c8"}, + {file = "propcache-0.5.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:56fc3f7599528db40b1efa0889a620116e2704144495273d66066e8164e45838"}, + {file = "propcache-0.5.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f2d880ff60f45898f4acfa152aac8d04e3ee627d90ff4003491bf92239d5757"}, + {file = "propcache-0.5.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6e9368e87a3efc285e559131092c5db643eb8e56de4ee42064d5baec22ef2bb5"}, + {file = "propcache-0.5.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:004e685b315646c410771836e72a44f143bbe624f29653a42687815069a303d5"}, + {file = "propcache-0.5.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:594eb4c6ec35e7179b058481f4e9f02521b56de16fa577c4b85c76fb1bf8a9f8"}, + {file = "propcache-0.5.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:2dba2f02d2d5c09ef8a0e6c1a42aeaa451f4be9898cb00b04fe98717da2eb23b"}, + {file = "propcache-0.5.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c3ef2818d63bc86071e9d2989ae75a1bc32b8f7059cfd9f5abbbee70c32e2ed6"}, + {file = "propcache-0.5.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:dd2ac8f5b643454c2cc6b6118b13da16e88f4a6434fc3ba61aca384029f04f36"}, + {file = "propcache-0.5.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:4054acf80d40456a0537f2913b349718649d8d6458a14ab7f48d0ce28c30869d"}, + {file = "propcache-0.5.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:40e94adb1e7d39ff28a8bd8d8b8fbd1df6b9f40976dbe379134f1ce058e532dd"}, + {file = "propcache-0.5.4-cp311-cp311-win32.whl", hash = "sha256:9f86f7259efe2c951f43e57d471c9b41daa5bfc7db9f67189059cf1ae6d77fd9"}, + {file = "propcache-0.5.4-cp311-cp311-win_amd64.whl", hash = "sha256:e904d4d01f36bd6e197590be1533c44e06058771e0746dd073a8ebb3ef880858"}, + {file = "propcache-0.5.4-cp311-cp311-win_arm64.whl", hash = "sha256:d42a9a856a4a6e2f6c10f1318c07e7daa498d6593abe745c71dae4521a26ca39"}, + {file = "propcache-0.5.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:b28f41fa3b8c6900457f858ec5b03998f3a6d535fbc1bb2edec5961ea05ec429"}, + {file = "propcache-0.5.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:dcbf346a318a5e30063f547630b02bb787ce2f45b6368d5da143660b6a3835d8"}, + {file = "propcache-0.5.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:87a3caecf8095e48dc72f84bfa42e23a848cf410cc9cc13031fba4869b706a21"}, + {file = "propcache-0.5.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:60a64cbccaa11b7760ce705a14ada17ba459e7ca9f23ba587eb013821032d7ef"}, + {file = "propcache-0.5.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a74bfa37147cc08fb29df10bd9c16f40fa7f860cd3a6d2fff853323a94f6e17f"}, + {file = "propcache-0.5.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a4d7a54719b67338a305dca2ce6aafe366817df94ddfd4b5514374356f5ca546"}, + {file = "propcache-0.5.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2814ecd8e818f487bee4b0f921bc4d1c176cc5fc71ac0f072d0fa67eda4ac14b"}, + {file = "propcache-0.5.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6af4693716bfb03f1752ef1b30faa593db2c01d5272e9b8564a1549452a979ab"}, + {file = "propcache-0.5.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4fbc1a15dc8cd1689508758d626b372b1f09d28d9577667feaf9e6bfcd8efcbc"}, + {file = "propcache-0.5.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cdee8205a44d0be91bbac4c41b95d86641b72dfc7aef1279400e4fda3f26a937"}, + {file = "propcache-0.5.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:9a2a8a50a93dee0268a860a07fa3b4bd968f8ce4dbd794957da772f395368526"}, + {file = "propcache-0.5.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:7ffafcbfc7b549ab940047e505c831eabac5e67de53e1bc174adbc5285c55944"}, + {file = "propcache-0.5.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:d1f5a500bfcbb2c0ab85e98a0dcd70f5899d34efe365a0187700369a79603031"}, + {file = "propcache-0.5.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8a235f73d6e020855dc29dff012d920c02ee0feab8d73a24185a7569f4be1161"}, + {file = "propcache-0.5.4-cp312-cp312-win32.whl", hash = "sha256:b3083bfe87f95c756e610bd8025f26cbd1cd4aaa03a422f2d65efb7a97cd53d8"}, + {file = "propcache-0.5.4-cp312-cp312-win_amd64.whl", hash = "sha256:98914de2c4d7f0f9f4a8c6ea4bf05841f4175796941e3ef7d47eb718f22311fb"}, + {file = "propcache-0.5.4-cp312-cp312-win_arm64.whl", hash = "sha256:8876b39961e33d912afe3c1bee18ee564fdad0206f873cc15d522756b7f50737"}, + {file = "propcache-0.5.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:36c0d9db44b523ef93d03341b1c42d69ff01d673c053d1b1c6c3a363bcaa39ba"}, + {file = "propcache-0.5.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1d52a05dc417279f7e5c7618c5dfbbc29923aaf9bc0a5c1802ddcebf54c61a0"}, + {file = "propcache-0.5.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:44149f46500a0a41b95b4d99c2e586a77319539730607b9892974a092788b111"}, + {file = "propcache-0.5.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dbab5f5ff6897c81f355d079010cdae85b02e5a0b518b5251523b8ad8ae9ac3c"}, + {file = "propcache-0.5.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c3e98c55bde2bcf7db3c70d1aed7ae9aa8aebbf19a250c66645cde44cdb8b867"}, + {file = "propcache-0.5.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:db3ae52ccc150dbc84704e9d642743897f3e1c54742ff34cacb661e52e3818a9"}, + {file = "propcache-0.5.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f85915e00dcb1cd9f2f890ead064ed40a27df06f0db65be427b29482ae357572"}, + {file = "propcache-0.5.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c2ba30a89035b57b73e00475de948521602f543d79ce01db10b04b36c4c76fc8"}, + {file = "propcache-0.5.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ae58f361bd5dae942717c65d3413b478c70aea9c462599e7b9adad3731db3894"}, + {file = "propcache-0.5.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:96f7c5c15656040ddcbc51e56dc59b58aa25999d743c126abd425b9766ab43e9"}, + {file = "propcache-0.5.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7cc528e760a8af06f2b13e9b9f362cd90c7c718ea61228a96dbd31ba16ed7f47"}, + {file = "propcache-0.5.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:425f8cc86ab5018b4b8d4a23bc8e74d964bd3d757c3702e301aa79be76c53f6c"}, + {file = "propcache-0.5.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a5793c7698a53f56f4a1889a4737c7eeb1b7ad0842fa6b1abca22913ff79c8c1"}, + {file = "propcache-0.5.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:c02c0e570c5c7e077b0181a9f3cdb7d4c3617d1cda6b5c95bd5d34022923d82c"}, + {file = "propcache-0.5.4-cp313-cp313-win32.whl", hash = "sha256:3e413d7a4a9b4866b7a761d6060d434b64d23cd35122eda3b026a0bbe8196b25"}, + {file = "propcache-0.5.4-cp313-cp313-win_amd64.whl", hash = "sha256:0c889f6fa84957bc7e8b4eab71fd16a0455068d5045e3aa40c733071d2b2fd77"}, + {file = "propcache-0.5.4-cp313-cp313-win_arm64.whl", hash = "sha256:69fc35c0779522da366c563e5faf203ffc1f8ff0021d5b1337fa4efa5be73177"}, + {file = "propcache-0.5.4-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:e6720ba44ad7e72174314d0e1fb0172494cff5c73a3a8a2159c3d2402ff15565"}, + {file = "propcache-0.5.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4cfe0a92ae30151869e67a4b5f5e105e4e03ad30b3f38e5211b5bf77d0881993"}, + {file = "propcache-0.5.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d759d05634f1b038fb625a66662a8c85e5a8fec912da381b5149ddac107482b"}, + {file = "propcache-0.5.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:251c63dd46a0659bb875cb254dc4c1e79ee91a847c737cd62373295afc2235dc"}, + {file = "propcache-0.5.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7a8d5ff04eb1f85698a78d20c62a14676e7b960dcafde09a388d60ad377d355d"}, + {file = "propcache-0.5.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7b9100a93b372418d8688f3f2a3e5b45c64d70ca4d6176e121aca1e3bfc1e32f"}, + {file = "propcache-0.5.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cc07876cfb079b6f6f36d21ce75784ad6c2c6b563eeac0ed26c2fa2669b85df9"}, + {file = "propcache-0.5.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0951315a6b3142ee2167404d707743f0157c110091342b1aa0accac5cf0e4acf"}, + {file = "propcache-0.5.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bee7d3aed13d56f54e681df38c3a23031bc9e3863f687d9d598825c9146acd7d"}, + {file = "propcache-0.5.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:4e985382be6d15da8d0c2710a6fa7b9070fc9ecdeefb7f580e88373984ec8be3"}, + {file = "propcache-0.5.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:9e9ab13760aa8b6d0881ae7cb04fd891d8d490cd2554ea8e79bb278399169bcc"}, + {file = "propcache-0.5.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:1b2f3bec4261a94019575481c726c29850f72e27907773c75b1de421e20e9f9d"}, + {file = "propcache-0.5.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:720cf832eb2d0b0dfee129cb3335a26f6ce3cc45ee1187e8f0731758caa16792"}, + {file = "propcache-0.5.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9fb0a5be8d9aa213150e8d8148a42aca4984b285bcad1e69587dc4298edd929b"}, + {file = "propcache-0.5.4-cp314-cp314-win32.whl", hash = "sha256:30cc1cebaf9aef49db06357a50398323ae04d70460c0491837d026ab7d6452ea"}, + {file = "propcache-0.5.4-cp314-cp314-win_amd64.whl", hash = "sha256:0a095db8e15a6020db149ecbed6461939fe74f6acaa3ae8b702a1fe8c38cd983"}, + {file = "propcache-0.5.4-cp314-cp314-win_arm64.whl", hash = "sha256:45488d1a5f9ab5bd90aaa1ca20f50fe1922b8ffad71a2009d2adf41355897aac"}, + {file = "propcache-0.5.4-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:53eaa697c4d0422ff4cb714d00231b43352064d97b944033b30c1d57cc506ec0"}, + {file = "propcache-0.5.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:886b59c4d28ca97dd23b025fdfc50a0356be934efbbbca89ad26230067f86fe5"}, + {file = "propcache-0.5.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:3fa15757fea1dfcd5b7745cad9f4638929605531bd4018ab2adff7955f1a403d"}, + {file = "propcache-0.5.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6f0093ac3e9daada202c2082439d414a625c57184727a46e112a3fb2a81cb788"}, + {file = "propcache-0.5.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3cd3a7edb6b95b9b33998135ebfa18d709da82290fb8f27c858970b5a12c8b56"}, + {file = "propcache-0.5.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c174bfd1c48a1b51a3078e95586dde718374bac79719ab3541ec9e74aec40574"}, + {file = "propcache-0.5.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a219f0ac59817a9114dd2aa57c13180f993e819ba658c7ddab4b66ed1ee0d370"}, + {file = "propcache-0.5.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:17a7400cec0256f0a71ae71f9da398f9894c956ff6668a1c9d317b3367316320"}, + {file = "propcache-0.5.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:978f28401afbc76cdc3df9e1717b4229a06b626a1dcc75db4e1f2beb3884c3e9"}, + {file = "propcache-0.5.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:4a1f4f5ffa55dce6307631f3cb2948e117e665966ea512e0d502b16c24f567e7"}, + {file = "propcache-0.5.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:213bb68d9ced5cf2bf717b1071bf2b09b4b04c426256f9fe6d054c60318424c4"}, + {file = "propcache-0.5.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:286867fb156488c251a3721766e380ac4495e4fd6b51aaa1403d89ce7f4359d9"}, + {file = "propcache-0.5.4-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:445ee3bfb46e85838387fb3c536a73cc0b994dc192b004e40e170adc54aa2a7e"}, + {file = "propcache-0.5.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:48cb48c5346a97de792254af77715aa2529c2a1ebc5f586aa0aae44a02f1fe57"}, + {file = "propcache-0.5.4-cp314-cp314t-win32.whl", hash = "sha256:03b229037d25b801e7af53fd52b9fc49d9439b036fca1e087e02780631adfa97"}, + {file = "propcache-0.5.4-cp314-cp314t-win_amd64.whl", hash = "sha256:8a1fc236528c457cd739c88abe823da851b7ab645d72792f88658114cc340c12"}, + {file = "propcache-0.5.4-cp314-cp314t-win_arm64.whl", hash = "sha256:135036c5cfc93864affb0f9af9a27e5d7a71cb7bd745e7b6dbfc2d56cc30e827"}, + {file = "propcache-0.5.4-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:45bf2e730ab8905d0527fe05a86500f406e64305c34cc81ebe64b4617cab9760"}, + {file = "propcache-0.5.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:31eb43ba2edc704ab2ec27815315dd8a19def0fb16215be4cfe8d32fe78ffd51"}, + {file = "propcache-0.5.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:174507f82d3594622acb1dd2dafecf2d899d6d506335494e7107767bf05f3aae"}, + {file = "propcache-0.5.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50e337653721d20ead710da33bf44487fbe8a0db8782714b60306481e9f95b51"}, + {file = "propcache-0.5.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0d21d0d2c82bbfeb1677a9711f38df968f9837576102bb4add1bd449d28d88f1"}, + {file = "propcache-0.5.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ccf4f7a79e26bb7efb06ecd50c177833b71df05cbc748701372325e6bcc17f6f"}, + {file = "propcache-0.5.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23278f808cd81d5ada7184a76606b925fb3389c60e1077b2cd7da7b1fcf0553c"}, + {file = "propcache-0.5.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e738ab81179510ce79b2eac9a6ecf47feffd9e76d1c72e403005dddb6e36c06c"}, + {file = "propcache-0.5.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:a419ee85e654927baabda3929c03c0cc1112bf472ff0dfd6142f4e3a81ca4162"}, + {file = "propcache-0.5.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:b61805357d966680acf68b3b6d49772631ed9df44ebece10ff1460e117a7da8a"}, + {file = "propcache-0.5.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:58134228927cee6c047d626c08e60a81be604a20578a12ce752cc5c9a84d4826"}, + {file = "propcache-0.5.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:350b272b2279f4135a64fc0c304a5d08e28a137c9573442c606152446638a831"}, + {file = "propcache-0.5.4-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:45bebbe252550fec975ba3b62bc6f931643cfd3b5464ef47619cf3fef154e01c"}, + {file = "propcache-0.5.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ada748108a43d29b7c328ba7db3755327cd94f028bcc1a7ee3f0addcfacd9c38"}, + {file = "propcache-0.5.4-cp315-cp315-win32.whl", hash = "sha256:ee19113bce2f3acd46432050688b70f61acd6857d75abb9ec96341b7e9ced123"}, + {file = "propcache-0.5.4-cp315-cp315-win_amd64.whl", hash = "sha256:ceb3e879afac028f93d272c957814695dc5569e4904262dbee92f6c41bd5e4a3"}, + {file = "propcache-0.5.4-cp315-cp315-win_arm64.whl", hash = "sha256:c83acbce9f2b5e3f5f5eda9e53d2001fed22fcdfef81274a9e02d8fd53b70a30"}, + {file = "propcache-0.5.4-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:a5e8ef588c109725dc713ba69aadcac00a1ef90c2ce9c0a8c7075128f569f47f"}, + {file = "propcache-0.5.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:4d86476a935c88963d9b8e1a9a0d38188790e9622169bfbafa173046846709d3"}, + {file = "propcache-0.5.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:f5470694918830da62fac9e69133b53d23b736d7070e587b27a4a2be37e08e68"}, + {file = "propcache-0.5.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10ef33a68a61ce317e095fd2e202a592ea92392b90944a78c993f0d9a73ab06c"}, + {file = "propcache-0.5.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5cacf3c9efd09df409dc33654dd077e1c245ba8fb747b0f0236ef41b7c49b589"}, + {file = "propcache-0.5.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:770e8209d018175fc0063936fa9583b6d27e88c5ad31543f3383d66080efdd62"}, + {file = "propcache-0.5.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:03969626faf0783a592dfa17e28eac06018bd0b44dafae6943d53b92421a7f72"}, + {file = "propcache-0.5.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ef3b928d9c984322b5c44e6964d8dbc653da87d2d8ee1647fa6da43072e650a9"}, + {file = "propcache-0.5.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:7177c43eddf10a0893c4fec52ebb408fdcd7f7d63962caace9180d8f81b14ece"}, + {file = "propcache-0.5.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:420162a77f94eb1cf5ef7893f500016dabd548e73de956785a1dd899cc73006a"}, + {file = "propcache-0.5.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3eb2e820e8e2101407da93f17c57cbb7d225461955fc60105daaba14cd421ee2"}, + {file = "propcache-0.5.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:13e52b6e0bde97dee98ab66552dbff2931649c96f1ac432eac299fe689ec373b"}, + {file = "propcache-0.5.4-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:12682126712ddc19b70ff819debbd279e58adf1f0c8f8f8138c18ade2044b284"}, + {file = "propcache-0.5.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3af0c8642b2da4815d86e631232ac8286e17644fad907c19508aa8e7cb4ba8ad"}, + {file = "propcache-0.5.4-cp315-cp315t-win32.whl", hash = "sha256:1df8d8561b21465c5dd56110a01caf897e026d065b4b84e98a488209094272ec"}, + {file = "propcache-0.5.4-cp315-cp315t-win_amd64.whl", hash = "sha256:02c0a34f16889cf800f10f0247a564d8ce6eeab6ffcd7c87198f769067eb8432"}, + {file = "propcache-0.5.4-cp315-cp315t-win_arm64.whl", hash = "sha256:dc4242ca653c9b30ab51c5f8193323e7bc0928f897ee9103201e59a43abcb72e"}, + {file = "propcache-0.5.4-py3-none-any.whl", hash = "sha256:62c60aec739ed00124573cce1178138fd690c7676352d67a37328c1cf51d7468"}, + {file = "propcache-0.5.4.tar.gz", hash = "sha256:ff6b113f50bc066a698db5d944d2c6dc7507168dd3341e255a8892fd0715a558"}, ] [[package]] name = "pydantic" -version = "2.13.4" +version = "2.14.1" description = "Data validation using Python type hints" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic-2.13.4-py3-none-any.whl", hash = "sha256:45a282cde31d808236fd7ea9d919b128653c8b38b393d1c4ab335c62924d9aba"}, - {file = "pydantic-2.13.4.tar.gz", hash = "sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6"}, + {file = "pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454"}, + {file = "pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.46.4" -typing-extensions = ">=4.14.1" -typing-inspection = ">=0.4.2" +pydantic-core = "2.50.1" +typing-extensions = ">=4.16.0" +typing-inspection = ">=0.4.4" [package.extras] email = ["email-validator (>=2.0.0)"] -timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows\""] +timezone = ["tzdata ; platform_system == \"Windows\""] [[package]] name = "pydantic-core" -version = "2.46.4" +version = "2.50.1" description = "Core functionality for Pydantic validation and serialization" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["main"] files = [ - {file = "pydantic_core-2.46.4-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:a396dcc17e5a0b164dbe026896245a4fa9ff402edca1dff0be3d53a517f74de4"}, - {file = "pydantic_core-2.46.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:da4b951fe36dc7c3a1ccb4e3cd1747c3542b8c9ceede8fc86cae054e764485f5"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb63e0198ca18aad131c089b9204c23079c3afa95487e561f4c522d519e55aba"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f47286a97f0bc9b8859519809077b91b2cefe4ae47fcbf5e466a009c1c5d742b"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:905a0ed8ea6f2d61c1738835f99b699348d7857379083e5fc497fa0c967a407c"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea793e075b70290d89d8142074262885d3f7da19634845135751bd6344f73b50"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:395aebd9183f9d112f569aeb5b2214d1a10a33bec8456447f7fbdfa51d38d4cd"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:b078afbc25f3a1436c7a1d2cd3e322497ee99615ba97c563566fdf46aff1ee01"}, - {file = "pydantic_core-2.46.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f747929cf940cddb5b3668a390056ddd5ba2e5010615ea2dcf4f9c4f3ab8791d"}, - {file = "pydantic_core-2.46.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:daa27d92c36f24388fe3ad306b174781c747627f134452e4f128ea00ce1fe8c4"}, - {file = "pydantic_core-2.46.4-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:19e51f073cd3df251856a8a4189fbdf1de4012c3ebacfb1884f94f1eb406079f"}, - {file = "pydantic_core-2.46.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c1747f85cee84c26985853c6f3d9bd3e75da5212912443fa111c113b9c246f39"}, - {file = "pydantic_core-2.46.4-cp310-cp310-win32.whl", hash = "sha256:2f84c03c8607173d16b5a854ec68a2f9079ae03237a54fb506d13af47e1d018d"}, - {file = "pydantic_core-2.46.4-cp310-cp310-win_amd64.whl", hash = "sha256:8358a950c8909158e3df31538a7e4edc2d7265a7c54b47f0864d9e5bae9dcebf"}, - {file = "pydantic_core-2.46.4-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:0e96592440881c74a213e5ad528e2b24d3d4f940de2766bed9010ab1d9e51594"}, - {file = "pydantic_core-2.46.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e0d65b8c354be7fb5f720c3caa8bc940bc2d20ce749c8e06135f07f8ed95dd7c"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7bfb192b3f4b9e8a89b6277b6ce787564f62cfd272055f6e685726b111dc7826"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9037063db01f09b09e237c282b6792bd4da634b5402c4e7f0c61effed7701a04"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fc010ab034c8c7452522748bf937df58020d256ccae0874463d1f4d01758af8e"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c5dac79fa1614d1e06ca695109c6105923bd9c7d1d6c918d4e637b7e6b32fd3"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9fa868638bf362d3d138ea55829cefb3d5f4b0d7f142234382a15e2485dbec4"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:17299feefe090f2caa5b8e37222bb5f663e4935a8bfa6931d4102e5df1a9f398"}, - {file = "pydantic_core-2.46.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4c63ebc82684aa89d9a3bcbd13d515b3be44250dc68dd3bd81526c1cb31286c3"}, - {file = "pydantic_core-2.46.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:aaa2a54443eff1950ba5ddc6b6ccda0d9c84a364276a62f969bdf2a390650848"}, - {file = "pydantic_core-2.46.4-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:18e5ceec2ab67e6d5f1a9085e5a24c9c4e2ac4545730bfe668680bca05e555f3"}, - {file = "pydantic_core-2.46.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:a0f62d0a58f4e7da165457e995725421e0064f2255d8eccebc49f41bbc23b109"}, - {file = "pydantic_core-2.46.4-cp311-cp311-win32.whl", hash = "sha256:041bde0a48fd37cf71cab1c9d56d3e8625a3793fef1f7dd232b3ff37e978ecda"}, - {file = "pydantic_core-2.46.4-cp311-cp311-win_amd64.whl", hash = "sha256:6f2eeda33a839975441c86a4119e1383c50b47faf0cbb5176985565c6bb02c33"}, - {file = "pydantic_core-2.46.4-cp311-cp311-win_arm64.whl", hash = "sha256:14f4c5d6db102bd796a627bbb3a17b4cf4574b9ae861d8b7c9a9661c6dd3362d"}, - {file = "pydantic_core-2.46.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3245406455a5d98187ec35530fd772b1d799b26667980872c8d4614991e2c4a2"}, - {file = "pydantic_core-2.46.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:962ccbab7b642487b1d8b7df90ef677e03134cf1fd8880bf698649b22a69371f"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8233f2947cf85404441fd7e0085f53b10c93e0ee78611099b5c7237e36aacbf7"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a233125ac121aa3ffba9a2b59edfc4a985a76092dc8279586ab4b71390875e7"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b712b53160b79a5850310b912a5ef8e57e56947c8ad690c227f5c9d7e561712"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9401557acd873c3a7f3eb9383edef8ac4968f9510e340f4808d427e75667e7b4"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:926c9541b14b12b1681dca8a0b75feb510b06c6341b70a8e500c2fdcff837cce"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:56cb4851bcaf3d117eddcef4fe66afd750a50274b0da8e22be256d10e5611987"}, - {file = "pydantic_core-2.46.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c68fcd102d71ea85c5b2dfac3f4f8476eff42a9e078fd5faefff6d145063536b"}, - {file = "pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b2f69dec1725e79a012d920df1707de5caf7ed5e08f3be4435e25803efc47458"}, - {file = "pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8d0820e8192167f80d88d64038e609c31452eeca865b4e1d9950a27a4609b00b"}, - {file = "pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:fbdb89b3e1c94a30cc5edfce477c6e6a5dc4d8f84665b455c27582f211a1c72c"}, - {file = "pydantic_core-2.46.4-cp312-cp312-win32.whl", hash = "sha256:9aa768456404a8bf48a4406685ac2bec8e72b62c69313734fa3b73cf33b3a894"}, - {file = "pydantic_core-2.46.4-cp312-cp312-win_amd64.whl", hash = "sha256:e9c26f834c65f5752f3f06cb08cb86a913ceb7274d0db6e267808a708b46bc89"}, - {file = "pydantic_core-2.46.4-cp312-cp312-win_arm64.whl", hash = "sha256:4fc73cb559bdb54b1134a706a2802a4cddd27a0633f5abb7e53056268751ac6a"}, - {file = "pydantic_core-2.46.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:5d5902252db0d3cedf8d4a1bc68f70eeb430f7e4c7104c8c476753519b423008"}, - {file = "pydantic_core-2.46.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c94f0688e7b8d0a67abf40e57a7eaaecd17cc9586706a31b76c031f63df052b4"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f027324c56cd5406ca49c124b0db10e56c69064fec039acc571c29020cc87c76"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e739fee756ba1010f8bcccb534252e85a35fe45ae92c295a06059ce58b74ccd3"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9d56801be94b86a9da183e5f3766e6310752b99ff647e38b09a9500d88e46e76"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2412e734dcb48da14d4e4006b82b46b74f2518b8a26ee7e58c6844a6cd6d03c4"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9551187363ffc0de2a00b2e47c25aeaeb1020b69b668762966df15fc5659dd5a"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:0186750b482eefa11d7f435892b09c5c606193ef3375bcf94aa00ae6bfb66262"}, - {file = "pydantic_core-2.46.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5855698a4856556d86e8e6cd8434bc3ac0314ee8e12089ae0e143f64c6256e4e"}, - {file = "pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:cbaf13819775b7f769bf4a1f066cb6df7a28d4480081a589828ef190226881cd"}, - {file = "pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:633147d34cf4550417f12e2b1a0383973bdf5cdfde212cb09e9a581cf10820be"}, - {file = "pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:82cf5301172168103724d49a1444d3378cb20cdee30b116a1bd6031236298a5d"}, - {file = "pydantic_core-2.46.4-cp313-cp313-win32.whl", hash = "sha256:9fa8ae11da9e2b3126c6426f147e0fba88d96d65921799bb30c6abd1cb2c97fb"}, - {file = "pydantic_core-2.46.4-cp313-cp313-win_amd64.whl", hash = "sha256:6b3ace8194b0e5204818c92802dcdca7fc6d88aabbb799d7c795540d9cd6d292"}, - {file = "pydantic_core-2.46.4-cp313-cp313-win_arm64.whl", hash = "sha256:184c081504d17f1c1066e430e117142b2c77d9448a97f7b65c6ac9fd9aee238d"}, - {file = "pydantic_core-2.46.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:428e04521a40150c85216fc8b85e8d39fece235a9cf5e383761238c7fa9b96fb"}, - {file = "pydantic_core-2.46.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:23ace664830ee0bfe014a0c7bc248b1f7f25ed7ad103852c317624a1083af462"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce5c1d2a8b27468f433ca974829c44060b8097eedc39933e3c206a90ee49c4a9"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7283d57845ecf5a163403eb0702dfc220cc4fbdd18919cb5ccea4f95ee1cdab4"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8daafc69c93ee8a0204506a3b6b30f586ef54028f52aeeeb5c4cfc5184fd5914"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd2213145bcc2ba85884d0ac63d222fece9209678f77b9b4d76f054c561adb28"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a5f930472650a82629163023e630d160863fce524c616f4e5186e5de9d9a49b"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:c1b3f518abeca3aa13c712fd202306e145abf59a18b094a6bafb2d2bbf59192c"}, - {file = "pydantic_core-2.46.4-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a7dd0b3ee80d90150e3495a3a13ac34dbcbfd4f012996a6a1d8900e91b5c0fb"}, - {file = "pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:3fb702cd90b0446a3a1c5e470bfa0dd23c0233b676a9099ddcc964fa6ca13898"}, - {file = "pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b8458003118a712e66286df6a707db01c52c0f52f7db8e4a38f0da1d3b94fc4e"}, - {file = "pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:372429a130e469c9cd698925ce5fc50940b7a1336b0d82038e63d5bbc4edc519"}, - {file = "pydantic_core-2.46.4-cp314-cp314-win32.whl", hash = "sha256:85bb3611ff1802f3ee7fdd7dbff26b56f343fb432d57a4728fdd49b6ef35e2f4"}, - {file = "pydantic_core-2.46.4-cp314-cp314-win_amd64.whl", hash = "sha256:811ff8e9c313ab425368bcbb36e5c4ebd7108c2bbf4e4089cfbb0b01eff63fac"}, - {file = "pydantic_core-2.46.4-cp314-cp314-win_arm64.whl", hash = "sha256:bfec22eab3c8cc2ceec0248aec886624116dc079afa027ecc8ad4a7e62010f8a"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:af8244b2bef6aaad6d92cda81372de7f8c8d36c9f0c3ea36e827c60e7d9467a0"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5a4330cdbc57162e4b3aa303f588ba752257694c9c9be3e7ebb11b4aca659b5d"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c61fc04a3d840155ff08e475a04809278972fe6aef51e2720554e96367e34b"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c50f2528cf200c5eed56faf3f4e22fcd5f38c157a8b78576e6ba3168ec35f000"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0cbe8b01f948de4286c74cdd6c667aceb38f5c1e26f0693b3983d9d74887c65e"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:617d7e2ca7dcb8c5cf6bcb8c59b8832c94b36196bbf1cbd1bfb56ed341905edd"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7027560ee92211647d0d34e3f7cd6f50da56399d26a9c8ad0da286d3869a53f3"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:f99626688942fb746e545232e7726926f3be91b5975f8b55327665fafda991c7"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fc3e9034a63de20e15e8ade85358bc6efc614008cab72898b4b4952bea0509ff"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:97e7cf2be5c77b7d1a9713a05605d49460d02c6078d38d8bef3cbe323c548424"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:3bf92c5d0e00fefaab325a4d27828fe6b6e2a21848686b5b60d2d9eeb09d76c6"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:3ecbc122d18468d06ca279dc26a8c2e2d5acb10943bb35e36ae92096dc3b5565"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-win32.whl", hash = "sha256:e846ae7835bf0703ae43f534ab79a867146dadd59dc9ca5c8b53d5c8f7c9ef02"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-win_amd64.whl", hash = "sha256:2108ba5c1c1eca18030634489dc544844144ee36357f2f9f780b93e7ddbb44b5"}, - {file = "pydantic_core-2.46.4-cp314-cp314t-win_arm64.whl", hash = "sha256:4fcbe087dbc2068af7eda3aa87634eba216dbda64d1ae73c8684b621d33f6596"}, - {file = "pydantic_core-2.46.4-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:fd8b3d9fd264be37976686c7f65cd52a83f5e84f4bfd2adf9c1d469676bbb6ae"}, - {file = "pydantic_core-2.46.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9f444c499b3eefd3a92e348059471ea0c3a6e303d9c1cec09fa748fd9f895201"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3447661d99f75a3683a4cf5c87da72f2161964611864dbbeac7fbb118bb4bfc0"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8b9bab013d1c7a79d3501ff86d0bc9c31bf587db4551677b96bec07df78c6b15"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d995260fdf4e1db774581b4900e0f832abe3c7c84996726bbc161b19c8f29e76"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f13a646d65d09fbf1bc6b3a9635d30095c8e7e5cc419ff35ecc563c5fd04cd49"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:432c179df7874eeb73307aad2df0755e1ae0efa61ff0ea89b93e194411ae3928"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_31_riscv64.whl", hash = "sha256:e68b7a074f65a2fd746c52a7ce6142ab7006074ac269ace0c25cd8ba171f8066"}, - {file = "pydantic_core-2.46.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4a05d69cba51d852c5c3e92758653245a50c0b646ced0cf05bd793ed592839d6"}, - {file = "pydantic_core-2.46.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:228ee9bae8bef5b1e97ec58302f80357c37199e0d0a99174e138d28e6957b9d9"}, - {file = "pydantic_core-2.46.4-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:10e17cbb10a330363733efc4d7c4d0dd827ac0909b8f6a6542298fed1ea62f29"}, - {file = "pydantic_core-2.46.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:91a06d2e259ecfbd8c901d70c3c507900458498142b3026a296b7de4d1322cc9"}, - {file = "pydantic_core-2.46.4-cp39-cp39-win32.whl", hash = "sha256:d80ee3d731373b24cebbc10d689ca4ee1875caf0d5703a245db18efd4dd37fc1"}, - {file = "pydantic_core-2.46.4-cp39-cp39-win_amd64.whl", hash = "sha256:3be77f45df024d789a672ae34f8b06fb346c4f9f46ea714956660ea4862e89ac"}, - {file = "pydantic_core-2.46.4-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:14d4edf427bdcf950a8a02d7cb44a08614388dd6e1bdcbf4f67504fa7887da9c"}, - {file = "pydantic_core-2.46.4-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:0ce40cd7b21210e99342afafbd4d0f76d784eb5b1d60f3bdc566be4983c6c73b"}, - {file = "pydantic_core-2.46.4-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:90884113d8b48f760e9587002789ddd741e76ab9f89518cd1e43b1f1a52ec44b"}, - {file = "pydantic_core-2.46.4-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:66ce7632c22d837c95301830e111ad0128a32b8207533b60896a96c4915192ea"}, - {file = "pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:1d8ba486450b14f3b1d63bc521d410ec7565e52f887b9fb671791886436a42f7"}, - {file = "pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:3009f12e4e90b7f88b4f9adb1b0c4a3d58fe7820f3238c190047209d148026df"}, - {file = "pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad785e92e6dc634c21555edc8bd6b64957ab844541bcb96a1366c202951ae526"}, - {file = "pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00c603d540afdd6b80eb39f078f33ebd46211f02f33e34a32d9f053bba711de0"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:0c563b08bca408dc7f65f700633d8442fffb2421fc47b8101377e9fd65051ff0"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:db06ffe51636ffe9ca531fe9023dd64bdd794be8754cb5df57c5498ae5b518a7"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:133878133d271ade3d41d1bfb2a45ec38dbdbda40bc065921c6b04e4630127e2"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:9bc519fbf2b7578398853d815009ae5e4d4603d12f4e3f91da8c06852d3da3e9"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:c7a7bd4e39e8e4c12c39cd480356842b6a8a06e41b23a55a5e3e191718838ddf"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:d396ec2b979760aaf3218e76c24e65bd0aca24983298653b3a9d7a45f9e47b30"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:86e1a4418c6cd97d60c95c71164158eaf7324fae7b0923264016baa993eba6fc"}, - {file = "pydantic_core-2.46.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:d51026d73fcfd93610abc7b27789c26b313920fcfb20e27462d74a7f8b06e983"}, - {file = "pydantic_core-2.46.4.tar.gz", hash = "sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1"}, + {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"}, ] [package.dependencies] -typing-extensions = ">=4.14.1" +typing-extensions = ">=4.16.0" [[package]] name = "pygments" @@ -1130,14 +1227,14 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests [[package]] name = "pytest-asyncio" -version = "1.4.0" +version = "1.4.1" description = "Pytest support for asyncio" optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1"}, - {file = "pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42"}, + {file = "pytest_asyncio-1.4.1-py3-none-any.whl", hash = "sha256:507afa78ec77c6661164ef1a2368bc7820383fd1a14b2a7f813de8b5a92949cc"}, + {file = "pytest_asyncio-1.4.1.tar.gz", hash = "sha256:e8266eb094e5ee9ffdb2068c9836f33e209ea77a970eb846933d416b5602669b"}, ] [package.dependencies] @@ -1227,72 +1324,90 @@ files = [ [[package]] name = "tomli" -version = "2.4.1" +version = "2.5.0" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" groups = ["dev"] markers = "python_version == \"3.10\"" files = [ - {file = "tomli-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f8f0fc26ec2cc2b965b7a3b87cd19c5c6b8c5e5f436b984e85f486d652285c30"}, - {file = "tomli-2.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4ab97e64ccda8756376892c53a72bd1f964e519c77236368527f758fbc36a53a"}, - {file = "tomli-2.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96481a5786729fd470164b47cdb3e0e58062a496f455ee41b4403be77cb5a076"}, - {file = "tomli-2.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a881ab208c0baf688221f8cecc5401bd291d67e38a1ac884d6736cbcd8247e9"}, - {file = "tomli-2.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:47149d5bd38761ac8be13a84864bf0b7b70bc051806bc3669ab1cbc56216b23c"}, - {file = "tomli-2.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ec9bfaf3ad2df51ace80688143a6a4ebc09a248f6ff781a9945e51937008fcbc"}, - {file = "tomli-2.4.1-cp311-cp311-win32.whl", hash = "sha256:ff2983983d34813c1aeb0fa89091e76c3a22889ee83ab27c5eeb45100560c049"}, - {file = "tomli-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:5ee18d9ebdb417e384b58fe414e8d6af9f4e7a0ae761519fb50f721de398dd4e"}, - {file = "tomli-2.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:c2541745709bad0264b7d4705ad453b76ccd191e64aa6f0fc66b69a293a45ece"}, - {file = "tomli-2.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c742f741d58a28940ce01d58f0ab2ea3ced8b12402f162f4d534dfe18ba1cd6a"}, - {file = "tomli-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7f86fd587c4ed9dd76f318225e7d9b29cfc5a9d43de44e5754db8d1128487085"}, - {file = "tomli-2.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff18e6a727ee0ab0388507b89d1bc6a22b138d1e2fa56d1ad494586d61d2eae9"}, - {file = "tomli-2.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:136443dbd7e1dee43c68ac2694fde36b2849865fa258d39bf822c10e8068eac5"}, - {file = "tomli-2.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5e262d41726bc187e69af7825504c933b6794dc3fbd5945e41a79bb14c31f585"}, - {file = "tomli-2.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5cb41aa38891e073ee49d55fbc7839cfdb2bc0e600add13874d048c94aadddd1"}, - {file = "tomli-2.4.1-cp312-cp312-win32.whl", hash = "sha256:da25dc3563bff5965356133435b757a795a17b17d01dbc0f42fb32447ddfd917"}, - {file = "tomli-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:52c8ef851d9a240f11a88c003eacb03c31fc1c9c4ec64a99a0f922b93874fda9"}, - {file = "tomli-2.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:f758f1b9299d059cc3f6546ae2af89670cb1c4d48ea29c3cacc4fe7de3058257"}, - {file = "tomli-2.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:36d2bd2ad5fb9eaddba5226aa02c8ec3fa4f192631e347b3ed28186d43be6b54"}, - {file = "tomli-2.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eb0dc4e38e6a1fd579e5d50369aa2e10acfc9cace504579b2faabb478e76941a"}, - {file = "tomli-2.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c7f2c7f2b9ca6bdeef8f0fa897f8e05085923eb091721675170254cbc5b02897"}, - {file = "tomli-2.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3c6818a1a86dd6dca7ddcaaf76947d5ba31aecc28cb1b67009a5877c9a64f3f"}, - {file = "tomli-2.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d312ef37c91508b0ab2cee7da26ec0b3ed2f03ce12bd87a588d771ae15dcf82d"}, - {file = "tomli-2.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51529d40e3ca50046d7606fa99ce3956a617f9b36380da3b7f0dd3dd28e68cb5"}, - {file = "tomli-2.4.1-cp313-cp313-win32.whl", hash = "sha256:2190f2e9dd7508d2a90ded5ed369255980a1bcdd58e52f7fe24b8162bf9fedbd"}, - {file = "tomli-2.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:8d65a2fbf9d2f8352685bc1364177ee3923d6baf5e7f43ea4959d7d8bc326a36"}, - {file = "tomli-2.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:4b605484e43cdc43f0954ddae319fb75f04cc10dd80d830540060ee7cd0243cd"}, - {file = "tomli-2.4.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fd0409a3653af6c147209d267a0e4243f0ae46b011aa978b1080359fddc9b6cf"}, - {file = "tomli-2.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a120733b01c45e9a0c34aeef92bf0cf1d56cfe81ed9d47d562f9ed591a9828ac"}, - {file = "tomli-2.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:559db847dc486944896521f68d8190be1c9e719fced785720d2216fe7022b662"}, - {file = "tomli-2.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01f520d4f53ef97964a240a035ec2a869fe1a37dde002b57ebc4417a27ccd853"}, - {file = "tomli-2.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f94b27a62cfad8496c8d2513e1a222dd446f095fca8987fceef261225538a15"}, - {file = "tomli-2.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ede3e6487c5ef5d28634ba3f31f989030ad6af71edfb0055cbbd14189ff240ba"}, - {file = "tomli-2.4.1-cp314-cp314-win32.whl", hash = "sha256:3d48a93ee1c9b79c04bb38772ee1b64dcf18ff43085896ea460ca8dec96f35f6"}, - {file = "tomli-2.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:88dceee75c2c63af144e456745e10101eb67361050196b0b6af5d717254dddf7"}, - {file = "tomli-2.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:b8c198f8c1805dc42708689ed6864951fd2494f924149d3e4bce7710f8eb5232"}, - {file = "tomli-2.4.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d4d8fe59808a54658fcc0160ecfb1b30f9089906c50b23bcb4c69eddc19ec2b4"}, - {file = "tomli-2.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7008df2e7655c495dd12d2a4ad038ff878d4ca4b81fccaf82b714e07eae4402c"}, - {file = "tomli-2.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1d8591993e228b0c930c4bb0db464bdad97b3289fb981255d6c9a41aedc84b2d"}, - {file = "tomli-2.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:734e20b57ba95624ecf1841e72b53f6e186355e216e5412de414e3c51e5e3c41"}, - {file = "tomli-2.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8a650c2dbafa08d42e51ba0b62740dae4ecb9338eefa093aa5c78ceb546fcd5c"}, - {file = "tomli-2.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:504aa796fe0569bb43171066009ead363de03675276d2d121ac1a4572397870f"}, - {file = "tomli-2.4.1-cp314-cp314t-win32.whl", hash = "sha256:b1d22e6e9387bf4739fbe23bfa80e93f6b0373a7f1b96c6227c32bef95a4d7a8"}, - {file = "tomli-2.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2c1c351919aca02858f740c6d33adea0c5deea37f9ecca1cc1ef9e884a619d26"}, - {file = "tomli-2.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:eab21f45c7f66c13f2a9e0e1535309cee140182a9cdae1e041d02e47291e8396"}, - {file = "tomli-2.4.1-py3-none-any.whl", hash = "sha256:0d85819802132122da43cb86656f8d1f8c6587d54ae7dcaf30e90533028b49fe"}, - {file = "tomli-2.4.1.tar.gz", hash = "sha256:7c7e1a961a0b2f2472c1ac5b69affa0ae1132c39adcb67aba98568702b9cc23f"}, + {file = "tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545"}, + {file = "tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef"}, + {file = "tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b"}, + {file = "tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56"}, + {file = "tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1"}, + {file = "tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885"}, + {file = "tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e"}, + {file = "tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8"}, + {file = "tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980"}, + {file = "tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df"}, + {file = "tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b"}, + {file = "tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0"}, + {file = "tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6"}, + {file = "tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc"}, + {file = "tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7"}, + {file = "tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2"}, + {file = "tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7"}, + {file = "tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea"}, + {file = "tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea"}, + {file = "tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043"}, + {file = "tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0"}, + {file = "tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b"}, + {file = "tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066"}, + {file = "tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b"}, + {file = "tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68"}, + {file = "tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc"}, + {file = "tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84"}, + {file = "tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105"}, + {file = "tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646"}, + {file = "tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b"}, + {file = "tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75"}, + {file = "tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb"}, + {file = "tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3"}, + {file = "tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b"}, + {file = "tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a"}, + {file = "tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3"}, + {file = "tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4"}, + {file = "tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d"}, + {file = "tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9"}, + {file = "tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f"}, + {file = "tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374"}, + {file = "tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442"}, + {file = "tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03"}, + {file = "tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1"}, + {file = "tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0"}, + {file = "tomli-2.5.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:a525685c2f97da40762b8695eb7aa0af4c8344ca1905c73e4e29cb04d34607dc"}, + {file = "tomli-2.5.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9dbb18c1cfb2f6517942fc9314437f66aa06d94436ffb1f06102ef3572f35276"}, + {file = "tomli-2.5.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:752e8b1aa6a4367ef8bf6a1a1e005540f7ed055ba36d7193796812ca5404eb52"}, + {file = "tomli-2.5.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47300f9bf791808f77d82747691c4bb09cb14bdf3060cca99b42cdc4361d5a7"}, + {file = "tomli-2.5.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:19b0dd8749f4ea2f112c5fcfb3c5248390c899d7e2e173f1d91abee1fa0ff391"}, + {file = "tomli-2.5.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:57b1c3b01fab802e2899bc3d168dca320e14165e2fd9fd584760fb4ca5826859"}, + {file = "tomli-2.5.0-cp315-cp315-win32.whl", hash = "sha256:667e521b37a6c5ccaa044202c235b530f90177ffe2cd4a64ecc213c7dd535feb"}, + {file = "tomli-2.5.0-cp315-cp315-win_amd64.whl", hash = "sha256:d747252933c8a65ef6bd8da0fbb7ce28a90eb6119d8cd00772cd528aa07b68d5"}, + {file = "tomli-2.5.0-cp315-cp315-win_arm64.whl", hash = "sha256:75dbcde8751b0a960aa3de173aa5e894d590755c6d7758b7e774c06f1dc3cbdd"}, + {file = "tomli-2.5.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2419c2a189551987b59d80e63ec355671283336f41c6b9b89462df679c7d0c57"}, + {file = "tomli-2.5.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0dc598040da8d42cf20f0be588ed7004f46db12a0ac6c32e03a59dccedaaadcd"}, + {file = "tomli-2.5.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49096930c8d886c9bbdab62d2d0d17ce823ddeea522309a190b36245d5b49e01"}, + {file = "tomli-2.5.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8ade5023067f99fe72b88accd30d0ea05a158e9e32a11f124e731ea9695313f"}, + {file = "tomli-2.5.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b69564772b5c8f22ea5f498dff08cfa825045b4d4c4400529000bdf818aa3b2a"}, + {file = "tomli-2.5.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8ff3a2ca028c7eee0c777f9a092038d0a594a9fa04e215f929a22c329e2cb142"}, + {file = "tomli-2.5.0-cp315-cp315t-win32.whl", hash = "sha256:62fc1bc8eb03e3a9cadfca713d65614ed8e09d974a283295ffe3a831976b4dc5"}, + {file = "tomli-2.5.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f3fcbc57b1791fa6cbe5d8434179d51de12be1a4811469529f47f6e7487a2571"}, + {file = "tomli-2.5.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d2ba24db8a9376921b5e87b4762b9adb0f3f1deaea68f2b8b0bb2c11efb9c3e7"}, + {file = "tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b"}, + {file = "tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6"}, ] [[package]] name = "types-python-dateutil" -version = "2.9.0.20260807" +version = "2.9.0.20261021" description = "Typing stubs for python-dateutil" optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "types_python_dateutil-2.9.0.20260807-py3-none-any.whl", hash = "sha256:54aa3707350ed7a9cc0776fd2f6739679d6967d11b40150985e81edcb86df4db"}, - {file = "types_python_dateutil-2.9.0.20260807.tar.gz", hash = "sha256:e0b8a90d464c8684c66b7b8e4556d9074afdddcc56ca45323f0987134f9e7034"}, + {file = "types_python_dateutil-2.9.0.20261021-py3-none-any.whl", hash = "sha256:12aab3bdfe55e1d9de7f54301e025d6276ce17e6a08e31644f2202d59c8d1fca"}, + {file = "types_python_dateutil-2.9.0.20261021.tar.gz", hash = "sha256:62d66fcdd293e38745eae644e5da4cb399b98799c0ae61f03a54896fb51b3140"}, ] [[package]] @@ -1324,14 +1439,14 @@ typing-extensions = ">=4.15.0" [[package]] name = "urllib3" -version = "2.7.0" +version = "2.8.0" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "urllib3-2.7.0-py3-none-any.whl", hash = "sha256:9fb4c81ebbb1ce9531cce37674bbc6f1360472bc18ca9a553ede278ef7276897"}, - {file = "urllib3-2.7.0.tar.gz", hash = "sha256:231e0ec3b63ceb14667c67be60f2f2c40a518cb38b03af60abc813da26505f4c"}, + {file = "urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3"}, + {file = "urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63"}, ] [package.extras] @@ -1342,117 +1457,151 @@ zstd = ["backports-zstd (>=1.0.0) ; python_version < \"3.14\""] [[package]] name = "yarl" -version = "1.24.5" +version = "1.25.1" description = "Yet another URL library" optional = true python-versions = ">=3.10" groups = ["main"] markers = "extra == \"aiohttp\"" files = [ - {file = "yarl-1.24.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:88f50c94e21a0a7f14042c015b0eba1881af78562e7bf007e0033e624da59750"}, - {file = "yarl-1.24.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6efbccc3d7f75d5b03105172a8dc86d82ba4da86817952529dd93185f4a88be2"}, - {file = "yarl-1.24.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0ebfaffe1a16cb72141c8e09f18cc76856dbe58639f393a4f2b26e474b96b871"}, - {file = "yarl-1.24.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8ac73abdc7ab75610f95a8fd994c6457e87752b02a63987e188f937a1fc180f0"}, - {file = "yarl-1.24.5-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4d97a951a81039050e45f04e96689b58b8243fa5e62aa14fe67cb6075300885e"}, - {file = "yarl-1.24.5-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fe7b7bb170daccbba19ad33012d2b15f1e7942296fd4d45fc1b79013da8cc0f2"}, - {file = "yarl-1.24.5-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:89a1bbb58e0e3f7a283653d854b1e95d65e5cfd4af224dac5f02629ec1a3e621"}, - {file = "yarl-1.24.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fa5e51397466ea7e98de493fa2ff1b8193cfef8a7b0f9b4842f92d342df0dba"}, - {file = "yarl-1.24.5-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4103b77b8a8225e413107d2349b65eb3c1c52627b5cc5c3c4c1c6a798b218950"}, - {file = "yarl-1.24.5-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f9f3e9c8a9ecffa57bef8fb4fa19e5fa4d2d8307cf6bac5b1fca5e5860f4ba00"}, - {file = "yarl-1.24.5-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:c0ebc836c47a6477e182169c6a476fc691d12b518894bf7dd2572f0d59f1c7ed"}, - {file = "yarl-1.24.5-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:96d30286dd02679e32a39aa8f0b7498fc847fcda46cfc09df5513e82ce252440"}, - {file = "yarl-1.24.5-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:fd8c81f346b58f45818d09ea11db69a8d5fd34a224b79871f6d44f12cd7977b1"}, - {file = "yarl-1.24.5-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:5c55256dee8f4b27bfbf636c8363383c7c8db7890c7cba5217d7bd5f5f21dab6"}, - {file = "yarl-1.24.5-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9f4d8cf085a4c6a40fb97ea0f46938a8df43c85d31f9d45e2a8867ea9293790d"}, - {file = "yarl-1.24.5-cp310-cp310-win_amd64.whl", hash = "sha256:240cbec09667c1fed4c6cd0060b9ec57332427d7441289a2ed8875dc9fb2b224"}, - {file = "yarl-1.24.5-cp310-cp310-win_arm64.whl", hash = "sha256:8a6987eaad834cb32dd57d9d582225f0054a5d1af706ccfbbdba735af4927e13"}, - {file = "yarl-1.24.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:2c1fe720934a16ea8e7146175cba2126f87f54912c8c5435e7f7c7a51ef808d3"}, - {file = "yarl-1.24.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c687ed078e145f5fd53a14854beff320e1d2ab76df03e2009c98f39a0f68f39a"}, - {file = "yarl-1.24.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:709f1efed56c4a145793c046cd4939f9959bcd818979a787b77d8e09c57a0840"}, - {file = "yarl-1.24.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:874019bd513008b009f58657134e5d0c5e030b3559bd0553976837adf52fe966"}, - {file = "yarl-1.24.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a4582acf7ef76482f6f511ebaf1946dae7f2e85ec4728b81a678c01df63bd723"}, - {file = "yarl-1.24.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2cabe6546e41dabe439999a23fcb5246e0c3b595b4315b96ef755252be90caeb"}, - {file = "yarl-1.24.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:17f57620f5475b3c69109376cc87e42a7af5db13c9398e4292772a706ff10780"}, - {file = "yarl-1.24.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:570fec8fbd22b032733625f03f10b7ff023bc399213db15e72a7acaef28c2f4e"}, - {file = "yarl-1.24.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fede79c6f73ff2c3ef822864cb1ada23196e62756df53bc6231d351a49516a2"}, - {file = "yarl-1.24.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8ccf9aca873b767977c73df497a85dbedee4ee086ae9ae49dc461333b9b79f58"}, - {file = "yarl-1.24.5-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:ad5d8201d310b031e6cd839d9bac2d4e5a01533ce5d3d5b50b7de1ef3af1de61"}, - {file = "yarl-1.24.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:841f0852f48fefea3b12c9dfec00704dfa3aef5215d0e3ce564bb3d7cd8d57c6"}, - {file = "yarl-1.24.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:9baafc71b04f8f4bb0703b21d6fc9f0c30b346c636a532ff16ec8491a5ea4b1f"}, - {file = "yarl-1.24.5-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:d897129df1a22b12aeed2c2c98df0785a2e8e6e0bde87b389491d0025c187077"}, - {file = "yarl-1.24.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:dd625535328fd9882374356269227670189adfcc6a2d90284f323c05862eecbd"}, - {file = "yarl-1.24.5-cp311-cp311-win_amd64.whl", hash = "sha256:f4239bbec5a3577ddb49e4b50aeb32d8e5792098262ae2f63723f916a29b1a25"}, - {file = "yarl-1.24.5-cp311-cp311-win_arm64.whl", hash = "sha256:3ac6aff147deb9c09461b2d4bbdf6256831198f5d8a23f5d37138213090b6d8a"}, - {file = "yarl-1.24.5-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:d693396e5aea78db03decd60aec9ece16c9b40ba00a587f089615ff4e718a81d"}, - {file = "yarl-1.24.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3363fcc96e665878946ad7a106b9a13eac0541766a690ef287c0232ac768b6ec"}, - {file = "yarl-1.24.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9d399bdcfb4a0f659b9b3788bbc89babe63d9a6a65aacdf4d4e7065ff2e6316c"}, - {file = "yarl-1.24.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:90333fd89b43c0d08ac85f3f1447593fc2c66de18c3d6378d7125ea118dc7a54"}, - {file = "yarl-1.24.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:665b0a2c463cc9423dd647e0bfd9f4ccc9b50f768c55304d5e9f80b177c1de12"}, - {file = "yarl-1.24.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e006d3a974c4ee19512e5f058abedb6eef36a5e553c14812bdeba1758d812e6d"}, - {file = "yarl-1.24.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e7d42c531243450ef0d4d9c172e7ed6ef052640f195629065041b5add4e058d1"}, - {file = "yarl-1.24.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f08c7513ecef5aad65687bfdf6bc601ae9fccd04a42904501f8f7141abad9eb9"}, - {file = "yarl-1.24.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6c95b17fe34ed802f17e205112e6e10db92275c34fee290aa9bdc55a9c724027"}, - {file = "yarl-1.24.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:56b149b22de33b23b0c6077ab9518c6dcb538ad462e1830e68d06591ccf6e38b"}, - {file = "yarl-1.24.5-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:a8fe66b8f300da93798025a785a5b90b42f3810dc2b72283ff84a41aaaebc293"}, - {file = "yarl-1.24.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:377fe3732edbaf78ee74efdf2c9f49f6e99f20e7f9d2649fda3eb4badd77d76e"}, - {file = "yarl-1.24.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:e8ffa78582120024f476a611d7befc123cee59e47e8309d470cf667d806e613b"}, - {file = "yarl-1.24.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:daba5e594f06114e37db186efd2dd916609071e59daca901a0a2e71f02b142ce"}, - {file = "yarl-1.24.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:65be18ec59496c13908f02a2472751d9ef840b4f3fb5726f129306bf6a2a7bba"}, - {file = "yarl-1.24.5-cp312-cp312-win_amd64.whl", hash = "sha256:a929d878fec099030c292803b31e5d5540a7b6a31e6a3cc76cb4685fc2a2f51b"}, - {file = "yarl-1.24.5-cp312-cp312-win_arm64.whl", hash = "sha256:7ce27823052e2013b597e0c738b13e7e36b8ccb9400df8959417b052ab0fd92c"}, - {file = "yarl-1.24.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:79af890482fc94648e8cde4c68620378f7fef60932710fa17a66abc039244da2"}, - {file = "yarl-1.24.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:46c2f213e23a04b93a392942d782eb9e413e6ef6bf7c8c53884e599a5c174dcb"}, - {file = "yarl-1.24.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:92ab3e11448f2ff7bf53c5a26eff0edc086898ec8b21fb154b85839ce1d88075"}, - {file = "yarl-1.24.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ebb0ec7f17803063d5aeb982f3b1bd2b2f4e4fae6751226cbd6ba1fcfe9e63ff"}, - {file = "yarl-1.24.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:82632daed195dcc8ea664e8556dc9bdbd671960fb3776bd92806ce05792c2448"}, - {file = "yarl-1.24.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:53e549287ef628fecba270045c9701b0c564563a9b0577d24a4ec75b8ab8040f"}, - {file = "yarl-1.24.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fcd3b77e2f17bbe4ca56ec7bcb07992647d19d0b9c05d84886dcd6f9eb810afd"}, - {file = "yarl-1.24.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d46b86567dd4e248c6c159fcbcdcce01e0a5c8a7cd2334a0fff759d0fa075b16"}, - {file = "yarl-1.24.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7f72c74aa99359e27a2ee8d6613fefa28b5f76a983c083074dfc2aaa4ab46213"}, - {file = "yarl-1.24.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:3f45789ce415a7ec0820dc4f82925f9b5f7732070be1dec1f5f23ec381435a24"}, - {file = "yarl-1.24.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:6e73e7fe93f17a7b191f52ec9da9dd8c06a8fe735a1ecbd13b97d1c723bff385"}, - {file = "yarl-1.24.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:4a36f9becdd4c5c52a20c3e9484128b070b1dcfc8944c006f3a528295a359a9c"}, - {file = "yarl-1.24.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:7bcbe0fcf850eae67b6b01749815a4f7161c560a844c769ad7b48fcd99f791c4"}, - {file = "yarl-1.24.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:24e861e9630e0daddcb9191fb187f60f034e17a4426f8101279f0c475cd74144"}, - {file = "yarl-1.24.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9335a099ad87287c37fe5d1a982ff392fa5efe5d14b40a730b1ec1d6a41382b4"}, - {file = "yarl-1.24.5-cp313-cp313-win_amd64.whl", hash = "sha256:2dbe06fc16bc91502bca713704022182e5729861ae00277c3a23354b40929740"}, - {file = "yarl-1.24.5-cp313-cp313-win_arm64.whl", hash = "sha256:6b8536851f9f65e7f00c7a1d49ba7f2be0ffe2c11555367fc9f50d9f842410a1"}, - {file = "yarl-1.24.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:2729fcfc4f6a596fb0c50f32090400aa9367774ac296a00387e65098c0befa76"}, - {file = "yarl-1.24.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ff330d3c30db4eb6b01d79e29d2d0b407a7ecad39cfd9ec993ece57396a2ec0d"}, - {file = "yarl-1.24.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e42d75862735da90e7fc5a7b23db0c976f737113a54b3c9777a9b665e9cbff75"}, - {file = "yarl-1.24.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a3732e66413163e72508da9eff9ce9d2846fde51fae45d3605393d3e6cd303e9"}, - {file = "yarl-1.24.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5b8ee53be440a0cffc991a27be3057e0530122548dbe7c0892df08822fce5ede"}, - {file = "yarl-1.24.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:af3aefa655adb5869491fa907e652290386800ae99cc50095cba71e2c6aefdca"}, - {file = "yarl-1.24.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2120b96872df4a117cde97d270bac96aea7cc52205d305cf4611df694a487027"}, - {file = "yarl-1.24.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:66410eb6345d467151934b49bfa70fb32f5b35a6140baa40ad97d6436abea2e9"}, - {file = "yarl-1.24.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4af7b7e1be0a69bee8210735fe6dcfc38879adfac6d62e789d53ba432d1ffa41"}, - {file = "yarl-1.24.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fa139875ff98ab97da323cfadfaff08900d1ad42f1b5087b0b812a55c5a06373"}, - {file = "yarl-1.24.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:0055afc45e864b92729ac7600e2d102c17bef060647e74bca75fa84d66b9ff36"}, - {file = "yarl-1.24.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f0e466ed7511fe9d459a819edbc6c2585c0b6eabde9fa8a8947552468a7a6ef0"}, - {file = "yarl-1.24.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:f141474e85b7e54998ec5180530a7cda99ab29e282fa50e0756d89981a9b43c5"}, - {file = "yarl-1.24.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:e2935f8c39e3b03e83519292d78f075189978f3f4adc15a78144c7c8e2a1cba5"}, - {file = "yarl-1.24.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9d1216a7f6f77836617dba35687c5b78a4170afc3c3f18fc788f785ba26565c4"}, - {file = "yarl-1.24.5-cp314-cp314-win_amd64.whl", hash = "sha256:5ba4f78df2bcc19f764a4b26a8a4f5049c110090ad5825993aacb052bf8003ad"}, - {file = "yarl-1.24.5-cp314-cp314-win_arm64.whl", hash = "sha256:9e4e16c73d717c5cf27626c524d0a2e261ad20e46932b2670f64ad5dde23e26f"}, - {file = "yarl-1.24.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:e1ae548a9d901adca07899a4147a7c826bbcc06239d3ce9a59f57886a28a4c88"}, - {file = "yarl-1.24.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ff405d91509d88e8d44129cd87b18d70acd1f0c1aeabd7bc3c46792b1fe2acba"}, - {file = "yarl-1.24.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:47e98aab9d8d82ff682e7b0b5dded33bf138a32b817fcf7fa3b27b2d7c412928"}, - {file = "yarl-1.24.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0a658a6d3fafee5c6f63c58f3e785c8c43c93fbc02bf9f2b6663f8185e0971f"}, - {file = "yarl-1.24.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4377407001ca3c057773f44d8ddd6358fa5f691407c1ba92210bd3cf8d9e4c95"}, - {file = "yarl-1.24.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7c0494a31a1ac5461a226e7947a9c9b78c44e1dc7185164fa7e9651557a5d9bc"}, - {file = "yarl-1.24.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a7cff474ab7cd149765bb784cf6d78b32e18e20473fb7bda860bce98ab58e9da"}, - {file = "yarl-1.24.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cbb833ccacdb5519eff9b8b71ee618cc2801c878e77e288775d77c3a2ced858a"}, - {file = "yarl-1.24.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:82f75e05912e84b7a0fe57075d9c59de3cb352b928330f2eb69b2e1f54c3e1f0"}, - {file = "yarl-1.24.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:16a2f5010280020e90f5330257e6944bc33e73593b136cc5a241e6c1dc292498"}, - {file = "yarl-1.24.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:ffcd54362564dc1a30fb74d8b8a6e5a6b11ebd5e27266adc3b7427a21a6c9104"}, - {file = "yarl-1.24.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:0465ec8cedc2349b97a6b595ace64084a50c6e839eca40aa0626f38b8350e331"}, - {file = "yarl-1.24.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4db9aecb141cb7a5447171b57aa1ed3a8fee06af40b992ffc31206c0b0121550"}, - {file = "yarl-1.24.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:f540c013589084679a6c7fac07096b10159737918174f5dfc5e11bf5bca4dfe6"}, - {file = "yarl-1.24.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a61834fb15d81322d872eaafd333838ae7c9cea84067f232656f75965933d047"}, - {file = "yarl-1.24.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5c88e5815a49d289e599f3513aa7fde0bc2092ff188f99c940f007f90f53d104"}, - {file = "yarl-1.24.5-cp314-cp314t-win_arm64.whl", hash = "sha256:cf139c02f5f23ef6532040a30ff662c00a318c952334f211046b8e60b7f17688"}, - {file = "yarl-1.24.5-py3-none-any.whl", hash = "sha256:a33700d13d9b7d84fd10947b09ff69fb9a792e519c8cb9764a3ca70baa6c23a7"}, - {file = "yarl-1.24.5.tar.gz", hash = "sha256:e81b83143bee16329c23db3c1b2d82b29892fcbcb849186d2f6e98a5abe9a57f"}, + {file = "yarl-1.25.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:142c06c4d6a35ee3ec5da08499805e879cb3ca7c1fbfbecb0140fe72403818d6"}, + {file = "yarl-1.25.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:24ce942011a61953e7d313438038f4d32ff21387b775f58a957f7a07dd55ef95"}, + {file = "yarl-1.25.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e23c82b63cd7652fc24d33ed6cc17099d607aa3b4fc4ddc75e95062f3d82df4"}, + {file = "yarl-1.25.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8ee202350cf57abf0e9502a41601841019c25d3db7ff52d980aaf31446254059"}, + {file = "yarl-1.25.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5df89f769cc8ff94c3d7e7603386fba309d25ce5240132d26c15baa8d0e96c4c"}, + {file = "yarl-1.25.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:83e9f4a25085bd4b7214701a0794ff1f50fc633ffb8bdfebf07abdd81c2db126"}, + {file = "yarl-1.25.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e636b64d24fd9c38053c5e389a1174c66361fa49dcfd220f4dd35b4abde7cb89"}, + {file = "yarl-1.25.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e5637ca8d0bd7fb72648a6c7934af4baaccb697657f7438c9d264fc2abb8b0b1"}, + {file = "yarl-1.25.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:683e362b8ba453080f7489c66f4ea794e751c35b72e7eab3575ef784c2fbc7fb"}, + {file = "yarl-1.25.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:df23df54b5114a17c2d0ef192433e2e5a9f0c5178c32375e90b7cfc965f349d0"}, + {file = "yarl-1.25.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:f53dcd26694f148f738edc052b5a69234833e739f10f4c3287bdfd8ec0f7b326"}, + {file = "yarl-1.25.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:b8075fe90bc08e40b8b8a1874fab42ee4c7b56af05c5886e9cc841397f916908"}, + {file = "yarl-1.25.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:a8c2b841478068440d8b733005d13a5ef535b9928cbc05f17182d410f32ba449"}, + {file = "yarl-1.25.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:ca32926d7d77bcc8838425c4c95e040a3ace1cb7dfdae599013458dcda2607ca"}, + {file = "yarl-1.25.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:192a866877a49993949ef1975864ad8728bea28ee810f6abe1a0729c2b500426"}, + {file = "yarl-1.25.1-cp310-cp310-win_amd64.whl", hash = "sha256:3f4d48a6112712973e676bd792121fee470e432d749177162d9949d5c9460a1b"}, + {file = "yarl-1.25.1-cp310-cp310-win_arm64.whl", hash = "sha256:48796ea00a303961507dc6c8437c4b325a6fc3f95f7c36c71b91ea9a8150963c"}, + {file = "yarl-1.25.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9d693bf4bf534e9ba3ae2780cfd577f5135629f7b5ac653490859d0b77864865"}, + {file = "yarl-1.25.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ab2054c5531af2a9ba7b69b8ec91e4f884420e83a8c5e579b013084cb57e5e5d"}, + {file = "yarl-1.25.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:564fdc7085d2245ab84f88882fdb1d6ac0723124bff6ded35bfb1c00f812630d"}, + {file = "yarl-1.25.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:acae6b45d1ace09b6ba3876da43b88366ef368f73b988c7f57e14231753d4420"}, + {file = "yarl-1.25.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1fb2a01ba8cd9c5d2c5dc1ec35e0fc951d04b4f037541d4ac090c993ce58b3d7"}, + {file = "yarl-1.25.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e92b6bcc741b86d67606c40d3cb9c7cc8e6c737f81e31f4a94efc204456c92e3"}, + {file = "yarl-1.25.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:72c34ac7ad4314c19362d5ce27626dcc8429bd30bbf8c179f4234078851f9492"}, + {file = "yarl-1.25.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5add7b4ca7afeea91d52e4d4e4db3b1fe9885b71f07054560d8c4296b7441a2"}, + {file = "yarl-1.25.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:def538065f9e4d4cf1ae164bd59aba00dfa84f03923e0de4c3788f252d6bcd17"}, + {file = "yarl-1.25.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a191bfdb30a79b98e5d175d75285f9fcb78bf0e46ba5efda042e1c72071a0de"}, + {file = "yarl-1.25.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:71f42c5b9a948c113bbdebfa544598321431d064ff959d32e99b1feb61d68345"}, + {file = "yarl-1.25.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:72849d892954be4d09e569b8b831ac39ce58417fedc767d4308a0fe542018a40"}, + {file = "yarl-1.25.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:efb01a106f971cb3752856bca2318bbdf7f01bd8823779c461586cbe5ffd5258"}, + {file = "yarl-1.25.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a1daf47cd95a7c3a63456336bc5aaa8c86dd3a47d07ed3d0e76132ae4666a5a1"}, + {file = "yarl-1.25.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9489e6abf47ba37f332075a91444c7cfedb03e6ce99fbb2f116bfe1ce810da3b"}, + {file = "yarl-1.25.1-cp311-cp311-win_amd64.whl", hash = "sha256:d7306dee25b8a0e737363f347362b875094b4dc4e367311470656ae420fdbf8e"}, + {file = "yarl-1.25.1-cp311-cp311-win_arm64.whl", hash = "sha256:abb1384477f5901d436b5d2e5465954de46ea6098f59163d243660b5c4461d35"}, + {file = "yarl-1.25.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:94d7aa6debf92a1dd14cb5280b083a764169a13cfb23a452111160274ed989f4"}, + {file = "yarl-1.25.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:83d4a37e4b95da4d8bda930d6d35b75b4cdadbacbb4980cae290ea3100b5d51d"}, + {file = "yarl-1.25.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e029648f9c951db30e98a7d7ec90835db88ec4b32820efe2a9bdc2287e032eb6"}, + {file = "yarl-1.25.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4d781294bb815ecb5ea57ff6bbf8038e0a31a95fdf3e1788f66e0dc100d64b58"}, + {file = "yarl-1.25.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e12c538e00e7c1b286a07061046b90e8124e6a9793efae2c70db6a4aad07faad"}, + {file = "yarl-1.25.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7e4de3ac4adbad3d0bc7c6f4360a7dbff5de2f15e3b723be3198074e17fd9c40"}, + {file = "yarl-1.25.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:419f392a1da624877975709e3864dfe833af6cc7671b39318086d456e288380c"}, + {file = "yarl-1.25.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c6f117789d22dce188e5754e8bc65b7e6ebf8cb73963b9fa761f672a5883769d"}, + {file = "yarl-1.25.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:80e47012e730da131c9f059c80936783f9659aae22dc31c03c0595590d11ed54"}, + {file = "yarl-1.25.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e80f557716fd765439577131e526b8942ffc2c07bdbc5e39fa62f660ba1e963f"}, + {file = "yarl-1.25.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f61964f235a43738bfac50da46fc4254943a7eea3051aeb0b6fc7c992c29fadc"}, + {file = "yarl-1.25.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:e546fe1d4a93ebc2910f0d768baff19faa09843ab3f2036a67ed6e69fae4419d"}, + {file = "yarl-1.25.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:cce0727fd5ac04d372fa9bbfde9febc2bcf209aadfcf0468e45dec72719895d1"}, + {file = "yarl-1.25.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af4ea5b37403ef4e30f3927eaed540db942bde01d8d3ff083527c0704d1c9c68"}, + {file = "yarl-1.25.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:68782fdb4027b8d1eee25ec35e9a6db05e863b899eb0310b3a33b6c3fef55707"}, + {file = "yarl-1.25.1-cp312-cp312-win_amd64.whl", hash = "sha256:7d575b54cb3863ef9bc290ea4b009999d55dc237326131e4853cf33e888fee03"}, + {file = "yarl-1.25.1-cp312-cp312-win_arm64.whl", hash = "sha256:bc3ac7bf569f6b64dad04dd7808c7872dae8a97df657856eac05e9b7e3614a85"}, + {file = "yarl-1.25.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:25868beca8b6765f8f7d0e11fe6dd7c66dd4b0793b9500286d20cc92352126a5"}, + {file = "yarl-1.25.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:10b2fd95332f0d716d5eee3c9fb2ce8eada19082de7fee83d32e37992fd75c26"}, + {file = "yarl-1.25.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0f12afda4eea8c8994a76d4df1875c765194f5fbe8a9d197929ea303caee29ec"}, + {file = "yarl-1.25.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:14b79a30a93a3ce2e8832603fd0ab780ada281b0ba5110b519a634f2d7d7d1fc"}, + {file = "yarl-1.25.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4bd6340d20ae2c7ca719b87b426e808e90743b676d05d4c26c4fb5ca71f41184"}, + {file = "yarl-1.25.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:126a2533570c554719ca40a1288fdee1700b6bc82e7131aa69fa85252d92e651"}, + {file = "yarl-1.25.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a3faadac7d812ddac258feb57b9846b60c1b437c4f4b9ad42595c6f6fe4390df"}, + {file = "yarl-1.25.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:be80550d9bfe83d9b62398a37081a90434e6df2d978ec345c3d2820de6beddab"}, + {file = "yarl-1.25.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e07595c7d6f4db270ceede356a1bd1c07a34f1c26f958d1ed0cd7b48e0d2bba3"}, + {file = "yarl-1.25.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:eb96ed1ae6c7d072d60840c0434aef07a2df611812810807fbc54263a6053e9a"}, + {file = "yarl-1.25.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:3feb99222553a8cbedfa52c2f59dd84c3f50d5b582c728d522caf8d72769a54b"}, + {file = "yarl-1.25.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a2ed0ba415ccdf08f14bf544cb78346d0f76086707ffee24921a2c84dbf1305a"}, + {file = "yarl-1.25.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2b49375d22299b0a834c2bca72f39aaecc270d96fb24c30424899676f487b22a"}, + {file = "yarl-1.25.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:ef74070ac553c59eb4f04258722066d6c6135b7baa03b2e9f2da65c096e96d98"}, + {file = "yarl-1.25.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:0a66db89ea473abeac4b70523cafd94db3772380e565f9d28af7a179b7af71fa"}, + {file = "yarl-1.25.1-cp313-cp313-win_amd64.whl", hash = "sha256:1f51020b2eb8a003c84925638ec63c21a750a4bddd3a22ec8eac6a742dadf1b9"}, + {file = "yarl-1.25.1-cp313-cp313-win_arm64.whl", hash = "sha256:b10dd0557ba422715b5206b3743192135a6022acca8baec51aa127d0a75db8fe"}, + {file = "yarl-1.25.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:a9ca696eb02e5c02a8afd872ada510eba9b7fe6e68b9572c2e9a9b1941e31e2e"}, + {file = "yarl-1.25.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a5877f2255aab518ebe528289037699201d5dc5f045f2396cb30aa02db22f57f"}, + {file = "yarl-1.25.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7a5c3115595995779ee21f2567035793911c3802a43c74f3fbb0314929ec67ac"}, + {file = "yarl-1.25.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77e5099b99b37f3cf79c246998ca9f7313a78054cd1809ec46bc1afad47e1c4c"}, + {file = "yarl-1.25.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6efaf45df6a849cef613a03a94c845647456662f85438c886bb67a9c027c8c2c"}, + {file = "yarl-1.25.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d5f90e44653c4e0f78501ed9bb7d3fce835a8d62b7c6ed0cb16557534087e743"}, + {file = "yarl-1.25.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:632da579b2d879f6bad20f2cfa35ded1efe2f4f77f8abb26a6234a5b236acd2f"}, + {file = "yarl-1.25.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:30eec96e8a91bd588ce897c9543f6d5d8d34b28fbcba28a4dedf20ebeae9fe57"}, + {file = "yarl-1.25.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:12b6bc4906e11f5e1a1cdcb12296e7afbd366c783cc8073403cd2fb74334e453"}, + {file = "yarl-1.25.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9d6ed3d17bccce4c05343e1ca8da13bc5c02c812a4e7282ddd05e8769322d3fc"}, + {file = "yarl-1.25.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f38a70074041d3b7e138e452799f5174198bae5bd5ab2000917badf403908c5f"}, + {file = "yarl-1.25.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4ca89e4e21854ed27ec753297dde84b16c9f8e53b14a4866fb44457d643c19f8"}, + {file = "yarl-1.25.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:1ab7618921a93767387a4b83776f751588f5b5ae9bb5bc96620e2e2e00bca868"}, + {file = "yarl-1.25.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0ae12ff2b805fa02c4dab838005caef735e39986322698c48588d3beacb65c62"}, + {file = "yarl-1.25.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:90c30ed53546da833c700115c0064c22120d1b1560f474699fd31f22dd668233"}, + {file = "yarl-1.25.1-cp314-cp314-win_amd64.whl", hash = "sha256:acfa7e22aa6c6e7a5996a41d275bfa01efa7ea56ab890590280e9063e2cf5c1b"}, + {file = "yarl-1.25.1-cp314-cp314-win_arm64.whl", hash = "sha256:8e7d98cdbb6d71e726f7d525952867096053d1f290dd4e3c50d7d313a136f414"}, + {file = "yarl-1.25.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:d21f0fa80a02d05299207eeaafef345d812ace96d5306e4ef265e1d419a615fa"}, + {file = "yarl-1.25.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:17c9877a89fb6e2bca6f9087eb24cd7fb434653946ef5075e470d23d49b52287"}, + {file = "yarl-1.25.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:29273edf1530e397bd07cb784db1fbe0d2590b77569f2e24679a9c0a2d763b94"}, + {file = "yarl-1.25.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b7abffdf37af1cec6a2ad69b827aa84320db5894791bc8ed932dc93fb274b7e9"}, + {file = "yarl-1.25.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2239a02249d9326655419e0168a28ca9008938eaab31dc29fc875c217927a6c0"}, + {file = "yarl-1.25.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:664ec6a520b74a1df2810666eb67695fcb77fa663e6ea0a25aaf2e529cb24dfa"}, + {file = "yarl-1.25.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f1c91f5a5980a937ff8e238e98e6897e1ad74a4b1e2c0d68c73b5ffbb3f5c0b"}, + {file = "yarl-1.25.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7c88edaec8c349ad4c5ad4c486a3defcc4b80ceb2f074436ffa0a87caf5e76a6"}, + {file = "yarl-1.25.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35dcbea443fafb3eece757ad4e514560ddeb6c34cfae1582c620d7b293d7feee"}, + {file = "yarl-1.25.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:882569ff613758cac762a457a5d72d6e211b28d4bcfea89d1d71ea942b02eac0"}, + {file = "yarl-1.25.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:d0f1489233a254bb3643d2f05de7d59019254d81daeca6b9162fe9edef57e0c7"}, + {file = "yarl-1.25.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:f41753a76f4f63927d03a0d8ba8f5ce0f2083bec29a8cfaccc55371b1564b96b"}, + {file = "yarl-1.25.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8fb0eb4955adf0579001581f2f71a126e8781ba61bcd120f127b0401163c6c2d"}, + {file = "yarl-1.25.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:a1e32763e641a1566507d90a8d3b19bfc3cc04a9d4e5ae3e32189874ed4b58a3"}, + {file = "yarl-1.25.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:65b5b2066651b7432d389e9799d979c703bcc6ef44266bb8153ef54e91e4aab3"}, + {file = "yarl-1.25.1-cp314-cp314t-win_amd64.whl", hash = "sha256:734f6e5400352ac4254456003d462866c684703570929cff7a7bde015d0cb371"}, + {file = "yarl-1.25.1-cp314-cp314t-win_arm64.whl", hash = "sha256:287e99ff5aa4dc1c7630bfc683ded6f106d756c99dec432a2d7f197a784f51c6"}, + {file = "yarl-1.25.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:9b1bdaae98bc016825dd3c9d8ee1832f829b3341f9cc6ebd1a1b0a7fef7367cc"}, + {file = "yarl-1.25.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:e7011b8fb8c4054bf0c12e5edc6cd83778b0028e99ce59b18586ed036f92cfdc"}, + {file = "yarl-1.25.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:f074e8d4aa0a5798920ddb6de3d08b228c614ff3724c3e8bd7577f4bafea867b"}, + {file = "yarl-1.25.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7d42e7e3ca399555578b4d617e3a6ecf13371b3743a115995fa010c7bf341459"}, + {file = "yarl-1.25.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:aa4ed3dd308548f9e707d9caaf005d2d7f8c1e7868f858dfeb47fe76e16b391d"}, + {file = "yarl-1.25.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:42a66563d8cc056ee32e6191e05097a7b2b3bc302e0bc3133daf8710eb18bd26"}, + {file = "yarl-1.25.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:98d370568f393215d605304cdb77b3d5539bd192c75b623c7304c42c8d6d8273"}, + {file = "yarl-1.25.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23bf5b403c879a54964e0feac7285688e04bb220074878d737d331522da0a5bf"}, + {file = "yarl-1.25.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d45673badd08456d0340e9364eddafe1c53a9d2896424294de4d7dd71ad3ee57"}, + {file = "yarl-1.25.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:0136d640dfa9b0523853e411430a99f8a91eca85774c6420285a33b755bc6de3"}, + {file = "yarl-1.25.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:59ba3a6e1aa8cfe5adf4bd270fd965db21955401b7ca6f1696010c55ed4daec2"}, + {file = "yarl-1.25.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:87796fedc3ba97ec14fab55acb48584276e6c1e4c1e89c422bda62c838e754a9"}, + {file = "yarl-1.25.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:bd0912757081f89b107d6c00b2ff8a194401b0b87eadcf4481de2b865a8fd44f"}, + {file = "yarl-1.25.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:b51c159a9794633f5e0db7ecec7b2b6e3734eca1f5d17dc989ff3552a43ff78b"}, + {file = "yarl-1.25.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:319e070a01db9920fb63761843f96a104c8e2b9427266731810dc1e22595b17c"}, + {file = "yarl-1.25.1-cp315-cp315-win_amd64.whl", hash = "sha256:a2059a2d891bd156bc5184e7ab7a56e78a84dfcfdeac8c501b552533ad1c36ee"}, + {file = "yarl-1.25.1-cp315-cp315-win_arm64.whl", hash = "sha256:a78b50b4f7918a3de71105d5c0b93bbc57bb8339a4d03a9dfd449f9068e76f3d"}, + {file = "yarl-1.25.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:b5402a340723fa7da00b5cff987ddab61276be6d11251ea71ae02bcac54890d8"}, + {file = "yarl-1.25.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:eda19ea5ee88742f47a2340816e6f2d40b53bed3ab5b69794769f36af9f35bb4"}, + {file = "yarl-1.25.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:75baa6cf9b6d1c52f3e111a130e202fd8cf0a5b3a066c3f73d615e885092e4ec"}, + {file = "yarl-1.25.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dbcef5a9119ef653653132cccaf999b30a0af6f33bb0a4ba80bec30056868487"}, + {file = "yarl-1.25.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7efc9f082dfed77c316edffa9deb52888e1bc6789171887cc1f68e06d65465c8"}, + {file = "yarl-1.25.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fe01645169a2112aa1d4ebc3e4c5f029c5c8f97adfc32e5d37c993b39a994d75"}, + {file = "yarl-1.25.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1c557dfd5e3db046053a0bdc72261ade790ebe8e2c7a41b36b0ca1f14cb95f3"}, + {file = "yarl-1.25.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8ce4d6ccafb33d39bd78444612d14938ead674c25702ded2ee9c54a47735d225"}, + {file = "yarl-1.25.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:80a063f8297fc796296f00f100be520f209b23dc98f93ce8eba6ee7122598209"}, + {file = "yarl-1.25.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:7cb414a73e21a7ab58254926073f2930cb22f5b4314ea4260a687e2b3fd4dce3"}, + {file = "yarl-1.25.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:85a18376073f8a39aa07be34f9fc77e2869aa72c55c441efdd2cf79a0407504d"}, + {file = "yarl-1.25.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:77716e245c90f058466a05e6a465bb8600f767a8f4b18b4d40f3aff958e5f73c"}, + {file = "yarl-1.25.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:1e80dcf1446e1b080b1932b0d103c464a04112f5bc31f0f983ad418172063cde"}, + {file = "yarl-1.25.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:bdc8d8b8c22e9e43ac68316b5e6cf083dec537f4ec213cb4aa967b583bc3fa64"}, + {file = "yarl-1.25.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dfbf531053a0935f2e871bcd4753f90313688772ff8c017f5ea402e315a78c1f"}, + {file = "yarl-1.25.1-cp315-cp315t-win_amd64.whl", hash = "sha256:b13b88747769537f3d32e89e3a735da10c0a9e35d7322928c701b5f93d3afffd"}, + {file = "yarl-1.25.1-cp315-cp315t-win_arm64.whl", hash = "sha256:783dd1467083f4d3f7722ad6a313f24c173e7571372738fcb7a6e6d1ba48df25"}, + {file = "yarl-1.25.1-py3-none-any.whl", hash = "sha256:681c758b0490f9e96b78e5fa8e8dc6e648e9185bb6eaebe73183c33ea0c445f3"}, + {file = "yarl-1.25.1.tar.gz", hash = "sha256:03dd38de09bc213e9a8b29761eec33ee1d5318dac0e49d8af36e4d27830e23a7"}, ] [package.dependencies] @@ -1466,4 +1615,4 @@ aiohttp = ["aiohttp", "httpx-aiohttp"] [metadata] lock-version = "2.1" python-versions = "^3.10" -content-hash = "ae72458cc9170491280c32063e114504d6d14e4e72794aefcc730f6d72478732" +content-hash = "4eaeff06fb8e558535aa3729ed6f99c2398eaaba665bcdf9c096bb08d9cb5fc6" diff --git a/pyproject.toml b/pyproject.toml index 5ed7f8a..2b8b09d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,12 @@ [project] name = "speechify-api" dynamic = ["version"] +license = "MIT" +license-files = ["LICENSE"] [tool.poetry] name = "speechify-api" -version = "4.0.0" +version = "4.0.1" description = "Official Speechify API SDK" readme = "README.md" authors = [ @@ -18,7 +20,7 @@ keywords = [ "text-to-speech", "tts" ] - +license = "MIT" classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python", @@ -50,7 +52,7 @@ Repository = 'https://github.com/Speechify-AI/sdk-python' 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"} +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" diff --git a/reference.md b/reference.md index e5c8377..7de11a5 100644 --- a/reference.md +++ b/reference.md @@ -63,8 +63,9 @@ client.audio.speech( **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. -Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody +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. @@ -99,7 +100,11 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. +**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.
@@ -123,6 +128,22 @@ Please refer to the list of the supported languages and recommendations regardin
+**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.
@@ -262,12 +283,16 @@ delivery detail and carries no meaning. Times stay correct for every `output_format`: changing the codec or sample rate does not change the duration. -Speech marks are produced by the streaming-native models. The default -`simba-3.0` and `simba-3.2` both serve this route; the legacy -`simba-english` and `simba-multilingual` models return 400 -`speech_marks_unsupported` here. +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, on any model, use POST /v1/audio/speech. +response, use POST /v1/audio/speech.
@@ -429,13 +454,20 @@ client.models.list()
Lists the voices available to the caller - the shared voice -catalog plus the workspace's cloned voices, whichever member or -service-account key created them. By default -the full catalogue is returned in one response. Pagination is -opt-in: pass `limit` (and then `cursor` from the previous -response) to page through the list while `has_more` is true. Max -page size is 200. Narrow the list with the `type` and `locale` -filters (applied before pagination, so pages stay full). +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.
@@ -461,6 +493,7 @@ client = Speechify( client.voices.list( locale="en", model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", ) ``` @@ -535,6 +568,29 @@ Filter to voices that support this model (as listed in each voice's
+**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.
@@ -563,9 +619,11 @@ Create a cloned voice for the workspace from a 10-30 second audio sample, with v 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`, `simba-english` and `simba-multilingual`. `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. +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. -Callers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog. +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.
@@ -802,6 +860,10 @@ client.voices.get( 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. @@ -935,8 +997,8 @@ client.voices.download_sample( -## Voices ConsentChallenges -
client.voices.consent_challenges.create(...) -> ConsentChallenge +## projects +
client.projects.list(...) -> ListProjectsResponse
@@ -948,13 +1010,124 @@ client.voices.download_sample(
-Start the consent check for a voice clone. +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). +
+
+
+
-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. +#### 🔌 Usage -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. +
+
+ +```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.
@@ -977,9 +1150,8 @@ client = Speechify( environment=SpeechifyEnvironment.DEFAULT, ) -client.voices.consent_challenges.create( - idempotency_key="a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d", - full_name="Jane Doe", +client.projects.create( + name="Production", ) ``` @@ -996,34 +1168,2094 @@ client.voices.consent_challenges.create(
-**full_name:** `str` +**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. +Project name; unique per workspace (case-insensitive), +surrounding whitespace is trimmed. + +
+
-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. +
+
+ +**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
+
+
+ + + + +
+
client.projects.get(...) -> Project
-**idempotency_key:** `typing.Optional[str]` +#### 📝 Description -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. +
+
+ +
+
+ +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).
diff --git a/src/speechify/__init__.py b/src/speechify/__init__.py index df38d30..8c2bcf6 100644 --- a/src/speechify/__init__.py +++ b/src/speechify/__init__.py @@ -9,7 +9,10 @@ from .types import ( AudioOutputFormat, AudioStreamOutputFormat, + BillingEntitlements, + BillingEntitlementsMaxLlmModelClass, ConsentChallenge, + EntitlementsResponse, Error, ErrorCode, ErrorDetail, @@ -25,11 +28,31 @@ GetVoiceType, GetVoicesModel, GetVoicesModelName, + ListProjectsResponse, ListVoicesResponse, + ListWebhookEndpointDeliveriesResponse, + ListWebhookEndpointsResponse, Model, ModelsResponse, NestedChunk, PaginationMeta, + Project, + ProjectAuditEvent, + ProjectAuditEventType, + ProjectAuditResponse, + ProjectMember, + ProjectMembersResponse, + ProjectMonthlyBudgetStatus, + ProjectRestore, + ProjectStillRevokedCounts, + Pronunciation, + PronunciationAlias, + PronunciationCaseSensitive, + PronunciationIpa, + PronunciationIpaText, + PronunciationText, + Pronunciations, + SafetyIdentifier, SpeechChunkEvent, SpeechDoneEvent, SpeechErrorEvent, @@ -38,6 +61,11 @@ SpeechStreamEvent_SpeechChunk, SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, + WatermarkDetectionResponse, + WatermarkVerificationResponse, + WebhookDeliveryStatus, + WebhookEndpoint, + WebhookEndpointDelivery, ) from .errors import ( BadGatewayError, @@ -53,30 +81,64 @@ UnauthorizedError, UnprocessableEntityError, ) - from . import audio, models, voices + from . import audio, models, projects, voices, webhooks, workspaces from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient from .audio import ( + AudioStreamInputModel, + AudioStreamInputOutputFormat, + AudioStreamInputSpeechMarks, GetSpeechRequestAudioFormat, GetSpeechRequestModel, + InputClose, + InputCloseType, + InputFlush, + InputFlushType, + InputText, + InputTextType, + SessionPronunciations, + SessionPronunciationsPronunciationsItem, + SessionPronunciationsPronunciationsItemAlias, + SessionPronunciationsPronunciationsItemIpa, + SessionPronunciationsType, + SpeechChunk, + SpeechChunkSpeechMarksItem, + SpeechChunkType, + SpeechDone, + SpeechDoneReason, + SpeechDoneType, + SpeechError, + SpeechErrorError, + SpeechErrorErrorCode, + SpeechErrorType, + SpeechFlushed, + SpeechFlushedType, StreamAudioRequestAccept, StreamWithTimestampsAudioRequestAccept, ) from .client import AsyncSpeechify, Speechify from .environment import SpeechifyEnvironment + from .projects import DeleteProjectRequestMode from .version import __version__ from .voices import CreateVoicesRequestGender, ListVoicesRequestGender, ListVoicesRequestType _dynamic_imports: typing.Dict[str, str] = { "AsyncSpeechify": ".client", "AudioOutputFormat": ".types", + "AudioStreamInputModel": ".audio", + "AudioStreamInputOutputFormat": ".audio", + "AudioStreamInputSpeechMarks": ".audio", "AudioStreamOutputFormat": ".types", "BadGatewayError": ".errors", "BadRequestError": ".errors", + "BillingEntitlements": ".types", + "BillingEntitlementsMaxLlmModelClass": ".types", "ConflictError": ".errors", "ConsentChallenge": ".types", "ContentTooLargeError": ".errors", "CreateVoicesRequestGender": ".voices", "DefaultAioHttpClient": "._default_clients", "DefaultAsyncHttpxClient": "._default_clients", + "DeleteProjectRequestMode": ".projects", + "EntitlementsResponse": ".types", "Error": ".types", "ErrorCode": ".types", "ErrorDetail": ".types", @@ -95,20 +157,63 @@ "GetVoiceType": ".types", "GetVoicesModel": ".types", "GetVoicesModelName": ".types", + "InputClose": ".audio", + "InputCloseType": ".audio", + "InputFlush": ".audio", + "InputFlushType": ".audio", + "InputText": ".audio", + "InputTextType": ".audio", "InternalServerError": ".errors", + "ListProjectsResponse": ".types", "ListVoicesRequestGender": ".voices", "ListVoicesRequestType": ".voices", "ListVoicesResponse": ".types", + "ListWebhookEndpointDeliveriesResponse": ".types", + "ListWebhookEndpointsResponse": ".types", "Model": ".types", "ModelsResponse": ".types", "NestedChunk": ".types", "NotFoundError": ".errors", "PaginationMeta": ".types", "PaymentRequiredError": ".errors", + "Project": ".types", + "ProjectAuditEvent": ".types", + "ProjectAuditEventType": ".types", + "ProjectAuditResponse": ".types", + "ProjectMember": ".types", + "ProjectMembersResponse": ".types", + "ProjectMonthlyBudgetStatus": ".types", + "ProjectRestore": ".types", + "ProjectStillRevokedCounts": ".types", + "Pronunciation": ".types", + "PronunciationAlias": ".types", + "PronunciationCaseSensitive": ".types", + "PronunciationIpa": ".types", + "PronunciationIpaText": ".types", + "PronunciationText": ".types", + "Pronunciations": ".types", + "SafetyIdentifier": ".types", "ServiceUnavailableError": ".errors", + "SessionPronunciations": ".audio", + "SessionPronunciationsPronunciationsItem": ".audio", + "SessionPronunciationsPronunciationsItemAlias": ".audio", + "SessionPronunciationsPronunciationsItemIpa": ".audio", + "SessionPronunciationsType": ".audio", + "SpeechChunk": ".audio", "SpeechChunkEvent": ".types", + "SpeechChunkSpeechMarksItem": ".audio", + "SpeechChunkType": ".audio", + "SpeechDone": ".audio", "SpeechDoneEvent": ".types", + "SpeechDoneReason": ".audio", + "SpeechDoneType": ".audio", + "SpeechError": ".audio", + "SpeechErrorError": ".audio", + "SpeechErrorErrorCode": ".audio", "SpeechErrorEvent": ".types", + "SpeechErrorType": ".audio", + "SpeechFlushed": ".audio", + "SpeechFlushedType": ".audio", "SpeechMarks": ".types", "SpeechStreamEvent": ".types", "SpeechStreamEvent_SpeechChunk": ".types", @@ -121,10 +226,18 @@ "TooManyRequestsError": ".errors", "UnauthorizedError": ".errors", "UnprocessableEntityError": ".errors", + "WatermarkDetectionResponse": ".types", + "WatermarkVerificationResponse": ".types", + "WebhookDeliveryStatus": ".types", + "WebhookEndpoint": ".types", + "WebhookEndpointDelivery": ".types", "__version__": ".version", "audio": ".audio", "models": ".models", + "projects": ".projects", "voices": ".voices", + "webhooks": ".webhooks", + "workspaces": ".workspaces", } @@ -152,15 +265,22 @@ def __dir__(): __all__ = [ "AsyncSpeechify", "AudioOutputFormat", + "AudioStreamInputModel", + "AudioStreamInputOutputFormat", + "AudioStreamInputSpeechMarks", "AudioStreamOutputFormat", "BadGatewayError", "BadRequestError", + "BillingEntitlements", + "BillingEntitlementsMaxLlmModelClass", "ConflictError", "ConsentChallenge", "ContentTooLargeError", "CreateVoicesRequestGender", "DefaultAioHttpClient", "DefaultAsyncHttpxClient", + "DeleteProjectRequestMode", + "EntitlementsResponse", "Error", "ErrorCode", "ErrorDetail", @@ -179,20 +299,63 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", + "InputClose", + "InputCloseType", + "InputFlush", + "InputFlushType", + "InputText", + "InputTextType", "InternalServerError", + "ListProjectsResponse", "ListVoicesRequestGender", "ListVoicesRequestType", "ListVoicesResponse", + "ListWebhookEndpointDeliveriesResponse", + "ListWebhookEndpointsResponse", "Model", "ModelsResponse", "NestedChunk", "NotFoundError", "PaginationMeta", "PaymentRequiredError", + "Project", + "ProjectAuditEvent", + "ProjectAuditEventType", + "ProjectAuditResponse", + "ProjectMember", + "ProjectMembersResponse", + "ProjectMonthlyBudgetStatus", + "ProjectRestore", + "ProjectStillRevokedCounts", + "Pronunciation", + "PronunciationAlias", + "PronunciationCaseSensitive", + "PronunciationIpa", + "PronunciationIpaText", + "PronunciationText", + "Pronunciations", + "SafetyIdentifier", "ServiceUnavailableError", + "SessionPronunciations", + "SessionPronunciationsPronunciationsItem", + "SessionPronunciationsPronunciationsItemAlias", + "SessionPronunciationsPronunciationsItemIpa", + "SessionPronunciationsType", + "SpeechChunk", "SpeechChunkEvent", + "SpeechChunkSpeechMarksItem", + "SpeechChunkType", + "SpeechDone", "SpeechDoneEvent", + "SpeechDoneReason", + "SpeechDoneType", + "SpeechError", + "SpeechErrorError", + "SpeechErrorErrorCode", "SpeechErrorEvent", + "SpeechErrorType", + "SpeechFlushed", + "SpeechFlushedType", "SpeechMarks", "SpeechStreamEvent", "SpeechStreamEvent_SpeechChunk", @@ -205,8 +368,16 @@ def __dir__(): "TooManyRequestsError", "UnauthorizedError", "UnprocessableEntityError", + "WatermarkDetectionResponse", + "WatermarkVerificationResponse", + "WebhookDeliveryStatus", + "WebhookEndpoint", + "WebhookEndpointDelivery", "__version__", "audio", "models", + "projects", "voices", + "webhooks", + "workspaces", ] diff --git a/src/speechify/audio/__init__.py b/src/speechify/audio/__init__.py index ebbb090..5b9ef1f 100644 --- a/src/speechify/audio/__init__.py +++ b/src/speechify/audio/__init__.py @@ -7,16 +7,70 @@ if typing.TYPE_CHECKING: from .types import ( + AudioStreamInputModel, + AudioStreamInputOutputFormat, + AudioStreamInputSpeechMarks, GetSpeechRequestAudioFormat, GetSpeechRequestModel, + InputClose, + InputCloseType, + InputFlush, + InputFlushType, + InputText, + InputTextType, + SessionPronunciations, + SessionPronunciationsPronunciationsItem, + SessionPronunciationsPronunciationsItemAlias, + SessionPronunciationsPronunciationsItemIpa, + SessionPronunciationsType, + SpeechChunk, + SpeechChunkSpeechMarksItem, + SpeechChunkType, + SpeechDone, + SpeechDoneReason, + SpeechDoneType, + SpeechError, + SpeechErrorError, + SpeechErrorErrorCode, + SpeechErrorType, + SpeechFlushed, + SpeechFlushedType, StreamAudioRequestAccept, StreamWithTimestampsAudioRequestAccept, ) + from . import watermark _dynamic_imports: typing.Dict[str, str] = { + "AudioStreamInputModel": ".types", + "AudioStreamInputOutputFormat": ".types", + "AudioStreamInputSpeechMarks": ".types", "GetSpeechRequestAudioFormat": ".types", "GetSpeechRequestModel": ".types", + "InputClose": ".types", + "InputCloseType": ".types", + "InputFlush": ".types", + "InputFlushType": ".types", + "InputText": ".types", + "InputTextType": ".types", + "SessionPronunciations": ".types", + "SessionPronunciationsPronunciationsItem": ".types", + "SessionPronunciationsPronunciationsItemAlias": ".types", + "SessionPronunciationsPronunciationsItemIpa": ".types", + "SessionPronunciationsType": ".types", + "SpeechChunk": ".types", + "SpeechChunkSpeechMarksItem": ".types", + "SpeechChunkType": ".types", + "SpeechDone": ".types", + "SpeechDoneReason": ".types", + "SpeechDoneType": ".types", + "SpeechError": ".types", + "SpeechErrorError": ".types", + "SpeechErrorErrorCode": ".types", + "SpeechErrorType": ".types", + "SpeechFlushed": ".types", + "SpeechFlushedType": ".types", "StreamAudioRequestAccept": ".types", "StreamWithTimestampsAudioRequestAccept": ".types", + "watermark": ".watermark", } @@ -42,8 +96,35 @@ def __dir__(): __all__ = [ + "AudioStreamInputModel", + "AudioStreamInputOutputFormat", + "AudioStreamInputSpeechMarks", "GetSpeechRequestAudioFormat", "GetSpeechRequestModel", + "InputClose", + "InputCloseType", + "InputFlush", + "InputFlushType", + "InputText", + "InputTextType", + "SessionPronunciations", + "SessionPronunciationsPronunciationsItem", + "SessionPronunciationsPronunciationsItemAlias", + "SessionPronunciationsPronunciationsItemIpa", + "SessionPronunciationsType", + "SpeechChunk", + "SpeechChunkSpeechMarksItem", + "SpeechChunkType", + "SpeechDone", + "SpeechDoneReason", + "SpeechDoneType", + "SpeechError", + "SpeechErrorError", + "SpeechErrorErrorCode", + "SpeechErrorType", + "SpeechFlushed", + "SpeechFlushedType", "StreamAudioRequestAccept", "StreamWithTimestampsAudioRequestAccept", + "watermark", ] diff --git a/src/speechify/audio/client.py b/src/speechify/audio/client.py index 93631b4..37fd074 100644 --- a/src/speechify/audio/client.py +++ b/src/speechify/audio/client.py @@ -1,5 +1,7 @@ # This file was auto-generated by Fern from our API Definition. +from __future__ import annotations + import typing from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper @@ -10,6 +12,8 @@ from ..types.get_speech_response import GetSpeechResponse from ..types.get_stream_options_request import GetStreamOptionsRequest from ..types.get_stream_request_model import GetStreamRequestModel +from ..types.pronunciations import Pronunciations +from ..types.safety_identifier import SafetyIdentifier from ..types.speech_stream_event import SpeechStreamEvent from .raw_client import AsyncRawAudioClient, RawAudioClient from .types.get_speech_request_audio_format import GetSpeechRequestAudioFormat @@ -17,6 +21,8 @@ from .types.stream_audio_request_accept import StreamAudioRequestAccept from .types.stream_with_timestamps_audio_request_accept import StreamWithTimestampsAudioRequestAccept +if typing.TYPE_CHECKING: + from .watermark.client import AsyncWatermarkClient, WatermarkClient # this is used as the default value for optional parameters OMIT = typing.cast(typing.Any, ...) @@ -24,6 +30,8 @@ class AudioClient: def __init__(self, *, client_wrapper: SyncClientWrapper): self._raw_client = RawAudioClient(client_wrapper=client_wrapper) + self._client_wrapper = client_wrapper + self._watermark: typing.Optional[WatermarkClient] = None @property def with_raw_response(self) -> RawAudioClient: @@ -46,6 +54,8 @@ def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> GetSpeechResponse: """ @@ -59,8 +69,9 @@ def speech( ---------- 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. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -73,13 +84,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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. @@ -93,7 +111,7 @@ def speech( from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.audio.speech( @@ -111,6 +129,8 @@ def speech( model=model, options=options, output_format=output_format, + pronunciations=pronunciations, + safety_identifier=safety_identifier, request_options=request_options, ) return _response.data @@ -125,6 +145,8 @@ def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[bytes]: """ @@ -140,8 +162,9 @@ def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -160,13 +183,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. You can pass in configuration such as `chunk_size`, and more to customize the request and response. @@ -177,14 +207,17 @@ def stream( codec/sample rate; otherwise the Accept header does. The Content-Type reflects the selected format: it matches the Accept header, except raw PCM returns `audio/L16` (with rate and channels - parameters) and u-law returns `audio/basic`. + parameters) and u-law returns `audio/basic`. A content policy + refusal that lands after the audio has started aborts the + transfer, so the client raises instead of completing the body; + only a completed transfer was served in full. Examples -------- from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.audio.stream( @@ -200,6 +233,8 @@ def stream( model=model, options=options, output_format=output_format, + pronunciations=pronunciations, + safety_identifier=safety_identifier, request_options=request_options, ) as r: yield from r.data @@ -214,6 +249,8 @@ def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[SpeechStreamEvent]: """ @@ -236,19 +273,24 @@ def stream_with_timestamps( `output_format`: changing the codec or sample rate does not change the duration. - Speech marks are produced by the streaming-native models. The default - `simba-3.0` and `simba-3.2` both serve this route; the legacy - `simba-english` and `simba-multilingual` models return 400 - `speech_marks_unsupported` here. + 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, on any model, use POST /v1/audio/speech. + response, use POST /v1/audio/speech. Parameters ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -264,13 +306,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. @@ -278,9 +327,10 @@ def stream_with_timestamps( ------ typing.Iterator[SpeechStreamEvent] A Server-Sent Events stream of `speech.chunk` events followed by one - terminal `speech.done` event. A failure after the stream has started - is delivered as a `speech.error` event carrying the standard error - envelope, because the status code is already committed. + terminal `speech.done` event. A failure after the stream has started, + including a `content_policy_violation` refusal, is delivered as a + `speech.error` event carrying the standard error envelope, because + the status code is already committed. The transport is `text/event-stream`: each event is an `event:`/`data:` pair whose `data` is one JSON payload matching the @@ -293,7 +343,7 @@ def stream_with_timestamps( from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) response = client.audio.stream_with_timestamps( @@ -312,14 +362,26 @@ def stream_with_timestamps( model=model, options=options, output_format=output_format, + pronunciations=pronunciations, + safety_identifier=safety_identifier, request_options=request_options, ) as r: yield from r.data + @property + def watermark(self): + if self._watermark is None: + from .watermark.client import WatermarkClient # noqa: E402 + + self._watermark = WatermarkClient(client_wrapper=self._client_wrapper) + return self._watermark + class AsyncAudioClient: def __init__(self, *, client_wrapper: AsyncClientWrapper): self._raw_client = AsyncRawAudioClient(client_wrapper=client_wrapper) + self._client_wrapper = client_wrapper + self._watermark: typing.Optional[AsyncWatermarkClient] = None @property def with_raw_response(self) -> AsyncRawAudioClient: @@ -342,6 +404,8 @@ async def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> GetSpeechResponse: """ @@ -355,8 +419,9 @@ async def speech( ---------- 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. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -369,13 +434,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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. @@ -391,7 +463,7 @@ async def speech( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) @@ -415,6 +487,8 @@ async def main() -> None: model=model, options=options, output_format=output_format, + pronunciations=pronunciations, + safety_identifier=safety_identifier, request_options=request_options, ) return _response.data @@ -429,6 +503,8 @@ async def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[bytes]: """ @@ -444,8 +520,9 @@ async def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -464,13 +541,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. You can pass in configuration such as `chunk_size`, and more to customize the request and response. @@ -481,7 +565,10 @@ async def stream( codec/sample rate; otherwise the Accept header does. The Content-Type reflects the selected format: it matches the Accept header, except raw PCM returns `audio/L16` (with rate and channels - parameters) and u-law returns `audio/basic`. + parameters) and u-law returns `audio/basic`. A content policy + refusal that lands after the audio has started aborts the + transfer, so the client raises instead of completing the body; + only a completed transfer was served in full. Examples -------- @@ -490,7 +577,7 @@ async def stream( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) @@ -512,6 +599,8 @@ async def main() -> None: model=model, options=options, output_format=output_format, + pronunciations=pronunciations, + safety_identifier=safety_identifier, request_options=request_options, ) as r: async for _chunk in r.data: @@ -527,6 +616,8 @@ async def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[SpeechStreamEvent]: """ @@ -549,19 +640,24 @@ async def stream_with_timestamps( `output_format`: changing the codec or sample rate does not change the duration. - Speech marks are produced by the streaming-native models. The default - `simba-3.0` and `simba-3.2` both serve this route; the legacy - `simba-english` and `simba-multilingual` models return 400 - `speech_marks_unsupported` here. + 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, on any model, use POST /v1/audio/speech. + response, use POST /v1/audio/speech. Parameters ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -577,13 +673,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. @@ -591,9 +694,10 @@ async def stream_with_timestamps( ------ typing.AsyncIterator[SpeechStreamEvent] A Server-Sent Events stream of `speech.chunk` events followed by one - terminal `speech.done` event. A failure after the stream has started - is delivered as a `speech.error` event carrying the standard error - envelope, because the status code is already committed. + terminal `speech.done` event. A failure after the stream has started, + including a `content_policy_violation` refusal, is delivered as a + `speech.error` event carrying the standard error envelope, because + the status code is already committed. The transport is `text/event-stream`: each event is an `event:`/`data:` pair whose `data` is one JSON payload matching the @@ -608,13 +712,13 @@ async def stream_with_timestamps( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) async def main() -> None: - response = await client.audio.stream_with_timestamps( + response = client.audio.stream_with_timestamps( input="Streaming long-form audio with the Speechify API.", model="simba-3.2", voice_id="geffen_32", @@ -633,7 +737,17 @@ async def main() -> None: model=model, options=options, output_format=output_format, + pronunciations=pronunciations, + safety_identifier=safety_identifier, request_options=request_options, ) as r: async for _chunk in r.data: yield _chunk + + @property + def watermark(self): + if self._watermark is None: + from .watermark.client import AsyncWatermarkClient # noqa: E402 + + self._watermark = AsyncWatermarkClient(client_wrapper=self._client_wrapper) + return self._watermark diff --git a/src/speechify/audio/raw_client.py b/src/speechify/audio/raw_client.py index 9c964f8..7fa2111 100644 --- a/src/speechify/audio/raw_client.py +++ b/src/speechify/audio/raw_client.py @@ -15,6 +15,8 @@ from ..core.serialization import convert_and_respect_annotation_metadata from ..errors.bad_gateway_error import BadGatewayError from ..errors.bad_request_error import BadRequestError +from ..errors.conflict_error import ConflictError +from ..errors.content_too_large_error import ContentTooLargeError from ..errors.forbidden_error import ForbiddenError from ..errors.internal_server_error import InternalServerError from ..errors.not_found_error import NotFoundError @@ -29,6 +31,8 @@ from ..types.get_speech_response import GetSpeechResponse from ..types.get_stream_options_request import GetStreamOptionsRequest from ..types.get_stream_request_model import GetStreamRequestModel +from ..types.pronunciations import Pronunciations +from ..types.safety_identifier import SafetyIdentifier from ..types.speech_stream_event import SpeechStreamEvent from .types.get_speech_request_audio_format import GetSpeechRequestAudioFormat from .types.get_speech_request_model import GetSpeechRequestModel @@ -54,6 +58,8 @@ def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[GetSpeechResponse]: """ @@ -67,8 +73,9 @@ def speech( ---------- 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. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -81,13 +88,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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. @@ -98,6 +112,7 @@ def speech( """ _response = self._client_wrapper.httpx_client.request( "v1/audio/speech", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "audio_format": audio_format, @@ -108,6 +123,10 @@ def speech( object_=options, annotation=GetSpeechOptionsRequest, direction="write" ), "output_format": output_format, + "pronunciations": convert_and_respect_annotation_metadata( + object_=pronunciations, annotation=Pronunciations, direction="write" + ), + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -181,6 +200,28 @@ def speech( ), ), ) + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) if _response.status_code == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -245,6 +286,8 @@ def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[HttpResponse[typing.Iterator[bytes]]]: """ @@ -260,8 +303,9 @@ def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -280,13 +324,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. You can pass in configuration such as `chunk_size`, and more to customize the request and response. @@ -297,10 +348,14 @@ def stream( codec/sample rate; otherwise the Accept header does. The Content-Type reflects the selected format: it matches the Accept header, except raw PCM returns `audio/L16` (with rate and channels - parameters) and u-law returns `audio/basic`. + parameters) and u-law returns `audio/basic`. A content policy + refusal that lands after the audio has started aborts the + transfer, so the client raises instead of completing the body; + only a completed transfer was served in full. """ with self._client_wrapper.httpx_client.stream( "v1/audio/stream", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "input": input, @@ -310,6 +365,10 @@ def stream( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "pronunciations": convert_and_respect_annotation_metadata( + object_=pronunciations, annotation=Pronunciations, direction="write" + ), + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -383,6 +442,28 @@ def _stream() -> HttpResponse[typing.Iterator[bytes]]: ), ), ) + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) if _response.status_code == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -454,6 +535,8 @@ def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.Iterator[HttpResponse[typing.Iterator[SpeechStreamEvent]]]: """ @@ -476,19 +559,24 @@ def stream_with_timestamps( `output_format`: changing the codec or sample rate does not change the duration. - Speech marks are produced by the streaming-native models. The default - `simba-3.0` and `simba-3.2` both serve this route; the legacy - `simba-english` and `simba-multilingual` models return 400 - `speech_marks_unsupported` here. + 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, on any model, use POST /v1/audio/speech. + response, use POST /v1/audio/speech. Parameters ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -504,13 +592,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. @@ -518,9 +613,10 @@ def stream_with_timestamps( ------ typing.Iterator[HttpResponse[typing.Iterator[SpeechStreamEvent]]] A Server-Sent Events stream of `speech.chunk` events followed by one - terminal `speech.done` event. A failure after the stream has started - is delivered as a `speech.error` event carrying the standard error - envelope, because the status code is already committed. + terminal `speech.done` event. A failure after the stream has started, + including a `content_policy_violation` refusal, is delivered as a + `speech.error` event carrying the standard error envelope, because + the status code is already committed. The transport is `text/event-stream`: each event is an `event:`/`data:` pair whose `data` is one JSON payload matching the @@ -530,6 +626,7 @@ def stream_with_timestamps( """ with self._client_wrapper.httpx_client.stream( "v1/audio/stream/with-timestamps", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "input": input, @@ -539,6 +636,10 @@ def stream_with_timestamps( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "pronunciations": convert_and_respect_annotation_metadata( + object_=pronunciations, annotation=Pronunciations, direction="write" + ), + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -558,6 +659,8 @@ def _iter(): for _sse in _event_source.iter_sse(): if _sse.data == None: return + if len(_sse.data) == 0: + continue try: yield typing.cast( SpeechStreamEvent, @@ -635,6 +738,28 @@ def _iter(): ), ), ) + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) if _response.status_code == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -710,6 +835,8 @@ async def speech( model: typing.Optional[GetSpeechRequestModel] = OMIT, options: typing.Optional[GetSpeechOptionsRequest] = OMIT, output_format: typing.Optional[AudioOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[GetSpeechResponse]: """ @@ -723,8 +850,9 @@ async def speech( ---------- 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. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -737,13 +865,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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. @@ -754,6 +889,7 @@ async def speech( """ _response = await self._client_wrapper.httpx_client.request( "v1/audio/speech", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "audio_format": audio_format, @@ -764,6 +900,10 @@ async def speech( object_=options, annotation=GetSpeechOptionsRequest, direction="write" ), "output_format": output_format, + "pronunciations": convert_and_respect_annotation_metadata( + object_=pronunciations, annotation=Pronunciations, direction="write" + ), + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -837,6 +977,28 @@ async def speech( ), ), ) + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) if _response.status_code == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -901,6 +1063,8 @@ async def stream( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]: """ @@ -916,8 +1080,9 @@ async def stream( ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -936,13 +1101,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. You can pass in configuration such as `chunk_size`, and more to customize the request and response. @@ -953,10 +1125,14 @@ async def stream( codec/sample rate; otherwise the Accept header does. The Content-Type reflects the selected format: it matches the Accept header, except raw PCM returns `audio/L16` (with rate and channels - parameters) and u-law returns `audio/basic`. + parameters) and u-law returns `audio/basic`. A content policy + refusal that lands after the audio has started aborts the + transfer, so the client raises instead of completing the body; + only a completed transfer was served in full. """ async with self._client_wrapper.httpx_client.stream( "v1/audio/stream", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "input": input, @@ -966,6 +1142,10 @@ async def stream( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "pronunciations": convert_and_respect_annotation_metadata( + object_=pronunciations, annotation=Pronunciations, direction="write" + ), + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -1040,6 +1220,28 @@ async def _stream() -> AsyncHttpResponse[typing.AsyncIterator[bytes]]: ), ), ) + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) if _response.status_code == 429: raise TooManyRequestsError( headers=dict(_response.headers), @@ -1111,6 +1313,8 @@ async def stream_with_timestamps( model: typing.Optional[GetStreamRequestModel] = OMIT, options: typing.Optional[GetStreamOptionsRequest] = OMIT, output_format: typing.Optional[AudioStreamOutputFormat] = OMIT, + pronunciations: typing.Optional[Pronunciations] = OMIT, + safety_identifier: typing.Optional[SafetyIdentifier] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[SpeechStreamEvent]]]: """ @@ -1133,19 +1337,24 @@ async def stream_with_timestamps( `output_format`: changing the codec or sample rate does not change the duration. - Speech marks are produced by the streaming-native models. The default - `simba-3.0` and `simba-3.2` both serve this route; the legacy - `simba-english` and `simba-multilingual` models return 400 - `speech_marks_unsupported` here. + 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, on any model, use POST /v1/audio/speech. + response, use POST /v1/audio/speech. Parameters ---------- input : str Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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 @@ -1161,13 +1370,20 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] output_format : typing.Optional[AudioStreamOutputFormat] The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. + 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. @@ -1175,9 +1391,10 @@ async def stream_with_timestamps( ------ typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[SpeechStreamEvent]]] A Server-Sent Events stream of `speech.chunk` events followed by one - terminal `speech.done` event. A failure after the stream has started - is delivered as a `speech.error` event carrying the standard error - envelope, because the status code is already committed. + terminal `speech.done` event. A failure after the stream has started, + including a `content_policy_violation` refusal, is delivered as a + `speech.error` event carrying the standard error envelope, because + the status code is already committed. The transport is `text/event-stream`: each event is an `event:`/`data:` pair whose `data` is one JSON payload matching the @@ -1187,6 +1404,7 @@ async def stream_with_timestamps( """ async with self._client_wrapper.httpx_client.stream( "v1/audio/stream/with-timestamps", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "input": input, @@ -1196,6 +1414,10 @@ async def stream_with_timestamps( object_=options, annotation=GetStreamOptionsRequest, direction="write" ), "output_format": output_format, + "pronunciations": convert_and_respect_annotation_metadata( + object_=pronunciations, annotation=Pronunciations, direction="write" + ), + "safety_identifier": safety_identifier, "voice_id": voice_id, }, headers={ @@ -1215,6 +1437,8 @@ async def _iter(): async for _sse in _event_source.aiter_sse(): if _sse.data == None: return + if len(_sse.data) == 0: + continue try: yield typing.cast( SpeechStreamEvent, @@ -1292,6 +1516,28 @@ async def _iter(): ), ), ) + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) if _response.status_code == 429: raise TooManyRequestsError( headers=dict(_response.headers), diff --git a/src/speechify/audio/types/__init__.py b/src/speechify/audio/types/__init__.py index 73ce14e..4a7caa9 100644 --- a/src/speechify/audio/types/__init__.py +++ b/src/speechify/audio/types/__init__.py @@ -6,13 +6,65 @@ from importlib import import_module if typing.TYPE_CHECKING: + from .audio_stream_input_model import AudioStreamInputModel + from .audio_stream_input_output_format import AudioStreamInputOutputFormat + from .audio_stream_input_speech_marks import AudioStreamInputSpeechMarks from .get_speech_request_audio_format import GetSpeechRequestAudioFormat from .get_speech_request_model import GetSpeechRequestModel + from .input_close import InputClose + from .input_close_type import InputCloseType + from .input_flush import InputFlush + from .input_flush_type import InputFlushType + from .input_text import InputText + from .input_text_type import InputTextType + from .session_pronunciations import SessionPronunciations + from .session_pronunciations_pronunciations_item import SessionPronunciationsPronunciationsItem + from .session_pronunciations_pronunciations_item_alias import SessionPronunciationsPronunciationsItemAlias + from .session_pronunciations_pronunciations_item_ipa import SessionPronunciationsPronunciationsItemIpa + from .session_pronunciations_type import SessionPronunciationsType + from .speech_chunk import SpeechChunk + from .speech_chunk_speech_marks_item import SpeechChunkSpeechMarksItem + from .speech_chunk_type import SpeechChunkType + from .speech_done import SpeechDone + from .speech_done_reason import SpeechDoneReason + from .speech_done_type import SpeechDoneType + from .speech_error import SpeechError + from .speech_error_error import SpeechErrorError + from .speech_error_error_code import SpeechErrorErrorCode + from .speech_error_type import SpeechErrorType + from .speech_flushed import SpeechFlushed + from .speech_flushed_type import SpeechFlushedType from .stream_audio_request_accept import StreamAudioRequestAccept from .stream_with_timestamps_audio_request_accept import StreamWithTimestampsAudioRequestAccept _dynamic_imports: typing.Dict[str, str] = { + "AudioStreamInputModel": ".audio_stream_input_model", + "AudioStreamInputOutputFormat": ".audio_stream_input_output_format", + "AudioStreamInputSpeechMarks": ".audio_stream_input_speech_marks", "GetSpeechRequestAudioFormat": ".get_speech_request_audio_format", "GetSpeechRequestModel": ".get_speech_request_model", + "InputClose": ".input_close", + "InputCloseType": ".input_close_type", + "InputFlush": ".input_flush", + "InputFlushType": ".input_flush_type", + "InputText": ".input_text", + "InputTextType": ".input_text_type", + "SessionPronunciations": ".session_pronunciations", + "SessionPronunciationsPronunciationsItem": ".session_pronunciations_pronunciations_item", + "SessionPronunciationsPronunciationsItemAlias": ".session_pronunciations_pronunciations_item_alias", + "SessionPronunciationsPronunciationsItemIpa": ".session_pronunciations_pronunciations_item_ipa", + "SessionPronunciationsType": ".session_pronunciations_type", + "SpeechChunk": ".speech_chunk", + "SpeechChunkSpeechMarksItem": ".speech_chunk_speech_marks_item", + "SpeechChunkType": ".speech_chunk_type", + "SpeechDone": ".speech_done", + "SpeechDoneReason": ".speech_done_reason", + "SpeechDoneType": ".speech_done_type", + "SpeechError": ".speech_error", + "SpeechErrorError": ".speech_error_error", + "SpeechErrorErrorCode": ".speech_error_error_code", + "SpeechErrorType": ".speech_error_type", + "SpeechFlushed": ".speech_flushed", + "SpeechFlushedType": ".speech_flushed_type", "StreamAudioRequestAccept": ".stream_audio_request_accept", "StreamWithTimestampsAudioRequestAccept": ".stream_with_timestamps_audio_request_accept", } @@ -40,8 +92,34 @@ def __dir__(): __all__ = [ + "AudioStreamInputModel", + "AudioStreamInputOutputFormat", + "AudioStreamInputSpeechMarks", "GetSpeechRequestAudioFormat", "GetSpeechRequestModel", + "InputClose", + "InputCloseType", + "InputFlush", + "InputFlushType", + "InputText", + "InputTextType", + "SessionPronunciations", + "SessionPronunciationsPronunciationsItem", + "SessionPronunciationsPronunciationsItemAlias", + "SessionPronunciationsPronunciationsItemIpa", + "SessionPronunciationsType", + "SpeechChunk", + "SpeechChunkSpeechMarksItem", + "SpeechChunkType", + "SpeechDone", + "SpeechDoneReason", + "SpeechDoneType", + "SpeechError", + "SpeechErrorError", + "SpeechErrorErrorCode", + "SpeechErrorType", + "SpeechFlushed", + "SpeechFlushedType", "StreamAudioRequestAccept", "StreamWithTimestampsAudioRequestAccept", ] diff --git a/src/speechify/audio/types/audio_stream_input_model.py b/src/speechify/audio/types/audio_stream_input_model.py new file mode 100644 index 0000000..d28f6b2 --- /dev/null +++ b/src/speechify/audio/types/audio_stream_input_model.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AudioStreamInputModel = typing.Union[typing.Literal["simba-3.0", "simba-3.2", "simba-3.5"], typing.Any] diff --git a/src/speechify/audio/types/audio_stream_input_output_format.py b/src/speechify/audio/types/audio_stream_input_output_format.py new file mode 100644 index 0000000..cc396be --- /dev/null +++ b/src/speechify/audio/types/audio_stream_input_output_format.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AudioStreamInputOutputFormat = typing.Union[ + typing.Literal[ + "pcm_8000", + "pcm_16000", + "pcm_22050", + "pcm_24000", + "pcm_44100", + "pcm_48000", + "mp3_22050_32", + "mp3_22050_64", + "mp3_22050_96", + "mp3_22050_128", + "mp3_22050_160", + "mp3_22050_192", + "mp3_24000_32", + "mp3_24000_64", + "mp3_24000_96", + "mp3_24000_128", + "mp3_24000_160", + "mp3_24000_192", + "ulaw_8000", + "ogg_24000", + "aac_24000", + ], + typing.Any, +] diff --git a/src/speechify/audio/types/audio_stream_input_speech_marks.py b/src/speechify/audio/types/audio_stream_input_speech_marks.py new file mode 100644 index 0000000..9a38816 --- /dev/null +++ b/src/speechify/audio/types/audio_stream_input_speech_marks.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +AudioStreamInputSpeechMarks = typing.Union[typing.Literal["true", "false"], typing.Any] diff --git a/src/speechify/audio/types/get_speech_request_model.py b/src/speechify/audio/types/get_speech_request_model.py index cd9a92d..df544f6 100644 --- a/src/speechify/audio/types/get_speech_request_model.py +++ b/src/speechify/audio/types/get_speech_request_model.py @@ -2,6 +2,4 @@ import typing -GetSpeechRequestModel = typing.Union[ - typing.Literal["simba-english", "simba-multilingual", "simba-3.0", "simba-3.2"], typing.Any -] +GetSpeechRequestModel = typing.Union[typing.Literal["simba-3.0", "simba-3.2", "simba-3.5"], typing.Any] diff --git a/src/speechify/audio/types/input_close.py b/src/speechify/audio/types/input_close.py new file mode 100644 index 0000000..eae5f60 --- /dev/null +++ b/src/speechify/audio/types/input_close.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .input_close_type import InputCloseType + + +class InputClose(UniversalBaseModel): + """ + Client message on GET /v1/audio/stream/ws: no more text is coming. The server speaks everything it was sent, sends speech.done with reason closed, and closes the socket. Keep reading until speech.done arrives: closing the socket first abandons the audio still to come, and the segment it cuts is billed in full. + """ + + type: InputCloseType + + 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/audio/types/input_close_type.py b/src/speechify/audio/types/input_close_type.py new file mode 100644 index 0000000..7915097 --- /dev/null +++ b/src/speechify/audio/types/input_close_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +InputCloseType = typing.Union[typing.Literal["input.close"], typing.Any] diff --git a/src/speechify/audio/types/input_flush.py b/src/speechify/audio/types/input_flush.py new file mode 100644 index 0000000..8d39b60 --- /dev/null +++ b/src/speechify/audio/types/input_flush.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .input_flush_type import InputFlushType + + +class InputFlush(UniversalBaseModel): + """ + Client message on GET /v1/audio/stream/ws: speak everything sent so far now, without waiting for its sentence to end. The server answers with speech.flushed once that audio has been sent, at once when nothing was waiting. Use it at the end of an LLM turn. + """ + + type: InputFlushType + + 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/audio/types/input_flush_type.py b/src/speechify/audio/types/input_flush_type.py new file mode 100644 index 0000000..e62a218 --- /dev/null +++ b/src/speechify/audio/types/input_flush_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +InputFlushType = typing.Union[typing.Literal["input.flush"], typing.Any] diff --git a/src/speechify/audio/types/input_text.py b/src/speechify/audio/types/input_text.py new file mode 100644 index 0000000..d5ddca5 --- /dev/null +++ b/src/speechify/audio/types/input_text.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .input_text_type import InputTextType + + +class InputText(UniversalBaseModel): + """ + Client message on GET /v1/audio/stream/ws: text appended to what the session will speak. Send it as your application produces it, a few tokens at a time is fine; the server speaks each sentence once the next one starts, so a reply that arrives in pieces is cut at its sentence boundaries, not at the message boundaries. The text is spoken as plain text: SSML is read aloud, not interpreted. At most 20000 characters can wait to be spoken at once; more is refused with payload_too_large, which ends the session. + """ + + type: InputTextType + text: str = pydantic.Field() + """ + The next piece of text. Include the spaces and newlines between words and sentences exactly as your source produced them: they are what tells the server a sentence has ended. + """ + + 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/audio/types/input_text_type.py b/src/speechify/audio/types/input_text_type.py new file mode 100644 index 0000000..f92cd7b --- /dev/null +++ b/src/speechify/audio/types/input_text_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +InputTextType = typing.Union[typing.Literal["input.text"], typing.Any] diff --git a/src/speechify/audio/types/session_pronunciations.py b/src/speechify/audio/types/session_pronunciations.py new file mode 100644 index 0000000..8d05af9 --- /dev/null +++ b/src/speechify/audio/types/session_pronunciations.py @@ -0,0 +1,29 @@ +# 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 .session_pronunciations_pronunciations_item import SessionPronunciationsPronunciationsItem +from .session_pronunciations_type import SessionPronunciationsType + + +class SessionPronunciations(UniversalBaseModel): + type: SessionPronunciationsType + pronunciations: typing.List[SessionPronunciationsPronunciationsItem] = pydantic.Field() + """ + 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. + + 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. + """ + + 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/audio/types/session_pronunciations_pronunciations_item.py b/src/speechify/audio/types/session_pronunciations_pronunciations_item.py new file mode 100644 index 0000000..254a027 --- /dev/null +++ b/src/speechify/audio/types/session_pronunciations_pronunciations_item.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .session_pronunciations_pronunciations_item_alias import SessionPronunciationsPronunciationsItemAlias +from .session_pronunciations_pronunciations_item_ipa import SessionPronunciationsPronunciationsItemIpa + +SessionPronunciationsPronunciationsItem = typing.Union[ + SessionPronunciationsPronunciationsItemIpa, SessionPronunciationsPronunciationsItemAlias +] diff --git a/src/speechify/audio/types/session_pronunciations_pronunciations_item_alias.py b/src/speechify/audio/types/session_pronunciations_pronunciations_item_alias.py new file mode 100644 index 0000000..e666d3e --- /dev/null +++ b/src/speechify/audio/types/session_pronunciations_pronunciations_item_alias.py @@ -0,0 +1,36 @@ +# 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 SessionPronunciationsPronunciationsItemAlias(UniversalBaseModel): + """ + Say this text in place of `text`. + """ + + text: str = pydantic.Field() + """ + The word or phrase as it appears in `input`. Up to 64 characters, no control characters, not only whitespace. Two entries with the same `text` return `400 validation_failed`; texts compare case-insensitively unless both entries are `case_sensitive`. + """ + + alias: str = pydantic.Field() + """ + Plain text spoken in place of `text`: a respelling that sounds right (`koo-ber-net-eez`) or a substitution (`SaaS` spoken as `sass`). Up to 160 characters, no control characters. An alias is checked by the same content policy as `input`. + """ + + case_sensitive: typing.Optional[bool] = pydantic.Field(default=None) + """ + When true, the entry matches `text` only with the same capitalization. When false, the default, it matches regardless of case. + """ + + 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/audio/types/session_pronunciations_pronunciations_item_ipa.py b/src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py new file mode 100644 index 0000000..59377ab --- /dev/null +++ b/src/speechify/audio/types/session_pronunciations_pronunciations_item_ipa.py @@ -0,0 +1,36 @@ +# 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 SessionPronunciationsPronunciationsItemIpa(UniversalBaseModel): + """ + Say `text` with these phones. + """ + + text: str = pydantic.Field() + """ + The one word the phones say, as it appears in `input`. Up to 64 characters, no whitespace and no control characters: give a phrase one entry per word, or an `alias`. Two entries with the same `text` return `400 validation_failed`; texts compare case-insensitively unless both entries are `case_sensitive`. + """ + + 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. + """ + + case_sensitive: typing.Optional[bool] = pydantic.Field(default=None) + """ + When true, the entry matches `text` only with the same capitalization. When false, the default, it matches regardless of case. + """ + + 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/audio/types/session_pronunciations_type.py b/src/speechify/audio/types/session_pronunciations_type.py new file mode 100644 index 0000000..b6de441 --- /dev/null +++ b/src/speechify/audio/types/session_pronunciations_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SessionPronunciationsType = typing.Union[typing.Literal["session.pronunciations"], typing.Any] diff --git a/src/speechify/audio/types/speech_chunk.py b/src/speechify/audio/types/speech_chunk.py new file mode 100644 index 0000000..a5f7500 --- /dev/null +++ b/src/speechify/audio/types/speech_chunk.py @@ -0,0 +1,43 @@ +# 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 .speech_chunk_speech_marks_item import SpeechChunkSpeechMarksItem +from .speech_chunk_type import SpeechChunkType + + +class SpeechChunk(UniversalBaseModel): + """ + A run of synthesized 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. Mark times are absolute milliseconds from + the start of the synthesis: 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. + """ + + type: SpeechChunkType + audio: typing.Optional[str] = pydantic.Field(default=None) + """ + A run of the synthesized audio, Base64-encoded, in the format the + request selected (echoed on the `Speechify-Audio-Content-Type` + response header). Absent on a marks-only chunk. + """ + + speech_marks: typing.Optional[typing.List[SpeechChunkSpeechMarksItem]] = pydantic.Field(default=None) + """ + Word timings addressing the original input text, with absolute + millisecond times from the start of the synthesis. Absent when the + chunk carries only audio. + """ + + 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/audio/types/speech_chunk_speech_marks_item.py b/src/speechify/audio/types/speech_chunk_speech_marks_item.py new file mode 100644 index 0000000..aa4f0b9 --- /dev/null +++ b/src/speechify/audio/types/speech_chunk_speech_marks_item.py @@ -0,0 +1,28 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel + + +class SpeechChunkSpeechMarksItem(UniversalBaseModel): + """ + It details the type of segment, its start and end points in the text, and its start and end times in the synthesized speech audio. + """ + + end: typing.Optional[int] = None + end_time: typing.Optional[float] = None + start: typing.Optional[int] = None + start_time: typing.Optional[float] = None + type: typing.Optional[str] = None + value: typing.Optional[str] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/audio/types/speech_chunk_type.py b/src/speechify/audio/types/speech_chunk_type.py new file mode 100644 index 0000000..9b0c17e --- /dev/null +++ b/src/speechify/audio/types/speech_chunk_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SpeechChunkType = typing.Union[typing.Literal["speech.chunk"], typing.Any] diff --git a/src/speechify/audio/types/speech_done.py b/src/speechify/audio/types/speech_done.py new file mode 100644 index 0000000..5cfa7ff --- /dev/null +++ b/src/speechify/audio/types/speech_done.py @@ -0,0 +1,35 @@ +# 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 .speech_done_reason import SpeechDoneReason +from .speech_done_type import SpeechDoneType + + +class SpeechDone(UniversalBaseModel): + type: SpeechDoneType + billable_characters_count: int = pydantic.Field() + """ + Number of billable characters processed. + """ + + audio_duration_ms: int = pydantic.Field() + """ + Duration of the synthesized audio in milliseconds. + """ + + reason: SpeechDoneReason = pydantic.Field() + """ + closed: the client sent input.close and everything was spoken. idle: 60 seconds passed with nothing to speak and no message. session_limit: the session reached its 5 minute limit, and everything sent before it was spoken. shutdown: the server is restarting; reconnect, and the next session lands on another server. Ignore a reason you do not recognize. + """ + + 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/audio/types/speech_done_reason.py b/src/speechify/audio/types/speech_done_reason.py new file mode 100644 index 0000000..76126fb --- /dev/null +++ b/src/speechify/audio/types/speech_done_reason.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SpeechDoneReason = typing.Union[typing.Literal["closed", "idle", "session_limit", "shutdown"], typing.Any] diff --git a/src/speechify/audio/types/speech_done_type.py b/src/speechify/audio/types/speech_done_type.py new file mode 100644 index 0000000..c3b864d --- /dev/null +++ b/src/speechify/audio/types/speech_done_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SpeechDoneType = typing.Union[typing.Literal["speech.done"], typing.Any] diff --git a/src/speechify/audio/types/speech_error.py b/src/speechify/audio/types/speech_error.py new file mode 100644 index 0000000..476c1ab --- /dev/null +++ b/src/speechify/audio/types/speech_error.py @@ -0,0 +1,34 @@ +# 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 .speech_error_error import SpeechErrorError +from .speech_error_type import SpeechErrorType + + +class SpeechError(UniversalBaseModel): + """ + Terminal event carrying the standard error envelope, emitted when a + failure happens after the stream has started and the status code is + already committed: an upstream fault (`upstream_failure`) or a content + policy refusal (`content_policy_violation`). + """ + + type: SpeechErrorType + error: SpeechErrorError + request_id: typing.Optional[str] = pydantic.Field(default=None) + """ + Server-side request identifier. Echoes the `Speechify-Request-Id` + response header. + """ + + 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/audio/types/speech_error_error.py b/src/speechify/audio/types/speech_error_error.py new file mode 100644 index 0000000..0dc535f --- /dev/null +++ b/src/speechify/audio/types/speech_error_error.py @@ -0,0 +1,64 @@ +# 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 .speech_error_error_code import SpeechErrorErrorCode + + +class SpeechErrorError(UniversalBaseModel): + code: SpeechErrorErrorCode = pydantic.Field() + """ + Stable machine-readable error code. Additive only: codes are + never renamed, only deprecated. SDKs may map each code to a + typed exception class. Status-code semantics: + 4xx codes describe caller-fixable issues; 5xx codes describe + server-side failures and are safe to retry with backoff for + idempotent requests. + """ + + message: str = pydantic.Field() + """ + Human-readable explanation of this specific occurrence. + Safe to surface in UI banners or pass to support. The + wording can change between releases; clients should + match on `code`, not on the message string. + """ + + fields: typing.Optional[typing.Dict[str, str]] = pydantic.Field(default=None) + """ + Per-field validation errors as `path -> message`. Only + present on 400 responses caused by request validation + (typically code=`validation_failed`). Keys are field + paths in dotted/bracket notation; values are short + human explanations safe to inline-surface next to the + offending form field. + """ + + details: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) + """ + Structured, endpoint-specific context beyond the flat + `fields` map. Present only on the few errors that carry + it (e.g. the `used_by` referrer list on a credential + delete-conflict); its shape depends on the error `code`. + Clients that don't recognise a `details` shape can ignore + it - the `code` + `message` contract is unchanged. + """ + + docs_url: typing.Optional[str] = pydantic.Field(default=None) + """ + Link to the documentation that resolves this class of + error, when a stable page exists. Rate and concurrency + 429s link the API limits reference, which lists each + plan's limits and how to raise them. + """ + + 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/audio/types/speech_error_error_code.py b/src/speechify/audio/types/speech_error_error_code.py new file mode 100644 index 0000000..d9f68f2 --- /dev/null +++ b/src/speechify/audio/types/speech_error_error_code.py @@ -0,0 +1,181 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SpeechErrorErrorCode = typing.Union[ + typing.Literal[ + "endpoint_moved", + "bad_request", + "validation_failed", + "unauthorized", + "payment_required", + "forbidden", + "not_found", + "method_not_allowed", + "conflict", + "idempotency_conflict", + "payload_too_large", + "unsupported_media_type", + "rate_limited", + "concurrency_limit_reached", + "invalid_api_version", + "internal_error", + "upstream_failure", + "service_unavailable", + "caller_not_found", + "contact_not_found", + "contact_identifier_not_found", + "contact_identifier_conflict", + "contact_resolver_not_found", + "credential_not_found", + "credential_in_use", + "agent_not_found", + "agent_in_use", + "agent_run_not_found", + "kb_not_found", + "kb_document_not_found", + "kb_folder_not_found", + "tool_not_found", + "tool_name_taken", + "channel_instance_not_found", + "team_not_found", + "trigger_not_found", + "store_not_found", + "store_document_not_found", + "hosted_api_not_found", + "api_route_not_found", + "consumer_key_not_found", + "skill_not_found", + "skill_version_not_found", + "file_not_found", + "file_path_taken", + "file_storage_limit_reached", + "store_limit_reached", + "store_document_limit_reached", + "store_bytes_limit_reached", + "store_not_configured", + "store_document_version_conflict", + "store_document_deleted", + "entitlement_override_exists", + "hosted_apis_not_in_plan", + "skills_not_in_plan", + "voice_agents_not_in_plan", + "skill_in_use", + "skill_tool_name_conflict", + "skill_limit_reached", + "agent_skill_limit_reached", + "hosted_api_slug_taken", + "api_route_conflict", + "mount_plan_changed", + "route_output_unavailable", + "route_run_timeout", + "route_run_failed", + "route_run_limit_reached", + "route_read_limit_reached", + "route_write_limit_reached", + "hosted_api_public_refused", + "route_tool_not_readable", + "route_tool_unavailable", + "route_upstream_rate_limited", + "route_upstream_error", + "hosted_mcp_not_enabled", + "hosted_api_busy", + "conversation_not_found", + "phone_number_not_found", + "sip_trunk_not_found", + "voice_not_found", + "audio_asset_not_found", + "builtin_not_found", + "batch_not_found", + "agent_test_not_found", + "workspace_not_found", + "invite_not_found", + "project_not_found", + "cross_project_reference", + "project_has_scoped_credentials", + "project_not_empty", + "project_limit_reached", + "agent_limit_reached", + "project_too_large_to_promote", + "call_not_found", + "message_not_found", + "thread_not_found", + "call_not_active", + "relay_displaces_agent", + "brain_not_found", + "brain_in_use", + "custom_model_not_found", + "custom_model_in_use", + "insufficient_scope", + "purchased_numbers_not_included", + "phone_number_quota_reached", + "batch_calls_not_included", + "voice_cloning_not_included", + "voice_cloning_unavailable_in_region", + "consent_challenge_not_found", + "consent_challenge_expired", + "consent_challenge_already_used", + "consent_phrase_mismatch", + "consent_speaker_mismatch", + "consent_recording_unusable", + "consent_verification_unavailable", + "consent_verification_required", + "watermark_audio_unusable", + "watermark_detection_unavailable", + "workspace_last_owner", + "workspace_last_workspace", + "account_deletion_blocked", + "workspace_free_limit", + "workspace_single_owner", + "invite_email_mismatch", + "invite_already_pending", + "service_account_limit_reached", + "service_accounts_not_in_plan", + "speech_marks_unsupported", + "pronunciations_unsupported", + "model_retired", + "too_many_voices", + "content_policy_violation", + "safety_identifier_blocked", + "topup_not_in_plan", + "credit_purchase_unpaid", + "credit_purchase_payment_in_progress", + "tool_config_shared", + "spend_cap_exceeded", + "spend_budget_exceeded", + "project_spend_limit_exceeded", + "project_archived", + "project_not_archived", + "project_not_purged", + "project_restore_window_expired", + "project_name_taken", + "funded_balance_required", + "agent_publish_gate_failed", + "agent_publish_gate_required", + "agent_publish_gate_unavailable", + "agent_publish_gate_tool_unreachable", + "text_channel_not_in_plan", + "channel_not_in_plan", + "text_turn_failed", + "conversation_turn_in_progress", + "conversation_closed", + "conversation_not_reachable", + "conversation_channel_bound", + "conversation_prompt_not_found", + "text_message_quota_exceeded", + "durable_runs_not_in_plan", + "tool_transport_unsupported", + "agent_config_too_large", + "agent_run_not_pending", + "agent_run_action_stale", + "share_link_not_found", + "share_link_exhausted", + "share_link_limit_reached", + "destination_not_allowed", + "international_dialing_not_enabled", + "number_not_sms_capable", + "verification_required", + "intended_use_required", + ], + typing.Any, +] diff --git a/src/speechify/audio/types/speech_error_type.py b/src/speechify/audio/types/speech_error_type.py new file mode 100644 index 0000000..7499de4 --- /dev/null +++ b/src/speechify/audio/types/speech_error_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SpeechErrorType = typing.Union[typing.Literal["speech.error"], typing.Any] diff --git a/src/speechify/audio/types/speech_flushed.py b/src/speechify/audio/types/speech_flushed.py new file mode 100644 index 0000000..24b9908 --- /dev/null +++ b/src/speechify/audio/types/speech_flushed.py @@ -0,0 +1,24 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .speech_flushed_type import SpeechFlushedType + + +class SpeechFlushed(UniversalBaseModel): + """ + Server event on GET /v1/audio/stream/ws: the audio for everything sent before an input.flush has been sent. One arrives for every input.flush, in order. + """ + + type: SpeechFlushedType + + 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/audio/types/speech_flushed_type.py b/src/speechify/audio/types/speech_flushed_type.py new file mode 100644 index 0000000..aa71b24 --- /dev/null +++ b/src/speechify/audio/types/speech_flushed_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +SpeechFlushedType = typing.Union[typing.Literal["speech.flushed"], typing.Any] diff --git a/src/speechify/audio/watermark/__init__.py b/src/speechify/audio/watermark/__init__.py new file mode 100644 index 0000000..5cde020 --- /dev/null +++ b/src/speechify/audio/watermark/__init__.py @@ -0,0 +1,4 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + diff --git a/src/speechify/audio/watermark/client.py b/src/speechify/audio/watermark/client.py new file mode 100644 index 0000000..5730bc6 --- /dev/null +++ b/src/speechify/audio/watermark/client.py @@ -0,0 +1,269 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ... import core +from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ...core.request_options import RequestOptions +from ...types.watermark_detection_response import WatermarkDetectionResponse +from ...types.watermark_verification_response import WatermarkVerificationResponse +from .raw_client import AsyncRawWatermarkClient, RawWatermarkClient + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class WatermarkClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawWatermarkClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawWatermarkClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawWatermarkClient + """ + return self._raw_client + + def detect( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> WatermarkDetectionResponse: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WatermarkDetectionResponse + The clip was checked. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.audio.watermark.detect() + """ + _response = self._raw_client.detect(audio=audio, request_options=request_options) + return _response.data + + def verify( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> WatermarkVerificationResponse: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WatermarkVerificationResponse + The clip was checked. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.audio.watermark.verify() + """ + _response = self._raw_client.verify(audio=audio, request_options=request_options) + return _response.data + + +class AsyncWatermarkClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawWatermarkClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawWatermarkClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawWatermarkClient + """ + return self._raw_client + + async def detect( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> WatermarkDetectionResponse: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WatermarkDetectionResponse + The clip was checked. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.audio.watermark.detect() + + + asyncio.run(main()) + """ + _response = await self._raw_client.detect(audio=audio, request_options=request_options) + return _response.data + + async def verify( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> WatermarkVerificationResponse: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WatermarkVerificationResponse + The clip was checked. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.audio.watermark.verify() + + + asyncio.run(main()) + """ + _response = await self._raw_client.verify(audio=audio, request_options=request_options) + return _response.data diff --git a/src/speechify/audio/watermark/raw_client.py b/src/speechify/audio/watermark/raw_client.py new file mode 100644 index 0000000..af25200 --- /dev/null +++ b/src/speechify/audio/watermark/raw_client.py @@ -0,0 +1,648 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +from json.decoder import JSONDecodeError + +from ... import core +from ...core.api_error import ApiError +from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ...core.http_response import AsyncHttpResponse, HttpResponse +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.content_too_large_error import ContentTooLargeError +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 ...errors.unprocessable_entity_error import UnprocessableEntityError +from ...types.error import Error +from ...types.watermark_detection_response import WatermarkDetectionResponse +from ...types.watermark_verification_response import WatermarkVerificationResponse +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawWatermarkClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def detect( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[WatermarkDetectionResponse]: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[WatermarkDetectionResponse] + The clip was checked. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/audio/watermark/detect", + base_url=self._client_wrapper.get_environment().base, + method="POST", + data={}, + files={ + "audio": audio, + }, + request_options=request_options, + omit=OMIT, + force_multipart=True, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WatermarkDetectionResponse, + parse_obj_as( + type_=WatermarkDetectionResponse, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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 verify( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[WatermarkVerificationResponse]: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[WatermarkVerificationResponse] + The clip was checked. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/audio/watermark/verify", + base_url=self._client_wrapper.get_environment().base, + method="POST", + data={}, + files={ + "audio": audio, + }, + request_options=request_options, + omit=OMIT, + force_multipart=True, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WatermarkVerificationResponse, + parse_obj_as( + type_=WatermarkVerificationResponse, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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 AsyncRawWatermarkClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def detect( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[WatermarkDetectionResponse]: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[WatermarkDetectionResponse] + The clip was checked. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/audio/watermark/detect", + base_url=self._client_wrapper.get_environment().base, + method="POST", + data={}, + files={ + "audio": audio, + }, + request_options=request_options, + omit=OMIT, + force_multipart=True, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WatermarkDetectionResponse, + parse_obj_as( + type_=WatermarkDetectionResponse, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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 verify( + self, *, audio: core.File, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[WatermarkVerificationResponse]: + """ + 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. + + Parameters + ---------- + audio : core.File + See core.File for more documentation + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[WatermarkVerificationResponse] + The clip was checked. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/audio/watermark/verify", + base_url=self._client_wrapper.get_environment().base, + method="POST", + data={}, + files={ + "audio": audio, + }, + request_options=request_options, + omit=OMIT, + force_multipart=True, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WatermarkVerificationResponse, + parse_obj_as( + type_=WatermarkVerificationResponse, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 413: + raise ContentTooLargeError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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/client.py b/src/speechify/client.py index 4c47cb4..3c20890 100644 --- a/src/speechify/client.py +++ b/src/speechify/client.py @@ -6,7 +6,6 @@ import typing import httpx -from .core.api_error import ApiError from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from .core.logging import LogConfig, Logger from .environment import SpeechifyEnvironment @@ -14,7 +13,10 @@ if typing.TYPE_CHECKING: from .audio.client import AsyncAudioClient, AudioClient from .models.client import AsyncModelsClient, ModelsClient + from .projects.client import AsyncProjectsClient, ProjectsClient from .voices.client import AsyncVoicesClient, VoicesClient + from .webhooks.client import AsyncWebhooksClient, WebhooksClient + from .workspaces.client import AsyncWorkspacesClient, WorkspacesClient class Speechify: @@ -23,9 +25,6 @@ class Speechify: Parameters ---------- - base_url : typing.Optional[str] - The base url to use for requests from the client. - environment : SpeechifyEnvironment The environment to use for requests from the client. from .environment import SpeechifyEnvironment @@ -46,6 +45,12 @@ class Speechify: max_retries : typing.Optional[int] The default maximum number of retries for failed requests. Defaults to 2. Per-request `max_retries` in `request_options` takes precedence over this value. + stream_reconnection_enabled : typing.Optional[bool] + Whether to automatically reconnect on stream disconnection for resumable streaming endpoints. Defaults to True. Per-request `stream_reconnection_enabled` in `request_options` takes precedence over this value. + + max_stream_reconnection_attempts : typing.Optional[int] + The maximum number of reconnection attempts for resumable streaming endpoints. Defaults to no limit. Per-request `max_stream_reconnection_attempts` in `request_options` takes precedence over this value. + follow_redirects : typing.Optional[bool] Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in. @@ -60,7 +65,7 @@ class Speechify: from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) """ @@ -68,27 +73,23 @@ class Speechify: def __init__( self, *, - base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-13", - token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), + version: typing.Optional[str] = "2026-09-30", + token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, timeout: typing.Optional[float] = None, max_retries: typing.Optional[int] = None, + stream_reconnection_enabled: typing.Optional[bool] = None, + max_stream_reconnection_attempts: typing.Optional[int] = None, follow_redirects: typing.Optional[bool] = True, httpx_client: typing.Optional[httpx.Client] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, ): - _defaulted_timeout = ( - timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read - ) + _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None _defaulted_max_retries = max_retries if max_retries is not None else 2 - if token is None: - raise ApiError( - body="The client must be instantiated be either passing in token or setting SPEECHIFY_API_KEY" - ) + token = token if token is not None else os.getenv("SPEECHIFY_API_KEY") self._client_wrapper = SyncClientWrapper( - base_url=_get_base_url(base_url=base_url, environment=environment), + environment=environment, version=version, token=token, headers=headers, @@ -99,11 +100,16 @@ def __init__( else httpx.Client(timeout=_defaulted_timeout), timeout=_defaulted_timeout, max_retries=_defaulted_max_retries, + stream_reconnection_enabled=stream_reconnection_enabled, + max_stream_reconnection_attempts=max_stream_reconnection_attempts, logging=logging, ) self._audio: typing.Optional[AudioClient] = None self._models: typing.Optional[ModelsClient] = None self._voices: typing.Optional[VoicesClient] = None + self._projects: typing.Optional[ProjectsClient] = None + self._workspaces: typing.Optional[WorkspacesClient] = None + self._webhooks: typing.Optional[WebhooksClient] = None @property def audio(self): @@ -129,6 +135,30 @@ def voices(self): self._voices = VoicesClient(client_wrapper=self._client_wrapper) return self._voices + @property + def projects(self): + if self._projects is None: + from .projects.client import ProjectsClient # noqa: E402 + + self._projects = ProjectsClient(client_wrapper=self._client_wrapper) + return self._projects + + @property + def workspaces(self): + if self._workspaces is None: + from .workspaces.client import WorkspacesClient # noqa: E402 + + self._workspaces = WorkspacesClient(client_wrapper=self._client_wrapper) + return self._workspaces + + @property + def webhooks(self): + if self._webhooks is None: + from .webhooks.client import WebhooksClient # noqa: E402 + + self._webhooks = WebhooksClient(client_wrapper=self._client_wrapper) + return self._webhooks + def _make_default_async_client( timeout: typing.Optional[float], @@ -154,9 +184,6 @@ class AsyncSpeechify: Parameters ---------- - base_url : typing.Optional[str] - The base url to use for requests from the client. - environment : SpeechifyEnvironment The environment to use for requests from the client. from .environment import SpeechifyEnvironment @@ -180,6 +207,12 @@ class AsyncSpeechify: max_retries : typing.Optional[int] The default maximum number of retries for failed requests. Defaults to 2. Per-request `max_retries` in `request_options` takes precedence over this value. + stream_reconnection_enabled : typing.Optional[bool] + Whether to automatically reconnect on stream disconnection for resumable streaming endpoints. Defaults to True. Per-request `stream_reconnection_enabled` in `request_options` takes precedence over this value. + + max_stream_reconnection_attempts : typing.Optional[int] + The maximum number of reconnection attempts for resumable streaming endpoints. Defaults to no limit. Per-request `max_stream_reconnection_attempts` in `request_options` takes precedence over this value. + follow_redirects : typing.Optional[bool] Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in. @@ -194,7 +227,7 @@ class AsyncSpeechify: from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) """ @@ -202,28 +235,24 @@ class AsyncSpeechify: def __init__( self, *, - base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment = SpeechifyEnvironment.DEFAULT, - version: typing.Optional[str] = "2026-09-13", - token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("SPEECHIFY_API_KEY"), + version: typing.Optional[str] = "2026-09-30", + token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, timeout: typing.Optional[float] = None, max_retries: typing.Optional[int] = None, + stream_reconnection_enabled: typing.Optional[bool] = None, + max_stream_reconnection_attempts: typing.Optional[int] = None, follow_redirects: typing.Optional[bool] = True, httpx_client: typing.Optional[httpx.AsyncClient] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, ): - _defaulted_timeout = ( - timeout if timeout is not None else 60 if httpx_client is None else httpx_client.timeout.read - ) + _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None _defaulted_max_retries = max_retries if max_retries is not None else 2 - if token is None: - raise ApiError( - body="The client must be instantiated be either passing in token or setting SPEECHIFY_API_KEY" - ) + token = token if token is not None else os.getenv("SPEECHIFY_API_KEY") self._client_wrapper = AsyncClientWrapper( - base_url=_get_base_url(base_url=base_url, environment=environment), + environment=environment, version=version, token=token, headers=headers, @@ -233,11 +262,16 @@ def __init__( else _make_default_async_client(timeout=_defaulted_timeout, follow_redirects=follow_redirects), timeout=_defaulted_timeout, max_retries=_defaulted_max_retries, + stream_reconnection_enabled=stream_reconnection_enabled, + max_stream_reconnection_attempts=max_stream_reconnection_attempts, logging=logging, ) self._audio: typing.Optional[AsyncAudioClient] = None self._models: typing.Optional[AsyncModelsClient] = None self._voices: typing.Optional[AsyncVoicesClient] = None + self._projects: typing.Optional[AsyncProjectsClient] = None + self._workspaces: typing.Optional[AsyncWorkspacesClient] = None + self._webhooks: typing.Optional[AsyncWebhooksClient] = None @property def audio(self): @@ -263,11 +297,26 @@ def voices(self): self._voices = AsyncVoicesClient(client_wrapper=self._client_wrapper) return self._voices + @property + def projects(self): + if self._projects is None: + from .projects.client import AsyncProjectsClient # noqa: E402 -def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SpeechifyEnvironment) -> str: - if base_url is not None: - return base_url - elif environment is not None: - return environment.value - else: - raise Exception("Please pass in either base_url or environment to construct the client") + self._projects = AsyncProjectsClient(client_wrapper=self._client_wrapper) + return self._projects + + @property + def workspaces(self): + if self._workspaces is None: + from .workspaces.client import AsyncWorkspacesClient # noqa: E402 + + self._workspaces = AsyncWorkspacesClient(client_wrapper=self._client_wrapper) + return self._workspaces + + @property + def webhooks(self): + if self._webhooks is None: + from .webhooks.client import AsyncWebhooksClient # noqa: E402 + + self._webhooks = AsyncWebhooksClient(client_wrapper=self._client_wrapper) + return self._webhooks diff --git a/src/speechify/core/client_wrapper.py b/src/speechify/core/client_wrapper.py index bd4a8a6..cb94db7 100644 --- a/src/speechify/core/client_wrapper.py +++ b/src/speechify/core/client_wrapper.py @@ -3,6 +3,7 @@ import typing import httpx +from ..environment import SpeechifyEnvironment from .http_client import AsyncHttpClient, HttpClient from .logging import LogConfig, Logger @@ -12,40 +13,47 @@ def __init__( self, *, version: typing.Optional[str] = None, - token: typing.Union[str, typing.Callable[[], str]], + token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - base_url: str, + environment: SpeechifyEnvironment, timeout: typing.Optional[float] = None, max_retries: int = 2, + stream_reconnection_enabled: typing.Optional[bool] = None, + max_stream_reconnection_attempts: typing.Optional[int] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, ): self._version = version self._token = token self._headers = headers - self._base_url = base_url + self._environment = environment self._timeout = timeout self._max_retries = max_retries + self._stream_reconnection_enabled = stream_reconnection_enabled + self._max_stream_reconnection_attempts = max_stream_reconnection_attempts self._logging = logging - def get_headers(self) -> typing.Dict[str, str]: + 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.0", + "User-Agent": "speechify-api/4.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.0", + "X-Fern-SDK-Version": "4.0.1", **(self.get_custom_headers() or {}), } if self._version is not None: headers["Speechify-Version"] = self._version - headers["Authorization"] = f"Bearer {self._get_token()}" + if include_token: + token = self._get_token() + if token is not None: + headers["Authorization"] = f"Bearer {token}" return headers - def _get_token(self) -> str: - if isinstance(self._token, str): + def _get_token(self) -> typing.Optional[str]: + if isinstance(self._token, str) or self._token is None: return self._token else: return self._token() @@ -53,8 +61,8 @@ def _get_token(self) -> str: def get_custom_headers(self) -> typing.Optional[typing.Dict[str, str]]: return self._headers - def get_base_url(self) -> str: - return self._base_url + def get_environment(self) -> SpeechifyEnvironment: + return self._environment def get_timeout(self) -> typing.Optional[float]: return self._timeout @@ -62,17 +70,25 @@ def get_timeout(self) -> typing.Optional[float]: def get_max_retries(self) -> int: return self._max_retries + def get_stream_reconnection_enabled(self) -> bool: + return self._stream_reconnection_enabled if self._stream_reconnection_enabled is not None else True + + def get_max_stream_reconnection_attempts(self) -> typing.Optional[int]: + return self._max_stream_reconnection_attempts + class SyncClientWrapper(BaseClientWrapper): def __init__( self, *, version: typing.Optional[str] = None, - token: typing.Union[str, typing.Callable[[], str]], + token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - base_url: str, + environment: SpeechifyEnvironment, timeout: typing.Optional[float] = None, max_retries: int = 2, + stream_reconnection_enabled: typing.Optional[bool] = None, + max_stream_reconnection_attempts: typing.Optional[int] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, httpx_client: httpx.Client, ): @@ -80,16 +96,17 @@ def __init__( version=version, token=token, headers=headers, - base_url=base_url, + environment=environment, timeout=timeout, max_retries=max_retries, + stream_reconnection_enabled=stream_reconnection_enabled, + max_stream_reconnection_attempts=max_stream_reconnection_attempts, logging=logging, ) self.httpx_client = HttpClient( httpx_client=httpx_client, base_headers=self.get_headers, base_timeout=self.get_timeout, - base_url=self.get_base_url, base_max_retries=self.get_max_retries(), logging_config=self._logging, ) @@ -100,11 +117,13 @@ def __init__( self, *, version: typing.Optional[str] = None, - token: typing.Union[str, typing.Callable[[], str]], + token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, - base_url: str, + environment: SpeechifyEnvironment, timeout: typing.Optional[float] = None, max_retries: int = 2, + stream_reconnection_enabled: typing.Optional[bool] = None, + max_stream_reconnection_attempts: typing.Optional[int] = None, logging: typing.Optional[typing.Union[LogConfig, Logger]] = None, async_token: typing.Optional[typing.Callable[[], typing.Awaitable[str]]] = None, httpx_client: httpx.AsyncClient, @@ -113,9 +132,11 @@ def __init__( version=version, token=token, headers=headers, - base_url=base_url, + environment=environment, timeout=timeout, max_retries=max_retries, + stream_reconnection_enabled=stream_reconnection_enabled, + max_stream_reconnection_attempts=max_stream_reconnection_attempts, logging=logging, ) self._async_token = async_token @@ -123,14 +144,13 @@ def __init__( httpx_client=httpx_client, base_headers=self.get_headers, base_timeout=self.get_timeout, - base_url=self.get_base_url, base_max_retries=self.get_max_retries(), async_base_headers=self.async_get_headers, logging_config=self._logging, ) async def async_get_headers(self) -> typing.Dict[str, str]: - headers = self.get_headers() + headers = self.get_headers(include_token=self._async_token is None) if self._async_token is not None: token = await self._async_token() headers["Authorization"] = f"Bearer {token}" diff --git a/src/speechify/core/http_client.py b/src/speechify/core/http_client.py index f686c57..e802c78 100644 --- a/src/speechify/core/http_client.py +++ b/src/speechify/core/http_client.py @@ -3,6 +3,7 @@ import asyncio import email.utils import re +import socket import time import typing from contextlib import asynccontextmanager, contextmanager @@ -23,6 +24,82 @@ JITTER_FACTOR = 0.2 # 20% random jitter +def get_keepalive_socket_options( + idle: int = 60, + intvl: int = 30, + cnt: int = 5, +) -> typing.List[typing.Tuple[int, int, int]]: + """ + Build TCP keepalive socket options for the current platform. + + Keepalive probes keep otherwise-idle connections alive so that long, + non-streaming requests survive idle-connection reaping by a firewall, + load balancer, or NAT. The available socket constants are OS-dependent, + so each option is guarded and only emitted when the platform defines it: + + - ``SO_KEEPALIVE`` is portable (Linux/macOS/Windows). + - The idle-before-first-probe knob is ``TCP_KEEPIDLE`` on Linux and modern + Windows, but ``TCP_KEEPALIVE`` on macOS. + - ``TCP_KEEPINTVL`` / ``TCP_KEEPCNT`` exist on Linux/macOS/modern Windows. + + Passing these tuples to ``httpx.HTTPTransport(socket_options=...)`` / + ``httpx.AsyncHTTPTransport(socket_options=...)`` applies them to every + connection the transport opens. + """ + opts: typing.List[typing.Tuple[int, int, int]] = [(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)] + idle_const = getattr(socket, "TCP_KEEPIDLE", None) or getattr(socket, "TCP_KEEPALIVE", None) + if idle_const: + opts.append((socket.IPPROTO_TCP, idle_const, idle)) + if hasattr(socket, "TCP_KEEPINTVL"): + opts.append((socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, intvl)) + if hasattr(socket, "TCP_KEEPCNT"): + opts.append((socket.IPPROTO_TCP, socket.TCP_KEEPCNT, cnt)) + return opts + + +def _get_environment_proxies() -> typing.Dict[str, typing.Optional[str]]: + # httpx skips HTTP(S)_PROXY / ALL_PROXY / NO_PROXY whenever a custom transport is + # passed, so the keepalive default rebuilds those env-derived mounts itself, using + # httpx's own resolver to keep identical semantics (incl. NO_PROXY bypass rules). + try: + from httpx._utils import get_environment_proxies + except (ImportError, AttributeError): + return {} + return get_environment_proxies() + + +def get_keepalive_proxy_mounts( + idle: int = 60, + intvl: int = 30, + cnt: int = 5, +) -> typing.Dict[str, typing.Optional[httpx.BaseTransport]]: + """ + Build ``httpx.Client(mounts=...)`` entries for the proxies configured in the environment, + each carrying the TCP keepalive socket options. ``None`` entries are NO_PROXY bypasses + that fall back to the client's default transport. + """ + socket_options = get_keepalive_socket_options(idle=idle, intvl=intvl, cnt=cnt) + return { + pattern: None if url is None else httpx.HTTPTransport(proxy=httpx.Proxy(url=url), socket_options=socket_options) + for pattern, url in _get_environment_proxies().items() + } + + +def get_async_keepalive_proxy_mounts( + idle: int = 60, + intvl: int = 30, + cnt: int = 5, +) -> typing.Dict[str, typing.Optional[httpx.AsyncBaseTransport]]: + """Async counterpart of ``get_keepalive_proxy_mounts`` for ``httpx.AsyncClient(mounts=...)``.""" + socket_options = get_keepalive_socket_options(idle=idle, intvl=intvl, cnt=cnt) + return { + pattern: None + if url is None + else httpx.AsyncHTTPTransport(proxy=httpx.Proxy(url=url), socket_options=socket_options) + for pattern, url in _get_environment_proxies().items() + } + + def _parse_retry_after(response_headers: httpx.Headers) -> typing.Optional[float]: """ This function parses the `Retry-After` header in a HTTP response and returns the number of seconds to wait. @@ -32,9 +109,12 @@ def _parse_retry_after(response_headers: httpx.Headers) -> typing.Optional[float retry_after_ms = response_headers.get("retry-after-ms") if retry_after_ms is not None: try: - return int(retry_after_ms) / 1000 if retry_after_ms > 0 else 0 - except Exception: + retry_after_ms_value = float(retry_after_ms) + except ValueError: pass + else: + if 0 < retry_after_ms_value < float("inf"): + return retry_after_ms_value / 1000 retry_after = response_headers.get("retry-after") if retry_after is None: @@ -150,8 +230,33 @@ def _should_retry(response: httpx.Response) -> bool: ) +_AUTH_HEADERS: typing.FrozenSet[str] = frozenset() + + def _redact_headers(headers: typing.Dict[str, str]) -> typing.Dict[str, str]: - return {k: ("[REDACTED]" if k.lower() in _SENSITIVE_HEADERS else v) for k, v in headers.items()} + return { + k: ("[REDACTED]" if k.lower() in _SENSITIVE_HEADERS or k.lower() in _AUTH_HEADERS else v) + for k, v in headers.items() + } + + +def _merge_headers(*header_dicts: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Dict[str, typing.Any]: + """ + Merge header dicts left to right. Header names are case-insensitive, so a later + `x-api-key` replaces an earlier `X-API-Key` instead of producing two headers. + """ + merged: typing.Dict[str, typing.Any] = {} + keys_by_lower: typing.Dict[str, str] = {} + for header_dict in header_dicts: + if not header_dict: + continue + for key, value in header_dict.items(): + existing_key = keys_by_lower.get(key.lower()) + if existing_key is not None: + del merged[existing_key] + keys_by_lower[key.lower()] = key + merged[key] = value + return merged def _build_url(base_url: str, path: typing.Optional[str]) -> str: @@ -238,7 +343,16 @@ def get_request_body( data: typing.Optional[typing.Any], request_options: typing.Optional[RequestOptions], omit: typing.Optional[typing.Any], + optional_body: bool = False, ) -> typing.Tuple[typing.Optional[typing.Any], typing.Optional[typing.Any]]: + # A whole body left at the sentinel was never passed by the caller, so it is absent + # rather than empty: the request carries no content and no `Content-Type`. + if omit is not None: + if json is omit: + json = None + if data is omit: + data = None + json_body = None data_body = None if data is not None: @@ -254,14 +368,36 @@ def get_request_body( # Only collapse empty dict to None when the body was not explicitly provided # and there are no additional body parameters. This preserves explicit empty # bodies (e.g., when an endpoint has a request body type but all fields are optional). - if json_body == {} and json is None and not has_additional_body_parameters: + # `optional_body` marks an endpoint whose body the API does not require, where a body + # that ends up empty means the caller passed none of its properties, so the request is + # sent with no content and no `Content-Type`. + if json_body == {} and (json is None or optional_body) and not has_additional_body_parameters: json_body = None - if data_body == {} and data is None and not has_additional_body_parameters: + if data_body == {} and (data is None or optional_body) and not has_additional_body_parameters: data_body = None return json_body, data_body +def drop_content_type_without_body( + headers: typing.Dict[str, typing.Any], + *, + json_body: typing.Optional[typing.Any], + data_body: typing.Optional[typing.Any], + optional_body: bool, +) -> typing.Dict[str, typing.Any]: + """Strip ``Content-Type`` from a request that carries no body. + + ``get_request_body`` drops the body of an ``optional_body`` endpoint when the caller + supplied none of it, but the endpoint still passes the content type it would have used. + A request that sends nothing must not advertise a media type, so a server that branches + on the header sees a bodyless call for what it is. + """ + if not optional_body or json_body is not None or data_body is not None: + return headers + return {key: value for key, value in headers.items() if key.lower() != "content-type"} + + class HttpClient: def __init__( self, @@ -309,16 +445,22 @@ def request( request_options: typing.Optional[RequestOptions] = None, retries: int = 0, omit: typing.Optional[typing.Any] = None, + optional_body: bool = False, force_multipart: typing.Optional[bool] = None, ) -> httpx.Response: base_url = self.get_base_url(base_url) - timeout = ( - request_options.get("timeout_in_seconds") + _timeout = ( + request_options.get("timeout") + if request_options is not None and request_options.get("timeout") is not None + else request_options.get("timeout_in_seconds") if request_options is not None and request_options.get("timeout_in_seconds") is not None else self.base_timeout() ) + timeout = _timeout if _timeout is not None else httpx.USE_CLIENT_DEFAULT - json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + json_body, data_body = get_request_body( + json=json, data=data, request_options=request_options, omit=omit, optional_body=optional_body + ) request_files: typing.Optional[RequestFiles] = ( convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) @@ -354,13 +496,16 @@ def request( _request_url = _build_url(base_url, path) _request_headers = jsonable_encoder( remove_none_from_dict( - { - **self.base_headers(), - **(headers if headers is not None else {}), - **(request_options.get("additional_headers", {}) or {} if request_options is not None else {}), - } + _merge_headers( + self.base_headers(), + headers, + request_options.get("additional_headers") if request_options is not None else None, + ) ) ) + _request_headers = drop_content_type_without_body( + _request_headers, json_body=json_body, data_body=data_body, optional_body=optional_body + ) if self.logger.is_debug(): self.logger.debug( @@ -389,7 +534,12 @@ def request( files=request_files, timeout=timeout, ) - except (httpx.ConnectError, httpx.RemoteProtocolError): + except (httpx.ConnectError, httpx.RemoteProtocolError) as error: + # A protocol error may occur after the server applied the request, even while reading a 200 body. + if isinstance(error, httpx.RemoteProtocolError) and not ( + request_options is not None and request_options.get("retry_remote_protocol_errors", False) + ): + raise if retries < max_retries: time.sleep(_retry_timeout_from_retries(retries=retries)) return self.request( @@ -469,14 +619,18 @@ def stream( request_options: typing.Optional[RequestOptions] = None, retries: int = 0, omit: typing.Optional[typing.Any] = None, + optional_body: bool = False, force_multipart: typing.Optional[bool] = None, ) -> typing.Iterator[httpx.Response]: base_url = self.get_base_url(base_url) - timeout = ( - request_options.get("timeout_in_seconds") + _timeout = ( + request_options.get("timeout") + if request_options is not None and request_options.get("timeout") is not None + else request_options.get("timeout_in_seconds") if request_options is not None and request_options.get("timeout_in_seconds") is not None else self.base_timeout() ) + timeout = _timeout if _timeout is not None else httpx.USE_CLIENT_DEFAULT request_files: typing.Optional[RequestFiles] = ( convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) @@ -487,7 +641,9 @@ def stream( if (request_files is None or len(request_files) == 0) and force_multipart: request_files = FORCE_MULTIPART - json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + json_body, data_body = get_request_body( + json=json, data=data, request_options=request_options, omit=omit, optional_body=optional_body + ) data_body = _maybe_filter_none_from_multipart_data(data_body, request_files, force_multipart) @@ -514,13 +670,16 @@ def stream( _request_url = _build_url(base_url, path) _request_headers = jsonable_encoder( remove_none_from_dict( - { - **self.base_headers(), - **(headers if headers is not None else {}), - **(request_options.get("additional_headers", {}) if request_options is not None else {}), - } + _merge_headers( + self.base_headers(), + headers, + request_options.get("additional_headers") if request_options is not None else None, + ) ) ) + _request_headers = drop_content_type_without_body( + _request_headers, json_body=json_body, data_body=data_body, optional_body=optional_body + ) if self.logger.is_debug(): self.logger.debug( @@ -598,14 +757,18 @@ async def request( request_options: typing.Optional[RequestOptions] = None, retries: int = 0, omit: typing.Optional[typing.Any] = None, + optional_body: bool = False, force_multipart: typing.Optional[bool] = None, ) -> httpx.Response: base_url = self.get_base_url(base_url) - timeout = ( - request_options.get("timeout_in_seconds") + _timeout = ( + request_options.get("timeout") + if request_options is not None and request_options.get("timeout") is not None + else request_options.get("timeout_in_seconds") if request_options is not None and request_options.get("timeout_in_seconds") is not None else self.base_timeout() ) + timeout = _timeout if _timeout is not None else httpx.USE_CLIENT_DEFAULT request_files: typing.Optional[RequestFiles] = ( convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) @@ -616,7 +779,9 @@ async def request( if (request_files is None or len(request_files) == 0) and force_multipart: request_files = FORCE_MULTIPART - json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + json_body, data_body = get_request_body( + json=json, data=data, request_options=request_options, omit=omit, optional_body=optional_body + ) data_body = _maybe_filter_none_from_multipart_data(data_body, request_files, force_multipart) @@ -646,13 +811,16 @@ async def request( _request_url = _build_url(base_url, path) _request_headers = jsonable_encoder( remove_none_from_dict( - { - **_headers, - **(headers if headers is not None else {}), - **(request_options.get("additional_headers", {}) or {} if request_options is not None else {}), - } + _merge_headers( + _headers, + headers, + request_options.get("additional_headers") if request_options is not None else None, + ) ) ) + _request_headers = drop_content_type_without_body( + _request_headers, json_body=json_body, data_body=data_body, optional_body=optional_body + ) if self.logger.is_debug(): self.logger.debug( @@ -681,7 +849,12 @@ async def request( files=request_files, timeout=timeout, ) - except (httpx.ConnectError, httpx.RemoteProtocolError): + except (httpx.ConnectError, httpx.RemoteProtocolError) as error: + # A protocol error may occur after the server applied the request, even while reading a 200 body. + if isinstance(error, httpx.RemoteProtocolError) and not ( + request_options is not None and request_options.get("retry_remote_protocol_errors", False) + ): + raise if retries < max_retries: await asyncio.sleep(_retry_timeout_from_retries(retries=retries)) return await self.request( @@ -761,14 +934,18 @@ async def stream( request_options: typing.Optional[RequestOptions] = None, retries: int = 0, omit: typing.Optional[typing.Any] = None, + optional_body: bool = False, force_multipart: typing.Optional[bool] = None, ) -> typing.AsyncIterator[httpx.Response]: base_url = self.get_base_url(base_url) - timeout = ( - request_options.get("timeout_in_seconds") + _timeout = ( + request_options.get("timeout") + if request_options is not None and request_options.get("timeout") is not None + else request_options.get("timeout_in_seconds") if request_options is not None and request_options.get("timeout_in_seconds") is not None else self.base_timeout() ) + timeout = _timeout if _timeout is not None else httpx.USE_CLIENT_DEFAULT request_files: typing.Optional[RequestFiles] = ( convert_file_dict_to_httpx_tuples(remove_omit_from_dict(remove_none_from_dict(files), omit)) @@ -779,7 +956,9 @@ async def stream( if (request_files is None or len(request_files) == 0) and force_multipart: request_files = FORCE_MULTIPART - json_body, data_body = get_request_body(json=json, data=data, request_options=request_options, omit=omit) + json_body, data_body = get_request_body( + json=json, data=data, request_options=request_options, omit=omit, optional_body=optional_body + ) data_body = _maybe_filter_none_from_multipart_data(data_body, request_files, force_multipart) @@ -809,13 +988,16 @@ async def stream( _request_url = _build_url(base_url, path) _request_headers = jsonable_encoder( remove_none_from_dict( - { - **_headers, - **(headers if headers is not None else {}), - **(request_options.get("additional_headers", {}) if request_options is not None else {}), - } + _merge_headers( + _headers, + headers, + request_options.get("additional_headers") if request_options is not None else None, + ) ) ) + _request_headers = drop_content_type_without_body( + _request_headers, json_body=json_body, data_body=data_body, optional_body=optional_body + ) if self.logger.is_debug(): self.logger.debug( diff --git a/src/speechify/core/http_response.py b/src/speechify/core/http_response.py index 00bb109..9aa1e18 100644 --- a/src/speechify/core/http_response.py +++ b/src/speechify/core/http_response.py @@ -24,6 +24,10 @@ def headers(self) -> Dict[str, str]: def status_code(self) -> int: return self._response.status_code + @property + def response(self) -> httpx.Response: + return self._response + class HttpResponse(Generic[T], BaseHttpResponse): """HTTP response wrapper that exposes response headers and data.""" diff --git a/src/speechify/core/http_sse/_api.py b/src/speechify/core/http_sse/_api.py index fd13730..9ca5602 100644 --- a/src/speechify/core/http_sse/_api.py +++ b/src/speechify/core/http_sse/_api.py @@ -2,9 +2,20 @@ import codecs import re +import time from contextlib import asynccontextmanager, contextmanager -from typing import Any, AsyncGenerator, AsyncIterator, Iterator - +from typing import ( + Any, + AsyncContextManager, + AsyncGenerator, + AsyncIterator, + Callable, + ContextManager, + Iterator, + Optional, +) + +import anyio import httpx from ._decoders import SSEDecoder from ._exceptions import SSEError @@ -12,21 +23,60 @@ MAX_LINE_SIZE: int = 1_048_576 # 1 MiB +# Reconnection defaults, mirroring the TypeScript SDK's Stream implementation. +DEFAULT_MAX_RECONNECTION_ATTEMPTS: int = 5 +DEFAULT_RECONNECT_DELAY_MS: int = 1_000 +MAX_RECONNECT_DELAY_MS: int = 30_000 + +# A reconnect callback re-issues the original request (with a ``Last-Event-ID`` +# header set to the supplied event id) and returns a *context manager* yielding +# a fresh streaming ``httpx.Response``. Sync clients supply a sync context +# manager; async clients supply an async one. class EventSource: - def __init__(self, response: httpx.Response) -> None: + def __init__( + self, + response: httpx.Response, + *, + resumable: bool = False, + stream_reconnection_enabled: bool = True, + max_stream_reconnection_attempts: Optional[int] = None, + stream_terminator: Optional[str] = None, + reconnect: Optional[Callable[[str], Any]] = None, + ) -> None: self._response = response + self._resumable = resumable + self._stream_reconnection_enabled = stream_reconnection_enabled + self._max_stream_reconnection_attempts = max_stream_reconnection_attempts + self._stream_terminator = stream_terminator + self._reconnect = reconnect + + @staticmethod + def _is_event_stream(response: httpx.Response) -> bool: + content_type = response.headers.get("content-type", "").partition(";")[0] + return "text/event-stream" in content_type def _check_content_type(self) -> None: - content_type = self._response.headers.get("content-type", "").partition(";")[0] - if "text/event-stream" not in content_type: + if not self._is_event_stream(self._response): + content_type = self._response.headers.get("content-type", "").partition(";")[0] raise SSEError( f"Expected response header Content-Type to contain 'text/event-stream', got {content_type!r}" ) - def _get_charset(self) -> str: + def _is_reconnect_response_usable(self, response: httpx.Response) -> bool: + """Whether a reconnected response can be resumed as an SSE stream. + + ``httpx.stream`` does not raise on non-success status, so a resume that + returns an error page (e.g. ``200 text/html`` or a ``500`` body) would + otherwise be parsed as SSE and yield garbage/zero events. Such a + response is treated as a failed attempt (back off and retry) instead. + """ + return response.status_code < 400 and self._is_event_stream(response) + + def _get_charset(self, response: Optional[httpx.Response] = None) -> str: """Extract charset from Content-Type header, fallback to UTF-8.""" - content_type = self._response.headers.get("content-type", "") + resolved = response if response is not None else self._response + content_type = resolved.headers.get("content-type", "") # Parse charset parameter using regex charset_match = re.search(r"charset=([^;\s]+)", content_type, re.IGNORECASE) @@ -60,14 +110,83 @@ def _normalize_sse_line_endings(buf: str) -> str: return buf[:-1].replace("\r", "\n") + "\r" return buf.replace("\r", "\n") - def iter_sse(self) -> Iterator[ServerSentEvent]: - self._check_content_type() - decoder = SSEDecoder() - charset = self._get_charset() - text_decoder = codecs.getincrementaldecoder(charset)(errors="replace") - + def _new_text_decoder(self, response: Optional[httpx.Response] = None) -> "codecs.IncrementalDecoder": + return codecs.getincrementaldecoder(self._get_charset(response))(errors="replace") + + def _reconnect_applicable(self) -> bool: + """Whether reconnection is configured for this stream at all. + + This is the terminator-gating half of the reconnect decision, kept + separate from :meth:`_should_reconnect` (which additionally requires a + last *dispatched* id and an unexhausted attempt budget). The split lets + a mid-stream transport error terminate consistently: + - a stream that can never reconnect (non-resumable, no terminator, + disabled, or no callback) must re-raise the error to the caller, so a + truncated stream is not mistaken for a clean completion; + - a resumable stream that has merely run out of attempts (or has no id + to resume from) ends cleanly — the same way an exhausted empty/error + -body resume already does, matching the TypeScript ``return``. + """ + return ( + self._resumable + and self._stream_terminator is not None + and self._stream_reconnection_enabled + and self._reconnect is not None + ) + + def _should_reconnect(self, last_dispatched_id: Optional[str], reconnect_attempts: int) -> bool: + """Decide whether a prematurely-ended stream should be reconnected. + + Mirrors the TypeScript ``shouldReconnect`` gating: + - only resumable SSE endpoints with a configured terminator, reconnect + enabled, and a reconnect callback are eligible (see + :meth:`_reconnect_applicable`); + - a last *dispatched* event id must exist to resume from; + - the consecutive-failed-attempt cap must not be exceeded. + """ + if not self._reconnect_applicable(): + return False + if not last_dispatched_id: + return False + max_attempts = ( + self._max_stream_reconnection_attempts + if self._max_stream_reconnection_attempts is not None + else DEFAULT_MAX_RECONNECTION_ATTEMPTS + ) + if reconnect_attempts >= max_attempts: + return False + return True + + def _reconnect_delay_seconds(self, last_retry: Optional[int]) -> float: + """Backoff before a reconnect. + + Uses the server's most recent ``retry:`` directive (milliseconds) when + present, otherwise a default of ``DEFAULT_RECONNECT_DELAY_MS``, clamped + to ``MAX_RECONNECT_DELAY_MS``. + """ + base_ms = last_retry if (last_retry is not None and last_retry > 0) else DEFAULT_RECONNECT_DELAY_MS + return min(base_ms, MAX_RECONNECT_DELAY_MS) / 1000.0 + + def _sleep_before_reconnect(self, last_retry: Optional[int]) -> None: + # ``time.sleep`` blocks the calling thread but remains interruptible by + # signals (e.g. ``KeyboardInterrupt``), which propagate out and abort + # the reconnect without issuing another request. + time.sleep(self._reconnect_delay_seconds(last_retry)) + + async def _asleep_before_reconnect(self, last_retry: Optional[int]) -> None: + # ``anyio.sleep`` is cancellation-aware: if the consumer cancels the task + # or closes the async generator mid-delay, this raises (and no further + # request is issued) instead of blocking for the whole interval. + await anyio.sleep(self._reconnect_delay_seconds(last_retry)) + + def _decode_response( + self, + response: httpx.Response, + decoder: SSEDecoder, + text_decoder: "codecs.IncrementalDecoder", + ) -> Iterator[ServerSentEvent]: buf = "" - for chunk in self._response.iter_bytes(): + for chunk in response.iter_bytes(): buf += text_decoder.decode(chunk) buf = self._normalize_sse_line_endings(buf) @@ -82,34 +201,16 @@ def iter_sse(self) -> Iterator[ServerSentEvent]: f"SSE line exceeded maximum size of {MAX_LINE_SIZE} characters without encountering a newline" ) - # Flush any remaining bytes from the incremental decoder - buf += text_decoder.decode(b"", final=True) - buf = buf.replace("\r\n", "\n").replace("\r", "\n") - - if len(buf) > MAX_LINE_SIZE: - raise SSEError( - f"SSE line exceeded maximum size of {MAX_LINE_SIZE} characters without encountering a newline" - ) - - while "\n" in buf: - line, buf = buf.split("\n", 1) - sse = decoder.decode(line) - if sse is not None: - yield sse - - if buf.strip(): - sse = decoder.decode(buf) - if sse is not None: - yield sse - - async def aiter_sse(self) -> AsyncGenerator[ServerSentEvent, None]: - self._check_content_type() - decoder = SSEDecoder() - charset = self._get_charset() - text_decoder = codecs.getincrementaldecoder(charset)(errors="replace") + yield from self._flush_decoder(buf, decoder, text_decoder) + async def _adecode_response( + self, + response: httpx.Response, + decoder: SSEDecoder, + text_decoder: "codecs.IncrementalDecoder", + ) -> AsyncGenerator[ServerSentEvent, None]: buf = "" - async for chunk in self._response.aiter_bytes(): + async for chunk in response.aiter_bytes(): buf += text_decoder.decode(chunk) buf = self._normalize_sse_line_endings(buf) @@ -124,6 +225,15 @@ async def aiter_sse(self) -> AsyncGenerator[ServerSentEvent, None]: f"SSE line exceeded maximum size of {MAX_LINE_SIZE} characters without encountering a newline" ) + for sse in self._flush_decoder(buf, decoder, text_decoder): + yield sse + + def _flush_decoder( + self, + buf: str, + decoder: SSEDecoder, + text_decoder: "codecs.IncrementalDecoder", + ) -> Iterator[ServerSentEvent]: # Flush any remaining bytes from the incremental decoder buf += text_decoder.decode(b"", final=True) buf = buf.replace("\r\n", "\n").replace("\r", "\n") @@ -144,6 +254,181 @@ async def aiter_sse(self) -> AsyncGenerator[ServerSentEvent, None]: if sse is not None: yield sse + def iter_sse(self) -> Iterator[ServerSentEvent]: + self._check_content_type() + decoder = SSEDecoder() + text_decoder = self._new_text_decoder() + + last_dispatched_id: Optional[str] = None + last_retry: Optional[int] = None + # Consecutive failed reconnection attempts. Reset to 0 whenever an event + # is successfully dispatched (reset-on-progress) — matching browser + # `EventSource` semantics: a server that emits >=1 event then drops on + # every connection can reconnect indefinitely. + reconnect_attempts = 0 + + # ``None`` means there is no live stream to read this iteration (e.g. a + # failed reconnect); the loop then re-evaluates the reconnect decision + # without re-reading an exhausted response. + response: Optional[httpx.Response] = self._response + # Context manager for a response we opened ourselves and must close. + # The initial response is owned by the caller, so it starts as None. + owned_cm: Optional[ContextManager[httpx.Response]] = None + try: + while True: + if response is not None: + events = self._decode_response(response, decoder, text_decoder) + while True: + try: + sse = next(events) + except StopIteration: + break + except SSEError: + # A protocol violation (e.g. an oversized line) is a + # genuine error, not a dropped connection; propagate it. + # Listed first because ``SSEError`` subclasses + # ``httpx.TransportError``. + raise + except httpx.TransportError: + # A transport error mid-stream (e.g. the server dropped + # the connection: ``ReadError``/``RemoteProtocolError``) + # is a premature end. Only swallow it when reconnection + # is configured for this stream; otherwise re-raise so a + # non-resumable stream still surfaces the error to the + # caller instead of looking like a clean completion. + # When reconnection is applicable but the attempt budget + # is exhausted, we ``break`` and end cleanly below — the + # same way an exhausted empty/error-body resume does, so + # give-up is consistent regardless of failure shape. + # ``next`` is used rather than ``for`` so this cannot + # swallow a ``GeneratorExit`` raised at a ``yield``. + if not self._reconnect_applicable(): + raise + break + yield sse + if sse.id: + last_dispatched_id = sse.id + if sse.retry is not None: + last_retry = sse.retry + reconnect_attempts = 0 + + if not self._should_reconnect(last_dispatched_id, reconnect_attempts): + return + reconnect_attempts += 1 + + self._sleep_before_reconnect(last_retry) + + # Close the previously-opened reconnect response before opening + # a new one so we never hold more than one extra connection. + if owned_cm is not None: + owned_cm.__exit__(None, None, None) + owned_cm = None + + assert self._reconnect is not None # guaranteed by _should_reconnect + try: + cm: ContextManager[httpx.Response] = self._reconnect(last_dispatched_id or "") + new_response = cm.__enter__() + except Exception: + # A failed reconnect consumes an attempt; back off and retry. + response = None + continue + owned_cm = cm + if new_response is None or not self._is_reconnect_response_usable(new_response): + # Null/empty body or a non-SSE/error response (e.g. 204/304, + # a 500, or an HTML error page): treat as a failed attempt. + response = None + continue + + response = new_response + # Drop any partial event left over from the dropped stream, but + # keep the last event id (per the SSE spec) and start a fresh + # incremental text decoder for the new connection. + decoder.reset_in_progress_event() + text_decoder = self._new_text_decoder(new_response) + finally: + if owned_cm is not None: + owned_cm.__exit__(None, None, None) + + async def aiter_sse(self) -> AsyncGenerator[ServerSentEvent, None]: + self._check_content_type() + decoder = SSEDecoder() + text_decoder = self._new_text_decoder() + + last_dispatched_id: Optional[str] = None + last_retry: Optional[int] = None + reconnect_attempts = 0 + + response: Optional[httpx.Response] = self._response + owned_cm: Optional[AsyncContextManager[httpx.Response]] = None + try: + while True: + if response is not None: + events = self._adecode_response(response, decoder, text_decoder) + while True: + try: + sse = await events.__anext__() + except StopAsyncIteration: + break + except SSEError: + # A protocol violation (e.g. an oversized line) is a + # genuine error, not a dropped connection; propagate it. + # Listed first because ``SSEError`` subclasses + # ``httpx.TransportError``. + raise + except httpx.TransportError: + # A transport error mid-stream (e.g. the server dropped + # the connection: ``ReadError``/``RemoteProtocolError``) + # is a premature end. Only swallow it when reconnection + # is configured for this stream; otherwise re-raise so a + # non-resumable stream still surfaces the error to the + # caller instead of looking like a clean completion. + # When reconnection is applicable but the attempt budget + # is exhausted, we ``break`` and end cleanly below — the + # same way an exhausted empty/error-body resume does, so + # give-up is consistent regardless of failure shape. + if not self._reconnect_applicable(): + raise + break + yield sse + if sse.id: + last_dispatched_id = sse.id + if sse.retry is not None: + last_retry = sse.retry + reconnect_attempts = 0 + + if not self._should_reconnect(last_dispatched_id, reconnect_attempts): + return + reconnect_attempts += 1 + + await self._asleep_before_reconnect(last_retry) + + if owned_cm is not None: + await owned_cm.__aexit__(None, None, None) + owned_cm = None + + assert self._reconnect is not None # guaranteed by _should_reconnect + try: + cm: AsyncContextManager[httpx.Response] = self._reconnect(last_dispatched_id or "") + new_response = await cm.__aenter__() + except Exception: + response = None + continue + owned_cm = cm + if new_response is None or not self._is_reconnect_response_usable(new_response): + response = None + continue + + response = new_response + decoder.reset_in_progress_event() + text_decoder = self._new_text_decoder(new_response) + finally: + if owned_cm is not None: + # Shield the close so a cancellation delivered while reading a + # reconnected response still fully tears the connection down + # instead of leaking it until the client is closed. + with anyio.CancelScope(shield=True): + await owned_cm.__aexit__(None, None, None) + @contextmanager def connect_sse(client: httpx.Client, method: str, url: str, **kwargs: Any) -> Iterator[EventSource]: diff --git a/src/speechify/core/http_sse/_decoders.py b/src/speechify/core/http_sse/_decoders.py index 339b089..1f6b35e 100644 --- a/src/speechify/core/http_sse/_decoders.py +++ b/src/speechify/core/http_sse/_decoders.py @@ -12,6 +12,19 @@ def __init__(self) -> None: self._last_event_id = "" self._retry: Optional[int] = None + def reset_in_progress_event(self) -> None: + """Discard any partially-parsed (undispatched) event. + + Used when a stream ends mid-event before reconnecting: the buffered + ``event``/``data``/``retry`` fields of the never-dispatched event must + be dropped so they do not corrupt the first event of the reconnected + stream. Per the SSE spec the last event id is *not* reset here — it + persists across connections. + """ + self._event = "" + self._data = [] + self._retry = None + def decode(self, line: str) -> Optional[ServerSentEvent]: # See: https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation # noqa: E501 diff --git a/src/speechify/core/jsonable_encoder.py b/src/speechify/core/jsonable_encoder.py index 5b0902e..2608ce6 100644 --- a/src/speechify/core/jsonable_encoder.py +++ b/src/speechify/core/jsonable_encoder.py @@ -15,6 +15,7 @@ from pathlib import PurePath from types import GeneratorType from typing import Any, Callable, Dict, List, Optional, Set, Union +from urllib.parse import quote, unquote import pydantic from .datetime_utils import serialize_datetime @@ -117,4 +118,28 @@ def encode_path_param(obj: Any) -> str: """ if isinstance(obj, bool): return "true" if obj else "false" - return str(jsonable_encoder(obj)) + value = str(jsonable_encoder(obj)) + # The value is not percent-encoded here, so check every segment it would add to the path. + for segment in unquote(value).split("/"): + _reject_dot_segment(segment) + return value + + +def quote_path_param(obj: Any) -> str: + """Encode a value for use in a URL path segment, percent-encoding it. + + Same as encode_path_param, except the result is percent-encoded so + that a value containing "/" or ".." cannot change which endpoint + the request resolves to. + """ + if isinstance(obj, bool): + return "true" if obj else "false" + value = str(jsonable_encoder(obj)) + _reject_dot_segment(value) + return quote(value, safe="") + + +def _reject_dot_segment(value: str) -> None: + # "." and ".." are dot-segments that HTTP clients resolve, which would change the request path. + if value in (".", ".."): + raise ValueError(f'Invalid path parameter value "{value}": "." and ".." are not allowed.') diff --git a/src/speechify/core/pagination.py b/src/speechify/core/pagination.py index 760b089..a4bc194 100644 --- a/src/speechify/core/pagination.py +++ b/src/speechify/core/pagination.py @@ -3,7 +3,20 @@ from __future__ import annotations from dataclasses import dataclass -from typing import AsyncIterator, Awaitable, Callable, Generic, Iterator, List, Optional, TypeVar +from typing import ( + Any, + AsyncIterator, + Awaitable, + Callable, + Generic, + Iterator, + List, + Mapping, + Optional, + Sequence, + TypeVar, + get_args, +) # Generic to represent the underlying type of the results within a page T = TypeVar("T") @@ -80,3 +93,73 @@ async def iter_pages(self) -> AsyncIterator[AsyncPager[T, R]]: async def next_page(self) -> Optional[AsyncPager[T, R]]: return await self.get_next() if self.get_next is not None else None + + +def get_nested_page_value(container: Any, path: Sequence[str], default: Any = None) -> Any: + """ + Read a nested paging value (e.g. `options.offset`) from a request parameter that may be + a dict, a model, None, or omitted (`...`). Returns `default` when any segment is missing. + """ + value = container + for key in path: + if value is None or value is ...: + return default + value = value.get(key) if isinstance(value, Mapping) else getattr(value, key, None) + return default if value is None or value is ... else value + + +def with_nested_page_value(container: Any, path: Sequence[str], value: Any, container_type: Any = None) -> Any: + """ + Return a copy of a request parameter with the nested paging value at `path` replaced, + creating omitted containers and keeping every other field. When `container_type` (or the + annotation of the parent model's field) is a model, created containers are built through that + model so field aliases (e.g. `page_offset` -> `pageOffset`) apply on the wire. + """ + if len(path) == 0: + return value + key, rest = path[0], path[1:] + if container is None or container is ...: + return _build_container(container_type, {key: with_nested_page_value(None, rest, value)}) + if isinstance(container, Mapping): + return {**container, key: with_nested_page_value(container.get(key), rest, value)} + updated = with_nested_page_value( + getattr(container, key, None), rest, value, _get_field_annotation(type(container), key) + ) + if hasattr(container, "model_copy"): + return container.model_copy(update={key: updated}) + return container.copy(update={key: updated}) + + +def _build_container(container_type: Any, data: Mapping[str, Any]) -> Any: + model = _find_model_class(container_type) + if model is None: + return data + try: + if hasattr(model, "model_validate"): + return model.model_validate(data) + return model.parse_obj(data) + except (TypeError, ValueError): + return data + + +def _find_model_class(annotation: Any) -> Any: + models = [] + pending = [annotation] + while pending: + candidate = pending.pop() + if isinstance(candidate, type): + if hasattr(candidate, "model_validate") or hasattr(candidate, "parse_obj"): + models.append(candidate) + else: + pending.extend(get_args(candidate)) + return models[0] if len(models) == 1 else None + + +def _get_field_annotation(model: Any, key: str) -> Any: + fields = getattr(model, "model_fields", None) + if isinstance(fields, Mapping): + return fields[key].annotation if key in fields else None + legacy_fields = getattr(model, "__fields__", None) + if isinstance(legacy_fields, Mapping) and key in legacy_fields: + return legacy_fields[key].outer_type_ + return None diff --git a/src/speechify/core/pydantic_utilities.py b/src/speechify/core/pydantic_utilities.py index 6587f5e..803183c 100644 --- a/src/speechify/core/pydantic_utilities.py +++ b/src/speechify/core/pydantic_utilities.py @@ -5,6 +5,7 @@ import inspect import json import logging +import weakref from collections import defaultdict from dataclasses import asdict from typing import ( @@ -13,6 +14,7 @@ Callable, ClassVar, Dict, + FrozenSet, List, Mapping, Optional, @@ -36,8 +38,8 @@ IS_PYDANTIC_V2 = pydantic.VERSION.startswith("2.") if IS_PYDANTIC_V2: - _datetime_adapter = pydantic.TypeAdapter(dt.datetime) # type: ignore[attr-defined] - _date_adapter = pydantic.TypeAdapter(dt.date) # type: ignore[attr-defined] + _datetime_adapter = pydantic.TypeAdapter(dt.datetime) # type: ignore[attr-defined,var-annotated] + _date_adapter = pydantic.TypeAdapter(dt.date) # type: ignore[attr-defined,var-annotated] def parse_datetime(value: Any) -> dt.datetime: # type: ignore[misc] if isinstance(value, dt.datetime): @@ -128,7 +130,7 @@ def _decimal_encoder(dec_value: Any) -> Any: from pydantic.typing import is_union as is_union # type: ignore[no-redef] from .datetime_utils import serialize_datetime -from .serialization import convert_and_respect_annotation_metadata +from .serialization import convert_and_respect_annotation_metadata, get_field_to_alias_mapping from typing_extensions import TypeAlias T = TypeVar("T") @@ -184,6 +186,111 @@ def _get_type_adapter(type_: Type[Any]) -> Any: return adapter +_field_alias_cache: "weakref.WeakKeyDictionary[type, Tuple[Dict[str, str], Tuple[str, ...]]]" = ( + weakref.WeakKeyDictionary() +) + + +def _get_field_aliases(model: type) -> Tuple[Dict[str, str], Tuple[str, ...]]: + """ + Map of field name to Pydantic alias for the fields whose alias differs from their name, together with the + keys that are ambiguous (an alias of one field and the name of another). Computed once per model class. + """ + cached = _field_alias_cache.get(model) + if cached is None: + fields: Mapping[str, Any] = ( + getattr(model, "model_fields", {}) if IS_PYDANTIC_V2 else getattr(model, "__fields__", {}) + ) + name_to_alias: Dict[str, str] = {} + for name, field in fields.items(): + alias = getattr(field, "alias", None) + if alias is not None and alias != name: + name_to_alias[name] = alias + cached = (name_to_alias, tuple(alias for alias in name_to_alias.values() if alias in fields)) + _field_alias_cache[model] = cached + return cached + + +def _coerce_keys_to_aliases(model: type, data: Any) -> Any: + """ + Accept Python field names in input by rewriting them to their Pydantic aliases, + while avoiding silent collisions when a key could refer to multiple fields. + """ + if not isinstance(data, Mapping): + return data + + name_to_alias, ambiguous_keys = _get_field_aliases(model) + for key in ambiguous_keys: + if key in data and name_to_alias.get(key, key) not in data: + raise ValueError( + f"Ambiguous input key '{key}': it is both a field name and an alias. " + "Provide the explicit alias key to disambiguate." + ) + + if not name_to_alias or not any(name in data for name in name_to_alias): + return data if isinstance(data, dict) else dict(data) + + rewritten: Dict[str, Any] = dict(data) + for name, alias in name_to_alias.items(): + if name in data and alias not in rewritten: + rewritten[alias] = rewritten.pop(name) + + return rewritten + + +_declared_keys_cache: "weakref.WeakKeyDictionary[type, Tuple[FrozenSet[str], FrozenSet[str]]]" = ( + weakref.WeakKeyDictionary() +) + + +def _get_declared_keys(model: type) -> Tuple[FrozenSet[str], FrozenSet[str]]: + """ + Keys that refer to a declared field (field names, Pydantic aliases and FieldMetadata aliases), together with + their casefolded forms. Computed once per model class. + """ + cached = _declared_keys_cache.get(model) + if cached is None: + fields: Mapping[str, Any] = ( + getattr(model, "model_fields", {}) if IS_PYDANTIC_V2 else getattr(model, "__fields__", {}) + ) + keys: Set[str] = set(fields) + for field in fields.values(): + alias = getattr(field, "alias", None) + if isinstance(alias, str): + keys.add(alias) + keys.update(get_field_to_alias_mapping(model).values()) + cached = (frozenset(keys), frozenset(key.casefold() for key in keys)) + _declared_keys_cache[model] = cached + return cached + + +def _allows_extra_fields(model: type) -> bool: + if IS_PYDANTIC_V2: + return getattr(model, "model_config", {}).get("extra") == "allow" + extra = getattr(getattr(model, "__config__", None), "extra", None) + return getattr(extra, "value", extra) == "allow" + + +def _drop_extras_colliding_with_fields(model: type, data: Any) -> Any: + """ + Drop unknown keys that match a declared field case-insensitively (e.g. `VALUE` next to `value`). Kept as + extras, they would be sent again after the declared field, and a case-insensitive decoder such as Go's + encoding/json would read them instead of it. + """ + if not isinstance(data, Mapping) or not _allows_extra_fields(model): + return data + + declared_keys, declared_casefolded = _get_declared_keys(model) + colliding = { + key + for key in data + if isinstance(key, str) and key not in declared_keys and key.casefold() in declared_casefolded + } + if not colliding: + return data + return {key: value for key, value in data.items() if key not in colliding} + + def parse_obj_as(type_: Type[T], object_: Any) -> T: # convert_and_respect_annotation_metadata is required for TypedDict aliasing. # @@ -193,20 +300,7 @@ def parse_obj_as(type_: Type[T], object_: Any) -> T: # - If the model encodes aliasing only via FieldMetadata annotations, then we MUST pre-dealias because Pydantic # will not recognize those aliases during validation. if inspect.isclass(type_) and issubclass(type_, pydantic.BaseModel): - has_pydantic_aliases = False - if IS_PYDANTIC_V2: - for field_name, field_info in getattr(type_, "model_fields", {}).items(): # type: ignore[attr-defined] - alias = getattr(field_info, "alias", None) - if alias is not None and alias != field_name: - has_pydantic_aliases = True - break - else: - for field in getattr(type_, "__fields__", {}).values(): - alias = getattr(field, "alias", None) - name = getattr(field, "name", None) - if alias is not None and name is not None and alias != name: - has_pydantic_aliases = True - break + has_pydantic_aliases = bool(_get_field_aliases(type_)[0]) dealiased_object = ( object_ @@ -239,39 +333,7 @@ class UniversalBaseModel(pydantic.BaseModel): @pydantic.model_validator(mode="before") # type: ignore[attr-defined] @classmethod def _coerce_field_names_to_aliases(cls, data: Any) -> Any: - """ - Accept Python field names in input by rewriting them to their Pydantic aliases, - while avoiding silent collisions when a key could refer to multiple fields. - """ - if not isinstance(data, Mapping): - return data - - fields = getattr(cls, "model_fields", {}) # type: ignore[attr-defined] - name_to_alias: Dict[str, str] = {} - alias_to_name: Dict[str, str] = {} - - for name, field_info in fields.items(): - alias = getattr(field_info, "alias", None) or name - name_to_alias[name] = alias - if alias != name: - alias_to_name[alias] = name - - # Detect ambiguous keys: a key that is an alias for one field and a name for another. - ambiguous_keys = set(alias_to_name.keys()).intersection(set(name_to_alias.keys())) - for key in ambiguous_keys: - if key in data and name_to_alias[key] not in data: - raise ValueError( - f"Ambiguous input key '{key}': it is both a field name and an alias. " - "Provide the explicit alias key to disambiguate." - ) - - original_keys = set(data.keys()) - rewritten: Dict[str, Any] = dict(data) - for name, alias in name_to_alias.items(): - if alias != name and name in original_keys and alias not in rewritten: - rewritten[alias] = rewritten.pop(name) - - return rewritten + return _coerce_keys_to_aliases(cls, _drop_extras_colliding_with_fields(cls, data)) @pydantic.model_serializer(mode="plain", when_used="json") # type: ignore[attr-defined] def serialize_model(self) -> Any: # type: ignore[name-defined] @@ -287,37 +349,7 @@ class Config: @pydantic.root_validator(pre=True) def _coerce_field_names_to_aliases(cls, values: Any) -> Any: - """ - Pydantic v1 equivalent of _coerce_field_names_to_aliases. - """ - if not isinstance(values, Mapping): - return values - - fields = getattr(cls, "__fields__", {}) - name_to_alias: Dict[str, str] = {} - alias_to_name: Dict[str, str] = {} - - for name, field in fields.items(): - alias = getattr(field, "alias", None) or name - name_to_alias[name] = alias - if alias != name: - alias_to_name[alias] = name - - ambiguous_keys = set(alias_to_name.keys()).intersection(set(name_to_alias.keys())) - for key in ambiguous_keys: - if key in values and name_to_alias[key] not in values: - raise ValueError( - f"Ambiguous input key '{key}': it is both a field name and an alias. " - "Provide the explicit alias key to disambiguate." - ) - - original_keys = set(values.keys()) - rewritten: Dict[str, Any] = dict(values) - for name, alias in name_to_alias.items(): - if alias != name and name in original_keys and alias not in rewritten: - rewritten[alias] = rewritten.pop(name) - - return rewritten + return _coerce_keys_to_aliases(cls, _drop_extras_colliding_with_fields(cls, values)) # type: ignore[arg-type] @classmethod def model_construct(cls: Type["Model"], _fields_set: Optional[Set[str]] = None, **values: Any) -> "Model": @@ -454,7 +486,7 @@ def encode_by_type(o: Any) -> Any: def update_forward_refs(model: Type["Model"], **localns: Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(raise_errors=False) # type: ignore[attr-defined] + model.model_rebuild(raise_errors=False, _types_namespace=localns or None) # type: ignore[attr-defined] else: model.update_forward_refs(**localns) diff --git a/src/speechify/core/request_options.py b/src/speechify/core/request_options.py index 1b38804..bd6bc01 100644 --- a/src/speechify/core/request_options.py +++ b/src/speechify/core/request_options.py @@ -14,10 +14,14 @@ class RequestOptions(typing.TypedDict, total=False): This is used primarily as an optional final parameter for service functions. Attributes: - - timeout_in_seconds: int. The number of seconds to await an API call before timing out. + - timeout: float. The number of seconds to await an API call before timing out. + + - timeout_in_seconds: int. Deprecated alias for `timeout`; both are in seconds. Prefer `timeout`. - max_retries: int. The max number of retries to attempt if the API call fails. + - retry_remote_protocol_errors: bool. Retry server disconnects and incomplete responses. Defaults to False, since the server may already have applied the request. Enable only when replaying the request is safe; bounded by max_retries. + - additional_headers: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's header dict - additional_query_parameters: typing.Dict[str, typing.Any]. A dictionary containing additional parameters to spread into the request's query parameters dict @@ -27,9 +31,13 @@ class RequestOptions(typing.TypedDict, total=False): - chunk_size: int. The size, in bytes, to process each chunk of data being streamed back within the response. This equates to leveraging `chunk_size` within `requests` or `httpx`, and is only leveraged for file downloads. """ + timeout: NotRequired[float] timeout_in_seconds: NotRequired[int] max_retries: NotRequired[int] + retry_remote_protocol_errors: NotRequired[bool] additional_headers: NotRequired[typing.Dict[str, typing.Any]] additional_query_parameters: NotRequired[typing.Dict[str, typing.Any]] additional_body_parameters: NotRequired[typing.Dict[str, typing.Any]] chunk_size: NotRequired[int] + stream_reconnection_enabled: NotRequired[bool] + max_stream_reconnection_attempts: NotRequired[int] diff --git a/src/speechify/environment.py b/src/speechify/environment.py index 9f1e9eb..6e1c97c 100644 --- a/src/speechify/environment.py +++ b/src/speechify/environment.py @@ -1,7 +1,14 @@ # This file was auto-generated by Fern from our API Definition. -import enum +from __future__ import annotations -class SpeechifyEnvironment(enum.Enum): - DEFAULT = "https://api.speechify.ai" +class SpeechifyEnvironment: + DEFAULT: SpeechifyEnvironment + + def __init__(self, *, base: str, websocket: str): + self.base = base + self.websocket = websocket + + +SpeechifyEnvironment.DEFAULT = SpeechifyEnvironment(base="https://api.speechify.ai", websocket="wss://api.speechify.ai") diff --git a/src/speechify/models/client.py b/src/speechify/models/client.py index b4c204f..24ceb3b 100644 --- a/src/speechify/models/client.py +++ b/src/speechify/models/client.py @@ -50,7 +50,7 @@ def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> Mo from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.models.list() @@ -103,7 +103,7 @@ async def list(self, *, request_options: typing.Optional[RequestOptions] = None) from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) diff --git a/src/speechify/models/raw_client.py b/src/speechify/models/raw_client.py index a389101..b860ada 100644 --- a/src/speechify/models/raw_client.py +++ b/src/speechify/models/raw_client.py @@ -47,6 +47,7 @@ def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> Ht """ _response = self._client_wrapper.httpx_client.request( "v1/audio/models", + base_url=self._client_wrapper.get_environment().base, method="GET", request_options=request_options, ) @@ -155,6 +156,7 @@ async def list( """ _response = await self._client_wrapper.httpx_client.request( "v1/audio/models", + base_url=self._client_wrapper.get_environment().base, method="GET", request_options=request_options, ) diff --git a/src/speechify/projects/__init__.py b/src/speechify/projects/__init__.py new file mode 100644 index 0000000..aad341e --- /dev/null +++ b/src/speechify/projects/__init__.py @@ -0,0 +1,34 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + +import typing +from importlib import import_module + +if typing.TYPE_CHECKING: + from .types import DeleteProjectRequestMode +_dynamic_imports: typing.Dict[str, str] = {"DeleteProjectRequestMode": ".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__ = ["DeleteProjectRequestMode"] diff --git a/src/speechify/projects/client.py b/src/speechify/projects/client.py new file mode 100644 index 0000000..266466c --- /dev/null +++ b/src/speechify/projects/client.py @@ -0,0 +1,1458 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.pagination import AsyncPager, SyncPager +from ..core.request_options import RequestOptions +from ..types.list_projects_response import ListProjectsResponse +from ..types.project import Project +from ..types.project_audit_event import ProjectAuditEvent +from ..types.project_audit_response import ProjectAuditResponse +from ..types.project_member import ProjectMember +from ..types.project_members_response import ProjectMembersResponse +from ..types.project_restore import ProjectRestore +from .raw_client import AsyncRawProjectsClient, RawProjectsClient +from .types.delete_project_request_mode import DeleteProjectRequestMode + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class ProjectsClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawProjectsClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawProjectsClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawProjectsClient + """ + return self._raw_client + + def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + include_archived: typing.Optional[bool] = None, + include_purged: typing.Optional[bool] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[Project, ListProjectsResponse]: + """ + 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). + + 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. + + Returns + ------- + SyncPager[Project, ListProjectsResponse] + The workspace's projects. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + response = client.projects.list() + 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.list( + cursor=cursor, + limit=limit, + include_archived=include_archived, + include_purged=include_purged, + request_options=request_options, + ) + + def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> Project: + """ + 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. + + Parameters + ---------- + name : str + Project name; unique per workspace (case-insensitive), + surrounding whitespace is trimmed. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + Project + The created project. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.create( + name="Production", + ) + """ + _response = self._raw_client.create(name=name, request_options=request_options) + return _response.data + + def get(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Project: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + Project + The project. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.get( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.get(project_id, request_options=request_options) + return _response.data + + def delete( + self, + project_id: str, + *, + mode: typing.Optional[DeleteProjectRequestMode] = OMIT, + confirm: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> None: + """ + 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. + + 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. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.delete( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + mode="purge", + confirm="Staging", + ) + """ + _response = self._raw_client.delete(project_id, mode=mode, confirm=confirm, request_options=request_options) + return _response.data + + def update( + self, + project_id: str, + *, + max_requests_per_minute: typing.Optional[int] = OMIT, + name: typing.Optional[str] = OMIT, + monthly_budget: typing.Optional[float] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> Project: + """ + 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. + + 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. + + Returns + ------- + Project + The updated project. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.update( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.update( + project_id, + max_requests_per_minute=max_requests_per_minute, + name=name, + monthly_budget=monthly_budget, + request_options=request_options, + ) + return _response.data + + def archive(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.archive( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.archive(project_id, request_options=request_options) + return _response.data + + def unarchive(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Lift a project's archive so work and spend resume inside it. + Idempotent: unarchiving a live project is a no-op. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.unarchive( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.unarchive(project_id, request_options=request_options) + return _response.data + + def restore(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> ProjectRestore: + """ + 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). + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + ProjectRestore + The project is restored, archived, and holds its resources again. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.restore( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.restore(project_id, request_options=request_options) + return _response.data + + def audit( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[ProjectAuditEvent, ProjectAuditResponse]: + """ + 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. + + 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. + + Returns + ------- + SyncPager[ProjectAuditEvent, ProjectAuditResponse] + One page of this project's audit trail. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + response = client.projects.audit( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + 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.audit(project_id, cursor=cursor, limit=limit, request_options=request_options) + + def list_members( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[ProjectMember, ProjectMembersResponse]: + """ + 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. + + 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. + + Returns + ------- + SyncPager[ProjectMember, ProjectMembersResponse] + One page of the members granted this project. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + response = client.projects.list_members( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + 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.list_members(project_id, cursor=cursor, limit=limit, request_options=request_options) + + def grant_member( + self, project_id: str, *, user_id: str, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + 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. + + 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. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.grant_member( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + user_id="user_kb3fim3yjnyto3kxli4g4ysdmyzgiuttjrudswlkgbawk", + ) + """ + _response = self._raw_client.grant_member(project_id, user_id=user_id, request_options=request_options) + return _response.data + + def revoke_member( + self, project_id: str, user_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + 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`. + + 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. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.projects.revoke_member( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + user_id="user_kb3fim3yjnyto3kxli4g4ysdmyzgiuttjrudswlkgbawk", + ) + """ + _response = self._raw_client.revoke_member(project_id, user_id, request_options=request_options) + return _response.data + + +class AsyncProjectsClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawProjectsClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawProjectsClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawProjectsClient + """ + return self._raw_client + + async def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + include_archived: typing.Optional[bool] = None, + include_purged: typing.Optional[bool] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[Project, ListProjectsResponse]: + """ + 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). + + 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. + + Returns + ------- + AsyncPager[Project, ListProjectsResponse] + The workspace's projects. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.projects.list() + 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.list( + cursor=cursor, + limit=limit, + include_archived=include_archived, + include_purged=include_purged, + request_options=request_options, + ) + + async def create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> Project: + """ + 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. + + Parameters + ---------- + name : str + Project name; unique per workspace (case-insensitive), + surrounding whitespace is trimmed. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + Project + The created project. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.create( + name="Production", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.create(name=name, request_options=request_options) + return _response.data + + async def get(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Project: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + Project + The project. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.get( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get(project_id, request_options=request_options) + return _response.data + + async def delete( + self, + project_id: str, + *, + mode: typing.Optional[DeleteProjectRequestMode] = OMIT, + confirm: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> None: + """ + 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. + + 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. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.delete( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + mode="purge", + confirm="Staging", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.delete( + project_id, mode=mode, confirm=confirm, request_options=request_options + ) + return _response.data + + async def update( + self, + project_id: str, + *, + max_requests_per_minute: typing.Optional[int] = OMIT, + name: typing.Optional[str] = OMIT, + monthly_budget: typing.Optional[float] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> Project: + """ + 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. + + 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. + + Returns + ------- + Project + The updated project. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.update( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.update( + project_id, + max_requests_per_minute=max_requests_per_minute, + name=name, + monthly_budget=monthly_budget, + request_options=request_options, + ) + return _response.data + + async def archive(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.archive( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.archive(project_id, request_options=request_options) + return _response.data + + async def unarchive(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Lift a project's archive so work and spend resume inside it. + Idempotent: unarchiving a live project is a no-op. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.unarchive( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.unarchive(project_id, request_options=request_options) + return _response.data + + async def restore( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> ProjectRestore: + """ + 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). + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + ProjectRestore + The project is restored, archived, and holds its resources again. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.restore( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.restore(project_id, request_options=request_options) + return _response.data + + async def audit( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[ProjectAuditEvent, ProjectAuditResponse]: + """ + 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. + + 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. + + Returns + ------- + AsyncPager[ProjectAuditEvent, ProjectAuditResponse] + One page of this project's audit trail. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.projects.audit( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + 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.audit(project_id, cursor=cursor, limit=limit, request_options=request_options) + + async def list_members( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[ProjectMember, ProjectMembersResponse]: + """ + 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. + + 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. + + Returns + ------- + AsyncPager[ProjectMember, ProjectMembersResponse] + One page of the members granted this project. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.projects.list_members( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + 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.list_members( + project_id, cursor=cursor, limit=limit, request_options=request_options + ) + + async def grant_member( + self, project_id: str, *, user_id: str, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + 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. + + 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. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.grant_member( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + user_id="user_kb3fim3yjnyto3kxli4g4ysdmyzgiuttjrudswlkgbawk", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.grant_member(project_id, user_id=user_id, request_options=request_options) + return _response.data + + async def revoke_member( + self, project_id: str, user_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + 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`. + + 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. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.projects.revoke_member( + project_id="proj_01jqr8x9zg5k2m3n4p5q6r7s8t", + user_id="user_kb3fim3yjnyto3kxli4g4ysdmyzgiuttjrudswlkgbawk", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.revoke_member(project_id, user_id, request_options=request_options) + return _response.data diff --git a/src/speechify/projects/raw_client.py b/src/speechify/projects/raw_client.py new file mode 100644 index 0000000..6cde1e1 --- /dev/null +++ b/src/speechify/projects/raw_client.py @@ -0,0 +1,3043 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +from json.decoder import JSONDecodeError + +from ..core.api_error import ApiError +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.http_response import AsyncHttpResponse, HttpResponse +from ..core.jsonable_encoder import encode_path_param +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_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.not_found_error import NotFoundError +from ..errors.service_unavailable_error import ServiceUnavailableError +from ..errors.too_many_requests_error import TooManyRequestsError +from ..errors.unauthorized_error import UnauthorizedError +from ..types.error import Error +from ..types.list_projects_response import ListProjectsResponse +from ..types.project import Project +from ..types.project_audit_event import ProjectAuditEvent +from ..types.project_audit_response import ProjectAuditResponse +from ..types.project_member import ProjectMember +from ..types.project_members_response import ProjectMembersResponse +from ..types.project_restore import ProjectRestore +from .types.delete_project_request_mode import DeleteProjectRequestMode +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawProjectsClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + include_archived: typing.Optional[bool] = None, + include_purged: typing.Optional[bool] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[Project, ListProjectsResponse]: + """ + 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). + + 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. + + Returns + ------- + SyncPager[Project, ListProjectsResponse] + The workspace's projects. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/projects", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + "include_archived": include_archived, + "include_purged": include_purged, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListProjectsResponse, + parse_obj_as( + type_=ListProjectsResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.projects + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + cursor=_parsed_next, + limit=limit, + include_archived=include_archived, + include_purged=include_purged, + 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 == 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(), + ), + ), + ) + _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 create(self, *, name: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Project]: + """ + 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. + + Parameters + ---------- + name : str + Project name; unique per workspace (case-insensitive), + surrounding whitespace is trimmed. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[Project] + The created project. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/projects", + base_url=self._client_wrapper.get_environment().base, + method="POST", + json={ + "name": name, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + Project, + parse_obj_as( + type_=Project, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 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(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def get(self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Project]: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[Project] + The project. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + Project, + parse_obj_as( + type_=Project, # 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 delete( + self, + project_id: str, + *, + mode: typing.Optional[DeleteProjectRequestMode] = OMIT, + confirm: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[None]: + """ + 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. + + 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. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}", + base_url=self._client_wrapper.get_environment().base, + method="DELETE", + json={ + "mode": mode, + "confirm": confirm, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # 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(), + ), + ), + ) + _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 update( + self, + project_id: str, + *, + max_requests_per_minute: typing.Optional[int] = OMIT, + name: typing.Optional[str] = OMIT, + monthly_budget: typing.Optional[float] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[Project]: + """ + 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. + + 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. + + Returns + ------- + HttpResponse[Project] + The updated project. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}", + base_url=self._client_wrapper.get_environment().base, + method="PATCH", + json={ + "max_requests_per_minute": max_requests_per_minute, + "name": name, + "monthly_budget": monthly_budget, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + Project, + parse_obj_as( + type_=Project, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # 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(), + ), + ), + ) + _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 archive( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/archive", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 unarchive( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + Lift a project's archive so work and spend resume inside it. + Idempotent: unarchiving a live project is a no-op. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/unarchive", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 restore( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[ProjectRestore]: + """ + 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). + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[ProjectRestore] + The project is restored, archived, and holds its resources again. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/restore", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + ProjectRestore, + parse_obj_as( + type_=ProjectRestore, # 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # 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(), + ), + ), + ) + _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 audit( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[ProjectAuditEvent, ProjectAuditResponse]: + """ + 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. + + 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. + + Returns + ------- + SyncPager[ProjectAuditEvent, ProjectAuditResponse] + One page of this project's audit trail. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/audit", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ProjectAuditResponse, + parse_obj_as( + type_=ProjectAuditResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.events + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.audit( + project_id, + 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 == 404: + raise NotFoundError( + 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 == 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) + + def list_members( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[ProjectMember, ProjectMembersResponse]: + """ + 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. + + 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. + + Returns + ------- + SyncPager[ProjectMember, ProjectMembersResponse] + One page of the members granted this project. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/members", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ProjectMembersResponse, + parse_obj_as( + type_=ProjectMembersResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.members + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list_members( + project_id, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 grant_member( + self, project_id: str, *, user_id: str, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + 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. + + 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. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/members", + base_url=self._client_wrapper.get_environment().base, + method="POST", + json={ + "user_id": user_id, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 revoke_member( + self, project_id: str, user_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + 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`. + + 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. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/members/{encode_path_param(user_id)}", + base_url=self._client_wrapper.get_environment().base, + method="DELETE", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 AsyncRawProjectsClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + include_archived: typing.Optional[bool] = None, + include_purged: typing.Optional[bool] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[Project, ListProjectsResponse]: + """ + 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). + + 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. + + Returns + ------- + AsyncPager[Project, ListProjectsResponse] + The workspace's projects. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/projects", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + "include_archived": include_archived, + "include_purged": include_purged, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListProjectsResponse, + parse_obj_as( + type_=ListProjectsResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.projects + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + cursor=_parsed_next, + limit=limit, + include_archived=include_archived, + include_purged=include_purged, + 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 == 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(), + ), + ), + ) + _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 create( + self, *, name: str, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[Project]: + """ + 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. + + Parameters + ---------- + name : str + Project name; unique per workspace (case-insensitive), + surrounding whitespace is trimmed. + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[Project] + The created project. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/projects", + base_url=self._client_wrapper.get_environment().base, + method="POST", + json={ + "name": name, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + Project, + parse_obj_as( + type_=Project, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 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(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def get( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[Project]: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[Project] + The project. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + Project, + parse_obj_as( + type_=Project, # 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 delete( + self, + project_id: str, + *, + mode: typing.Optional[DeleteProjectRequestMode] = OMIT, + confirm: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[None]: + """ + 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. + + 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. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}", + base_url=self._client_wrapper.get_environment().base, + method="DELETE", + json={ + "mode": mode, + "confirm": confirm, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # 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(), + ), + ), + ) + _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 update( + self, + project_id: str, + *, + max_requests_per_minute: typing.Optional[int] = OMIT, + name: typing.Optional[str] = OMIT, + monthly_budget: typing.Optional[float] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[Project]: + """ + 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. + + 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. + + Returns + ------- + AsyncHttpResponse[Project] + The updated project. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}", + base_url=self._client_wrapper.get_environment().base, + method="PATCH", + json={ + "max_requests_per_minute": max_requests_per_minute, + "name": name, + "monthly_budget": monthly_budget, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + Project, + parse_obj_as( + type_=Project, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # 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(), + ), + ), + ) + _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 archive( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + 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. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/archive", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 unarchive( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + Lift a project's archive so work and spend resume inside it. + Idempotent: unarchiving a live project is a no-op. + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/unarchive", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 restore( + self, project_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[ProjectRestore]: + """ + 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). + + Parameters + ---------- + project_id : str + Project id (prefixed external id, `proj_...`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[ProjectRestore] + The project is restored, archived, and holds its resources again. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/restore", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + ProjectRestore, + parse_obj_as( + type_=ProjectRestore, # 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # 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(), + ), + ), + ) + _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 audit( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[ProjectAuditEvent, ProjectAuditResponse]: + """ + 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. + + 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. + + Returns + ------- + AsyncPager[ProjectAuditEvent, ProjectAuditResponse] + One page of this project's audit trail. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/audit", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ProjectAuditResponse, + parse_obj_as( + type_=ProjectAuditResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.events + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.audit( + project_id, + 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 == 404: + raise NotFoundError( + 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 == 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) + + async def list_members( + self, + project_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[ProjectMember, ProjectMembersResponse]: + """ + 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. + + 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. + + Returns + ------- + AsyncPager[ProjectMember, ProjectMembersResponse] + One page of the members granted this project. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/members", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ProjectMembersResponse, + parse_obj_as( + type_=ProjectMembersResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.members + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list_members( + project_id, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 grant_member( + self, project_id: str, *, user_id: str, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + 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. + + 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. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/members", + base_url=self._client_wrapper.get_environment().base, + method="POST", + json={ + "user_id": user_id, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 revoke_member( + self, project_id: str, user_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + 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`. + + 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. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/projects/{encode_path_param(project_id)}/members/{encode_path_param(user_id)}", + base_url=self._client_wrapper.get_environment().base, + method="DELETE", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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/projects/types/__init__.py b/src/speechify/projects/types/__init__.py new file mode 100644 index 0000000..3794fcc --- /dev/null +++ b/src/speechify/projects/types/__init__.py @@ -0,0 +1,34 @@ +# 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 .delete_project_request_mode import DeleteProjectRequestMode +_dynamic_imports: typing.Dict[str, str] = {"DeleteProjectRequestMode": ".delete_project_request_mode"} + + +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__ = ["DeleteProjectRequestMode"] diff --git a/src/speechify/projects/types/delete_project_request_mode.py b/src/speechify/projects/types/delete_project_request_mode.py new file mode 100644 index 0000000..a33a7ab --- /dev/null +++ b/src/speechify/projects/types/delete_project_request_mode.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +DeleteProjectRequestMode = typing.Union[typing.Literal["detach", "purge"], typing.Any] diff --git a/src/speechify/types/__init__.py b/src/speechify/types/__init__.py index a59e35e..51f844b 100644 --- a/src/speechify/types/__init__.py +++ b/src/speechify/types/__init__.py @@ -8,7 +8,10 @@ if typing.TYPE_CHECKING: from .audio_output_format import AudioOutputFormat from .audio_stream_output_format import AudioStreamOutputFormat + from .billing_entitlements import BillingEntitlements + from .billing_entitlements_max_llm_model_class import BillingEntitlementsMaxLlmModelClass from .consent_challenge import ConsentChallenge + from .entitlements_response import EntitlementsResponse from .error import Error from .error_code import ErrorCode from .error_detail import ErrorDetail @@ -24,11 +27,31 @@ from .get_voice_type import GetVoiceType from .get_voices_model import GetVoicesModel from .get_voices_model_name import GetVoicesModelName + from .list_projects_response import ListProjectsResponse from .list_voices_response import ListVoicesResponse + from .list_webhook_endpoint_deliveries_response import ListWebhookEndpointDeliveriesResponse + from .list_webhook_endpoints_response import ListWebhookEndpointsResponse from .model import Model from .models_response import ModelsResponse from .nested_chunk import NestedChunk from .pagination_meta import PaginationMeta + from .project import Project + from .project_audit_event import ProjectAuditEvent + from .project_audit_event_type import ProjectAuditEventType + from .project_audit_response import ProjectAuditResponse + from .project_member import ProjectMember + from .project_members_response import ProjectMembersResponse + from .project_monthly_budget_status import ProjectMonthlyBudgetStatus + from .project_restore import ProjectRestore + from .project_still_revoked_counts import ProjectStillRevokedCounts + from .pronunciation import Pronunciation + from .pronunciation_alias import PronunciationAlias + from .pronunciation_case_sensitive import PronunciationCaseSensitive + from .pronunciation_ipa import PronunciationIpa + from .pronunciation_ipa_text import PronunciationIpaText + from .pronunciation_text import PronunciationText + from .pronunciations import Pronunciations + from .safety_identifier import SafetyIdentifier from .speech_chunk_event import SpeechChunkEvent from .speech_done_event import SpeechDoneEvent from .speech_error_event import SpeechErrorEvent @@ -39,10 +62,18 @@ SpeechStreamEvent_SpeechDone, SpeechStreamEvent_SpeechError, ) + from .watermark_detection_response import WatermarkDetectionResponse + from .watermark_verification_response import WatermarkVerificationResponse + from .webhook_delivery_status import WebhookDeliveryStatus + from .webhook_endpoint import WebhookEndpoint + from .webhook_endpoint_delivery import WebhookEndpointDelivery _dynamic_imports: typing.Dict[str, str] = { "AudioOutputFormat": ".audio_output_format", "AudioStreamOutputFormat": ".audio_stream_output_format", + "BillingEntitlements": ".billing_entitlements", + "BillingEntitlementsMaxLlmModelClass": ".billing_entitlements_max_llm_model_class", "ConsentChallenge": ".consent_challenge", + "EntitlementsResponse": ".entitlements_response", "Error": ".error", "ErrorCode": ".error_code", "ErrorDetail": ".error_detail", @@ -58,11 +89,31 @@ "GetVoiceType": ".get_voice_type", "GetVoicesModel": ".get_voices_model", "GetVoicesModelName": ".get_voices_model_name", + "ListProjectsResponse": ".list_projects_response", "ListVoicesResponse": ".list_voices_response", + "ListWebhookEndpointDeliveriesResponse": ".list_webhook_endpoint_deliveries_response", + "ListWebhookEndpointsResponse": ".list_webhook_endpoints_response", "Model": ".model", "ModelsResponse": ".models_response", "NestedChunk": ".nested_chunk", "PaginationMeta": ".pagination_meta", + "Project": ".project", + "ProjectAuditEvent": ".project_audit_event", + "ProjectAuditEventType": ".project_audit_event_type", + "ProjectAuditResponse": ".project_audit_response", + "ProjectMember": ".project_member", + "ProjectMembersResponse": ".project_members_response", + "ProjectMonthlyBudgetStatus": ".project_monthly_budget_status", + "ProjectRestore": ".project_restore", + "ProjectStillRevokedCounts": ".project_still_revoked_counts", + "Pronunciation": ".pronunciation", + "PronunciationAlias": ".pronunciation_alias", + "PronunciationCaseSensitive": ".pronunciation_case_sensitive", + "PronunciationIpa": ".pronunciation_ipa", + "PronunciationIpaText": ".pronunciation_ipa_text", + "PronunciationText": ".pronunciation_text", + "Pronunciations": ".pronunciations", + "SafetyIdentifier": ".safety_identifier", "SpeechChunkEvent": ".speech_chunk_event", "SpeechDoneEvent": ".speech_done_event", "SpeechErrorEvent": ".speech_error_event", @@ -71,6 +122,11 @@ "SpeechStreamEvent_SpeechChunk": ".speech_stream_event", "SpeechStreamEvent_SpeechDone": ".speech_stream_event", "SpeechStreamEvent_SpeechError": ".speech_stream_event", + "WatermarkDetectionResponse": ".watermark_detection_response", + "WatermarkVerificationResponse": ".watermark_verification_response", + "WebhookDeliveryStatus": ".webhook_delivery_status", + "WebhookEndpoint": ".webhook_endpoint", + "WebhookEndpointDelivery": ".webhook_endpoint_delivery", } @@ -98,7 +154,10 @@ def __dir__(): __all__ = [ "AudioOutputFormat", "AudioStreamOutputFormat", + "BillingEntitlements", + "BillingEntitlementsMaxLlmModelClass", "ConsentChallenge", + "EntitlementsResponse", "Error", "ErrorCode", "ErrorDetail", @@ -114,11 +173,31 @@ def __dir__(): "GetVoiceType", "GetVoicesModel", "GetVoicesModelName", + "ListProjectsResponse", "ListVoicesResponse", + "ListWebhookEndpointDeliveriesResponse", + "ListWebhookEndpointsResponse", "Model", "ModelsResponse", "NestedChunk", "PaginationMeta", + "Project", + "ProjectAuditEvent", + "ProjectAuditEventType", + "ProjectAuditResponse", + "ProjectMember", + "ProjectMembersResponse", + "ProjectMonthlyBudgetStatus", + "ProjectRestore", + "ProjectStillRevokedCounts", + "Pronunciation", + "PronunciationAlias", + "PronunciationCaseSensitive", + "PronunciationIpa", + "PronunciationIpaText", + "PronunciationText", + "Pronunciations", + "SafetyIdentifier", "SpeechChunkEvent", "SpeechDoneEvent", "SpeechErrorEvent", @@ -127,4 +206,9 @@ def __dir__(): "SpeechStreamEvent_SpeechChunk", "SpeechStreamEvent_SpeechDone", "SpeechStreamEvent_SpeechError", + "WatermarkDetectionResponse", + "WatermarkVerificationResponse", + "WebhookDeliveryStatus", + "WebhookEndpoint", + "WebhookEndpointDelivery", ] diff --git a/src/speechify/types/billing_entitlements.py b/src/speechify/types/billing_entitlements.py new file mode 100644 index 0000000..f87a375 --- /dev/null +++ b/src/speechify/types/billing_entitlements.py @@ -0,0 +1,125 @@ +# 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 BillingEntitlements(UniversalBaseModel): + """ + Customer-facing per-tier limits + feature flags, including the API + rate limits the plan enforces. Numeric fields are caps; booleans gate + features. + """ + + max_members: int = pydantic.Field() + """ + Members allowed in a single workspace (owner + invitees). + """ + + max_service_accounts: int = pydantic.Field() + """ + Active service accounts allowed. 0 means service accounts are not + included in the plan (creating one returns 402 + service_accounts_not_in_plan); existing accounts keep working. + """ + + tts_requests_per_second: int = pydantic.Field() + """ + Sustained requests per second across the audio (TTS) endpoints. + """ + + tts_concurrency: int = pydantic.Field() + """ + Simultaneous in-flight requests across the audio (TTS) endpoints. + """ + + tts_end_user_requests_per_second: int = pydantic.Field() + """ + Sustained requests per second each end user (`safety_identifier`) may + send across the audio (TTS) endpoints, inside the workspace's own + limit. 0 means no per-end-user limit applies. + """ + + tts_end_user_concurrency: int = pydantic.Field() + """ + Simultaneous in-flight requests each end user (`safety_identifier`) + may hold across the audio (TTS) endpoints, inside the workspace's own + limit. 0 means no per-end-user limit applies. + """ + + can_create_workspaces: bool = pydantic.Field() + """ + Whether the workspace may create ADDITIONAL workspaces. + """ + + topup_allowed: bool = pydantic.Field() + """ + Whether prepaid funds may be added beyond the monthly grant. + """ + + voice_cloning: bool = pydantic.Field() + """ + Whether voice cloning is available. + """ + + hosted_apis_access: bool = pydantic.Field() + """ + Whether stores and hosted APIs are available. Off on every plan; granted per workspace. + """ + + max_store_documents: int = pydantic.Field() + """ + Documents one store may hold; 0 means uncapped. + """ + + max_store_bytes: int = pydantic.Field() + """ + Bytes one store may hold across its documents; 0 means uncapped. + """ + + enterprise_sso: bool = pydantic.Field() + """ + Whether enterprise SAML/OIDC SSO is available. + """ + + zero_data_retention: bool = pydantic.Field() + """ + Whether zero data retention is enabled for this workspace on the + Text to Speech API. Read-only: Speechify sets it against a signed + agreement, never self-serve, and that agreement defines the scope. + """ + + voice_cloning_consent_exempt: bool = pydantic.Field() + """ + Whether `POST /v1/voices` accepts a clone from this workspace + without a consent challenge and verification recording, because the + workspace captures and holds speaker consent under its own + agreement with Speechify. Read-only: Speechify sets it against that + agreement, never self-serve. It does not grant cloning - the + `voice_cloning` entitlement still applies. + """ + + max_manual_top_up_usd: int = pydantic.Field() + """ + Largest single manual prepaid top-up accepted, in whole US dollars. + 0 means adding prepaid credit is not included in the plan. This is + the enforced amount, so a top-up of exactly this value succeeds; a + client may offer it directly without applying further bounds. + """ + + max_auto_recharge_charge_usd: int = pydantic.Field() + """ + Largest single automatic recharge, in whole US dollars. 0 means + auto-recharge is not included in the plan. + """ + + 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/billing_entitlements_max_llm_model_class.py b/src/speechify/types/billing_entitlements_max_llm_model_class.py new file mode 100644 index 0000000..235faa1 --- /dev/null +++ b/src/speechify/types/billing_entitlements_max_llm_model_class.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +BillingEntitlementsMaxLlmModelClass = typing.Union[typing.Literal["managed", "standard", "premium"], typing.Any] diff --git a/src/speechify/types/entitlements_response.py b/src/speechify/types/entitlements_response.py new file mode 100644 index 0000000..fa57746 --- /dev/null +++ b/src/speechify/types/entitlements_response.py @@ -0,0 +1,33 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .billing_entitlements import BillingEntitlements + + +class EntitlementsResponse(UniversalBaseModel): + """ + `catalog` is every sellable tier's FLOOR entitlements, keyed by tier + (`free`/`starter`/`pro`/`scale`/`enterprise`) for the upgrade cards. + `current` is the caller's workspace RESOLVED entitlements (tier floor + composed with its per-tenant override), so a custom/Enterprise customer + sees their actual caps - not just the tier floor. + """ + + catalog: typing.Dict[str, BillingEntitlements] = pydantic.Field() + """ + Per-tier floor entitlements, keyed by tier string. + """ + + current: BillingEntitlements + + 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/error_code.py b/src/speechify/types/error_code.py index 1a66e34..7498792 100644 --- a/src/speechify/types/error_code.py +++ b/src/speechify/types/error_code.py @@ -4,6 +4,7 @@ ErrorCode = typing.Union[ typing.Literal[ + "endpoint_moved", "bad_request", "validation_failed", "unauthorized", @@ -22,13 +23,63 @@ "upstream_failure", "service_unavailable", "caller_not_found", + "contact_not_found", + "contact_identifier_not_found", + "contact_identifier_conflict", + "contact_resolver_not_found", "credential_not_found", "credential_in_use", "agent_not_found", + "agent_in_use", + "agent_run_not_found", "kb_not_found", "kb_document_not_found", "kb_folder_not_found", "tool_not_found", + "tool_name_taken", + "channel_instance_not_found", + "team_not_found", + "trigger_not_found", + "store_not_found", + "store_document_not_found", + "hosted_api_not_found", + "api_route_not_found", + "consumer_key_not_found", + "skill_not_found", + "skill_version_not_found", + "file_not_found", + "file_path_taken", + "file_storage_limit_reached", + "store_limit_reached", + "store_document_limit_reached", + "store_bytes_limit_reached", + "store_not_configured", + "store_document_version_conflict", + "store_document_deleted", + "entitlement_override_exists", + "hosted_apis_not_in_plan", + "skills_not_in_plan", + "voice_agents_not_in_plan", + "skill_in_use", + "skill_tool_name_conflict", + "skill_limit_reached", + "agent_skill_limit_reached", + "hosted_api_slug_taken", + "api_route_conflict", + "mount_plan_changed", + "route_output_unavailable", + "route_run_timeout", + "route_run_failed", + "route_run_limit_reached", + "route_read_limit_reached", + "route_write_limit_reached", + "hosted_api_public_refused", + "route_tool_not_readable", + "route_tool_unavailable", + "route_upstream_rate_limited", + "route_upstream_error", + "hosted_mcp_not_enabled", + "hosted_api_busy", "conversation_not_found", "phone_number_not_found", "sip_trunk_not_found", @@ -39,11 +90,28 @@ "agent_test_not_found", "workspace_not_found", "invite_not_found", + "project_not_found", + "cross_project_reference", + "project_has_scoped_credentials", + "project_not_empty", + "project_limit_reached", + "agent_limit_reached", + "project_too_large_to_promote", + "call_not_found", + "message_not_found", + "thread_not_found", + "call_not_active", + "relay_displaces_agent", + "brain_not_found", + "brain_in_use", + "custom_model_not_found", + "custom_model_in_use", "insufficient_scope", "purchased_numbers_not_included", "phone_number_quota_reached", "batch_calls_not_included", "voice_cloning_not_included", + "voice_cloning_unavailable_in_region", "consent_challenge_not_found", "consent_challenge_expired", "consent_challenge_already_used", @@ -51,6 +119,9 @@ "consent_speaker_mismatch", "consent_recording_unusable", "consent_verification_unavailable", + "consent_verification_required", + "watermark_audio_unusable", + "watermark_detection_unavailable", "workspace_last_owner", "workspace_last_workspace", "account_deletion_blocked", @@ -61,18 +132,50 @@ "service_account_limit_reached", "service_accounts_not_in_plan", "speech_marks_unsupported", + "pronunciations_unsupported", + "model_retired", "too_many_voices", "content_policy_violation", + "safety_identifier_blocked", "topup_not_in_plan", "credit_purchase_unpaid", + "credit_purchase_payment_in_progress", "tool_config_shared", "spend_cap_exceeded", "spend_budget_exceeded", + "project_spend_limit_exceeded", + "project_archived", + "project_not_archived", + "project_not_purged", + "project_restore_window_expired", + "project_name_taken", + "funded_balance_required", + "agent_publish_gate_failed", + "agent_publish_gate_required", + "agent_publish_gate_unavailable", + "agent_publish_gate_tool_unreachable", + "text_channel_not_in_plan", + "channel_not_in_plan", + "text_turn_failed", + "conversation_turn_in_progress", + "conversation_closed", + "conversation_not_reachable", + "conversation_channel_bound", + "conversation_prompt_not_found", + "text_message_quota_exceeded", + "durable_runs_not_in_plan", + "tool_transport_unsupported", + "agent_config_too_large", + "agent_run_not_pending", + "agent_run_action_stale", "share_link_not_found", "share_link_exhausted", "share_link_limit_reached", "destination_not_allowed", "international_dialing_not_enabled", + "number_not_sms_capable", + "verification_required", + "intended_use_required", ], typing.Any, ] diff --git a/src/speechify/types/get_stream_request.py b/src/speechify/types/get_stream_request.py index 83b0b16..5d50430 100644 --- a/src/speechify/types/get_stream_request.py +++ b/src/speechify/types/get_stream_request.py @@ -7,6 +7,8 @@ from .audio_stream_output_format import AudioStreamOutputFormat from .get_stream_options_request import GetStreamOptionsRequest from .get_stream_request_model import GetStreamRequestModel +from .pronunciations import Pronunciations +from .safety_identifier import SafetyIdentifier class GetStreamRequest(UniversalBaseModel): @@ -17,8 +19,9 @@ class GetStreamRequest(UniversalBaseModel): input: str = pydantic.Field() """ Plain text or SSML to be synthesized to speech. + Up to 20,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 32,000 characters. Refer to https://docs.speechify.ai/docs/api-limits for the input size limits. - Emotion, Pitch and Speed Rate are configured in the ssml input, please refer to the ssml documentation for more information: https://docs.speechify.ai/docs/ssml#prosody + 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. """ language: typing.Optional[str] = pydantic.Field(default=None) @@ -29,7 +32,9 @@ 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, and the recommended Simba 3 model; it is English only, so a non-English voice returns 400. `simba-english` and `simba-multilingual` are the legacy Simba 1.6 models, kept for compatibility. + 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[GetStreamOptionsRequest] = None @@ -38,6 +43,12 @@ class GetStreamRequest(UniversalBaseModel): The output audio format as a `codec_sampleRate_bitrate` string. Takes precedence over the `Accept` header when set, so you can request formats the `Accept` enum does not cover (e.g. `pcm_16000`, `ulaw_8000`). `wav_*` formats are not supported on streaming - use `POST /v1/audio/speech` for wav. """ + pronunciations: typing.Optional[Pronunciations] = None + safety_identifier: typing.Optional[SafetyIdentifier] = pydantic.Field(default=None) + """ + 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. + """ + voice_id: str = pydantic.Field() """ Id of the voice to be used for synthesizing speech. Refer to /v1/voices endpoint for available voices diff --git a/src/speechify/types/get_stream_request_model.py b/src/speechify/types/get_stream_request_model.py index d7fa1c4..176168d 100644 --- a/src/speechify/types/get_stream_request_model.py +++ b/src/speechify/types/get_stream_request_model.py @@ -2,6 +2,4 @@ import typing -GetStreamRequestModel = typing.Union[ - typing.Literal["simba-english", "simba-multilingual", "simba-3.0", "simba-3.2"], typing.Any -] +GetStreamRequestModel = typing.Union[typing.Literal["simba-3.0", "simba-3.2", "simba-3.5"], typing.Any] diff --git a/src/speechify/types/get_voice.py b/src/speechify/types/get_voice.py index 63e3322..9dd7bdb 100644 --- a/src/speechify/types/get_voice.py +++ b/src/speechify/types/get_voice.py @@ -17,6 +17,39 @@ class GetVoice(UniversalBaseModel): id: str models: typing.List[GetVoicesModel] preview_audio: typing.Optional[str] = None + project_id: typing.Optional[str] = pydantic.Field(default=None) + """ + The workspace project this cloned voice is filed under, set when + a project-pinned key created it. Returned wherever a cloned voice + is: the list, a single-voice read, and the create response. + + Omitted for a shared-catalog voice and for a cloned voice no + project filed, which is shared with the whole workspace and + listed for every member of it. + """ + + can_manage: typing.Optional[bool] = pydantic.Field(default=None) + """ + Whether this workspace may delete the voice and download its + sample through this API. `true` for a cloned voice the workspace + owns. `false` for a shared-catalog voice, and for a cloned voice + that reaches this workspace only through its creator's personal + account (a voice cloned before workspace ownership, or under + another Speechify product), which is managed where it was made. + """ + + staff_pick_rank: typing.Optional[int] = pydantic.Field(default=None) + """ + This voice's place among the staff picks for its `locale`: `1` + is the voice Speechify recommends first for that language, `2` + the next, and so on. Omitted for a voice that is not a staff + pick, and always for a cloned voice. + + Simba 3.5 sounds best with a voice native to the language you + generate, so to choose a voice for a language, filter by + `locale` and start from its lowest `staff_pick_rank`. + """ + tags: typing.Optional[typing.List[str]] = None type: GetVoiceType diff --git a/src/speechify/types/get_voices_model.py b/src/speechify/types/get_voices_model.py index 57862c6..fc4ad56 100644 --- a/src/speechify/types/get_voices_model.py +++ b/src/speechify/types/get_voices_model.py @@ -10,7 +10,14 @@ class GetVoicesModel(UniversalBaseModel): languages: typing.List[GetVoiceLanguage] - name: GetVoicesModelName + name: GetVoicesModelName = pydantic.Field() + """ + A model this voice can be synthesized with. The set is filtered to + what YOUR workspace's API version can select, so a voice never + advertises a model your own synthesis request would reject. The + legacy `simba-english` / `simba-multilingual` values appear only for + a workspace pinned before API version `2026-09-21`. + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/speechify/types/get_voices_model_name.py b/src/speechify/types/get_voices_model_name.py index 19cc815..e71fa35 100644 --- a/src/speechify/types/get_voices_model_name.py +++ b/src/speechify/types/get_voices_model_name.py @@ -3,5 +3,5 @@ import typing GetVoicesModelName = typing.Union[ - typing.Literal["simba-english", "simba-multilingual", "simba-3.0", "simba-3.2"], typing.Any + typing.Literal["simba-english", "simba-multilingual", "simba-3.0", "simba-3.2", "simba-3.5"], typing.Any ] diff --git a/src/speechify/types/list_projects_response.py b/src/speechify/types/list_projects_response.py new file mode 100644 index 0000000..b2000c2 --- /dev/null +++ b/src/speechify/types/list_projects_response.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .pagination_meta import PaginationMeta +from .project import Project + + +class ListProjectsResponse(PaginationMeta): + projects: typing.List[Project] + + 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/list_voices_response.py b/src/speechify/types/list_voices_response.py index 9804146..16159e3 100644 --- a/src/speechify/types/list_voices_response.py +++ b/src/speechify/types/list_voices_response.py @@ -12,9 +12,9 @@ class ListVoicesResponse(PaginationMeta): """ Payload for `GET /v1/voices` - the shared voice catalog plus the workspace's personal cloned voices. Carries the shared pagination - metadata so the list can be paged when `limit` is supplied; - `next_cursor` is null and `has_more` is false when the full - catalogue is returned in one response. + metadata: pass `next_cursor` as `cursor` to fetch the next page + while `has_more` is true. `next_cursor` is null and `has_more` is + false on the last page. """ voices: typing.List[GetVoice] diff --git a/src/speechify/types/list_webhook_endpoint_deliveries_response.py b/src/speechify/types/list_webhook_endpoint_deliveries_response.py new file mode 100644 index 0000000..cae6bc5 --- /dev/null +++ b/src/speechify/types/list_webhook_endpoint_deliveries_response.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .pagination_meta import PaginationMeta +from .webhook_endpoint_delivery import WebhookEndpointDelivery + + +class ListWebhookEndpointDeliveriesResponse(PaginationMeta): + """ + Payload for GET /v1/webhooks/endpoints/{webhook_endpoint_id}/deliveries. + """ + + deliveries: typing.List[WebhookEndpointDelivery] + + 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/list_webhook_endpoints_response.py b/src/speechify/types/list_webhook_endpoints_response.py new file mode 100644 index 0000000..7677a8d --- /dev/null +++ b/src/speechify/types/list_webhook_endpoints_response.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .pagination_meta import PaginationMeta +from .webhook_endpoint import WebhookEndpoint + + +class ListWebhookEndpointsResponse(PaginationMeta): + """ + Payload for GET /v1/webhooks/endpoints. + """ + + endpoints: typing.List[WebhookEndpoint] + + 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/model.py b/src/speechify/types/model.py index b8aad5f..ba83bcc 100644 --- a/src/speechify/types/model.py +++ b/src/speechify/types/model.py @@ -1,5 +1,6 @@ # This file was auto-generated by Fern from our API Definition. +import datetime as dt import typing import pydantic @@ -26,8 +27,8 @@ class Model(UniversalBaseModel): """ Whether this is the model used when a synthesis request omits `model`. Exactly one model in the list is the default. Distinct - from `recommended`: the default accepts every voice, while the - recommended model may serve a curated or English-only set. + from `recommended`: the default accepts every voice in every + language, while the recommended model may be English-only. """ recommended: bool = pydantic.Field() @@ -39,10 +40,35 @@ class Model(UniversalBaseModel): deprecated: bool = pydantic.Field() """ - Whether this is a legacy model. Advisory only: a deprecated model - stays selectable and behaves exactly as before, and nothing is - scheduled for removal. De-emphasise it in a picker and steer new - integrations to a current model. + Whether this is a legacy model. De-emphasise it in a picker and + steer new integrations to a current model. Read `retired_at` for + whether it also has a withdrawal date. + """ + + retired_at: typing.Optional[dt.date] = pydantic.Field(default=None) + """ + The API version at which this model stops being selectable, as + `YYYY-MM-DD`. Absent when the model has no withdrawal date. + + It appears only while your workspace is pinned BELOW that version - + at or after it the model is absent from this catalog entirely, and + naming it returns 400 `model_retired`. So a present value means "you + can still use this, and this is the date you lose it". Pinning your + API version before this date keeps the model working, up to + `sunset_at`. + """ + + sunset_at: typing.Optional[dt.date] = pydantic.Field(default=None) + """ + The date this model's own training stops serving this id, as + `YYYY-MM-DD`. Absent when no sunset is scheduled. + + This is the deadline `retired_at`'s version pin runs out against: + from `sunset_at` the training behind the id changes on EVERY API + version, including a workspace pinned below its retirement. The + Simba 1.6 pair keeps answering from that date, served by our current + models, so the change is to the audio, not to the request. Read the + two together - a pin holds the old training, not forever. """ description: str = pydantic.Field() @@ -60,21 +86,19 @@ class Model(UniversalBaseModel): endpoints: typing.List[str] = pydantic.Field() """ - The synthesis routes this model may be passed to. Only the - streaming-native models serve `/v1/audio/stream/with-timestamps`; - passing a model this list omits is a 400 rather than a degraded - response, so branch on it instead of discovering it at call time. + The synthesis routes this model may be passed to. Passing it to a + route this list omits is a 400 rather than a degraded response, so + branch on it instead of discovering it at call time. """ curated_voices: bool = pydantic.Field() """ - Whether the model's stock voices are restricted to the set curated - for it. When true, pick a stock voice whose `models` array in - GET /v1/voices names this model; any other stock voice is rejected. - When false, every stock catalogue voice works. Cloned voices are - governed separately - always read each voice's own `models` array in - GET /v1/voices, which reflects what your workspace may actually - synthesize. + Deprecated and always `false`. No model restricts synthesis to a + registered voice set: every training conditions on the voice's own + prompt audio, so every catalogue voice and every cloned voice works + on every model, subject only to `english_voices_only`. Each voice's + `models` array in GET /v1/voices stays the per-voice answer. The + field remains on the response for compatibility. """ english_voices_only: bool = pydantic.Field() @@ -84,6 +108,16 @@ class Model(UniversalBaseModel): voice. """ + pronunciation_languages: typing.List[str] = pydantic.Field() + """ + The `languages` in which a synthesis request naming this model may + carry `pronunciations`; empty when the model takes none. A request + in any other language with a non-empty `pronunciations` returns 400 + `pronunciations_unsupported`, decided by the same language that + picks the model's training: the request `language`, else the + voice's locale. + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/speechify/types/models_response.py b/src/speechify/types/models_response.py index def867b..b8a73a3 100644 --- a/src/speechify/types/models_response.py +++ b/src/speechify/types/models_response.py @@ -9,7 +9,14 @@ class ModelsResponse(UniversalBaseModel): """ - The catalog of text-to-speech models available for synthesis. + The catalog of text-to-speech models available for synthesis. The list + is scoped to your workspace's API version: a model retired at or before + it is absent here and returns 400 `model_retired` from the synthesis + endpoints, so what this returns is exactly what you can call. The + example below is the catalog at the current version - a workspace pinned + before `2026-09-21` also sees `simba-english` and `simba-multilingual`, + each carrying `retired_at` and the `sunset_at` date its pin expires + against. """ models: typing.List[Model] = pydantic.Field() diff --git a/src/speechify/types/project.py b/src/speechify/types/project.py new file mode 100644 index 0000000..beeac99 --- /dev/null +++ b/src/speechify/types/project.py @@ -0,0 +1,144 @@ +# 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 .project_monthly_budget_status import ProjectMonthlyBudgetStatus + + +class Project(UniversalBaseModel): + """ + A workspace project: a resource grouping that a member grant or a + credential pin can also scope. Resources reference a project by id; + a resource with no `project_id` lives in the implicit Default + project. A project can carry member grants, which scope a granted + member to the projects they hold, and the invoice stays + workspace-level with no billing split. A project may carry a monthly + spend LIMIT, which bounds work without splitting the bill, capacity + CEILINGS such as `max_requests_per_minute` that sit below the + workspace's own plan limits so one project cannot consume the whole + allowance, and it may be ARCHIVED, which suspends all work and spend + inside it while everything stays readable. + + An application building on this platform models one of its OWN + business customers as a project: it is the level that both + attributes cost (`monthly_spend`, grouped per project on the usage + breakdown) and ENFORCES it (`monthly_budget` and the capacity + ceilings). How many projects a workspace may hold is the workspace's + own ceiling; a create past it answers `409 project_limit_reached`, + and deleting an unused project frees a slot. + """ + + archived_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) + """ + When the project was archived; `null` while it is live. While + set, nothing new starts or bills inside the project and every + such attempt answers `409 project_archived`. + + Absent rather than null while a console runs ahead of an API + that predates archiving, which is why it is not required: + read absent and null alike. + """ + + purged_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) + """ + When this project was purged, present only on the rows returned + by `include_purged=true`. A purged project is kept for 30 days + from this stamp and permanently deleted after that, so the + restore deadline is this value plus the window; it is absent on + every project that still exists. Restore it with + `POST /v1/projects/{project_id}/restore`. + """ + + max_requests_per_minute: typing.Optional[int] = pydantic.Field(default=None) + """ + The most API requests per minute credentials pinned to this + project may make across every surface, present only when set. + Checked after the workspace's own request-rate limit, in one + bucket per project: a request over the ceiling is refused with + the same `429 rate_limited` the workspace limit answers, while + other projects and unpinned credentials are untouched. Never + higher than the workspace's widest per-surface rate over a + minute: a project can narrow the workspace's capacity, not + raise it. Console sessions and unpinned keys carry no project + and are never subject to it. + """ + + monthly_budget: typing.Optional[float] = pydantic.Field(default=None) + """ + The project's monthly spend limit in US dollars, present only + when one is set. New billable work attributed to this project is + refused with the coded `402 project_spend_limit_exceeded` once + `monthly_spend` reaches it; the limit resets at the + calendar-month boundary (UTC). + + Spend is attributed the same way it is billed: work from a + project-pinned API key counts against that key's project, and + work by a resource in a project counts against that project. The + implicit Default project cannot carry a limit, since it has no + project record, so spend there is bounded by the workspace's + `monthly_budget` instead. + """ + + monthly_spend: typing.Optional[float] = pydantic.Field(default=None) + """ + The project's billed month-to-date spend in US dollars, present + whenever the billing plane answered - regardless of whether a + spend limit is set. + """ + + monthly_budget_status: typing.Optional[ProjectMonthlyBudgetStatus] = pydantic.Field(default=None) + """ + Where `monthly_spend` stands against `monthly_budget`, present + only when both are: `warning` from 80% of the budget, `reached` + once the spend has reached it and new billable work attributed to + the project is refused with `402 project_spend_limit_exceeded`, + `ok` below 80%. These are the thresholds the + `project.spend_budget.warning` and `project.spend_budget.reached` + webhook events fire at, so polling this field and subscribing to + the events give the same answer. + """ + + monthly_budget_remaining: typing.Optional[float] = pydantic.Field(default=None) + """ + `monthly_budget` minus `monthly_spend` in US dollars, present only + when both are. Negative once the spend has passed the budget, by + the amount it overshot: enforcement trails billed usage by a + couple of minutes, so work already under way can carry a project + past its budget. + """ + + id: str = pydantic.Field() + """ + Workspace-scoped project identifier (prefixed external id). + """ + + name: str = pydantic.Field() + """ + Human-readable label, unique per workspace (case-insensitive). + """ + + resource_count: int = pydantic.Field() + """ + How many resources this project holds. Records of work that + happened are not counted, and never hold a project open. + + It is the count the unqualified delete refuses on, so a project + reading `0` is one `DELETE /v1/projects/{project_id}` accepts + with no body. That is what makes an application's own cleanup a + single list call rather than a read per project. + """ + + created_at: dt.datetime + updated_at: dt.datetime + + 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/project_audit_event.py b/src/speechify/types/project_audit_event.py new file mode 100644 index 0000000..fd0a92e --- /dev/null +++ b/src/speechify/types/project_audit_event.py @@ -0,0 +1,73 @@ +# 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 .project_audit_event_type import ProjectAuditEventType + + +class ProjectAuditEvent(UniversalBaseModel): + """ + One change to this project's access or lifecycle state. The subject is + whose access changed; the actor is who changed it. + + Every field below is always present. A field the event did not carry is + `null`, which is a different fact from the key being absent altogether: + `null` means this event had no such party, an absent key would mean the + entry predates the platform recording that party at all. Audit entries + are never backfilled, so the two are kept distinct. + """ + + time: dt.datetime = pydantic.Field() + """ + When the change was recorded. + """ + + type: ProjectAuditEventType = pydantic.Field() + """ + What changed. `access_widened_to_workspace` is the revoke that + removed the subject's LAST grant anywhere: a member with no grants + reaches the whole workspace, so that revoke widened them rather + than narrowing them. + """ + + subject_user_id: typing.Optional[str] = pydantic.Field(default=None) + """ + The member whose access changed. Null on a lifecycle change, which is done to the project rather than to a person. + """ + + actor_user_id: typing.Optional[str] = pydantic.Field(default=None) + """ + The member who made the change. Null when the change was system-initiated. + """ + + actor_email: typing.Optional[str] = pydantic.Field(default=None) + """ + The actor's email at the time of the change. Null when the change carried no email. + """ + + actor_role: typing.Optional[str] = pydantic.Field(default=None) + """ + The workspace role the actor held at the time. A role read back today cannot answer what they held when they acted. Null when the change carried no role. + """ + + impersonator_email: typing.Optional[str] = pydantic.Field(default=None) + """ + The Speechify support admin acting on the workspace's behalf. Null unless the change came through support. + """ + + remaining_grants: typing.Optional[int] = pydantic.Field(default=None) + """ + How many projects the subject held after the change. Null on a lifecycle change; zero is what makes a revoke a widening to the whole workspace. + """ + + 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/project_audit_event_type.py b/src/speechify/types/project_audit_event_type.py new file mode 100644 index 0000000..68e8839 --- /dev/null +++ b/src/speechify/types/project_audit_event_type.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +ProjectAuditEventType = typing.Union[ + typing.Literal["access_granted", "access_revoked", "access_widened_to_workspace", "archived", "unarchived"], + typing.Any, +] diff --git a/src/speechify/types/project_audit_response.py b/src/speechify/types/project_audit_response.py new file mode 100644 index 0000000..b7d709f --- /dev/null +++ b/src/speechify/types/project_audit_response.py @@ -0,0 +1,25 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .pagination_meta import PaginationMeta +from .project_audit_event import ProjectAuditEvent + + +class ProjectAuditResponse(PaginationMeta): + """ + One page of a project's audit trail, newest change first. + """ + + events: typing.List[ProjectAuditEvent] + + 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/project_member.py b/src/speechify/types/project_member.py new file mode 100644 index 0000000..01fc46d --- /dev/null +++ b/src/speechify/types/project_member.py @@ -0,0 +1,33 @@ +# 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 + + +class ProjectMember(UniversalBaseModel): + """ + One project grant - a workspace member who may reach this project. + """ + + user_id: str = pydantic.Field() + """ + The member's prefixed user id, joinable to the workspace members list. + """ + + created_at: dt.datetime + granted_by: str = pydantic.Field() + """ + The prefixed user id of whoever made the grant. Attribution only. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/types/project_members_response.py b/src/speechify/types/project_members_response.py new file mode 100644 index 0000000..d4c5f75 --- /dev/null +++ b/src/speechify/types/project_members_response.py @@ -0,0 +1,21 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .pagination_meta import PaginationMeta +from .project_member import ProjectMember + + +class ProjectMembersResponse(PaginationMeta): + members: typing.List[ProjectMember] + + 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/project_monthly_budget_status.py b/src/speechify/types/project_monthly_budget_status.py new file mode 100644 index 0000000..9489d19 --- /dev/null +++ b/src/speechify/types/project_monthly_budget_status.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +ProjectMonthlyBudgetStatus = typing.Union[typing.Literal["ok", "warning", "reached"], typing.Any] diff --git a/src/speechify/types/project_restore.py b/src/speechify/types/project_restore.py new file mode 100644 index 0000000..21e735c --- /dev/null +++ b/src/speechify/types/project_restore.py @@ -0,0 +1,56 @@ +# 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 .project_still_revoked_counts import ProjectStillRevokedCounts + + +class ProjectRestore(UniversalBaseModel): + """ + The outcome of restoring a purged project: what deliberately did not + come back. + + `still_revoked` counts the credentials the purge revoked and this + call left revoked, because re-issuing a credential someone killed + would hand back access rather than restore a project. Member grants + and pending-invite scopes are in that group too, but their rows were + removed by the purge, so they cannot be counted and appear only in + `not_restored_note`. + + The project comes back ARCHIVED, the state it was purged from, so + `archived_at` is always set: nothing dispatches or bills inside it + until you unarchive it on purpose. + """ + + id: typing.Optional[str] = None + name: typing.Optional[str] = None + purged_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) + """ + When the purge this call walked back happened. + """ + + archived_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) + """ + When the project was archived. Always set on a restore: a project + comes back suspended, never live. + """ + + still_revoked: typing.Optional[ProjectStillRevokedCounts] = None + not_restored_note: typing.Optional[str] = pydantic.Field(default=None) + """ + A plain-language statement of what a restore does not bring back. + Constant text, meant to be shown to a person; branch on + `still_revoked` rather than parsing it. + """ + + 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/project_still_revoked_counts.py b/src/speechify/types/project_still_revoked_counts.py new file mode 100644 index 0000000..8f16eab --- /dev/null +++ b/src/speechify/types/project_still_revoked_counts.py @@ -0,0 +1,27 @@ +# 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 ProjectStillRevokedCounts(UniversalBaseModel): + """ + What the restore deliberately left revoked: the credentials the purge + killed. Every field is a real count, including zero. + """ + + api_keys: typing.Optional[int] = None + service_accounts: typing.Optional[int] = None + credentials: typing.Optional[int] = None + webhook_endpoints: typing.Optional[int] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/types/pronunciation.py b/src/speechify/types/pronunciation.py new file mode 100644 index 0000000..120d645 --- /dev/null +++ b/src/speechify/types/pronunciation.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .pronunciation_alias import PronunciationAlias +from .pronunciation_ipa import PronunciationIpa + +Pronunciation = typing.Union[PronunciationIpa, PronunciationAlias] diff --git a/src/speechify/types/pronunciation_alias.py b/src/speechify/types/pronunciation_alias.py new file mode 100644 index 0000000..c4c2099 --- /dev/null +++ b/src/speechify/types/pronunciation_alias.py @@ -0,0 +1,31 @@ +# 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 .pronunciation_case_sensitive import PronunciationCaseSensitive +from .pronunciation_text import PronunciationText + + +class PronunciationAlias(UniversalBaseModel): + """ + Say this text in place of `text`. + """ + + text: PronunciationText + alias: str = pydantic.Field() + """ + Plain text spoken in place of `text`: a respelling that sounds right (`koo-ber-net-eez`) or a substitution (`SaaS` spoken as `sass`). Up to 160 characters, no control characters. An alias is checked by the same content policy as `input`. + """ + + case_sensitive: typing.Optional[PronunciationCaseSensitive] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/types/pronunciation_case_sensitive.py b/src/speechify/types/pronunciation_case_sensitive.py new file mode 100644 index 0000000..bb9a6fa --- /dev/null +++ b/src/speechify/types/pronunciation_case_sensitive.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +PronunciationCaseSensitive = bool +""" +When true, the entry matches `text` only with the same capitalization. When false, the default, it matches regardless of case. +""" diff --git a/src/speechify/types/pronunciation_ipa.py b/src/speechify/types/pronunciation_ipa.py new file mode 100644 index 0000000..797547d --- /dev/null +++ b/src/speechify/types/pronunciation_ipa.py @@ -0,0 +1,31 @@ +# 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 .pronunciation_case_sensitive import PronunciationCaseSensitive +from .pronunciation_ipa_text import PronunciationIpaText + + +class PronunciationIpa(UniversalBaseModel): + """ + Say `text` with these phones. + """ + + 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. + """ + + case_sensitive: typing.Optional[PronunciationCaseSensitive] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/types/pronunciation_ipa_text.py b/src/speechify/types/pronunciation_ipa_text.py new file mode 100644 index 0000000..bec8678 --- /dev/null +++ b/src/speechify/types/pronunciation_ipa_text.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +PronunciationIpaText = str +""" +The one word the phones say, as it appears in `input`. Up to 64 characters, no whitespace and no control characters: give a phrase one entry per word, or an `alias`. Two entries with the same `text` return `400 validation_failed`; texts compare case-insensitively unless both entries are `case_sensitive`. +""" diff --git a/src/speechify/types/pronunciation_text.py b/src/speechify/types/pronunciation_text.py new file mode 100644 index 0000000..8013529 --- /dev/null +++ b/src/speechify/types/pronunciation_text.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +PronunciationText = str +""" +The word or phrase as it appears in `input`. Up to 64 characters, no control characters, not only whitespace. Two entries with the same `text` return `400 validation_failed`; texts compare case-insensitively unless both entries are `case_sensitive`. +""" diff --git a/src/speechify/types/pronunciations.py b/src/speechify/types/pronunciations.py new file mode 100644 index 0000000..b7b3af6 --- /dev/null +++ b/src/speechify/types/pronunciations.py @@ -0,0 +1,14 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from .pronunciation import Pronunciation + +Pronunciations = typing.List[Pronunciation] +""" +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. + +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/safety_identifier.py b/src/speechify/types/safety_identifier.py new file mode 100644 index 0000000..db4bf62 --- /dev/null +++ b/src/speechify/types/safety_identifier.py @@ -0,0 +1,10 @@ +# This file was auto-generated by Fern from our API Definition. + +SafetyIdentifier = str +""" +A stable, opaque identifier for the end user of your application on whose behalf this request is made. Use it when many of your own users share one Speechify workspace, for example behind a gateway, a reseller or a consumer app. + +Send a hash of your internal user id (for example a hex or base64 SHA-256), or an opaque id that means nothing outside your system. Never send an email address, a name, a phone number or any other personal data: the field accepts only letters, digits and `. _ - : | + / =`, so an email address is refused with `400 validation_failed`. + +The identifier is request metadata, not content. It is recorded with the request even when your workspace has zero data retention, so abuse can be attributed to one end user rather than to your whole workspace. When your workspace has per-end-user limits, it also has its own rate and concurrency allowance inside the workspace's (`429` with a message naming the `safety_identifier`), and a blocked identifier is refused with `403 safety_identifier_blocked` while your other end users are unaffected. Omitting it changes nothing. See https://docs.speechify.ai/build/guides/concepts/safety-identifiers. +""" diff --git a/src/speechify/types/speech_error_event.py b/src/speechify/types/speech_error_event.py index b976c91..ee01759 100644 --- a/src/speechify/types/speech_error_event.py +++ b/src/speechify/types/speech_error_event.py @@ -11,7 +11,8 @@ class SpeechErrorEvent(UniversalBaseModel): """ Terminal event carrying the standard error envelope, emitted when a failure happens after the stream has started and the status code is - already committed. + already committed: an upstream fault (`upstream_failure`) or a content + policy refusal (`content_policy_violation`). """ error: ErrorDetail diff --git a/src/speechify/types/watermark_detection_response.py b/src/speechify/types/watermark_detection_response.py new file mode 100644 index 0000000..a122d4e --- /dev/null +++ b/src/speechify/types/watermark_detection_response.py @@ -0,0 +1,38 @@ +# 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 WatermarkDetectionResponse(UniversalBaseModel): + """ + The watermark detector's answer for one clip. + + `watermarked: true` is positive evidence the audio came from Speechify + synthesis. `watermarked: false` is the absence of that evidence, not + proof of a negative - see the endpoint description for the three reasons + genuinely Speechify-generated audio can come back unmarked. + """ + + watermarked: bool = pydantic.Field() + """ + Whether the clip carries the watermark, i.e. whether `confidence` + cleared the service's configured bar. + """ + + confidence: float = pydantic.Field() + """ + The detector's score for this clip, in [0, 1]. Comparable only + between checks made against the same detector version. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/types/watermark_verification_response.py b/src/speechify/types/watermark_verification_response.py new file mode 100644 index 0000000..1316473 --- /dev/null +++ b/src/speechify/types/watermark_verification_response.py @@ -0,0 +1,34 @@ +# 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 WatermarkVerificationResponse(UniversalBaseModel): + """ + The verification answer for one clip. + + One field, and no confidence score: a score is a gradient, and a public + gradient turns "does this carry the mark" into "adjust the clip until + the number drops". Use `POST /v1/audio/watermark/detect` if you need it. + + `watermarked: true` is positive evidence the audio came from Speechify + synthesis. `watermarked: false` is the absence of that evidence, not + proof of a negative - see the endpoint description. + """ + + watermarked: bool = pydantic.Field() + """ + Whether the clip carries the Speechify watermark. + """ + + 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/webhook_delivery_status.py b/src/speechify/types/webhook_delivery_status.py new file mode 100644 index 0000000..c4d1bc5 --- /dev/null +++ b/src/speechify/types/webhook_delivery_status.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WebhookDeliveryStatus = typing.Union[typing.Literal["pending", "delivered", "failed"], typing.Any] diff --git a/src/speechify/types/webhook_endpoint.py b/src/speechify/types/webhook_endpoint.py new file mode 100644 index 0000000..8c8116d --- /dev/null +++ b/src/speechify/types/webhook_endpoint.py @@ -0,0 +1,103 @@ +# 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 + + +class WebhookEndpoint(UniversalBaseModel): + """ + A workspace webhook endpoint: a destination URL, the events it + subscribes to, and a server-minted HMAC signing secret. `secret` is + returned ONLY in the create and rotate-secret responses — store it + then; every other read omits it. + + An endpoint is either scoped to one project (`project_id`) or + workspace-wide, and a workspace-wide endpoint receives events from + every project. + """ + + id: str = pydantic.Field() + """ + Prefixed wire id (`whe_<26 char Crockford base32>`). + """ + + url: str = pydantic.Field() + """ + HTTPS destination Speechify POSTs signed events to. + """ + + project_id: typing.Optional[str] = pydantic.Field(default=None) + """ + The project whose events this endpoint receives (prefixed + external id). Null means workspace-wide - it receives every + project's events. Endpoints have no Default project. + + An event is routed by the project frozen on the row that + produced it (an API key's project, for example), and for a + `project.spend_budget.*` event the project itself. + Workspace-level events such as `workspace.spend_budget.*` belong + to no project and reach workspace-wide endpoints only, so a + scoped endpoint subscribed to those alone is refused with a 400 + naming `enabled_events` rather than accepted and never delivered + to. A scoped endpoint records no delivery for another project's + events. + """ + + enabled_events: typing.List[str] = pydantic.Field() + """ + The events this endpoint receives: a list of catalog event names + (for example `workspace.spend_budget.warning`) or `["*"]` for + every event, current and future. + """ + + include: typing.List[str] = pydantic.Field() + """ + Per-event payload shaping. Deliveries are lean by default: + `data.object` carries only the resource GET snapshot. List heavy + collections here to have them appended under the event's `data` + alongside `object`, so receivers behind hard request-size caps + stay lean unless they opt in. An event's documentation names the + keys it recognises. Empty = lean. + """ + + api_version: dt.date = pydantic.Field() + """ + The dated payload shape this endpoint receives (`YYYY-MM-DD`), the + same versioning vocabulary the REST API uses. Every delivery is + rendered back to this version and carries it in the + `Speechify-Version` header and the payload's top-level `version` + field. Defaults to your workspace's current version at creation; + change it to opt into a newer shape. + """ + + description: typing.Optional[str] = pydantic.Field(default=None) + """ + Optional human-readable label for the endpoint. + """ + + disabled: bool = pydantic.Field() + """ + When true, Speechify stops delivering to this endpoint. + """ + + secret: typing.Optional[str] = pydantic.Field(default=None) + """ + The HMAC-SHA256 signing secret (`whsec_…`) used to verify the + `Speechify-Signature` header. Returned ONLY when the endpoint is + created or its secret is rotated — it is never shown again. + """ + + created_at: dt.datetime + updated_at: dt.datetime + + 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/webhook_endpoint_delivery.py b/src/speechify/types/webhook_endpoint_delivery.py new file mode 100644 index 0000000..4d38d08 --- /dev/null +++ b/src/speechify/types/webhook_endpoint_delivery.py @@ -0,0 +1,70 @@ +# 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 .webhook_delivery_status import WebhookDeliveryStatus + + +class WebhookEndpointDelivery(UniversalBaseModel): + """ + One row of an endpoint's delivery log. One row per (endpoint, event, + resource); updated in place across retry attempts. Each row records the + exact request payload + signed headers Speechify sent and the response + your server returned, so you can verify the signature and debug failures. + """ + + id: str = pydantic.Field() + """ + Prefixed delivery id (`whd_<26 char Crockford base32>`). + """ + + webhook_endpoint_id: str = pydantic.Field() + """ + The endpoint this delivery targeted (`whe_…`). + """ + + event: str = pydantic.Field() + """ + The event type delivered (see `WebhookEventType`). + """ + + url: str = pydantic.Field() + """ + The destination URL at delivery time. + """ + + status: WebhookDeliveryStatus + attempt_count: int + last_attempt_at: typing.Optional[dt.datetime] = None + last_status_code: typing.Optional[int] = None + last_error: typing.Optional[str] = None + created_at: dt.datetime + request_body: typing.Optional[str] = pydantic.Field(default=None) + """ + The verbatim payload the `Speechify-Signature` HMAC was computed over + (as `.`). + """ + + request_headers: typing.Optional[typing.Dict[str, str]] = pydantic.Field(default=None) + """ + Headers sent, including `Speechify-Signature` / `Speechify-Event` / `Speechify-Delivery-Id`. + """ + + last_response_body: typing.Optional[str] = pydantic.Field(default=None) + """ + Your server's response body on the most recent attempt (truncated to 8 KiB). + """ + + last_response_headers: typing.Optional[typing.Dict[str, str]] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/speechify/voices/client.py b/src/speechify/voices/client.py index 80b21fc..ff7b7f6 100644 --- a/src/speechify/voices/client.py +++ b/src/speechify/voices/client.py @@ -47,17 +47,25 @@ def list( locale: typing.Optional[str] = None, gender: typing.Optional[ListVoicesRequestGender] = None, model: typing.Optional[str] = None, + project_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[GetVoice, ListVoicesResponse]: """ Lists the voices available to the caller - the shared voice - catalog plus the workspace's cloned voices, whichever member or - service-account key created them. By default - the full catalogue is returned in one response. Pagination is - opt-in: pass `limit` (and then `cursor` from the previous - response) to page through the list while `has_more` is true. Max - page size is 200. Narrow the list with the `type` and `locale` - filters (applied before pagination, so pages stay full). + 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. Parameters ---------- @@ -83,6 +91,22 @@ def list( 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. @@ -96,12 +120,13 @@ def list( from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) response = client.voices.list( locale="en", model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", ) for item in response: yield item @@ -116,6 +141,7 @@ def list( locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) @@ -137,9 +163,11 @@ def create( 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`, `simba-english` and `simba-multilingual`. `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. + 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`. - Callers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog. + 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. Parameters ---------- @@ -191,7 +219,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.voices.create( @@ -239,7 +267,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.voices.get( @@ -255,6 +283,10 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio `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. + Parameters ---------- voice_id : str @@ -272,7 +304,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.voices.delete( @@ -306,7 +338,7 @@ def download_sample( from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.voices.download_sample( @@ -351,17 +383,25 @@ async def list( locale: typing.Optional[str] = None, gender: typing.Optional[ListVoicesRequestGender] = None, model: typing.Optional[str] = None, + project_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[GetVoice, ListVoicesResponse]: """ Lists the voices available to the caller - the shared voice - catalog plus the workspace's cloned voices, whichever member or - service-account key created them. By default - the full catalogue is returned in one response. Pagination is - opt-in: pass `limit` (and then `cursor` from the previous - response) to page through the list while `has_more` is true. Max - page size is 200. Narrow the list with the `type` and `locale` - filters (applied before pagination, so pages stay full). + 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. Parameters ---------- @@ -387,6 +427,22 @@ async def list( 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. @@ -402,7 +458,7 @@ async def list( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) @@ -411,6 +467,7 @@ async def main() -> None: response = await client.voices.list( locale="en", model="simba-3.2", + project_id="proj_01arz3ndektsv4rrffq69g5fav", ) async for item in response: yield item @@ -429,6 +486,7 @@ async def main() -> None: locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) @@ -450,9 +508,11 @@ async def create( 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`, `simba-english` and `simba-multilingual`. `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. + 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`. - Callers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog. + 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. Parameters ---------- @@ -506,7 +566,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) @@ -562,7 +622,7 @@ async def get(self, voice_id: str, *, request_options: typing.Optional[RequestOp from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) @@ -584,6 +644,10 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques `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. + Parameters ---------- voice_id : str @@ -603,7 +667,7 @@ async def delete(self, voice_id: str, *, request_options: typing.Optional[Reques from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) @@ -645,7 +709,7 @@ async def download_sample( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/consent_challenges/client.py b/src/speechify/voices/consent_challenges/client.py index 754faa9..9896864 100644 --- a/src/speechify/voices/consent_challenges/client.py +++ b/src/speechify/voices/consent_challenges/client.py @@ -42,6 +42,8 @@ def create( 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. + Parameters ---------- full_name : str @@ -78,7 +80,7 @@ def create( from speechify import Speechify client = Speechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) client.voices.consent_challenges.create( @@ -123,6 +125,8 @@ async def create( 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. + Parameters ---------- full_name : str @@ -161,7 +165,7 @@ async def create( from speechify import AsyncSpeechify client = AsyncSpeechify( - "2026-09-13", + version="2026-09-30", token="YOUR_TOKEN", ) diff --git a/src/speechify/voices/consent_challenges/raw_client.py b/src/speechify/voices/consent_challenges/raw_client.py index b9bdd29..c3a159c 100644 --- a/src/speechify/voices/consent_challenges/raw_client.py +++ b/src/speechify/voices/consent_challenges/raw_client.py @@ -46,6 +46,8 @@ def create( 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. + Parameters ---------- full_name : str @@ -79,6 +81,7 @@ def create( """ _response = self._client_wrapper.httpx_client.request( "v1/voices/consent-challenges", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "full_name": full_name, @@ -229,6 +232,8 @@ async def create( 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. + Parameters ---------- full_name : str @@ -262,6 +267,7 @@ async def create( """ _response = await self._client_wrapper.httpx_client.request( "v1/voices/consent-challenges", + base_url=self._client_wrapper.get_environment().base, method="POST", json={ "full_name": full_name, diff --git a/src/speechify/voices/raw_client.py b/src/speechify/voices/raw_client.py index a977bff..f0a2a43 100644 --- a/src/speechify/voices/raw_client.py +++ b/src/speechify/voices/raw_client.py @@ -50,17 +50,25 @@ def list( locale: typing.Optional[str] = None, gender: typing.Optional[ListVoicesRequestGender] = None, model: typing.Optional[str] = None, + project_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[GetVoice, ListVoicesResponse]: """ Lists the voices available to the caller - the shared voice - catalog plus the workspace's cloned voices, whichever member or - service-account key created them. By default - the full catalogue is returned in one response. Pagination is - opt-in: pass `limit` (and then `cursor` from the previous - response) to page through the list while `has_more` is true. Max - page size is 200. Narrow the list with the `type` and `locale` - filters (applied before pagination, so pages stay full). + 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. Parameters ---------- @@ -86,6 +94,22 @@ def list( 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. @@ -96,6 +120,7 @@ def list( """ _response = self._client_wrapper.httpx_client.request( "v1/voices", + base_url=self._client_wrapper.get_environment().base, method="GET", params={ "cursor": cursor, @@ -104,6 +129,7 @@ def list( "locale": locale, "gender": gender, "model": model, + "project_id": project_id, }, request_options=request_options, ) @@ -126,6 +152,7 @@ def list( locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -211,9 +238,11 @@ def create( 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`, `simba-english` and `simba-multilingual`. `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. + 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`. - Callers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog. + 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. Parameters ---------- @@ -265,6 +294,7 @@ def create( ) _response = self._client_wrapper.httpx_client.request( "v1/voices", + base_url=self._client_wrapper.get_environment().base, method="POST", data={ "name": name, @@ -446,6 +476,7 @@ def get(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] """ _response = self._client_wrapper.httpx_client.request( f"v1/voices/{encode_path_param(voice_id)}", + base_url=self._client_wrapper.get_environment().base, method="GET", request_options=request_options, ) @@ -551,6 +582,10 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio `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. + Parameters ---------- voice_id : str @@ -565,6 +600,7 @@ def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptio """ _response = self._client_wrapper.httpx_client.request( f"v1/voices/{encode_path_param(voice_id)}", + base_url=self._client_wrapper.get_environment().base, method="DELETE", request_options=request_options, ) @@ -690,6 +726,7 @@ def download_sample( """ with self._client_wrapper.httpx_client.stream( f"v1/voices/{encode_path_param(voice_id)}/sample", + base_url=self._client_wrapper.get_environment().base, method="GET", request_options=request_options, ) as _response: @@ -820,17 +857,25 @@ async def list( locale: typing.Optional[str] = None, gender: typing.Optional[ListVoicesRequestGender] = None, model: typing.Optional[str] = None, + project_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[GetVoice, ListVoicesResponse]: """ Lists the voices available to the caller - the shared voice - catalog plus the workspace's cloned voices, whichever member or - service-account key created them. By default - the full catalogue is returned in one response. Pagination is - opt-in: pass `limit` (and then `cursor` from the previous - response) to page through the list while `has_more` is true. Max - page size is 200. Narrow the list with the `type` and `locale` - filters (applied before pagination, so pages stay full). + 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. Parameters ---------- @@ -856,6 +901,22 @@ async def list( 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. @@ -866,6 +927,7 @@ async def list( """ _response = await self._client_wrapper.httpx_client.request( "v1/voices", + base_url=self._client_wrapper.get_environment().base, method="GET", params={ "cursor": cursor, @@ -874,6 +936,7 @@ async def list( "locale": locale, "gender": gender, "model": model, + "project_id": project_id, }, request_options=request_options, ) @@ -898,6 +961,7 @@ async def _get_next(): locale=locale, gender=gender, model=model, + project_id=project_id, request_options=request_options, ) @@ -984,9 +1048,11 @@ async def create( 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`, `simba-english` and `simba-multilingual`. `simba-3.2` also serves cloned voices, currently as a limited release enabled per workspace; contact Speechify to have it enabled for yours. + 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`. - Callers pinned before `Speechify-Version: 2026-09-13` use the previous flow instead: no challenge, and a `consent` form field carrying the speaker's name and email as a JSON string. That flow is deprecated and will be removed after a sunset window announced in the changelog. + 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. Parameters ---------- @@ -1038,6 +1104,7 @@ async def create( ) _response = await self._client_wrapper.httpx_client.request( "v1/voices", + base_url=self._client_wrapper.get_environment().base, method="POST", data={ "name": name, @@ -1221,6 +1288,7 @@ async def get( """ _response = await self._client_wrapper.httpx_client.request( f"v1/voices/{encode_path_param(voice_id)}", + base_url=self._client_wrapper.get_environment().base, method="GET", request_options=request_options, ) @@ -1328,6 +1396,10 @@ async def delete( `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. + Parameters ---------- voice_id : str @@ -1342,6 +1414,7 @@ async def delete( """ _response = await self._client_wrapper.httpx_client.request( f"v1/voices/{encode_path_param(voice_id)}", + base_url=self._client_wrapper.get_environment().base, method="DELETE", request_options=request_options, ) @@ -1467,6 +1540,7 @@ async def download_sample( """ async with self._client_wrapper.httpx_client.stream( f"v1/voices/{encode_path_param(voice_id)}/sample", + base_url=self._client_wrapper.get_environment().base, method="GET", request_options=request_options, ) as _response: diff --git a/src/speechify/webhooks/__init__.py b/src/speechify/webhooks/__init__.py new file mode 100644 index 0000000..ffb708a --- /dev/null +++ b/src/speechify/webhooks/__init__.py @@ -0,0 +1,34 @@ +# 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 . import endpoints +_dynamic_imports: typing.Dict[str, str] = {"endpoints": ".endpoints"} + + +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__ = ["endpoints"] diff --git a/src/speechify/webhooks/client.py b/src/speechify/webhooks/client.py new file mode 100644 index 0000000..ecc91f4 --- /dev/null +++ b/src/speechify/webhooks/client.py @@ -0,0 +1,63 @@ +# This file was auto-generated by Fern from our API Definition. + +from __future__ import annotations + +import typing + +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from .raw_client import AsyncRawWebhooksClient, RawWebhooksClient + +if typing.TYPE_CHECKING: + from .endpoints.client import AsyncEndpointsClient, EndpointsClient + + +class WebhooksClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawWebhooksClient(client_wrapper=client_wrapper) + self._client_wrapper = client_wrapper + self._endpoints: typing.Optional[EndpointsClient] = None + + @property + def with_raw_response(self) -> RawWebhooksClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawWebhooksClient + """ + return self._raw_client + + @property + def endpoints(self): + if self._endpoints is None: + from .endpoints.client import EndpointsClient # noqa: E402 + + self._endpoints = EndpointsClient(client_wrapper=self._client_wrapper) + return self._endpoints + + +class AsyncWebhooksClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawWebhooksClient(client_wrapper=client_wrapper) + self._client_wrapper = client_wrapper + self._endpoints: typing.Optional[AsyncEndpointsClient] = None + + @property + def with_raw_response(self) -> AsyncRawWebhooksClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawWebhooksClient + """ + return self._raw_client + + @property + def endpoints(self): + if self._endpoints is None: + from .endpoints.client import AsyncEndpointsClient # noqa: E402 + + self._endpoints = AsyncEndpointsClient(client_wrapper=self._client_wrapper) + return self._endpoints diff --git a/src/speechify/webhooks/endpoints/__init__.py b/src/speechify/webhooks/endpoints/__init__.py new file mode 100644 index 0000000..5cde020 --- /dev/null +++ b/src/speechify/webhooks/endpoints/__init__.py @@ -0,0 +1,4 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + diff --git a/src/speechify/webhooks/endpoints/client.py b/src/speechify/webhooks/endpoints/client.py new file mode 100644 index 0000000..910b090 --- /dev/null +++ b/src/speechify/webhooks/endpoints/client.py @@ -0,0 +1,912 @@ +# 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.list_webhook_endpoint_deliveries_response import ListWebhookEndpointDeliveriesResponse +from ...types.list_webhook_endpoints_response import ListWebhookEndpointsResponse +from ...types.webhook_endpoint import WebhookEndpoint +from ...types.webhook_endpoint_delivery import WebhookEndpointDelivery +from .raw_client import AsyncRawEndpointsClient, RawEndpointsClient + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class EndpointsClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawEndpointsClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawEndpointsClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawEndpointsClient + """ + return self._raw_client + + def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + project_id: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[WebhookEndpoint, ListWebhookEndpointsResponse]: + """ + 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`. + + 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. + + Returns + ------- + SyncPager[WebhookEndpoint, ListWebhookEndpointsResponse] + The workspace's webhook endpoints. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + response = client.webhooks.endpoints.list( + project_id="proj_01arz3ndektsv4rrffq69g5fav", + ) + 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.list(cursor=cursor, limit=limit, project_id=project_id, request_options=request_options) + + def create( + self, + *, + url: str, + enabled_events: typing.Sequence[str], + project_id: typing.Optional[str] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> WebhookEndpoint: + """ + 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. + + 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.Sequence[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.Sequence[str]] + Optional payload-shaping keys (see `WebhookEndpoint.include`). + Omit for the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + WebhookEndpoint + The created endpoint, including its one-time signing secret. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.webhooks.endpoints.create( + url="https://example.com/speechify/webhooks", + enabled_events=["project.spend_budget.warning"], + description="Example description.", + ) + """ + _response = self._raw_client.create( + url=url, + enabled_events=enabled_events, + project_id=project_id, + include=include, + api_version=api_version, + description=description, + request_options=request_options, + ) + return _response.data + + def get( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> WebhookEndpoint: + """ + Fetch a webhook endpoint by id. The signing secret is never returned. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WebhookEndpoint + The webhook endpoint (without the signing secret). + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.webhooks.endpoints.get( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.get(webhook_endpoint_id, request_options=request_options) + return _response.data + + def delete(self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None: + """ + Delete a webhook endpoint. In-flight deliveries stop; returns 204 on success. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.webhooks.endpoints.delete( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.delete(webhook_endpoint_id, request_options=request_options) + return _response.data + + def update( + self, + webhook_endpoint_id: str, + *, + url: typing.Optional[str] = OMIT, + project_id: typing.Optional[str] = OMIT, + enabled_events: typing.Optional[typing.Sequence[str]] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + disabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> WebhookEndpoint: + """ + Partial update; omitted fields are left unchanged. Set `disabled` to pause delivery without deleting the endpoint. + + 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.Sequence[str]] + + include : typing.Optional[typing.Sequence[str]] + Payload-shaping keys (see `WebhookEndpoint.include`). Send `[]` to + clear back to the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + WebhookEndpoint + The updated endpoint (without the signing secret). + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.webhooks.endpoints.update( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + url="https://example.com/webhook", + enabled_events=["example"], + description="Example description.", + disabled=False, + ) + """ + _response = self._raw_client.update( + webhook_endpoint_id, + url=url, + project_id=project_id, + enabled_events=enabled_events, + include=include, + api_version=api_version, + description=description, + disabled=disabled, + request_options=request_options, + ) + return _response.data + + def rotate_secret( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> WebhookEndpoint: + """ + 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. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WebhookEndpoint + The endpoint, including its new one-time signing secret. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.webhooks.endpoints.rotate_secret( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + """ + _response = self._raw_client.rotate_secret(webhook_endpoint_id, request_options=request_options) + return _response.data + + def list_deliveries( + self, + webhook_endpoint_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse]: + """ + 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. + + 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. + + Returns + ------- + SyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse] + The endpoint's delivery attempts. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + response = client.webhooks.endpoints.list_deliveries( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + 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.list_deliveries( + webhook_endpoint_id, cursor=cursor, limit=limit, request_options=request_options + ) + + +class AsyncEndpointsClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawEndpointsClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawEndpointsClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawEndpointsClient + """ + return self._raw_client + + async def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + project_id: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[WebhookEndpoint, ListWebhookEndpointsResponse]: + """ + 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`. + + 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. + + Returns + ------- + AsyncPager[WebhookEndpoint, ListWebhookEndpointsResponse] + The workspace's webhook endpoints. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.webhooks.endpoints.list( + project_id="proj_01arz3ndektsv4rrffq69g5fav", + ) + 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.list( + cursor=cursor, limit=limit, project_id=project_id, request_options=request_options + ) + + async def create( + self, + *, + url: str, + enabled_events: typing.Sequence[str], + project_id: typing.Optional[str] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> WebhookEndpoint: + """ + 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. + + 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.Sequence[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.Sequence[str]] + Optional payload-shaping keys (see `WebhookEndpoint.include`). + Omit for the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + WebhookEndpoint + The created endpoint, including its one-time signing secret. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.webhooks.endpoints.create( + url="https://example.com/speechify/webhooks", + enabled_events=["project.spend_budget.warning"], + description="Example description.", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.create( + url=url, + enabled_events=enabled_events, + project_id=project_id, + include=include, + api_version=api_version, + description=description, + request_options=request_options, + ) + return _response.data + + async def get( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> WebhookEndpoint: + """ + Fetch a webhook endpoint by id. The signing secret is never returned. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WebhookEndpoint + The webhook endpoint (without the signing secret). + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.webhooks.endpoints.get( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.get(webhook_endpoint_id, request_options=request_options) + return _response.data + + async def delete( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> None: + """ + Delete a webhook endpoint. In-flight deliveries stop; returns 204 on success. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + None + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.webhooks.endpoints.delete( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.delete(webhook_endpoint_id, request_options=request_options) + return _response.data + + async def update( + self, + webhook_endpoint_id: str, + *, + url: typing.Optional[str] = OMIT, + project_id: typing.Optional[str] = OMIT, + enabled_events: typing.Optional[typing.Sequence[str]] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + disabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> WebhookEndpoint: + """ + Partial update; omitted fields are left unchanged. Set `disabled` to pause delivery without deleting the endpoint. + + 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.Sequence[str]] + + include : typing.Optional[typing.Sequence[str]] + Payload-shaping keys (see `WebhookEndpoint.include`). Send `[]` to + clear back to the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + WebhookEndpoint + The updated endpoint (without the signing secret). + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.webhooks.endpoints.update( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + url="https://example.com/webhook", + enabled_events=["example"], + description="Example description.", + disabled=False, + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.update( + webhook_endpoint_id, + url=url, + project_id=project_id, + enabled_events=enabled_events, + include=include, + api_version=api_version, + description=description, + disabled=disabled, + request_options=request_options, + ) + return _response.data + + async def rotate_secret( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> WebhookEndpoint: + """ + 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. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + WebhookEndpoint + The endpoint, including its new one-time signing secret. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.webhooks.endpoints.rotate_secret( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + + + asyncio.run(main()) + """ + _response = await self._raw_client.rotate_secret(webhook_endpoint_id, request_options=request_options) + return _response.data + + async def list_deliveries( + self, + webhook_endpoint_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse]: + """ + 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. + + 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. + + Returns + ------- + AsyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse] + The endpoint's delivery attempts. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + response = await client.webhooks.endpoints.list_deliveries( + webhook_endpoint_id="whe_01jqr8x9zg5k2m3n4p5q6r7s8t", + ) + 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.list_deliveries( + webhook_endpoint_id, cursor=cursor, limit=limit, request_options=request_options + ) diff --git a/src/speechify/webhooks/endpoints/raw_client.py b/src/speechify/webhooks/endpoints/raw_client.py new file mode 100644 index 0000000..f51bf88 --- /dev/null +++ b/src/speechify/webhooks/endpoints/raw_client.py @@ -0,0 +1,1828 @@ +# 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.http_response import AsyncHttpResponse, HttpResponse +from ...core.jsonable_encoder import encode_path_param +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_request_error import BadRequestError +from ...errors.forbidden_error import ForbiddenError +from ...errors.internal_server_error import InternalServerError +from ...errors.not_found_error import NotFoundError +from ...errors.too_many_requests_error import TooManyRequestsError +from ...errors.unauthorized_error import UnauthorizedError +from ...errors.unprocessable_entity_error import UnprocessableEntityError +from ...types.error import Error +from ...types.list_webhook_endpoint_deliveries_response import ListWebhookEndpointDeliveriesResponse +from ...types.list_webhook_endpoints_response import ListWebhookEndpointsResponse +from ...types.webhook_endpoint import WebhookEndpoint +from ...types.webhook_endpoint_delivery import WebhookEndpointDelivery +from pydantic import ValidationError + +# this is used as the default value for optional parameters +OMIT = typing.cast(typing.Any, ...) + + +class RawEndpointsClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + project_id: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[WebhookEndpoint, ListWebhookEndpointsResponse]: + """ + 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`. + + 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. + + Returns + ------- + SyncPager[WebhookEndpoint, ListWebhookEndpointsResponse] + The workspace's webhook endpoints. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + "project_id": project_id, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListWebhookEndpointsResponse, + parse_obj_as( + type_=ListWebhookEndpointsResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.endpoints + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list( + cursor=_parsed_next, + limit=limit, + project_id=project_id, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 create( + self, + *, + url: str, + enabled_events: typing.Sequence[str], + project_id: typing.Optional[str] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[WebhookEndpoint]: + """ + 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. + + 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.Sequence[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.Sequence[str]] + Optional payload-shaping keys (see `WebhookEndpoint.include`). + Omit for the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + HttpResponse[WebhookEndpoint] + The created endpoint, including its one-time signing secret. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, + method="POST", + json={ + "url": url, + "project_id": project_id, + "enabled_events": enabled_events, + "include": include, + "api_version": api_version, + "description": description, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + def get( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[WebhookEndpoint]: + """ + Fetch a webhook endpoint by id. The signing secret is never returned. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[WebhookEndpoint] + The webhook endpoint (without the signing secret). + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 delete( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[None]: + """ + Delete a webhook endpoint. In-flight deliveries stop; returns 204 on success. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[None] + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}", + base_url=self._client_wrapper.get_environment().base, + method="DELETE", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return HttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 update( + self, + webhook_endpoint_id: str, + *, + url: typing.Optional[str] = OMIT, + project_id: typing.Optional[str] = OMIT, + enabled_events: typing.Optional[typing.Sequence[str]] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + disabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> HttpResponse[WebhookEndpoint]: + """ + Partial update; omitted fields are left unchanged. Set `disabled` to pause delivery without deleting the endpoint. + + 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.Sequence[str]] + + include : typing.Optional[typing.Sequence[str]] + Payload-shaping keys (see `WebhookEndpoint.include`). Send `[]` to + clear back to the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + HttpResponse[WebhookEndpoint] + The updated endpoint (without the signing secret). + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}", + base_url=self._client_wrapper.get_environment().base, + method="PATCH", + json={ + "url": url, + "project_id": project_id, + "enabled_events": enabled_events, + "include": include, + "api_version": api_version, + "description": description, + "disabled": disabled, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # type: ignore + object_=_response.json(), + ), + ) + return HttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 rotate_secret( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[WebhookEndpoint]: + """ + 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. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[WebhookEndpoint] + The endpoint, including its new one-time signing secret. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}/rotate-secret", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 list_deliveries( + self, + webhook_endpoint_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> SyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse]: + """ + 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. + + 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. + + Returns + ------- + SyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse] + The endpoint's delivery attempts. + """ + _response = self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}/deliveries", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListWebhookEndpointDeliveriesResponse, + parse_obj_as( + type_=ListWebhookEndpointDeliveriesResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.deliveries + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + _get_next = lambda: self.list_deliveries( + webhook_endpoint_id, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 AsyncRawEndpointsClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper + + async def list( + self, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + project_id: typing.Optional[str] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[WebhookEndpoint, ListWebhookEndpointsResponse]: + """ + 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`. + + 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. + + Returns + ------- + AsyncPager[WebhookEndpoint, ListWebhookEndpointsResponse] + The workspace's webhook endpoints. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + "project_id": project_id, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListWebhookEndpointsResponse, + parse_obj_as( + type_=ListWebhookEndpointsResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.endpoints + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list( + cursor=_parsed_next, + limit=limit, + project_id=project_id, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 create( + self, + *, + url: str, + enabled_events: typing.Sequence[str], + project_id: typing.Optional[str] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[WebhookEndpoint]: + """ + 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. + + 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.Sequence[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.Sequence[str]] + Optional payload-shaping keys (see `WebhookEndpoint.include`). + Omit for the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + AsyncHttpResponse[WebhookEndpoint] + The created endpoint, including its one-time signing secret. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/webhooks/endpoints", + base_url=self._client_wrapper.get_environment().base, + method="POST", + json={ + "url": url, + "project_id": project_id, + "enabled_events": enabled_events, + "include": include, + "api_version": api_version, + "description": description, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 404: + raise NotFoundError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + parse_obj_as( + type_=typing.Any, # type: ignore + object_=_response.json(), + ), + ), + ) + if _response.status_code == 422: + raise UnprocessableEntityError( + headers=dict(_response.headers), + body=typing.cast( + Error, + parse_obj_as( + type_=Error, # 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(), + ), + ), + ) + _response_json = _response.json() + except JSONDecodeError: + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text) + except ValidationError as e: + raise ParsingError( + status_code=_response.status_code, headers=dict(_response.headers), body=_response.json(), cause=e + ) + raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) + + async def get( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[WebhookEndpoint]: + """ + Fetch a webhook endpoint by id. The signing secret is never returned. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[WebhookEndpoint] + The webhook endpoint (without the signing secret). + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 delete( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[None]: + """ + Delete a webhook endpoint. In-flight deliveries stop; returns 204 on success. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[None] + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}", + base_url=self._client_wrapper.get_environment().base, + method="DELETE", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + return AsyncHttpResponse(response=_response, data=None) + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 update( + self, + webhook_endpoint_id: str, + *, + url: typing.Optional[str] = OMIT, + project_id: typing.Optional[str] = OMIT, + enabled_events: typing.Optional[typing.Sequence[str]] = OMIT, + include: typing.Optional[typing.Sequence[str]] = OMIT, + api_version: typing.Optional[dt.date] = OMIT, + description: typing.Optional[str] = OMIT, + disabled: typing.Optional[bool] = OMIT, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncHttpResponse[WebhookEndpoint]: + """ + Partial update; omitted fields are left unchanged. Set `disabled` to pause delivery without deleting the endpoint. + + 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.Sequence[str]] + + include : typing.Optional[typing.Sequence[str]] + Payload-shaping keys (see `WebhookEndpoint.include`). Send `[]` to + clear back to the lean default. + + api_version : typing.Optional[dt.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. + + Returns + ------- + AsyncHttpResponse[WebhookEndpoint] + The updated endpoint (without the signing secret). + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}", + base_url=self._client_wrapper.get_environment().base, + method="PATCH", + json={ + "url": url, + "project_id": project_id, + "enabled_events": enabled_events, + "include": include, + "api_version": api_version, + "description": description, + "disabled": disabled, + }, + headers={ + "content-type": "application/json", + }, + request_options=request_options, + omit=OMIT, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # type: ignore + object_=_response.json(), + ), + ) + return AsyncHttpResponse(response=_response, data=_data) + if _response.status_code == 400: + raise BadRequestError( + headers=dict(_response.headers), + body=typing.cast( + typing.Any, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 rotate_secret( + self, webhook_endpoint_id: str, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[WebhookEndpoint]: + """ + 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. + + Parameters + ---------- + webhook_endpoint_id : str + Webhook endpoint id (prefixed `whe_…`). + + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[WebhookEndpoint] + The endpoint, including its new one-time signing secret. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}/rotate-secret", + base_url=self._client_wrapper.get_environment().base, + method="POST", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + WebhookEndpoint, + parse_obj_as( + type_=WebhookEndpoint, # 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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 list_deliveries( + self, + webhook_endpoint_id: str, + *, + cursor: typing.Optional[str] = None, + limit: typing.Optional[int] = None, + request_options: typing.Optional[RequestOptions] = None, + ) -> AsyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse]: + """ + 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. + + 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. + + Returns + ------- + AsyncPager[WebhookEndpointDelivery, ListWebhookEndpointDeliveriesResponse] + The endpoint's delivery attempts. + """ + _response = await self._client_wrapper.httpx_client.request( + f"v1/webhooks/endpoints/{encode_path_param(webhook_endpoint_id)}/deliveries", + base_url=self._client_wrapper.get_environment().base, + method="GET", + params={ + "cursor": cursor, + "limit": limit, + }, + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _parsed_response = typing.cast( + ListWebhookEndpointDeliveriesResponse, + parse_obj_as( + type_=ListWebhookEndpointDeliveriesResponse, # type: ignore + object_=_response.json(), + ), + ) + _items = _parsed_response.deliveries + _parsed_next = _parsed_response.next_cursor + _has_next = _parsed_next is not None and _parsed_next != "" + + async def _get_next(): + return await self.list_deliveries( + webhook_endpoint_id, + 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 == 404: + raise NotFoundError( + 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(), + ), + ), + ) + _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/webhooks/raw_client.py b/src/speechify/webhooks/raw_client.py new file mode 100644 index 0000000..7478234 --- /dev/null +++ b/src/speechify/webhooks/raw_client.py @@ -0,0 +1,13 @@ +# This file was auto-generated by Fern from our API Definition. + +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper + + +class RawWebhooksClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + +class AsyncRawWebhooksClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._client_wrapper = client_wrapper diff --git a/src/speechify/workspaces/__init__.py b/src/speechify/workspaces/__init__.py new file mode 100644 index 0000000..5cde020 --- /dev/null +++ b/src/speechify/workspaces/__init__.py @@ -0,0 +1,4 @@ +# This file was auto-generated by Fern from our API Definition. + +# isort: skip_file + diff --git a/src/speechify/workspaces/client.py b/src/speechify/workspaces/client.py new file mode 100644 index 0000000..05e5f5b --- /dev/null +++ b/src/speechify/workspaces/client.py @@ -0,0 +1,124 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.request_options import RequestOptions +from ..types.entitlements_response import EntitlementsResponse +from .raw_client import AsyncRawWorkspacesClient, RawWorkspacesClient + + +class WorkspacesClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._raw_client = RawWorkspacesClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> RawWorkspacesClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + RawWorkspacesClient + """ + return self._raw_client + + def get_entitlements(self, *, request_options: typing.Optional[RequestOptions] = None) -> EntitlementsResponse: + """ + 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. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + EntitlementsResponse + The entitlements catalog + the current workspace's resolved entitlements. + + Examples + -------- + from speechify import Speechify + + client = Speechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + client.workspaces.get_entitlements() + """ + _response = self._raw_client.get_entitlements(request_options=request_options) + return _response.data + + +class AsyncWorkspacesClient: + def __init__(self, *, client_wrapper: AsyncClientWrapper): + self._raw_client = AsyncRawWorkspacesClient(client_wrapper=client_wrapper) + + @property + def with_raw_response(self) -> AsyncRawWorkspacesClient: + """ + Retrieves a raw implementation of this client that returns raw responses. + + Returns + ------- + AsyncRawWorkspacesClient + """ + return self._raw_client + + async def get_entitlements( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> EntitlementsResponse: + """ + 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. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + EntitlementsResponse + The entitlements catalog + the current workspace's resolved entitlements. + + Examples + -------- + import asyncio + + from speechify import AsyncSpeechify + + client = AsyncSpeechify( + version="2026-09-30", + token="YOUR_TOKEN", + ) + + + async def main() -> None: + await client.workspaces.get_entitlements() + + + asyncio.run(main()) + """ + _response = await self._raw_client.get_entitlements(request_options=request_options) + return _response.data diff --git a/src/speechify/workspaces/raw_client.py b/src/speechify/workspaces/raw_client.py new file mode 100644 index 0000000..b07de03 --- /dev/null +++ b/src/speechify/workspaces/raw_client.py @@ -0,0 +1,195 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing +from json.decoder import JSONDecodeError + +from ..core.api_error import ApiError +from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper +from ..core.http_response import AsyncHttpResponse, HttpResponse +from ..core.parse_error import ParsingError +from ..core.pydantic_utilities import parse_obj_as +from ..core.request_options import RequestOptions +from ..errors.internal_server_error import InternalServerError +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 pydantic import ValidationError + + +class RawWorkspacesClient: + def __init__(self, *, client_wrapper: SyncClientWrapper): + self._client_wrapper = client_wrapper + + def get_entitlements( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> HttpResponse[EntitlementsResponse]: + """ + 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. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + HttpResponse[EntitlementsResponse] + The entitlements catalog + the current workspace's resolved entitlements. + """ + _response = self._client_wrapper.httpx_client.request( + "v1/workspaces/current/entitlements", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + EntitlementsResponse, + parse_obj_as( + type_=EntitlementsResponse, # 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 == 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(), + ), + ), + ) + _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): + self._client_wrapper = client_wrapper + + async def get_entitlements( + self, *, request_options: typing.Optional[RequestOptions] = None + ) -> AsyncHttpResponse[EntitlementsResponse]: + """ + 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. + + Parameters + ---------- + request_options : typing.Optional[RequestOptions] + Request-specific configuration. + + Returns + ------- + AsyncHttpResponse[EntitlementsResponse] + The entitlements catalog + the current workspace's resolved entitlements. + """ + _response = await self._client_wrapper.httpx_client.request( + "v1/workspaces/current/entitlements", + base_url=self._client_wrapper.get_environment().base, + method="GET", + request_options=request_options, + ) + try: + if 200 <= _response.status_code < 300: + _data = typing.cast( + EntitlementsResponse, + parse_obj_as( + type_=EntitlementsResponse, # 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 == 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(), + ), + ), + ) + _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/tests/utils/test_http_client.py b/tests/utils/test_http_client.py index 763e08e..e12dd96 100644 --- a/tests/utils/test_http_client.py +++ b/tests/utils/test_http_client.py @@ -1,6 +1,6 @@ # This file was auto-generated by Fern from our API Definition. -from typing import Any, Dict +from typing import Any, Dict, Tuple, cast from unittest.mock import AsyncMock, MagicMock, patch import httpx @@ -10,7 +10,11 @@ AsyncHttpClient, HttpClient, _build_url, + _merge_headers, + _parse_retry_after, + _redact_headers, _should_retry, + drop_content_type_without_body, get_request_body, remove_none_from_dict, ) @@ -121,6 +125,67 @@ def test_explicit_empty_json_body_is_preserved() -> None: assert data_body2 == {} +def test_omitted_body_sends_no_content() -> None: + """A body left at the sentinel was never passed, so nothing is sent. + + This is how an endpoint whose body may be omitted stays bodyless, as opposed to + sending an empty ``{}``. An explicit ``None`` still reaches the wire as ``null``. + """ + omit = cast(Any, ...) + unrelated_request_options: RequestOptions = {"max_retries": 3} + + json_body, data_body = get_request_body(json=omit, data=None, request_options=unrelated_request_options, omit=omit) + assert json_body is None + assert data_body is None + + json_body2, data_body2 = get_request_body( + json=None, data=omit, request_options=unrelated_request_options, omit=omit + ) + assert json_body2 is None + assert data_body2 is None + + # an explicitly passed body is untouched + json_body3, _ = get_request_body(json={"hello": "world"}, data=None, request_options=None, omit=omit) + assert json_body3 == {"hello": "world"} + + +def test_optional_body_sends_no_content_when_every_property_is_omitted() -> None: + """An endpoint that inlines an omittable body sends nothing once every property is omitted. + + The body reaches the client as a dict of sentinels rather than as a single argument, so + ``optional_body`` is what tells the client that an empty result means "no body at all". + """ + omit = cast(Any, ...) + + json_body, data_body = get_request_body( + json={"amount": omit, "source": omit}, data=None, request_options=None, omit=omit, optional_body=True + ) + assert json_body is None + assert data_body is None + + # a body the API requires still goes out as `{}` + required_json_body, _ = get_request_body( + json={"amount": omit, "source": omit}, data=None, request_options=None, omit=omit + ) + assert required_json_body == {} + + # a property the caller did pass keeps the body + populated_json_body, _ = get_request_body( + json={"amount": 1, "source": omit}, data=None, request_options=None, omit=omit, optional_body=True + ) + assert populated_json_body == {"amount": 1} + + # additional body parameters keep the body, since the caller asked for them + with_additional_body_parameters, _ = get_request_body( + json={"amount": omit}, + data=None, + request_options={"additional_body_parameters": {"custom": "value"}}, + omit=omit, + optional_body=True, + ) + assert with_additional_body_parameters == {"custom": "value"} + + def test_json_body_preserves_none_values() -> None: """Test that JSON bodies preserve None values (they become JSON null).""" json_body, data_body = get_request_body( @@ -345,8 +410,8 @@ def test_sync_retries_on_connect_error(mock_sleep: MagicMock) -> None: @patch("speechify.core.http_client.time.sleep", return_value=None) -def test_sync_retries_on_remote_protocol_error(mock_sleep: MagicMock) -> None: - """Sync: connection error retries on httpx.RemoteProtocolError.""" +def test_sync_opt_in_retries_on_remote_protocol_error(mock_sleep: MagicMock) -> None: + """Sync: ambiguous disconnect retries require an explicit opt-in.""" mock_client = MagicMock() mock_client.request.side_effect = [ httpx.RemoteProtocolError("Remote end closed connection without response"), @@ -354,7 +419,7 @@ def test_sync_retries_on_remote_protocol_error(mock_sleep: MagicMock) -> None: ] http_client = _make_sync_http_client(mock_client) - response = http_client.request(path="/test", method="GET") + response = http_client.request(path="/test", method="POST", request_options={"retry_remote_protocol_errors": True}) assert response.status_code == 200 assert mock_client.request.call_count == 2 @@ -421,8 +486,8 @@ async def test_async_retries_on_connect_error(mock_sleep: AsyncMock) -> None: @pytest.mark.asyncio @patch("speechify.core.http_client.asyncio.sleep", new_callable=AsyncMock) -async def test_async_retries_on_remote_protocol_error(mock_sleep: AsyncMock) -> None: - """Async: connection error retries on httpx.RemoteProtocolError.""" +async def test_async_opt_in_retries_on_remote_protocol_error(mock_sleep: AsyncMock) -> None: + """Async: ambiguous disconnect retries require an explicit opt-in.""" mock_client = MagicMock() mock_client.request = AsyncMock( side_effect=[ @@ -432,7 +497,9 @@ async def test_async_retries_on_remote_protocol_error(mock_sleep: AsyncMock) -> ) http_client = _make_async_http_client(mock_client) - response = await http_client.request(path="/test", method="GET") + response = await http_client.request( + path="/test", method="POST", request_options={"retry_remote_protocol_errors": True} + ) assert response.status_code == 200 assert mock_client.request.call_count == 2 @@ -672,23 +739,198 @@ def _make_response(status_code: int) -> httpx.Response: return httpx.Response(status_code=status_code, content=b"") -@pytest.mark.parametrize( - "status_code", - [408, 409, 429, 500, 501, 502, 503, 504, 599], -) +RETRYABLE_STATUS_CODES = [408, 409, 429, 500, 501, 502, 503, 504, 599] +NON_RETRYABLE_STATUS_CODES = [200, 201, 301, 400, 401, 403, 404] + + +@pytest.mark.parametrize("status_code", RETRYABLE_STATUS_CODES) def test_should_retry_retryable_status_codes(status_code: int) -> None: - """Legacy mode: retries on 408, 409, 429, and all >= 500.""" assert _should_retry(_make_response(status_code)) is True -@pytest.mark.parametrize( - "status_code", - [200, 201, 301, 400, 401, 403, 404], -) +@pytest.mark.parametrize("status_code", NON_RETRYABLE_STATUS_CODES) def test_should_not_retry_non_retryable_status_codes(status_code: int) -> None: assert _should_retry(_make_response(status_code)) is False -def test_should_retry_599_upper_boundary() -> None: - """Legacy mode retries on >= 500, which includes 599.""" - assert _should_retry(_make_response(599)) is True +# --------------------------------------------------------------------------- +# RequestOptions timeout resolution tests (timeout / deprecated timeout_in_seconds) +# --------------------------------------------------------------------------- + + +def _sync_client_with_base_timeout(base_timeout: Any) -> Tuple[HttpClient, _DummySyncClient]: + dummy_client = _DummySyncClient() + http_client = HttpClient( + httpx_client=dummy_client, # type: ignore[arg-type] + base_timeout=lambda: base_timeout, + base_headers=lambda: {}, + base_url=lambda: "https://example.com", + ) + return http_client, dummy_client + + +def test_sync_request_options_timeout_used() -> None: + """The new `timeout` request option is passed through to httpx (in seconds).""" + http_client, dummy_client = _sync_client_with_base_timeout(60) + http_client.request(path="/test", method="GET", request_options={"timeout": 30}) + assert dummy_client.last_request_kwargs["timeout"] == 30 + + +def test_sync_request_options_timeout_in_seconds_still_works() -> None: + """The deprecated `timeout_in_seconds` request option remains backwards compatible.""" + http_client, dummy_client = _sync_client_with_base_timeout(60) + http_client.request(path="/test", method="GET", request_options={"timeout_in_seconds": 45}) + assert dummy_client.last_request_kwargs["timeout"] == 45 + + +def test_sync_request_options_timeout_takes_precedence() -> None: + """When both are set, `timeout` wins over `timeout_in_seconds` (same seconds unit).""" + http_client, dummy_client = _sync_client_with_base_timeout(60) + http_client.request(path="/test", method="GET", request_options={"timeout": 30, "timeout_in_seconds": 45}) + assert dummy_client.last_request_kwargs["timeout"] == 30 + + +def test_sync_request_options_timeout_falls_back_to_base() -> None: + """When neither key is set, the client-level base timeout is used.""" + http_client, dummy_client = _sync_client_with_base_timeout(60) + http_client.request(path="/test", method="GET", request_options=None) + assert dummy_client.last_request_kwargs["timeout"] == 60 + + +def test_sync_request_options_timeout_none_falls_back_to_deprecated() -> None: + """An explicit `timeout=None` (dynamic caller) falls back to the deprecated `timeout_in_seconds`.""" + http_client, dummy_client = _sync_client_with_base_timeout(60) + request_options = cast(RequestOptions, {"timeout": None, "timeout_in_seconds": 45}) + http_client.request(path="/test", method="GET", request_options=request_options) + assert dummy_client.last_request_kwargs["timeout"] == 45 + + +@pytest.mark.asyncio +async def test_async_request_options_timeout_takes_precedence() -> None: + """Async: `timeout` wins over the deprecated `timeout_in_seconds`.""" + dummy_client = _DummyAsyncClient() + http_client = AsyncHttpClient( + httpx_client=dummy_client, # type: ignore[arg-type] + base_timeout=lambda: 60, + base_headers=lambda: {}, + base_url=lambda: "https://example.com", + async_base_headers=None, + ) + await http_client.request(path="/test", method="GET", request_options={"timeout": 30, "timeout_in_seconds": 45}) + assert dummy_client.last_request_kwargs["timeout"] == 30 + + +def test_drop_content_type_without_body_omits_header_for_bodyless_optional_call() -> None: + """An optional-body endpoint the caller left empty must not advertise a media type. + + `get_request_body` drops the body, but the endpoint still hands over the content type it + would have used, so a server that branches on the header would see a JSON request carrying + nothing at all. + """ + headers = {"content-type": "application/json", "authorization": "Bearer x"} + + assert drop_content_type_without_body(headers, json_body=None, data_body=None, optional_body=True) == { + "authorization": "Bearer x" + } + + +def test_drop_content_type_without_body_keeps_header_when_a_body_is_sent() -> None: + headers = {"content-type": "application/json"} + + assert ( + drop_content_type_without_body(headers, json_body={"amount": 60}, data_body=None, optional_body=True) == headers + ) + assert drop_content_type_without_body(headers, json_body=None, data_body="raw", optional_body=True) == headers + + +def test_drop_content_type_without_body_leaves_required_body_endpoints_alone() -> None: + """Without the opt-in, an endpoint keeps the header it has always sent.""" + headers = {"Content-Type": "application/json"} + + assert drop_content_type_without_body(headers, json_body=None, data_body=None, optional_body=False) == headers + + +def test_merge_headers_replaces_case_variants() -> None: + merged = _merge_headers( + {"PLAID-SECRET": "base", "X-Other": "1"}, + {"plaid-secret": "endpoint"}, + None, + {"Plaid-Secret": "override"}, + ) + assert merged == {"X-Other": "1", "Plaid-Secret": "override"} + + +def test_redact_headers_is_case_insensitive() -> None: + redacted = _redact_headers({"AUTHORIZATION": "Bearer t", "X-Api-Key": "k", "Accept": "application/json"}) + assert redacted == {"AUTHORIZATION": "[REDACTED]", "X-Api-Key": "[REDACTED]", "Accept": "application/json"} + + +def test_http_client_sends_single_header_for_case_variant_override() -> None: + dummy_client = _DummySyncClient() + http_client = HttpClient( + httpx_client=dummy_client, # type: ignore[arg-type] + base_timeout=lambda: None, + base_headers=lambda: {"PLAID-SECRET": "base"}, + base_url=lambda: "https://example.com", + ) + http_client.request( + path="resource", + method="GET", + request_options={"additional_headers": {"plaid-secret": "override"}}, + ) + sent = dummy_client.last_request_kwargs["headers"] + assert [k for k in sent if k.lower() == "plaid-secret"] == ["plaid-secret"] + assert sent["plaid-secret"] == "override" + + +@pytest.mark.parametrize( + "headers,expected", + [ + ({"retry-after-ms": "1500", "retry-after": "9"}, 1.5), + ({"retry-after-ms": "1"}, 0.001), + ({"retry-after-ms": "3000"}, 3.0), + ({"retry-after-ms": "0", "retry-after": "9"}, 9.0), + ({"retry-after-ms": "-5", "retry-after": "9"}, 9.0), + ({"retry-after-ms": "NaN", "retry-after": "9"}, 9.0), + ({"retry-after-ms": "Infinity", "retry-after": "9"}, 9.0), + ({"retry-after-ms": "1e400", "retry-after": "9"}, 9.0), + ({"retry-after-ms": "not-a-number", "retry-after": "9"}, 9.0), + ({"retry-after": "9"}, 9.0), + ({}, None), + ], +) +def test_parse_retry_after(headers: Dict[str, str], expected: Any) -> None: + assert _parse_retry_after(httpx.Headers(headers)) == expected + + +@patch("speechify.core.http_client.time.sleep", return_value=None) +def test_sync_retry_uses_retry_after_ms_header(mock_sleep: MagicMock) -> None: + mock_client = MagicMock() + mock_client.request.side_effect = [ + httpx.Response(429, headers={"retry-after-ms": "1500", "retry-after": "9"}), + _DummyResponse(), + ] + http_client = _make_sync_http_client(mock_client) + + response = http_client.request(path="/test", method="GET") + + assert response.status_code == 200 + mock_sleep.assert_called_once_with(1.5) + + +@pytest.mark.asyncio +async def test_async_retry_uses_retry_after_ms_header() -> None: + mock_client = MagicMock() + mock_client.request = AsyncMock( + side_effect=[ + httpx.Response(429, headers={"retry-after-ms": "1500", "retry-after": "9"}), + _DummyResponse(), + ] + ) + http_client = _make_async_http_client(mock_client) + + with patch("speechify.core.http_client.asyncio.sleep", new_callable=AsyncMock) as mock_sleep: + response = await http_client.request(path="/test", method="GET") + + assert response.status_code == 200 + mock_sleep.assert_called_once_with(1.5) From 33e10e7d0a761d5eecdb7b61475e006b33f32566 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 16:45:58 +0000 Subject: [PATCH 2/2] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 4a27de4..479495f 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-10-27T16:45:37.311Z cli_version: unknown generator_versions: {} -current_generation: 2f809ee908c7bd65b24bf4a97010279ac34b982d + - commit_sha: f45ba8380dabd5e09ce4637fdcf94ae6f2cf41a9 + tree_hash: 7312c9fa7ce3063b37c325bbc7f2fc615872092a + timestamp: 2026-10-27T16:45:54.667Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.41.10 +current_generation: f45ba8380dabd5e09ce4637fdcf94ae6f2cf41a9 patches: []